merong-docs 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2498) hide show
  1. package/OVERVIEW.md +19 -0
  2. package/OVERVIEW.zh-CN.md +19 -0
  3. package/README.md +76 -2
  4. package/README.zh-CN.md +81 -0
  5. package/assets/cover-en.png +0 -0
  6. package/assets/documents-en.png +0 -0
  7. package/assets/icon.png +0 -0
  8. package/assets/markdown-en.png +0 -0
  9. package/client/android-file-share.ts +25 -0
  10. package/client/controls.tsx +163 -0
  11. package/client/document-panel.tsx +166 -0
  12. package/client/external-file.tsx +78 -0
  13. package/client/file-reader.tsx +43 -0
  14. package/client/markdown-panel.tsx +737 -0
  15. package/client/markdown-scroll.ts +122 -0
  16. package/client/messages.ts +224 -0
  17. package/client/native-contacts.ts +145 -0
  18. package/client/page-render-queue.ts +12 -0
  19. package/client/page-selection.tsx +227 -0
  20. package/client/page-tools.tsx +72 -0
  21. package/client/pdf-geometry.ts +96 -0
  22. package/client/pdf-panel.tsx +477 -0
  23. package/client/reader-find.tsx +190 -0
  24. package/client/reader-notice.tsx +46 -0
  25. package/client/settings.tsx +143 -0
  26. package/client/syntax.tsx +55 -0
  27. package/client/viewport-geometry.ts +61 -0
  28. package/client/web.ts +462 -0
  29. package/client/worksheet-panel.tsx +631 -0
  30. package/client/zoom-controls.tsx +140 -0
  31. package/index.client.tsx +36 -0
  32. package/index.server.ts +73 -0
  33. package/node_modules/@types/debug/LICENSE +21 -0
  34. package/node_modules/@types/debug/README.md +69 -0
  35. package/node_modules/@types/debug/index.d.ts +50 -0
  36. package/node_modules/@types/debug/package.json +58 -0
  37. package/node_modules/@types/hast/LICENSE +21 -0
  38. package/node_modules/@types/hast/README.md +15 -0
  39. package/node_modules/@types/hast/index.d.ts +924 -0
  40. package/node_modules/@types/hast/package.json +48 -0
  41. package/node_modules/@types/ms/LICENSE +21 -0
  42. package/node_modules/@types/ms/README.md +82 -0
  43. package/node_modules/@types/ms/index.d.ts +63 -0
  44. package/node_modules/@types/ms/package.json +26 -0
  45. package/node_modules/@types/prismjs/LICENSE +21 -0
  46. package/node_modules/@types/prismjs/README.md +15 -0
  47. package/node_modules/@types/prismjs/components/index.d.ts +19 -0
  48. package/node_modules/@types/prismjs/components.d.ts +4 -0
  49. package/node_modules/@types/prismjs/dependencies.d.ts +35 -0
  50. package/node_modules/@types/prismjs/index.d.ts +402 -0
  51. package/node_modules/@types/prismjs/package.json +46 -0
  52. package/node_modules/@types/unist/LICENSE +21 -0
  53. package/node_modules/@types/unist/README.md +15 -0
  54. package/node_modules/@types/unist/index.d.ts +119 -0
  55. package/node_modules/@types/unist/package.json +60 -0
  56. package/node_modules/@xmldom/xmldom/CHANGELOG.md +1132 -0
  57. package/node_modules/@xmldom/xmldom/LICENSE +8 -0
  58. package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
  59. package/node_modules/@xmldom/xmldom/index.d.ts +1843 -0
  60. package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +3 -0
  61. package/node_modules/@xmldom/xmldom/lib/conventions.js +429 -0
  62. package/node_modules/@xmldom/xmldom/lib/dom-parser.js +591 -0
  63. package/node_modules/@xmldom/xmldom/lib/dom.js +3759 -0
  64. package/node_modules/@xmldom/xmldom/lib/entities.js +2171 -0
  65. package/node_modules/@xmldom/xmldom/lib/errors.js +205 -0
  66. package/node_modules/@xmldom/xmldom/lib/grammar.js +559 -0
  67. package/node_modules/@xmldom/xmldom/lib/index.js +41 -0
  68. package/node_modules/@xmldom/xmldom/lib/sax.js +983 -0
  69. package/node_modules/@xmldom/xmldom/package.json +77 -0
  70. package/node_modules/@xmldom/xmldom/readme.md +366 -0
  71. package/node_modules/argparse/LICENSE +47 -0
  72. package/node_modules/argparse/README.md +89 -0
  73. package/node_modules/argparse/lib/_colorize.js +72 -0
  74. package/node_modules/argparse/lib/argparse.d.ts +292 -0
  75. package/node_modules/argparse/lib/argparse.js +3820 -0
  76. package/node_modules/argparse/lib/difflib.js +190 -0
  77. package/node_modules/argparse/lib/sub.js +67 -0
  78. package/node_modules/argparse/lib/textwrap.js +451 -0
  79. package/node_modules/argparse/package.json +38 -0
  80. package/node_modules/character-entities/index.d.ts +6 -0
  81. package/node_modules/character-entities/index.js +2132 -0
  82. package/node_modules/character-entities/license +22 -0
  83. package/node_modules/character-entities/package.json +78 -0
  84. package/node_modules/character-entities/readme.md +152 -0
  85. package/node_modules/character-entities-legacy/index.d.ts +6 -0
  86. package/node_modules/character-entities-legacy/index.js +113 -0
  87. package/node_modules/character-entities-legacy/license +22 -0
  88. package/node_modules/character-entities-legacy/package.json +77 -0
  89. package/node_modules/character-entities-legacy/readme.md +157 -0
  90. package/node_modules/character-reference-invalid/index.d.ts +6 -0
  91. package/node_modules/character-reference-invalid/index.js +35 -0
  92. package/node_modules/character-reference-invalid/license +22 -0
  93. package/node_modules/character-reference-invalid/package.json +83 -0
  94. package/node_modules/character-reference-invalid/readme.md +156 -0
  95. package/node_modules/comma-separated-tokens/index.d.ts +52 -0
  96. package/node_modules/comma-separated-tokens/index.js +74 -0
  97. package/node_modules/comma-separated-tokens/license +22 -0
  98. package/node_modules/comma-separated-tokens/package.json +72 -0
  99. package/node_modules/comma-separated-tokens/readme.md +167 -0
  100. package/node_modules/debug/LICENSE +20 -0
  101. package/node_modules/debug/README.md +481 -0
  102. package/node_modules/debug/package.json +64 -0
  103. package/node_modules/debug/src/browser.js +272 -0
  104. package/node_modules/debug/src/common.js +292 -0
  105. package/node_modules/debug/src/index.js +10 -0
  106. package/node_modules/debug/src/node.js +263 -0
  107. package/node_modules/decode-named-character-reference/index.d.ts +13 -0
  108. package/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
  109. package/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
  110. package/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
  111. package/node_modules/decode-named-character-reference/index.dom.js +32 -0
  112. package/node_modules/decode-named-character-reference/index.js +19 -0
  113. package/node_modules/decode-named-character-reference/license +22 -0
  114. package/node_modules/decode-named-character-reference/package.json +90 -0
  115. package/node_modules/decode-named-character-reference/readme.md +136 -0
  116. package/node_modules/dequal/dist/index.js +86 -0
  117. package/node_modules/dequal/dist/index.min.js +1 -0
  118. package/node_modules/dequal/dist/index.mjs +84 -0
  119. package/node_modules/dequal/index.d.ts +1 -0
  120. package/node_modules/dequal/license +21 -0
  121. package/node_modules/dequal/lite/index.d.ts +1 -0
  122. package/node_modules/dequal/lite/index.js +31 -0
  123. package/node_modules/dequal/lite/index.min.js +1 -0
  124. package/node_modules/dequal/lite/index.mjs +29 -0
  125. package/node_modules/dequal/package.json +57 -0
  126. package/node_modules/dequal/readme.md +112 -0
  127. package/node_modules/devlop/lib/default.js +9 -0
  128. package/node_modules/devlop/lib/development.d.ts +84 -0
  129. package/node_modules/devlop/lib/development.js +238 -0
  130. package/node_modules/devlop/license +22 -0
  131. package/node_modules/devlop/package.json +80 -0
  132. package/node_modules/devlop/readme.md +360 -0
  133. package/node_modules/entities/LICENSE +11 -0
  134. package/node_modules/entities/dist/decode-codepoint.d.ts +28 -0
  135. package/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
  136. package/node_modules/entities/dist/decode-codepoint.js +61 -0
  137. package/node_modules/entities/dist/decode-codepoint.js.map +1 -0
  138. package/node_modules/entities/dist/decode.d.ts +227 -0
  139. package/node_modules/entities/dist/decode.d.ts.map +1 -0
  140. package/node_modules/entities/dist/decode.js +1132 -0
  141. package/node_modules/entities/dist/decode.js.map +1 -0
  142. package/node_modules/entities/dist/encode.d.ts +26 -0
  143. package/node_modules/entities/dist/encode.d.ts.map +1 -0
  144. package/node_modules/entities/dist/encode.js +295 -0
  145. package/node_modules/entities/dist/encode.js.map +1 -0
  146. package/node_modules/entities/dist/escape.d.ts +60 -0
  147. package/node_modules/entities/dist/escape.d.ts.map +1 -0
  148. package/node_modules/entities/dist/escape.js +172 -0
  149. package/node_modules/entities/dist/escape.js.map +1 -0
  150. package/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
  151. package/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
  152. package/node_modules/entities/dist/generated/decode-data-html.js +5 -0
  153. package/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
  154. package/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
  155. package/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
  156. package/node_modules/entities/dist/generated/decode-data-xml.js +7 -0
  157. package/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
  158. package/node_modules/entities/dist/generated/encode-html.d.ts +3 -0
  159. package/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
  160. package/node_modules/entities/dist/generated/encode-html.js +3 -0
  161. package/node_modules/entities/dist/generated/encode-html.js.map +1 -0
  162. package/node_modules/entities/dist/index.d.ts +89 -0
  163. package/node_modules/entities/dist/index.d.ts.map +1 -0
  164. package/node_modules/entities/dist/index.js +87 -0
  165. package/node_modules/entities/dist/index.js.map +1 -0
  166. package/node_modules/entities/dist/internal/bin-trie-flags.d.ts +48 -0
  167. package/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
  168. package/node_modules/entities/dist/internal/bin-trie-flags.js +49 -0
  169. package/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
  170. package/node_modules/entities/dist/internal/decode-shared.d.ts +38 -0
  171. package/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
  172. package/node_modules/entities/dist/internal/decode-shared.js +195 -0
  173. package/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
  174. package/node_modules/entities/package.json +83 -0
  175. package/node_modules/entities/readme.md +131 -0
  176. package/node_modules/entities/src/decode-codepoint.ts +69 -0
  177. package/node_modules/entities/src/decode.ts +1368 -0
  178. package/node_modules/entities/src/encode.ts +337 -0
  179. package/node_modules/entities/src/escape.ts +187 -0
  180. package/node_modules/entities/src/generated/decode-data-html.ts +12 -0
  181. package/node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  182. package/node_modules/entities/src/generated/encode-html.ts +3 -0
  183. package/node_modules/entities/src/index.ts +160 -0
  184. package/node_modules/entities/src/internal/bin-trie-flags.ts +47 -0
  185. package/node_modules/entities/src/internal/decode-shared.ts +209 -0
  186. package/node_modules/hast-util-parse-selector/index.d.ts +1 -0
  187. package/node_modules/hast-util-parse-selector/index.js +1 -0
  188. package/node_modules/hast-util-parse-selector/lib/index.d.ts +27 -0
  189. package/node_modules/hast-util-parse-selector/lib/index.js +87 -0
  190. package/node_modules/hast-util-parse-selector/license +22 -0
  191. package/node_modules/hast-util-parse-selector/package.json +79 -0
  192. package/node_modules/hast-util-parse-selector/readme.md +203 -0
  193. package/node_modules/hastscript/index.d.ts +5 -0
  194. package/node_modules/hastscript/index.d.ts.map +1 -0
  195. package/node_modules/hastscript/index.js +7 -0
  196. package/node_modules/hastscript/lib/automatic-runtime-html.d.ts +34 -0
  197. package/node_modules/hastscript/lib/automatic-runtime-html.js +9 -0
  198. package/node_modules/hastscript/lib/automatic-runtime-svg.d.ts +34 -0
  199. package/node_modules/hastscript/lib/automatic-runtime-svg.js +7 -0
  200. package/node_modules/hastscript/lib/create-automatic-runtime.d.ts +217 -0
  201. package/node_modules/hastscript/lib/create-automatic-runtime.d.ts.map +1 -0
  202. package/node_modules/hastscript/lib/create-automatic-runtime.js +62 -0
  203. package/node_modules/hastscript/lib/create-h.d.ts +125 -0
  204. package/node_modules/hastscript/lib/create-h.d.ts.map +1 -0
  205. package/node_modules/hastscript/lib/create-h.js +376 -0
  206. package/node_modules/hastscript/lib/index.d.ts +22 -0
  207. package/node_modules/hastscript/lib/index.d.ts.map +1 -0
  208. package/node_modules/hastscript/lib/index.js +27 -0
  209. package/node_modules/hastscript/lib/jsx-automatic.d.ts +43 -0
  210. package/node_modules/hastscript/lib/jsx-automatic.js +2 -0
  211. package/node_modules/hastscript/lib/jsx-classic.d.ts +47 -0
  212. package/node_modules/hastscript/lib/jsx-classic.js +2 -0
  213. package/node_modules/hastscript/lib/svg-case-sensitive-tag-names.d.ts +7 -0
  214. package/node_modules/hastscript/lib/svg-case-sensitive-tag-names.d.ts.map +1 -0
  215. package/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +46 -0
  216. package/node_modules/hastscript/license +22 -0
  217. package/node_modules/hastscript/package.json +93 -0
  218. package/node_modules/hastscript/readme.md +471 -0
  219. package/node_modules/is-alphabetical/index.d.ts +8 -0
  220. package/node_modules/is-alphabetical/index.js +16 -0
  221. package/node_modules/is-alphabetical/license +22 -0
  222. package/node_modules/is-alphabetical/package.json +73 -0
  223. package/node_modules/is-alphabetical/readme.md +141 -0
  224. package/node_modules/is-alphanumerical/index.d.ts +8 -0
  225. package/node_modules/is-alphanumerical/index.js +13 -0
  226. package/node_modules/is-alphanumerical/license +22 -0
  227. package/node_modules/is-alphanumerical/package.json +79 -0
  228. package/node_modules/is-alphanumerical/readme.md +142 -0
  229. package/node_modules/is-decimal/index.d.ts +8 -0
  230. package/node_modules/is-decimal/index.js +13 -0
  231. package/node_modules/is-decimal/license +22 -0
  232. package/node_modules/is-decimal/package.json +73 -0
  233. package/node_modules/is-decimal/readme.md +139 -0
  234. package/node_modules/is-hexadecimal/index.d.ts +8 -0
  235. package/node_modules/is-hexadecimal/index.js +17 -0
  236. package/node_modules/is-hexadecimal/license +22 -0
  237. package/node_modules/is-hexadecimal/package.json +73 -0
  238. package/node_modules/is-hexadecimal/readme.md +141 -0
  239. package/node_modules/linkify-it/LICENSE +22 -0
  240. package/node_modules/linkify-it/README.md +158 -0
  241. package/node_modules/linkify-it/build/index.cjs.js +651 -0
  242. package/node_modules/linkify-it/build/index.cjs.js.map +1 -0
  243. package/node_modules/linkify-it/build/index.d.ts +236 -0
  244. package/node_modules/linkify-it/build/index.mjs +538 -0
  245. package/node_modules/linkify-it/build/index.mjs.map +1 -0
  246. package/node_modules/linkify-it/package.json +66 -0
  247. package/node_modules/markdown-it/LICENSE +22 -0
  248. package/node_modules/markdown-it/README.md +44 -0
  249. package/node_modules/markdown-it/bin/markdown-it.mjs +107 -0
  250. package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +3064 -0
  251. package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -0
  252. package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +14 -0
  253. package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -0
  254. package/node_modules/markdown-it/dist/markdown-it.cjs.js +4562 -0
  255. package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -0
  256. package/node_modules/markdown-it/dist/markdown-it.d.cts +19 -0
  257. package/node_modules/markdown-it/dist/markdown-it.d.mts +951 -0
  258. package/node_modules/markdown-it/dist/markdown-it.mjs +3935 -0
  259. package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -0
  260. package/node_modules/markdown-it/package.json +111 -0
  261. package/node_modules/mdurl/LICENSE +45 -0
  262. package/node_modules/mdurl/README.md +102 -0
  263. package/node_modules/mdurl/build/index.cjs.js +534 -0
  264. package/node_modules/mdurl/index.mjs +11 -0
  265. package/node_modules/mdurl/lib/decode.mjs +112 -0
  266. package/node_modules/mdurl/lib/encode.mjs +89 -0
  267. package/node_modules/mdurl/lib/format.mjs +21 -0
  268. package/node_modules/mdurl/lib/index.d.ts +28 -0
  269. package/node_modules/mdurl/lib/parse.mjs +308 -0
  270. package/node_modules/mdurl/package.json +43 -0
  271. package/node_modules/micromark/dev/index.d.ts +82 -0
  272. package/node_modules/micromark/dev/index.d.ts.map +1 -0
  273. package/node_modules/micromark/dev/index.js +68 -0
  274. package/node_modules/micromark/dev/lib/compile.d.ts +16 -0
  275. package/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
  276. package/node_modules/micromark/dev/lib/compile.js +1162 -0
  277. package/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
  278. package/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
  279. package/node_modules/micromark/dev/lib/constructs.js +101 -0
  280. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
  281. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
  282. package/node_modules/micromark/dev/lib/create-tokenizer.js +718 -0
  283. package/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
  284. package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
  285. package/node_modules/micromark/dev/lib/initialize/content.js +99 -0
  286. package/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
  287. package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
  288. package/node_modules/micromark/dev/lib/initialize/document.js +449 -0
  289. package/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
  290. package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
  291. package/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
  292. package/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
  293. package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
  294. package/node_modules/micromark/dev/lib/initialize/text.js +248 -0
  295. package/node_modules/micromark/dev/lib/parse.d.ts +10 -0
  296. package/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
  297. package/node_modules/micromark/dev/lib/parse.js +58 -0
  298. package/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
  299. package/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
  300. package/node_modules/micromark/dev/lib/postprocess.js +19 -0
  301. package/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
  302. package/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
  303. package/node_modules/micromark/dev/lib/preprocess.js +139 -0
  304. package/node_modules/micromark/dev/stream.d.ts +35 -0
  305. package/node_modules/micromark/dev/stream.d.ts.map +1 -0
  306. package/node_modules/micromark/dev/stream.js +270 -0
  307. package/node_modules/micromark/index.d.ts +82 -0
  308. package/node_modules/micromark/index.d.ts.map +1 -0
  309. package/node_modules/micromark/index.js +60 -0
  310. package/node_modules/micromark/lib/compile.d.ts +16 -0
  311. package/node_modules/micromark/lib/compile.d.ts.map +1 -0
  312. package/node_modules/micromark/lib/compile.js +1068 -0
  313. package/node_modules/micromark/lib/constructs.d.ts +73 -0
  314. package/node_modules/micromark/lib/constructs.d.ts.map +1 -0
  315. package/node_modules/micromark/lib/constructs.js +85 -0
  316. package/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
  317. package/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
  318. package/node_modules/micromark/lib/create-tokenizer.js +613 -0
  319. package/node_modules/micromark/lib/initialize/content.d.ts +4 -0
  320. package/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
  321. package/node_modules/micromark/lib/initialize/content.js +79 -0
  322. package/node_modules/micromark/lib/initialize/document.d.ts +10 -0
  323. package/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
  324. package/node_modules/micromark/lib/initialize/document.js +370 -0
  325. package/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
  326. package/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
  327. package/node_modules/micromark/lib/initialize/flow.js +58 -0
  328. package/node_modules/micromark/lib/initialize/text.d.ts +8 -0
  329. package/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
  330. package/node_modules/micromark/lib/initialize/text.js +216 -0
  331. package/node_modules/micromark/lib/parse.d.ts +10 -0
  332. package/node_modules/micromark/lib/parse.d.ts.map +1 -0
  333. package/node_modules/micromark/lib/parse.js +56 -0
  334. package/node_modules/micromark/lib/postprocess.d.ts +9 -0
  335. package/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
  336. package/node_modules/micromark/lib/postprocess.js +18 -0
  337. package/node_modules/micromark/lib/preprocess.d.ts +13 -0
  338. package/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
  339. package/node_modules/micromark/lib/preprocess.js +112 -0
  340. package/node_modules/micromark/license +22 -0
  341. package/node_modules/micromark/package.json +87 -0
  342. package/node_modules/micromark/readme.md +488 -0
  343. package/node_modules/micromark/stream.d.ts +35 -0
  344. package/node_modules/micromark/stream.d.ts.map +1 -0
  345. package/node_modules/micromark/stream.js +256 -0
  346. package/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
  347. package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
  348. package/node_modules/micromark-core-commonmark/dev/index.js +22 -0
  349. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
  350. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
  351. package/node_modules/micromark-core-commonmark/dev/lib/attention.js +294 -0
  352. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
  353. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
  354. package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
  355. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
  356. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
  357. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
  358. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
  359. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
  360. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
  361. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
  362. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
  363. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
  364. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
  365. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
  366. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
  367. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
  368. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
  369. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +472 -0
  370. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
  371. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
  372. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +178 -0
  373. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
  374. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
  375. package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
  376. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
  377. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
  378. package/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
  379. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
  380. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
  381. package/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
  382. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
  383. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
  384. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
  385. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
  386. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
  387. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +229 -0
  388. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
  389. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
  390. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +938 -0
  391. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
  392. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
  393. package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
  394. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
  395. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
  396. package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +658 -0
  397. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
  398. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
  399. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +119 -0
  400. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
  401. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
  402. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +71 -0
  403. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
  404. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
  405. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
  406. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
  407. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
  408. package/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
  409. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
  410. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  411. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
  412. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
  413. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
  414. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +213 -0
  415. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
  416. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
  417. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
  418. package/node_modules/micromark-core-commonmark/index.d.ts +23 -0
  419. package/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
  420. package/node_modules/micromark-core-commonmark/index.js +22 -0
  421. package/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
  422. package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
  423. package/node_modules/micromark-core-commonmark/lib/attention.js +231 -0
  424. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
  425. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
  426. package/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
  427. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
  428. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
  429. package/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
  430. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
  431. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
  432. package/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
  433. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
  434. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
  435. package/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
  436. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
  437. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
  438. package/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
  439. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
  440. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
  441. package/node_modules/micromark-core-commonmark/lib/code-fenced.js +422 -0
  442. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
  443. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
  444. package/node_modules/micromark-core-commonmark/lib/code-indented.js +159 -0
  445. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
  446. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
  447. package/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
  448. package/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
  449. package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
  450. package/node_modules/micromark-core-commonmark/lib/content.js +163 -0
  451. package/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
  452. package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
  453. package/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
  454. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
  455. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
  456. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
  457. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
  458. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
  459. package/node_modules/micromark-core-commonmark/lib/heading-atx.js +191 -0
  460. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
  461. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
  462. package/node_modules/micromark-core-commonmark/lib/html-flow.js +827 -0
  463. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
  464. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
  465. package/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
  466. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
  467. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
  468. package/node_modules/micromark-core-commonmark/lib/label-end.js +561 -0
  469. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
  470. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
  471. package/node_modules/micromark-core-commonmark/lib/label-start-image.js +110 -0
  472. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
  473. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
  474. package/node_modules/micromark-core-commonmark/lib/label-start-link.js +63 -0
  475. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
  476. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
  477. package/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
  478. package/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
  479. package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
  480. package/node_modules/micromark-core-commonmark/lib/list.js +213 -0
  481. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
  482. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  483. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
  484. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
  485. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
  486. package/node_modules/micromark-core-commonmark/lib/setext-underline.js +187 -0
  487. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
  488. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
  489. package/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
  490. package/node_modules/micromark-core-commonmark/license +22 -0
  491. package/node_modules/micromark-core-commonmark/package.json +62 -0
  492. package/node_modules/micromark-core-commonmark/readme.md +171 -0
  493. package/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
  494. package/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
  495. package/node_modules/micromark-factory-destination/dev/index.js +255 -0
  496. package/node_modules/micromark-factory-destination/index.d.ts +42 -0
  497. package/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
  498. package/node_modules/micromark-factory-destination/index.js +206 -0
  499. package/node_modules/micromark-factory-destination/license +22 -0
  500. package/node_modules/micromark-factory-destination/package.json +57 -0
  501. package/node_modules/micromark-factory-destination/readme.md +234 -0
  502. package/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
  503. package/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
  504. package/node_modules/micromark-factory-label/dev/index.js +172 -0
  505. package/node_modules/micromark-factory-label/index.d.ts +37 -0
  506. package/node_modules/micromark-factory-label/index.d.ts.map +1 -0
  507. package/node_modules/micromark-factory-label/index.js +148 -0
  508. package/node_modules/micromark-factory-label/license +22 -0
  509. package/node_modules/micromark-factory-label/package.json +60 -0
  510. package/node_modules/micromark-factory-label/readme.md +224 -0
  511. package/node_modules/micromark-factory-space/dev/index.d.ts +60 -0
  512. package/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
  513. package/node_modules/micromark-factory-space/dev/index.js +122 -0
  514. package/node_modules/micromark-factory-space/index.d.ts +60 -0
  515. package/node_modules/micromark-factory-space/index.d.ts.map +1 -0
  516. package/node_modules/micromark-factory-space/index.js +116 -0
  517. package/node_modules/micromark-factory-space/license +22 -0
  518. package/node_modules/micromark-factory-space/package.json +46 -0
  519. package/node_modules/micromark-factory-space/readme.md +225 -0
  520. package/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
  521. package/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
  522. package/node_modules/micromark-factory-title/dev/index.js +169 -0
  523. package/node_modules/micromark-factory-title/index.d.ts +36 -0
  524. package/node_modules/micromark-factory-title/index.d.ts.map +1 -0
  525. package/node_modules/micromark-factory-title/index.js +158 -0
  526. package/node_modules/micromark-factory-title/license +22 -0
  527. package/node_modules/micromark-factory-title/package.json +58 -0
  528. package/node_modules/micromark-factory-title/readme.md +229 -0
  529. package/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
  530. package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
  531. package/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
  532. package/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
  533. package/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
  534. package/node_modules/micromark-factory-whitespace/index.js +44 -0
  535. package/node_modules/micromark-factory-whitespace/license +22 -0
  536. package/node_modules/micromark-factory-whitespace/package.json +57 -0
  537. package/node_modules/micromark-factory-whitespace/readme.md +205 -0
  538. package/node_modules/micromark-util-character/dev/index.d.ts +195 -0
  539. package/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
  540. package/node_modules/micromark-util-character/dev/index.js +252 -0
  541. package/node_modules/micromark-util-character/index.d.ts +195 -0
  542. package/node_modules/micromark-util-character/index.d.ts.map +1 -0
  543. package/node_modules/micromark-util-character/index.js +246 -0
  544. package/node_modules/micromark-util-character/license +22 -0
  545. package/node_modules/micromark-util-character/package.json +57 -0
  546. package/node_modules/micromark-util-character/readme.md +446 -0
  547. package/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
  548. package/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
  549. package/node_modules/micromark-util-chunked/dev/index.js +89 -0
  550. package/node_modules/micromark-util-chunked/index.d.ts +41 -0
  551. package/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
  552. package/node_modules/micromark-util-chunked/index.js +81 -0
  553. package/node_modules/micromark-util-chunked/license +22 -0
  554. package/node_modules/micromark-util-chunked/package.json +57 -0
  555. package/node_modules/micromark-util-chunked/readme.md +219 -0
  556. package/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
  557. package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
  558. package/node_modules/micromark-util-classify-character/dev/index.js +38 -0
  559. package/node_modules/micromark-util-classify-character/index.d.ts +18 -0
  560. package/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
  561. package/node_modules/micromark-util-classify-character/index.js +27 -0
  562. package/node_modules/micromark-util-classify-character/license +22 -0
  563. package/node_modules/micromark-util-classify-character/package.json +59 -0
  564. package/node_modules/micromark-util-classify-character/readme.md +205 -0
  565. package/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
  566. package/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
  567. package/node_modules/micromark-util-combine-extensions/index.js +143 -0
  568. package/node_modules/micromark-util-combine-extensions/license +22 -0
  569. package/node_modules/micromark-util-combine-extensions/package.json +52 -0
  570. package/node_modules/micromark-util-combine-extensions/readme.md +201 -0
  571. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
  572. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
  573. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
  574. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
  575. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
  576. package/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
  577. package/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
  578. package/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
  579. package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
  580. package/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
  581. package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
  582. package/node_modules/micromark-util-decode-string/dev/index.js +53 -0
  583. package/node_modules/micromark-util-decode-string/index.d.ts +14 -0
  584. package/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
  585. package/node_modules/micromark-util-decode-string/index.js +45 -0
  586. package/node_modules/micromark-util-decode-string/license +22 -0
  587. package/node_modules/micromark-util-decode-string/package.json +63 -0
  588. package/node_modules/micromark-util-decode-string/readme.md +179 -0
  589. package/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
  590. package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
  591. package/node_modules/micromark-util-edit-map/dev/index.js +237 -0
  592. package/node_modules/micromark-util-edit-map/index.d.ts +78 -0
  593. package/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
  594. package/node_modules/micromark-util-edit-map/index.js +225 -0
  595. package/node_modules/micromark-util-edit-map/license +22 -0
  596. package/node_modules/micromark-util-edit-map/package.json +48 -0
  597. package/node_modules/micromark-util-edit-map/readme.md +234 -0
  598. package/node_modules/micromark-util-encode/index.d.ts +14 -0
  599. package/node_modules/micromark-util-encode/index.d.ts.map +1 -0
  600. package/node_modules/micromark-util-encode/index.js +33 -0
  601. package/node_modules/micromark-util-encode/license +22 -0
  602. package/node_modules/micromark-util-encode/package.json +47 -0
  603. package/node_modules/micromark-util-encode/readme.md +176 -0
  604. package/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
  605. package/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
  606. package/node_modules/micromark-util-html-tag-name/index.js +93 -0
  607. package/node_modules/micromark-util-html-tag-name/license +22 -0
  608. package/node_modules/micromark-util-html-tag-name/package.json +47 -0
  609. package/node_modules/micromark-util-html-tag-name/readme.md +193 -0
  610. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
  611. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
  612. package/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
  613. package/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
  614. package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
  615. package/node_modules/micromark-util-normalize-identifier/index.js +33 -0
  616. package/node_modules/micromark-util-normalize-identifier/license +22 -0
  617. package/node_modules/micromark-util-normalize-identifier/package.json +58 -0
  618. package/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
  619. package/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
  620. package/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
  621. package/node_modules/micromark-util-resolve-all/index.js +32 -0
  622. package/node_modules/micromark-util-resolve-all/license +22 -0
  623. package/node_modules/micromark-util-resolve-all/package.json +48 -0
  624. package/node_modules/micromark-util-resolve-all/readme.md +238 -0
  625. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
  626. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
  627. package/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
  628. package/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
  629. package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
  630. package/node_modules/micromark-util-sanitize-uri/index.js +107 -0
  631. package/node_modules/micromark-util-sanitize-uri/license +22 -0
  632. package/node_modules/micromark-util-sanitize-uri/package.json +59 -0
  633. package/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
  634. package/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
  635. package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
  636. package/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
  637. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
  638. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
  639. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
  640. package/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
  641. package/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
  642. package/node_modules/micromark-util-subtokenize/index.js +228 -0
  643. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
  644. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
  645. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
  646. package/node_modules/micromark-util-subtokenize/license +22 -0
  647. package/node_modules/micromark-util-subtokenize/package.json +60 -0
  648. package/node_modules/micromark-util-subtokenize/readme.md +181 -0
  649. package/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
  650. package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
  651. package/node_modules/micromark-util-symbol/lib/codes.js +158 -0
  652. package/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
  653. package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
  654. package/node_modules/micromark-util-symbol/lib/constants.js +44 -0
  655. package/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
  656. package/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
  657. package/node_modules/micromark-util-symbol/lib/default.js +4 -0
  658. package/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
  659. package/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
  660. package/node_modules/micromark-util-symbol/lib/types.js +453 -0
  661. package/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
  662. package/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
  663. package/node_modules/micromark-util-symbol/lib/values.js +109 -0
  664. package/node_modules/micromark-util-symbol/license +22 -0
  665. package/node_modules/micromark-util-symbol/package.json +43 -0
  666. package/node_modules/micromark-util-symbol/readme.md +168 -0
  667. package/node_modules/micromark-util-types/index.d.ts +1315 -0
  668. package/node_modules/micromark-util-types/index.js +2 -0
  669. package/node_modules/micromark-util-types/license +22 -0
  670. package/node_modules/micromark-util-types/package.json +37 -0
  671. package/node_modules/micromark-util-types/readme.md +151 -0
  672. package/node_modules/ms/index.js +162 -0
  673. package/node_modules/ms/license.md +21 -0
  674. package/node_modules/ms/package.json +38 -0
  675. package/node_modules/ms/readme.md +59 -0
  676. package/node_modules/parse-entities/index.d.ts +126 -0
  677. package/node_modules/parse-entities/index.js +3 -0
  678. package/node_modules/parse-entities/lib/index.d.ts +9 -0
  679. package/node_modules/parse-entities/lib/index.d.ts.map +1 -0
  680. package/node_modules/parse-entities/lib/index.js +407 -0
  681. package/node_modules/parse-entities/license +22 -0
  682. package/node_modules/parse-entities/node_modules/@types/unist/LICENSE +21 -0
  683. package/node_modules/parse-entities/node_modules/@types/unist/README.md +122 -0
  684. package/node_modules/parse-entities/node_modules/@types/unist/index.d.ts +103 -0
  685. package/node_modules/parse-entities/node_modules/@types/unist/package.json +55 -0
  686. package/node_modules/parse-entities/package.json +91 -0
  687. package/node_modules/parse-entities/readme.md +266 -0
  688. package/node_modules/pend/LICENSE +23 -0
  689. package/node_modules/pend/README.md +41 -0
  690. package/node_modules/pend/index.js +55 -0
  691. package/node_modules/pend/package.json +18 -0
  692. package/node_modules/pend/test.js +137 -0
  693. package/node_modules/property-information/index.d.ts +121 -0
  694. package/node_modules/property-information/index.js +17 -0
  695. package/node_modules/property-information/lib/aria.d.ts +2 -0
  696. package/node_modules/property-information/lib/aria.d.ts.map +1 -0
  697. package/node_modules/property-information/lib/aria.js +61 -0
  698. package/node_modules/property-information/lib/find.d.ts +34 -0
  699. package/node_modules/property-information/lib/find.d.ts.map +1 -0
  700. package/node_modules/property-information/lib/find.js +97 -0
  701. package/node_modules/property-information/lib/hast-to-react.d.ts +13 -0
  702. package/node_modules/property-information/lib/hast-to-react.d.ts.map +1 -0
  703. package/node_modules/property-information/lib/hast-to-react.js +30 -0
  704. package/node_modules/property-information/lib/html.d.ts +2 -0
  705. package/node_modules/property-information/lib/html.d.ts.map +1 -0
  706. package/node_modules/property-information/lib/html.js +332 -0
  707. package/node_modules/property-information/lib/normalize.d.ts +11 -0
  708. package/node_modules/property-information/lib/normalize.d.ts.map +1 -0
  709. package/node_modules/property-information/lib/normalize.js +12 -0
  710. package/node_modules/property-information/lib/svg.d.ts +2 -0
  711. package/node_modules/property-information/lib/svg.d.ts.map +1 -0
  712. package/node_modules/property-information/lib/svg.js +569 -0
  713. package/node_modules/property-information/lib/util/case-insensitive-transform.d.ts +10 -0
  714. package/node_modules/property-information/lib/util/case-insensitive-transform.d.ts.map +1 -0
  715. package/node_modules/property-information/lib/util/case-insensitive-transform.js +13 -0
  716. package/node_modules/property-information/lib/util/case-sensitive-transform.d.ts +10 -0
  717. package/node_modules/property-information/lib/util/case-sensitive-transform.d.ts.map +1 -0
  718. package/node_modules/property-information/lib/util/case-sensitive-transform.js +11 -0
  719. package/node_modules/property-information/lib/util/create.d.ts +39 -0
  720. package/node_modules/property-information/lib/util/create.d.ts.map +1 -0
  721. package/node_modules/property-information/lib/util/create.js +69 -0
  722. package/node_modules/property-information/lib/util/defined-info.d.ts +19 -0
  723. package/node_modules/property-information/lib/util/defined-info.d.ts.map +1 -0
  724. package/node_modules/property-information/lib/util/defined-info.js +60 -0
  725. package/node_modules/property-information/lib/util/info.d.ts +28 -0
  726. package/node_modules/property-information/lib/util/info.d.ts.map +1 -0
  727. package/node_modules/property-information/lib/util/info.js +32 -0
  728. package/node_modules/property-information/lib/util/merge.d.ts +12 -0
  729. package/node_modules/property-information/lib/util/merge.d.ts.map +1 -0
  730. package/node_modules/property-information/lib/util/merge.js +27 -0
  731. package/node_modules/property-information/lib/util/schema.d.ts +23 -0
  732. package/node_modules/property-information/lib/util/schema.d.ts.map +1 -0
  733. package/node_modules/property-information/lib/util/schema.js +29 -0
  734. package/node_modules/property-information/lib/util/types.d.ts +8 -0
  735. package/node_modules/property-information/lib/util/types.d.ts.map +1 -0
  736. package/node_modules/property-information/lib/util/types.js +13 -0
  737. package/node_modules/property-information/lib/xlink.d.ts +2 -0
  738. package/node_modules/property-information/lib/xlink.d.ts.map +1 -0
  739. package/node_modules/property-information/lib/xlink.js +17 -0
  740. package/node_modules/property-information/lib/xml.d.ts +2 -0
  741. package/node_modules/property-information/lib/xml.d.ts.map +1 -0
  742. package/node_modules/property-information/lib/xml.js +9 -0
  743. package/node_modules/property-information/lib/xmlns.d.ts +2 -0
  744. package/node_modules/property-information/lib/xmlns.d.ts.map +1 -0
  745. package/node_modules/property-information/lib/xmlns.js +9 -0
  746. package/node_modules/property-information/license +22 -0
  747. package/node_modules/property-information/package.json +84 -0
  748. package/node_modules/property-information/readme.md +1073 -0
  749. package/node_modules/punycode.js/LICENSE-MIT.txt +20 -0
  750. package/node_modules/punycode.js/README.md +148 -0
  751. package/node_modules/punycode.js/package.json +58 -0
  752. package/node_modules/punycode.js/punycode.es6.js +444 -0
  753. package/node_modules/punycode.js/punycode.js +443 -0
  754. package/node_modules/refractor/lang/abap.d.ts +7 -0
  755. package/node_modules/refractor/lang/abap.js +62 -0
  756. package/node_modules/refractor/lang/abnf.d.ts +7 -0
  757. package/node_modules/refractor/lang/abnf.js +66 -0
  758. package/node_modules/refractor/lang/actionscript.d.ts +7 -0
  759. package/node_modules/refractor/lang/actionscript.js +32 -0
  760. package/node_modules/refractor/lang/ada.d.ts +7 -0
  761. package/node_modules/refractor/lang/ada.js +34 -0
  762. package/node_modules/refractor/lang/agda.d.ts +7 -0
  763. package/node_modules/refractor/lang/agda.js +34 -0
  764. package/node_modules/refractor/lang/al.d.ts +7 -0
  765. package/node_modules/refractor/lang/al.js +38 -0
  766. package/node_modules/refractor/lang/antlr4.d.ts +7 -0
  767. package/node_modules/refractor/lang/antlr4.js +77 -0
  768. package/node_modules/refractor/lang/apacheconf.d.ts +7 -0
  769. package/node_modules/refractor/lang/apacheconf.js +59 -0
  770. package/node_modules/refractor/lang/apex.d.ts +7 -0
  771. package/node_modules/refractor/lang/apex.js +88 -0
  772. package/node_modules/refractor/lang/apl.d.ts +7 -0
  773. package/node_modules/refractor/lang/apl.js +44 -0
  774. package/node_modules/refractor/lang/applescript.d.ts +7 -0
  775. package/node_modules/refractor/lang/applescript.js +29 -0
  776. package/node_modules/refractor/lang/aql.d.ts +7 -0
  777. package/node_modules/refractor/lang/aql.js +60 -0
  778. package/node_modules/refractor/lang/arduino.d.ts +7 -0
  779. package/node_modules/refractor/lang/arduino.js +21 -0
  780. package/node_modules/refractor/lang/arff.d.ts +7 -0
  781. package/node_modules/refractor/lang/arff.js +20 -0
  782. package/node_modules/refractor/lang/armasm.d.ts +7 -0
  783. package/node_modules/refractor/lang/armasm.js +57 -0
  784. package/node_modules/refractor/lang/arturo.d.ts +7 -0
  785. package/node_modules/refractor/lang/arturo.js +102 -0
  786. package/node_modules/refractor/lang/asciidoc.d.ts +7 -0
  787. package/node_modules/refractor/lang/asciidoc.js +241 -0
  788. package/node_modules/refractor/lang/asm6502.d.ts +7 -0
  789. package/node_modules/refractor/lang/asm6502.js +40 -0
  790. package/node_modules/refractor/lang/asmatmel.d.ts +7 -0
  791. package/node_modules/refractor/lang/asmatmel.js +52 -0
  792. package/node_modules/refractor/lang/aspnet.d.ts +7 -0
  793. package/node_modules/refractor/lang/aspnet.js +73 -0
  794. package/node_modules/refractor/lang/autohotkey.d.ts +7 -0
  795. package/node_modules/refractor/lang/autohotkey.js +55 -0
  796. package/node_modules/refractor/lang/autoit.d.ts +7 -0
  797. package/node_modules/refractor/lang/autoit.js +46 -0
  798. package/node_modules/refractor/lang/avisynth.d.ts +7 -0
  799. package/node_modules/refractor/lang/avisynth.js +200 -0
  800. package/node_modules/refractor/lang/avro-idl.d.ts +7 -0
  801. package/node_modules/refractor/lang/avro-idl.js +57 -0
  802. package/node_modules/refractor/lang/awk.d.ts +7 -0
  803. package/node_modules/refractor/lang/awk.js +39 -0
  804. package/node_modules/refractor/lang/bash.d.ts +7 -0
  805. package/node_modules/refractor/lang/bash.js +250 -0
  806. package/node_modules/refractor/lang/basic.d.ts +7 -0
  807. package/node_modules/refractor/lang/basic.js +29 -0
  808. package/node_modules/refractor/lang/batch.d.ts +7 -0
  809. package/node_modules/refractor/lang/batch.js +110 -0
  810. package/node_modules/refractor/lang/bbcode.d.ts +7 -0
  811. package/node_modules/refractor/lang/bbcode.js +39 -0
  812. package/node_modules/refractor/lang/bbj.d.ts +7 -0
  813. package/node_modules/refractor/lang/bbj.js +30 -0
  814. package/node_modules/refractor/lang/bicep.d.ts +7 -0
  815. package/node_modules/refractor/lang/bicep.js +85 -0
  816. package/node_modules/refractor/lang/birb.d.ts +7 -0
  817. package/node_modules/refractor/lang/birb.js +34 -0
  818. package/node_modules/refractor/lang/bison.d.ts +7 -0
  819. package/node_modules/refractor/lang/bison.js +50 -0
  820. package/node_modules/refractor/lang/bnf.d.ts +7 -0
  821. package/node_modules/refractor/lang/bnf.js +30 -0
  822. package/node_modules/refractor/lang/bqn.d.ts +7 -0
  823. package/node_modules/refractor/lang/bqn.js +74 -0
  824. package/node_modules/refractor/lang/brainfuck.d.ts +7 -0
  825. package/node_modules/refractor/lang/brainfuck.js +30 -0
  826. package/node_modules/refractor/lang/brightscript.d.ts +7 -0
  827. package/node_modules/refractor/lang/brightscript.js +57 -0
  828. package/node_modules/refractor/lang/bro.d.ts +7 -0
  829. package/node_modules/refractor/lang/bro.js +39 -0
  830. package/node_modules/refractor/lang/bsl.d.ts +7 -0
  831. package/node_modules/refractor/lang/bsl.js +88 -0
  832. package/node_modules/refractor/lang/c.d.ts +7 -0
  833. package/node_modules/refractor/lang/c.js +94 -0
  834. package/node_modules/refractor/lang/cfscript.d.ts +7 -0
  835. package/node_modules/refractor/lang/cfscript.js +58 -0
  836. package/node_modules/refractor/lang/chaiscript.d.ts +7 -0
  837. package/node_modules/refractor/lang/chaiscript.js +73 -0
  838. package/node_modules/refractor/lang/cil.d.ts +7 -0
  839. package/node_modules/refractor/lang/cil.js +31 -0
  840. package/node_modules/refractor/lang/cilkc.d.ts +7 -0
  841. package/node_modules/refractor/lang/cilkc.js +19 -0
  842. package/node_modules/refractor/lang/cilkcpp.d.ts +7 -0
  843. package/node_modules/refractor/lang/cilkcpp.js +20 -0
  844. package/node_modules/refractor/lang/clike.d.ts +7 -0
  845. package/node_modules/refractor/lang/clike.js +43 -0
  846. package/node_modules/refractor/lang/clojure.d.ts +7 -0
  847. package/node_modules/refractor/lang/clojure.js +43 -0
  848. package/node_modules/refractor/lang/cmake.d.ts +7 -0
  849. package/node_modules/refractor/lang/cmake.js +44 -0
  850. package/node_modules/refractor/lang/cobol.d.ts +7 -0
  851. package/node_modules/refractor/lang/cobol.js +62 -0
  852. package/node_modules/refractor/lang/coffeescript.d.ts +7 -0
  853. package/node_modules/refractor/lang/coffeescript.js +97 -0
  854. package/node_modules/refractor/lang/concurnas.d.ts +7 -0
  855. package/node_modules/refractor/lang/concurnas.js +74 -0
  856. package/node_modules/refractor/lang/cooklang.d.ts +7 -0
  857. package/node_modules/refractor/lang/cooklang.js +148 -0
  858. package/node_modules/refractor/lang/coq.d.ts +7 -0
  859. package/node_modules/refractor/lang/coq.js +67 -0
  860. package/node_modules/refractor/lang/cpp.d.ts +7 -0
  861. package/node_modules/refractor/lang/cpp.js +128 -0
  862. package/node_modules/refractor/lang/crystal.d.ts +7 -0
  863. package/node_modules/refractor/lang/crystal.js +66 -0
  864. package/node_modules/refractor/lang/csharp.d.ts +7 -0
  865. package/node_modules/refractor/lang/csharp.js +486 -0
  866. package/node_modules/refractor/lang/cshtml.d.ts +7 -0
  867. package/node_modules/refractor/lang/cshtml.js +268 -0
  868. package/node_modules/refractor/lang/csp.d.ts +7 -0
  869. package/node_modules/refractor/lang/csp.js +87 -0
  870. package/node_modules/refractor/lang/css-extras.d.ts +7 -0
  871. package/node_modules/refractor/lang/css-extras.js +129 -0
  872. package/node_modules/refractor/lang/css.d.ts +7 -0
  873. package/node_modules/refractor/lang/css.js +90 -0
  874. package/node_modules/refractor/lang/csv.d.ts +7 -0
  875. package/node_modules/refractor/lang/csv.js +16 -0
  876. package/node_modules/refractor/lang/cue.d.ts +7 -0
  877. package/node_modules/refractor/lang/cue.js +98 -0
  878. package/node_modules/refractor/lang/cypher.d.ts +7 -0
  879. package/node_modules/refractor/lang/cypher.js +44 -0
  880. package/node_modules/refractor/lang/d.d.ts +7 -0
  881. package/node_modules/refractor/lang/d.js +98 -0
  882. package/node_modules/refractor/lang/dart.d.ts +7 -0
  883. package/node_modules/refractor/lang/dart.js +94 -0
  884. package/node_modules/refractor/lang/dataweave.d.ts +7 -0
  885. package/node_modules/refractor/lang/dataweave.js +52 -0
  886. package/node_modules/refractor/lang/dax.d.ts +7 -0
  887. package/node_modules/refractor/lang/dax.js +40 -0
  888. package/node_modules/refractor/lang/dhall.d.ts +7 -0
  889. package/node_modules/refractor/lang/dhall.js +81 -0
  890. package/node_modules/refractor/lang/diff.d.ts +7 -0
  891. package/node_modules/refractor/lang/diff.js +73 -0
  892. package/node_modules/refractor/lang/django.d.ts +7 -0
  893. package/node_modules/refractor/lang/django.js +68 -0
  894. package/node_modules/refractor/lang/dns-zone-file.d.ts +7 -0
  895. package/node_modules/refractor/lang/dns-zone-file.js +43 -0
  896. package/node_modules/refractor/lang/docker.d.ts +7 -0
  897. package/node_modules/refractor/lang/docker.js +129 -0
  898. package/node_modules/refractor/lang/dot.d.ts +7 -0
  899. package/node_modules/refractor/lang/dot.js +93 -0
  900. package/node_modules/refractor/lang/ebnf.d.ts +7 -0
  901. package/node_modules/refractor/lang/ebnf.js +30 -0
  902. package/node_modules/refractor/lang/editorconfig.d.ts +7 -0
  903. package/node_modules/refractor/lang/editorconfig.js +37 -0
  904. package/node_modules/refractor/lang/eiffel.d.ts +7 -0
  905. package/node_modules/refractor/lang/eiffel.js +45 -0
  906. package/node_modules/refractor/lang/ejs.d.ts +7 -0
  907. package/node_modules/refractor/lang/ejs.js +39 -0
  908. package/node_modules/refractor/lang/elixir.d.ts +7 -0
  909. package/node_modules/refractor/lang/elixir.js +111 -0
  910. package/node_modules/refractor/lang/elm.d.ts +7 -0
  911. package/node_modules/refractor/lang/elm.js +59 -0
  912. package/node_modules/refractor/lang/erb.d.ts +7 -0
  913. package/node_modules/refractor/lang/erb.js +40 -0
  914. package/node_modules/refractor/lang/erlang.d.ts +7 -0
  915. package/node_modules/refractor/lang/erlang.js +53 -0
  916. package/node_modules/refractor/lang/etlua.d.ts +7 -0
  917. package/node_modules/refractor/lang/etlua.js +37 -0
  918. package/node_modules/refractor/lang/excel-formula.d.ts +7 -0
  919. package/node_modules/refractor/lang/excel-formula.js +78 -0
  920. package/node_modules/refractor/lang/factor.d.ts +7 -0
  921. package/node_modules/refractor/lang/factor.js +937 -0
  922. package/node_modules/refractor/lang/false.d.ts +7 -0
  923. package/node_modules/refractor/lang/false.js +42 -0
  924. package/node_modules/refractor/lang/firestore-security-rules.d.ts +7 -0
  925. package/node_modules/refractor/lang/firestore-security-rules.js +50 -0
  926. package/node_modules/refractor/lang/flow.d.ts +7 -0
  927. package/node_modules/refractor/lang/flow.js +47 -0
  928. package/node_modules/refractor/lang/fortran.d.ts +7 -0
  929. package/node_modules/refractor/lang/fortran.js +51 -0
  930. package/node_modules/refractor/lang/fsharp.d.ts +7 -0
  931. package/node_modules/refractor/lang/fsharp.js +91 -0
  932. package/node_modules/refractor/lang/ftl.d.ts +7 -0
  933. package/node_modules/refractor/lang/ftl.js +134 -0
  934. package/node_modules/refractor/lang/gap.d.ts +7 -0
  935. package/node_modules/refractor/lang/gap.js +61 -0
  936. package/node_modules/refractor/lang/gcode.d.ts +7 -0
  937. package/node_modules/refractor/lang/gcode.js +26 -0
  938. package/node_modules/refractor/lang/gdscript.d.ts +7 -0
  939. package/node_modules/refractor/lang/gdscript.js +40 -0
  940. package/node_modules/refractor/lang/gedcom.d.ts +7 -0
  941. package/node_modules/refractor/lang/gedcom.js +40 -0
  942. package/node_modules/refractor/lang/gettext.d.ts +7 -0
  943. package/node_modules/refractor/lang/gettext.js +52 -0
  944. package/node_modules/refractor/lang/gherkin.d.ts +7 -0
  945. package/node_modules/refractor/lang/gherkin.js +95 -0
  946. package/node_modules/refractor/lang/git.d.ts +7 -0
  947. package/node_modules/refractor/lang/git.js +73 -0
  948. package/node_modules/refractor/lang/glsl.d.ts +7 -0
  949. package/node_modules/refractor/lang/glsl.js +16 -0
  950. package/node_modules/refractor/lang/gml.d.ts +7 -0
  951. package/node_modules/refractor/lang/gml.js +25 -0
  952. package/node_modules/refractor/lang/gn.d.ts +7 -0
  953. package/node_modules/refractor/lang/gn.js +61 -0
  954. package/node_modules/refractor/lang/go-module.d.ts +7 -0
  955. package/node_modules/refractor/lang/go-module.js +34 -0
  956. package/node_modules/refractor/lang/go.d.ts +7 -0
  957. package/node_modules/refractor/lang/go.js +41 -0
  958. package/node_modules/refractor/lang/gradle.d.ts +7 -0
  959. package/node_modules/refractor/lang/gradle.js +71 -0
  960. package/node_modules/refractor/lang/graphql.d.ts +7 -0
  961. package/node_modules/refractor/lang/graphql.js +226 -0
  962. package/node_modules/refractor/lang/groovy.d.ts +7 -0
  963. package/node_modules/refractor/lang/groovy.js +74 -0
  964. package/node_modules/refractor/lang/haml.d.ts +7 -0
  965. package/node_modules/refractor/lang/haml.js +173 -0
  966. package/node_modules/refractor/lang/handlebars.d.ts +7 -0
  967. package/node_modules/refractor/lang/handlebars.js +54 -0
  968. package/node_modules/refractor/lang/haskell.d.ts +7 -0
  969. package/node_modules/refractor/lang/haskell.js +80 -0
  970. package/node_modules/refractor/lang/haxe.d.ts +7 -0
  971. package/node_modules/refractor/lang/haxe.js +89 -0
  972. package/node_modules/refractor/lang/hcl.d.ts +7 -0
  973. package/node_modules/refractor/lang/hcl.js +75 -0
  974. package/node_modules/refractor/lang/hlsl.d.ts +7 -0
  975. package/node_modules/refractor/lang/hlsl.js +32 -0
  976. package/node_modules/refractor/lang/hoon.d.ts +7 -0
  977. package/node_modules/refractor/lang/hoon.js +25 -0
  978. package/node_modules/refractor/lang/hpkp.d.ts +7 -0
  979. package/node_modules/refractor/lang/hpkp.js +25 -0
  980. package/node_modules/refractor/lang/hsts.d.ts +7 -0
  981. package/node_modules/refractor/lang/hsts.js +24 -0
  982. package/node_modules/refractor/lang/http.d.ts +7 -0
  983. package/node_modules/refractor/lang/http.js +164 -0
  984. package/node_modules/refractor/lang/ichigojam.d.ts +7 -0
  985. package/node_modules/refractor/lang/ichigojam.js +27 -0
  986. package/node_modules/refractor/lang/icon.d.ts +7 -0
  987. package/node_modules/refractor/lang/icon.js +33 -0
  988. package/node_modules/refractor/lang/icu-message-format.d.ts +7 -0
  989. package/node_modules/refractor/lang/icu-message-format.js +164 -0
  990. package/node_modules/refractor/lang/idris.d.ts +7 -0
  991. package/node_modules/refractor/lang/idris.js +30 -0
  992. package/node_modules/refractor/lang/iecst.d.ts +7 -0
  993. package/node_modules/refractor/lang/iecst.js +46 -0
  994. package/node_modules/refractor/lang/ignore.d.ts +7 -0
  995. package/node_modules/refractor/lang/ignore.js +31 -0
  996. package/node_modules/refractor/lang/inform7.d.ts +7 -0
  997. package/node_modules/refractor/lang/inform7.js +77 -0
  998. package/node_modules/refractor/lang/ini.d.ts +7 -0
  999. package/node_modules/refractor/lang/ini.js +52 -0
  1000. package/node_modules/refractor/lang/io.d.ts +7 -0
  1001. package/node_modules/refractor/lang/io.js +35 -0
  1002. package/node_modules/refractor/lang/j.d.ts +7 -0
  1003. package/node_modules/refractor/lang/j.js +41 -0
  1004. package/node_modules/refractor/lang/java.d.ts +7 -0
  1005. package/node_modules/refractor/lang/java.js +163 -0
  1006. package/node_modules/refractor/lang/javadoc.d.ts +7 -0
  1007. package/node_modules/refractor/lang/javadoc.js +108 -0
  1008. package/node_modules/refractor/lang/javadoclike.d.ts +7 -0
  1009. package/node_modules/refractor/lang/javadoclike.js +94 -0
  1010. package/node_modules/refractor/lang/javascript.d.ts +7 -0
  1011. package/node_modules/refractor/lang/javascript.js +195 -0
  1012. package/node_modules/refractor/lang/javastacktrace.d.ts +7 -0
  1013. package/node_modules/refractor/lang/javastacktrace.js +149 -0
  1014. package/node_modules/refractor/lang/jexl.d.ts +7 -0
  1015. package/node_modules/refractor/lang/jexl.js +26 -0
  1016. package/node_modules/refractor/lang/jolie.d.ts +7 -0
  1017. package/node_modules/refractor/lang/jolie.js +58 -0
  1018. package/node_modules/refractor/lang/jq.d.ts +7 -0
  1019. package/node_modules/refractor/lang/jq.js +80 -0
  1020. package/node_modules/refractor/lang/js-extras.d.ts +7 -0
  1021. package/node_modules/refractor/lang/js-extras.js +160 -0
  1022. package/node_modules/refractor/lang/js-templates.d.ts +7 -0
  1023. package/node_modules/refractor/lang/js-templates.js +366 -0
  1024. package/node_modules/refractor/lang/jsdoc.d.ts +7 -0
  1025. package/node_modules/refractor/lang/jsdoc.js +102 -0
  1026. package/node_modules/refractor/lang/json.d.ts +7 -0
  1027. package/node_modules/refractor/lang/json.js +36 -0
  1028. package/node_modules/refractor/lang/json5.d.ts +7 -0
  1029. package/node_modules/refractor/lang/json5.js +34 -0
  1030. package/node_modules/refractor/lang/jsonp.d.ts +7 -0
  1031. package/node_modules/refractor/lang/jsonp.js +18 -0
  1032. package/node_modules/refractor/lang/jsstacktrace.d.ts +7 -0
  1033. package/node_modules/refractor/lang/jsstacktrace.js +53 -0
  1034. package/node_modules/refractor/lang/jsx.d.ts +7 -0
  1035. package/node_modules/refractor/lang/jsx.js +193 -0
  1036. package/node_modules/refractor/lang/julia.d.ts +7 -0
  1037. package/node_modules/refractor/lang/julia.js +50 -0
  1038. package/node_modules/refractor/lang/keepalived.d.ts +7 -0
  1039. package/node_modules/refractor/lang/keepalived.js +63 -0
  1040. package/node_modules/refractor/lang/keyman.d.ts +7 -0
  1041. package/node_modules/refractor/lang/keyman.js +54 -0
  1042. package/node_modules/refractor/lang/kotlin.d.ts +7 -0
  1043. package/node_modules/refractor/lang/kotlin.js +96 -0
  1044. package/node_modules/refractor/lang/kumir.d.ts +7 -0
  1045. package/node_modules/refractor/lang/kumir.js +116 -0
  1046. package/node_modules/refractor/lang/kusto.d.ts +7 -0
  1047. package/node_modules/refractor/lang/kusto.js +54 -0
  1048. package/node_modules/refractor/lang/latex.d.ts +7 -0
  1049. package/node_modules/refractor/lang/latex.js +77 -0
  1050. package/node_modules/refractor/lang/latte.d.ts +7 -0
  1051. package/node_modules/refractor/lang/latte.js +85 -0
  1052. package/node_modules/refractor/lang/less.d.ts +7 -0
  1053. package/node_modules/refractor/lang/less.js +65 -0
  1054. package/node_modules/refractor/lang/lilypond.d.ts +7 -0
  1055. package/node_modules/refractor/lang/lilypond.js +90 -0
  1056. package/node_modules/refractor/lang/linker-script.d.ts +7 -0
  1057. package/node_modules/refractor/lang/linker-script.js +35 -0
  1058. package/node_modules/refractor/lang/liquid.d.ts +7 -0
  1059. package/node_modules/refractor/lang/liquid.js +82 -0
  1060. package/node_modules/refractor/lang/lisp.d.ts +7 -0
  1061. package/node_modules/refractor/lang/lisp.js +223 -0
  1062. package/node_modules/refractor/lang/livescript.d.ts +7 -0
  1063. package/node_modules/refractor/lang/livescript.js +132 -0
  1064. package/node_modules/refractor/lang/llvm.d.ts +7 -0
  1065. package/node_modules/refractor/lang/llvm.js +31 -0
  1066. package/node_modules/refractor/lang/log.d.ts +7 -0
  1067. package/node_modules/refractor/lang/log.js +129 -0
  1068. package/node_modules/refractor/lang/lolcode.d.ts +7 -0
  1069. package/node_modules/refractor/lang/lolcode.js +60 -0
  1070. package/node_modules/refractor/lang/lua.d.ts +7 -0
  1071. package/node_modules/refractor/lang/lua.js +33 -0
  1072. package/node_modules/refractor/lang/magma.d.ts +7 -0
  1073. package/node_modules/refractor/lang/magma.js +43 -0
  1074. package/node_modules/refractor/lang/makefile.d.ts +7 -0
  1075. package/node_modules/refractor/lang/makefile.js +42 -0
  1076. package/node_modules/refractor/lang/markdown.d.ts +7 -0
  1077. package/node_modules/refractor/lang/markdown.js +449 -0
  1078. package/node_modules/refractor/lang/markup-templating.d.ts +7 -0
  1079. package/node_modules/refractor/lang/markup-templating.js +134 -0
  1080. package/node_modules/refractor/lang/markup.d.ts +7 -0
  1081. package/node_modules/refractor/lang/markup.js +202 -0
  1082. package/node_modules/refractor/lang/mata.d.ts +7 -0
  1083. package/node_modules/refractor/lang/mata.js +59 -0
  1084. package/node_modules/refractor/lang/matlab.d.ts +7 -0
  1085. package/node_modules/refractor/lang/matlab.js +24 -0
  1086. package/node_modules/refractor/lang/maxscript.d.ts +7 -0
  1087. package/node_modules/refractor/lang/maxscript.js +98 -0
  1088. package/node_modules/refractor/lang/mel.d.ts +7 -0
  1089. package/node_modules/refractor/lang/mel.js +56 -0
  1090. package/node_modules/refractor/lang/mermaid.d.ts +7 -0
  1091. package/node_modules/refractor/lang/mermaid.js +122 -0
  1092. package/node_modules/refractor/lang/metafont.d.ts +7 -0
  1093. package/node_modules/refractor/lang/metafont.js +102 -0
  1094. package/node_modules/refractor/lang/mizar.d.ts +7 -0
  1095. package/node_modules/refractor/lang/mizar.js +23 -0
  1096. package/node_modules/refractor/lang/mongodb.d.ts +7 -0
  1097. package/node_modules/refractor/lang/mongodb.js +307 -0
  1098. package/node_modules/refractor/lang/monkey.d.ts +7 -0
  1099. package/node_modules/refractor/lang/monkey.js +41 -0
  1100. package/node_modules/refractor/lang/moonscript.d.ts +7 -0
  1101. package/node_modules/refractor/lang/moonscript.js +70 -0
  1102. package/node_modules/refractor/lang/n1ql.d.ts +7 -0
  1103. package/node_modules/refractor/lang/n1ql.js +36 -0
  1104. package/node_modules/refractor/lang/n4js.d.ts +7 -0
  1105. package/node_modules/refractor/lang/n4js.js +25 -0
  1106. package/node_modules/refractor/lang/nand2tetris-hdl.d.ts +7 -0
  1107. package/node_modules/refractor/lang/nand2tetris-hdl.js +19 -0
  1108. package/node_modules/refractor/lang/naniscript.d.ts +7 -0
  1109. package/node_modules/refractor/lang/naniscript.js +176 -0
  1110. package/node_modules/refractor/lang/nasm.d.ts +7 -0
  1111. package/node_modules/refractor/lang/nasm.js +36 -0
  1112. package/node_modules/refractor/lang/neon.d.ts +7 -0
  1113. package/node_modules/refractor/lang/neon.js +54 -0
  1114. package/node_modules/refractor/lang/nevod.d.ts +7 -0
  1115. package/node_modules/refractor/lang/nevod.js +139 -0
  1116. package/node_modules/refractor/lang/nginx.d.ts +7 -0
  1117. package/node_modules/refractor/lang/nginx.js +63 -0
  1118. package/node_modules/refractor/lang/nim.d.ts +7 -0
  1119. package/node_modules/refractor/lang/nim.js +57 -0
  1120. package/node_modules/refractor/lang/nix.d.ts +7 -0
  1121. package/node_modules/refractor/lang/nix.js +48 -0
  1122. package/node_modules/refractor/lang/nsis.d.ts +7 -0
  1123. package/node_modules/refractor/lang/nsis.js +43 -0
  1124. package/node_modules/refractor/lang/objectivec.d.ts +7 -0
  1125. package/node_modules/refractor/lang/objectivec.js +23 -0
  1126. package/node_modules/refractor/lang/ocaml.d.ts +7 -0
  1127. package/node_modules/refractor/lang/ocaml.js +69 -0
  1128. package/node_modules/refractor/lang/odin.d.ts +7 -0
  1129. package/node_modules/refractor/lang/odin.js +98 -0
  1130. package/node_modules/refractor/lang/opencl.d.ts +7 -0
  1131. package/node_modules/refractor/lang/opencl.js +78 -0
  1132. package/node_modules/refractor/lang/openqasm.d.ts +7 -0
  1133. package/node_modules/refractor/lang/openqasm.js +33 -0
  1134. package/node_modules/refractor/lang/oz.d.ts +7 -0
  1135. package/node_modules/refractor/lang/oz.js +41 -0
  1136. package/node_modules/refractor/lang/parigp.d.ts +7 -0
  1137. package/node_modules/refractor/lang/parigp.js +63 -0
  1138. package/node_modules/refractor/lang/parser.d.ts +7 -0
  1139. package/node_modules/refractor/lang/parser.js +88 -0
  1140. package/node_modules/refractor/lang/pascal.d.ts +7 -0
  1141. package/node_modules/refractor/lang/pascal.js +83 -0
  1142. package/node_modules/refractor/lang/pascaligo.d.ts +7 -0
  1143. package/node_modules/refractor/lang/pascaligo.js +97 -0
  1144. package/node_modules/refractor/lang/pcaxis.d.ts +7 -0
  1145. package/node_modules/refractor/lang/pcaxis.js +64 -0
  1146. package/node_modules/refractor/lang/peoplecode.d.ts +7 -0
  1147. package/node_modules/refractor/lang/peoplecode.js +54 -0
  1148. package/node_modules/refractor/lang/perl.d.ts +7 -0
  1149. package/node_modules/refractor/lang/perl.js +160 -0
  1150. package/node_modules/refractor/lang/php-extras.d.ts +7 -0
  1151. package/node_modules/refractor/lang/php-extras.js +27 -0
  1152. package/node_modules/refractor/lang/php.d.ts +7 -0
  1153. package/node_modules/refractor/lang/php.js +361 -0
  1154. package/node_modules/refractor/lang/phpdoc.d.ts +7 -0
  1155. package/node_modules/refractor/lang/phpdoc.js +44 -0
  1156. package/node_modules/refractor/lang/plant-uml.d.ts +7 -0
  1157. package/node_modules/refractor/lang/plant-uml.js +123 -0
  1158. package/node_modules/refractor/lang/plsql.d.ts +7 -0
  1159. package/node_modules/refractor/lang/plsql.js +29 -0
  1160. package/node_modules/refractor/lang/powerquery.d.ts +7 -0
  1161. package/node_modules/refractor/lang/powerquery.js +67 -0
  1162. package/node_modules/refractor/lang/powershell.d.ts +7 -0
  1163. package/node_modules/refractor/lang/powershell.js +68 -0
  1164. package/node_modules/refractor/lang/processing.d.ts +7 -0
  1165. package/node_modules/refractor/lang/processing.js +27 -0
  1166. package/node_modules/refractor/lang/prolog.d.ts +7 -0
  1167. package/node_modules/refractor/lang/prolog.js +29 -0
  1168. package/node_modules/refractor/lang/promql.d.ts +7 -0
  1169. package/node_modules/refractor/lang/promql.js +112 -0
  1170. package/node_modules/refractor/lang/properties.d.ts +7 -0
  1171. package/node_modules/refractor/lang/properties.js +24 -0
  1172. package/node_modules/refractor/lang/protobuf.d.ts +7 -0
  1173. package/node_modules/refractor/lang/protobuf.js +55 -0
  1174. package/node_modules/refractor/lang/psl.d.ts +7 -0
  1175. package/node_modules/refractor/lang/psl.js +49 -0
  1176. package/node_modules/refractor/lang/pug.d.ts +7 -0
  1177. package/node_modules/refractor/lang/pug.js +220 -0
  1178. package/node_modules/refractor/lang/puppet.d.ts +7 -0
  1179. package/node_modules/refractor/lang/puppet.js +155 -0
  1180. package/node_modules/refractor/lang/pure.d.ts +7 -0
  1181. package/node_modules/refractor/lang/pure.js +106 -0
  1182. package/node_modules/refractor/lang/purebasic.d.ts +7 -0
  1183. package/node_modules/refractor/lang/purebasic.js +82 -0
  1184. package/node_modules/refractor/lang/purescript.d.ts +7 -0
  1185. package/node_modules/refractor/lang/purescript.js +42 -0
  1186. package/node_modules/refractor/lang/python.d.ts +7 -0
  1187. package/node_modules/refractor/lang/python.js +80 -0
  1188. package/node_modules/refractor/lang/q.d.ts +7 -0
  1189. package/node_modules/refractor/lang/q.js +64 -0
  1190. package/node_modules/refractor/lang/qml.d.ts +7 -0
  1191. package/node_modules/refractor/lang/qml.js +93 -0
  1192. package/node_modules/refractor/lang/qore.d.ts +7 -0
  1193. package/node_modules/refractor/lang/qore.js +35 -0
  1194. package/node_modules/refractor/lang/qsharp.d.ts +7 -0
  1195. package/node_modules/refractor/lang/qsharp.js +151 -0
  1196. package/node_modules/refractor/lang/r.d.ts +7 -0
  1197. package/node_modules/refractor/lang/r.js +33 -0
  1198. package/node_modules/refractor/lang/racket.d.ts +7 -0
  1199. package/node_modules/refractor/lang/racket.js +28 -0
  1200. package/node_modules/refractor/lang/reason.d.ts +7 -0
  1201. package/node_modules/refractor/lang/reason.js +39 -0
  1202. package/node_modules/refractor/lang/regex.d.ts +7 -0
  1203. package/node_modules/refractor/lang/regex.js +112 -0
  1204. package/node_modules/refractor/lang/rego.d.ts +7 -0
  1205. package/node_modules/refractor/lang/rego.js +39 -0
  1206. package/node_modules/refractor/lang/renpy.d.ts +7 -0
  1207. package/node_modules/refractor/lang/renpy.js +34 -0
  1208. package/node_modules/refractor/lang/rescript.d.ts +7 -0
  1209. package/node_modules/refractor/lang/rescript.js +76 -0
  1210. package/node_modules/refractor/lang/rest.d.ts +7 -0
  1211. package/node_modules/refractor/lang/rest.js +221 -0
  1212. package/node_modules/refractor/lang/rip.d.ts +7 -0
  1213. package/node_modules/refractor/lang/rip.js +41 -0
  1214. package/node_modules/refractor/lang/roboconf.d.ts +7 -0
  1215. package/node_modules/refractor/lang/roboconf.js +38 -0
  1216. package/node_modules/refractor/lang/robotframework.d.ts +7 -0
  1217. package/node_modules/refractor/lang/robotframework.js +111 -0
  1218. package/node_modules/refractor/lang/ruby.d.ts +7 -0
  1219. package/node_modules/refractor/lang/ruby.js +206 -0
  1220. package/node_modules/refractor/lang/rust.d.ts +7 -0
  1221. package/node_modules/refractor/lang/rust.js +134 -0
  1222. package/node_modules/refractor/lang/sas.d.ts +7 -0
  1223. package/node_modules/refractor/lang/sas.js +368 -0
  1224. package/node_modules/refractor/lang/sass.d.ts +7 -0
  1225. package/node_modules/refractor/lang/sass.js +85 -0
  1226. package/node_modules/refractor/lang/scala.d.ts +7 -0
  1227. package/node_modules/refractor/lang/scala.js +64 -0
  1228. package/node_modules/refractor/lang/scheme.d.ts +7 -0
  1229. package/node_modules/refractor/lang/scheme.js +143 -0
  1230. package/node_modules/refractor/lang/scss.d.ts +7 -0
  1231. package/node_modules/refractor/lang/scss.js +90 -0
  1232. package/node_modules/refractor/lang/shell-session.d.ts +7 -0
  1233. package/node_modules/refractor/lang/shell-session.js +82 -0
  1234. package/node_modules/refractor/lang/smali.d.ts +7 -0
  1235. package/node_modules/refractor/lang/smali.js +95 -0
  1236. package/node_modules/refractor/lang/smalltalk.d.ts +7 -0
  1237. package/node_modules/refractor/lang/smalltalk.js +48 -0
  1238. package/node_modules/refractor/lang/smarty.d.ts +7 -0
  1239. package/node_modules/refractor/lang/smarty.js +147 -0
  1240. package/node_modules/refractor/lang/sml.d.ts +7 -0
  1241. package/node_modules/refractor/lang/sml.js +79 -0
  1242. package/node_modules/refractor/lang/solidity.d.ts +7 -0
  1243. package/node_modules/refractor/lang/solidity.js +34 -0
  1244. package/node_modules/refractor/lang/solution-file.d.ts +7 -0
  1245. package/node_modules/refractor/lang/solution-file.js +58 -0
  1246. package/node_modules/refractor/lang/soy.d.ts +7 -0
  1247. package/node_modules/refractor/lang/soy.js +110 -0
  1248. package/node_modules/refractor/lang/sparql.d.ts +7 -0
  1249. package/node_modules/refractor/lang/sparql.js +27 -0
  1250. package/node_modules/refractor/lang/splunk-spl.d.ts +7 -0
  1251. package/node_modules/refractor/lang/splunk-spl.js +35 -0
  1252. package/node_modules/refractor/lang/sqf.d.ts +7 -0
  1253. package/node_modules/refractor/lang/sqf.js +48 -0
  1254. package/node_modules/refractor/lang/sql.d.ts +7 -0
  1255. package/node_modules/refractor/lang/sql.js +46 -0
  1256. package/node_modules/refractor/lang/squirrel.d.ts +7 -0
  1257. package/node_modules/refractor/lang/squirrel.js +56 -0
  1258. package/node_modules/refractor/lang/stan.d.ts +7 -0
  1259. package/node_modules/refractor/lang/stan.js +73 -0
  1260. package/node_modules/refractor/lang/stata.d.ts +7 -0
  1261. package/node_modules/refractor/lang/stata.js +89 -0
  1262. package/node_modules/refractor/lang/stylus.d.ts +7 -0
  1263. package/node_modules/refractor/lang/stylus.js +150 -0
  1264. package/node_modules/refractor/lang/supercollider.d.ts +7 -0
  1265. package/node_modules/refractor/lang/supercollider.js +44 -0
  1266. package/node_modules/refractor/lang/swift.d.ts +7 -0
  1267. package/node_modules/refractor/lang/swift.js +157 -0
  1268. package/node_modules/refractor/lang/systemd.d.ts +7 -0
  1269. package/node_modules/refractor/lang/systemd.js +81 -0
  1270. package/node_modules/refractor/lang/t4-cs.d.ts +7 -0
  1271. package/node_modules/refractor/lang/t4-cs.js +16 -0
  1272. package/node_modules/refractor/lang/t4-templating.d.ts +7 -0
  1273. package/node_modules/refractor/lang/t4-templating.js +56 -0
  1274. package/node_modules/refractor/lang/t4-vb.d.ts +7 -0
  1275. package/node_modules/refractor/lang/t4-vb.js +15 -0
  1276. package/node_modules/refractor/lang/tap.d.ts +7 -0
  1277. package/node_modules/refractor/lang/tap.js +34 -0
  1278. package/node_modules/refractor/lang/tcl.d.ts +7 -0
  1279. package/node_modules/refractor/lang/tcl.js +59 -0
  1280. package/node_modules/refractor/lang/textile.d.ts +7 -0
  1281. package/node_modules/refractor/lang/textile.js +304 -0
  1282. package/node_modules/refractor/lang/toml.d.ts +7 -0
  1283. package/node_modules/refractor/lang/toml.js +70 -0
  1284. package/node_modules/refractor/lang/tremor.d.ts +7 -0
  1285. package/node_modules/refractor/lang/tremor.js +86 -0
  1286. package/node_modules/refractor/lang/tsx.d.ts +7 -0
  1287. package/node_modules/refractor/lang/tsx.js +32 -0
  1288. package/node_modules/refractor/lang/tt2.d.ts +7 -0
  1289. package/node_modules/refractor/lang/tt2.js +65 -0
  1290. package/node_modules/refractor/lang/turtle.d.ts +7 -0
  1291. package/node_modules/refractor/lang/turtle.js +64 -0
  1292. package/node_modules/refractor/lang/twig.d.ts +7 -0
  1293. package/node_modules/refractor/lang/twig.js +52 -0
  1294. package/node_modules/refractor/lang/typescript.d.ts +7 -0
  1295. package/node_modules/refractor/lang/typescript.js +71 -0
  1296. package/node_modules/refractor/lang/typoscript.d.ts +7 -0
  1297. package/node_modules/refractor/lang/typoscript.js +89 -0
  1298. package/node_modules/refractor/lang/unrealscript.d.ts +7 -0
  1299. package/node_modules/refractor/lang/unrealscript.js +53 -0
  1300. package/node_modules/refractor/lang/uorazor.d.ts +7 -0
  1301. package/node_modules/refractor/lang/uorazor.js +63 -0
  1302. package/node_modules/refractor/lang/uri.d.ts +7 -0
  1303. package/node_modules/refractor/lang/uri.js +105 -0
  1304. package/node_modules/refractor/lang/v.d.ts +7 -0
  1305. package/node_modules/refractor/lang/v.js +95 -0
  1306. package/node_modules/refractor/lang/vala.d.ts +7 -0
  1307. package/node_modules/refractor/lang/vala.js +100 -0
  1308. package/node_modules/refractor/lang/vbnet.d.ts +7 -0
  1309. package/node_modules/refractor/lang/vbnet.js +35 -0
  1310. package/node_modules/refractor/lang/velocity.d.ts +7 -0
  1311. package/node_modules/refractor/lang/velocity.js +83 -0
  1312. package/node_modules/refractor/lang/verilog.d.ts +7 -0
  1313. package/node_modules/refractor/lang/verilog.js +38 -0
  1314. package/node_modules/refractor/lang/vhdl.d.ts +7 -0
  1315. package/node_modules/refractor/lang/vhdl.js +38 -0
  1316. package/node_modules/refractor/lang/vim.d.ts +7 -0
  1317. package/node_modules/refractor/lang/vim.js +23 -0
  1318. package/node_modules/refractor/lang/visual-basic.d.ts +7 -0
  1319. package/node_modules/refractor/lang/visual-basic.js +42 -0
  1320. package/node_modules/refractor/lang/warpscript.d.ts +7 -0
  1321. package/node_modules/refractor/lang/warpscript.js +35 -0
  1322. package/node_modules/refractor/lang/wasm.d.ts +7 -0
  1323. package/node_modules/refractor/lang/wasm.js +43 -0
  1324. package/node_modules/refractor/lang/web-idl.d.ts +7 -0
  1325. package/node_modules/refractor/lang/web-idl.js +120 -0
  1326. package/node_modules/refractor/lang/wgsl.d.ts +7 -0
  1327. package/node_modules/refractor/lang/wgsl.js +112 -0
  1328. package/node_modules/refractor/lang/wiki.d.ts +7 -0
  1329. package/node_modules/refractor/lang/wiki.js +90 -0
  1330. package/node_modules/refractor/lang/wolfram.d.ts +7 -0
  1331. package/node_modules/refractor/lang/wolfram.js +42 -0
  1332. package/node_modules/refractor/lang/wren.d.ts +7 -0
  1333. package/node_modules/refractor/lang/wren.js +105 -0
  1334. package/node_modules/refractor/lang/xeora.d.ts +7 -0
  1335. package/node_modules/refractor/lang/xeora.js +131 -0
  1336. package/node_modules/refractor/lang/xml-doc.d.ts +7 -0
  1337. package/node_modules/refractor/lang/xml-doc.js +47 -0
  1338. package/node_modules/refractor/lang/xojo.d.ts +7 -0
  1339. package/node_modules/refractor/lang/xojo.js +30 -0
  1340. package/node_modules/refractor/lang/xquery.d.ts +7 -0
  1341. package/node_modules/refractor/lang/xquery.js +205 -0
  1342. package/node_modules/refractor/lang/yaml.d.ts +7 -0
  1343. package/node_modules/refractor/lang/yaml.js +129 -0
  1344. package/node_modules/refractor/lang/yang.d.ts +7 -0
  1345. package/node_modules/refractor/lang/yang.js +30 -0
  1346. package/node_modules/refractor/lang/zig.d.ts +7 -0
  1347. package/node_modules/refractor/lang/zig.js +131 -0
  1348. package/node_modules/refractor/lib/all.d.ts +3 -0
  1349. package/node_modules/refractor/lib/all.d.ts.map +1 -0
  1350. package/node_modules/refractor/lib/all.js +602 -0
  1351. package/node_modules/refractor/lib/common.d.ts +3 -0
  1352. package/node_modules/refractor/lib/common.d.ts.map +1 -0
  1353. package/node_modules/refractor/lib/common.js +80 -0
  1354. package/node_modules/refractor/lib/core.d.ts +125 -0
  1355. package/node_modules/refractor/lib/core.d.ts.map +1 -0
  1356. package/node_modules/refractor/lib/core.js +316 -0
  1357. package/node_modules/refractor/lib/prism-core.d.ts +113 -0
  1358. package/node_modules/refractor/lib/prism-core.d.ts.map +1 -0
  1359. package/node_modules/refractor/lib/prism-core.js +768 -0
  1360. package/node_modules/refractor/license +23 -0
  1361. package/node_modules/refractor/package.json +140 -0
  1362. package/node_modules/refractor/readme.md +828 -0
  1363. package/node_modules/space-separated-tokens/index.d.ts +18 -0
  1364. package/node_modules/space-separated-tokens/index.js +24 -0
  1365. package/node_modules/space-separated-tokens/license +22 -0
  1366. package/node_modules/space-separated-tokens/package.json +67 -0
  1367. package/node_modules/space-separated-tokens/readme.md +156 -0
  1368. package/node_modules/uc.micro/LICENSE.txt +20 -0
  1369. package/node_modules/uc.micro/README.md +31 -0
  1370. package/node_modules/uc.micro/build/index.cjs.js +15 -0
  1371. package/node_modules/uc.micro/build/index.d.ts +6 -0
  1372. package/node_modules/uc.micro/build/index.mjs +8 -0
  1373. package/node_modules/uc.micro/package.json +32 -0
  1374. package/node_modules/yaml/LICENSE +13 -0
  1375. package/node_modules/yaml/README.md +172 -0
  1376. package/node_modules/yaml/bin.mjs +11 -0
  1377. package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  1378. package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  1379. package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
  1380. package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  1381. package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
  1382. package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  1383. package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  1384. package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  1385. package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  1386. package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  1387. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
  1388. package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  1389. package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  1390. package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  1391. package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  1392. package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  1393. package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  1394. package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  1395. package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  1396. package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  1397. package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  1398. package/node_modules/yaml/browser/dist/errors.js +57 -0
  1399. package/node_modules/yaml/browser/dist/index.js +17 -0
  1400. package/node_modules/yaml/browser/dist/log.js +11 -0
  1401. package/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
  1402. package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  1403. package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  1404. package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  1405. package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  1406. package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  1407. package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  1408. package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  1409. package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  1410. package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  1411. package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  1412. package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  1413. package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  1414. package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  1415. package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
  1416. package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  1417. package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
  1418. package/node_modules/yaml/browser/dist/public-api.js +102 -0
  1419. package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  1420. package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  1421. package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  1422. package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  1423. package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  1424. package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  1425. package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  1426. package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  1427. package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  1428. package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  1429. package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  1430. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  1431. package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  1432. package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  1433. package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  1434. package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
  1435. package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  1436. package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  1437. package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  1438. package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  1439. package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  1440. package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  1441. package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
  1442. package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
  1443. package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  1444. package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  1445. package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
  1446. package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  1447. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  1448. package/node_modules/yaml/browser/dist/util.js +11 -0
  1449. package/node_modules/yaml/browser/dist/visit.js +233 -0
  1450. package/node_modules/yaml/browser/index.js +5 -0
  1451. package/node_modules/yaml/browser/package.json +3 -0
  1452. package/node_modules/yaml/dist/cli.d.ts +8 -0
  1453. package/node_modules/yaml/dist/cli.mjs +201 -0
  1454. package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
  1455. package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  1456. package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
  1457. package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  1458. package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
  1459. package/node_modules/yaml/dist/compose/compose-node.js +112 -0
  1460. package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
  1461. package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  1462. package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
  1463. package/node_modules/yaml/dist/compose/composer.js +224 -0
  1464. package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
  1465. package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  1466. package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
  1467. package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  1468. package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
  1469. package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  1470. package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
  1471. package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  1472. package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
  1473. package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  1474. package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
  1475. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
  1476. package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
  1477. package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  1478. package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
  1479. package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  1480. package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
  1481. package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  1482. package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
  1483. package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  1484. package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
  1485. package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  1486. package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
  1487. package/node_modules/yaml/dist/doc/Document.js +337 -0
  1488. package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
  1489. package/node_modules/yaml/dist/doc/anchors.js +76 -0
  1490. package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
  1491. package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  1492. package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
  1493. package/node_modules/yaml/dist/doc/createNode.js +90 -0
  1494. package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
  1495. package/node_modules/yaml/dist/doc/directives.js +178 -0
  1496. package/node_modules/yaml/dist/errors.d.ts +21 -0
  1497. package/node_modules/yaml/dist/errors.js +62 -0
  1498. package/node_modules/yaml/dist/index.d.ts +25 -0
  1499. package/node_modules/yaml/dist/index.js +50 -0
  1500. package/node_modules/yaml/dist/log.d.ts +3 -0
  1501. package/node_modules/yaml/dist/log.js +19 -0
  1502. package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
  1503. package/node_modules/yaml/dist/nodes/Alias.js +120 -0
  1504. package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
  1505. package/node_modules/yaml/dist/nodes/Collection.js +151 -0
  1506. package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
  1507. package/node_modules/yaml/dist/nodes/Node.js +40 -0
  1508. package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
  1509. package/node_modules/yaml/dist/nodes/Pair.js +39 -0
  1510. package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
  1511. package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  1512. package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
  1513. package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  1514. package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
  1515. package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  1516. package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
  1517. package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  1518. package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
  1519. package/node_modules/yaml/dist/nodes/identity.js +53 -0
  1520. package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
  1521. package/node_modules/yaml/dist/nodes/toJS.js +39 -0
  1522. package/node_modules/yaml/dist/options.d.ts +350 -0
  1523. package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
  1524. package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  1525. package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
  1526. package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  1527. package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
  1528. package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  1529. package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
  1530. package/node_modules/yaml/dist/parse/cst.js +112 -0
  1531. package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
  1532. package/node_modules/yaml/dist/parse/lexer.js +723 -0
  1533. package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
  1534. package/node_modules/yaml/dist/parse/line-counter.js +41 -0
  1535. package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
  1536. package/node_modules/yaml/dist/parse/parser.js +980 -0
  1537. package/node_modules/yaml/dist/public-api.d.ts +44 -0
  1538. package/node_modules/yaml/dist/public-api.js +107 -0
  1539. package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
  1540. package/node_modules/yaml/dist/schema/Schema.js +39 -0
  1541. package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
  1542. package/node_modules/yaml/dist/schema/common/map.js +19 -0
  1543. package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
  1544. package/node_modules/yaml/dist/schema/common/null.js +17 -0
  1545. package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
  1546. package/node_modules/yaml/dist/schema/common/seq.js +19 -0
  1547. package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
  1548. package/node_modules/yaml/dist/schema/common/string.js +16 -0
  1549. package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
  1550. package/node_modules/yaml/dist/schema/core/bool.js +21 -0
  1551. package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
  1552. package/node_modules/yaml/dist/schema/core/float.js +47 -0
  1553. package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
  1554. package/node_modules/yaml/dist/schema/core/int.js +42 -0
  1555. package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
  1556. package/node_modules/yaml/dist/schema/core/schema.js +25 -0
  1557. package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
  1558. package/node_modules/yaml/dist/schema/json/schema.js +64 -0
  1559. package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
  1560. package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
  1561. package/node_modules/yaml/dist/schema/tags.js +99 -0
  1562. package/node_modules/yaml/dist/schema/types.d.ts +92 -0
  1563. package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
  1564. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  1565. package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
  1566. package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  1567. package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
  1568. package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  1569. package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
  1570. package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  1571. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
  1572. package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
  1573. package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
  1574. package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  1575. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
  1576. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  1577. package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
  1578. package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  1579. package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
  1580. package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  1581. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
  1582. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  1583. package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
  1584. package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  1585. package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
  1586. package/node_modules/yaml/dist/stringify/stringify.js +132 -0
  1587. package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
  1588. package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
  1589. package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
  1590. package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  1591. package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
  1592. package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  1593. package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
  1594. package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
  1595. package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
  1596. package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  1597. package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
  1598. package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  1599. package/node_modules/yaml/dist/test-events.d.ts +4 -0
  1600. package/node_modules/yaml/dist/test-events.js +134 -0
  1601. package/node_modules/yaml/dist/util.d.ts +16 -0
  1602. package/node_modules/yaml/dist/util.js +28 -0
  1603. package/node_modules/yaml/dist/visit.d.ts +102 -0
  1604. package/node_modules/yaml/dist/visit.js +236 -0
  1605. package/node_modules/yaml/package.json +97 -0
  1606. package/node_modules/yaml/util.js +2 -0
  1607. package/node_modules/yauzl/LICENSE +21 -0
  1608. package/node_modules/yauzl/README.md +1015 -0
  1609. package/node_modules/yauzl/crc32.js +45 -0
  1610. package/node_modules/yauzl/fd-slicer.js +188 -0
  1611. package/node_modules/yauzl/index.js +1096 -0
  1612. package/node_modules/yauzl/package.json +40 -0
  1613. package/node_modules/zod/LICENSE +21 -0
  1614. package/node_modules/zod/README.md +218 -0
  1615. package/node_modules/zod/compile.cjs +96 -0
  1616. package/node_modules/zod/compile.d.cts +1 -0
  1617. package/node_modules/zod/compile.d.ts +1 -0
  1618. package/node_modules/zod/compile.js +52 -0
  1619. package/node_modules/zod/index.cjs +52 -0
  1620. package/node_modules/zod/index.d.cts +3 -0
  1621. package/node_modules/zod/index.d.ts +3 -0
  1622. package/node_modules/zod/index.js +7 -0
  1623. package/node_modules/zod/locales/index.cjs +36 -0
  1624. package/node_modules/zod/locales/index.d.cts +1 -0
  1625. package/node_modules/zod/locales/index.d.ts +1 -0
  1626. package/node_modules/zod/locales/index.js +1 -0
  1627. package/node_modules/zod/locales/package.json +7 -0
  1628. package/node_modules/zod/mini/index.cjs +51 -0
  1629. package/node_modules/zod/mini/index.d.cts +3 -0
  1630. package/node_modules/zod/mini/index.d.ts +3 -0
  1631. package/node_modules/zod/mini/index.js +3 -0
  1632. package/node_modules/zod/mini/package.json +7 -0
  1633. package/node_modules/zod/package.json +147 -0
  1634. package/node_modules/zod/src/compile.ts +56 -0
  1635. package/node_modules/zod/src/index.ts +7 -0
  1636. package/node_modules/zod/src/locales/index.ts +1 -0
  1637. package/node_modules/zod/src/mini/index.ts +3 -0
  1638. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  1639. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  1640. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  1641. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  1642. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  1643. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  1644. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  1645. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  1646. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  1647. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  1648. package/node_modules/zod/src/v3/errors.ts +13 -0
  1649. package/node_modules/zod/src/v3/external.ts +6 -0
  1650. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  1651. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  1652. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  1653. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  1654. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  1655. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  1656. package/node_modules/zod/src/v3/index.ts +4 -0
  1657. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  1658. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  1659. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  1660. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  1661. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  1662. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  1663. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  1664. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  1665. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  1666. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  1667. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  1668. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  1669. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  1670. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  1671. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  1672. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  1673. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  1674. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  1675. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  1676. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  1677. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  1678. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  1679. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  1680. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  1681. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  1682. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  1683. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  1684. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  1685. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  1686. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  1687. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  1688. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  1689. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  1690. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  1691. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  1692. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  1693. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  1694. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  1695. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  1696. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  1697. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  1698. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  1699. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  1700. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  1701. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  1702. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  1703. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  1704. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  1705. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  1706. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  1707. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  1708. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  1709. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  1710. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  1711. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  1712. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  1713. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  1714. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  1715. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  1716. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  1717. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  1718. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  1719. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  1720. package/node_modules/zod/src/v3/types.ts +5138 -0
  1721. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  1722. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  1723. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  1724. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  1725. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  1726. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  1727. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  1728. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  1729. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  1730. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  1731. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  1732. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  1733. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  1734. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  1735. package/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
  1736. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  1737. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  1738. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  1739. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  1740. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  1741. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  1742. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  1743. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  1744. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  1745. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  1746. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  1747. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  1748. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  1749. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  1750. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  1751. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  1752. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  1753. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  1754. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  1755. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  1756. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  1757. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  1758. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  1759. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  1760. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  1761. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  1762. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  1763. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  1764. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  1765. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  1766. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  1767. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  1768. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  1769. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  1770. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  1771. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  1772. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  1773. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  1774. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  1775. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  1776. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  1777. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  1778. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  1779. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  1780. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  1781. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  1782. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  1783. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  1784. package/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
  1785. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  1786. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  1787. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  1788. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  1789. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  1790. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  1791. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  1792. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  1793. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  1794. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  1795. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  1796. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  1797. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  1798. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  1799. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  1800. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  1801. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  1802. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  1803. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  1804. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  1805. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  1806. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  1807. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  1808. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  1809. package/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
  1810. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  1811. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  1812. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  1813. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  1814. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  1815. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  1816. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  1817. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  1818. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  1819. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  1820. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  1821. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  1822. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  1823. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  1824. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  1825. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  1826. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  1827. package/node_modules/zod/src/v4/core/core.ts +230 -0
  1828. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  1829. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  1830. package/node_modules/zod/src/v4/core/index.ts +19 -0
  1831. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  1832. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  1833. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  1834. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  1835. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  1836. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  1837. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  1838. package/node_modules/zod/src/v4/core/schemas.ts +5226 -0
  1839. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  1840. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  1841. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  1842. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  1843. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  1844. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  1845. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  1846. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  1847. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  1848. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  1849. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  1850. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  1851. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  1852. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  1853. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  1854. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  1855. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  1856. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  1857. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  1858. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  1859. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  1860. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  1861. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  1862. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  1863. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  1864. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  1865. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  1866. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  1867. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  1868. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  1869. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  1870. package/node_modules/zod/src/v4/core/util.ts +1293 -0
  1871. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  1872. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  1873. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  1874. package/node_modules/zod/src/v4/index.ts +4 -0
  1875. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  1876. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  1877. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  1878. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  1879. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  1880. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  1881. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  1882. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  1883. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  1884. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  1885. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  1886. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  1887. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  1888. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  1889. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  1890. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  1891. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  1892. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  1893. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  1894. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  1895. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  1896. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  1897. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  1898. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  1899. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  1900. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  1901. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  1902. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  1903. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  1904. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  1905. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  1906. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  1907. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  1908. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  1909. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  1910. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  1911. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  1912. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  1913. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  1914. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  1915. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  1916. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  1917. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  1918. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  1919. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  1920. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  1921. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  1922. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  1923. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  1924. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  1925. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  1926. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  1927. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  1928. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  1929. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  1930. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  1931. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  1932. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  1933. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  1934. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  1935. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  1936. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  1937. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  1938. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  1939. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  1940. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  1941. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  1942. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  1943. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  1944. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  1945. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  1946. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  1947. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  1948. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  1949. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  1950. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  1951. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  1952. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  1953. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  1954. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  1955. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  1956. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  1957. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  1958. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  1959. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  1960. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  1961. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  1962. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  1963. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  1964. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  1965. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  1966. package/node_modules/zod/v3/ZodError.cjs +167 -0
  1967. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  1968. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  1969. package/node_modules/zod/v3/ZodError.js +143 -0
  1970. package/node_modules/zod/v3/errors.cjs +36 -0
  1971. package/node_modules/zod/v3/errors.d.cts +5 -0
  1972. package/node_modules/zod/v3/errors.d.ts +5 -0
  1973. package/node_modules/zod/v3/errors.js +9 -0
  1974. package/node_modules/zod/v3/external.cjs +41 -0
  1975. package/node_modules/zod/v3/external.d.cts +6 -0
  1976. package/node_modules/zod/v3/external.d.ts +6 -0
  1977. package/node_modules/zod/v3/external.js +6 -0
  1978. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  1979. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  1980. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  1981. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  1982. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  1983. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  1984. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  1985. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  1986. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  1987. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1988. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1989. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1990. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  1991. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1992. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1993. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1994. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  1995. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1996. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1997. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1998. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  1999. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  2000. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  2001. package/node_modules/zod/v3/helpers/util.js +133 -0
  2002. package/node_modules/zod/v3/index.cjs +52 -0
  2003. package/node_modules/zod/v3/index.d.cts +4 -0
  2004. package/node_modules/zod/v3/index.d.ts +4 -0
  2005. package/node_modules/zod/v3/index.js +4 -0
  2006. package/node_modules/zod/v3/locales/en.cjs +112 -0
  2007. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  2008. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  2009. package/node_modules/zod/v3/locales/en.js +109 -0
  2010. package/node_modules/zod/v3/package.json +7 -0
  2011. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  2012. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  2013. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  2014. package/node_modules/zod/v3/standard-schema.js +1 -0
  2015. package/node_modules/zod/v3/types.cjs +3798 -0
  2016. package/node_modules/zod/v3/types.d.cts +1034 -0
  2017. package/node_modules/zod/v3/types.d.ts +1034 -0
  2018. package/node_modules/zod/v3/types.js +3697 -0
  2019. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  2020. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  2021. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  2022. package/node_modules/zod/v4/classic/checks.js +1 -0
  2023. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  2024. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  2025. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  2026. package/node_modules/zod/v4/classic/coerce.js +17 -0
  2027. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  2028. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  2029. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  2030. package/node_modules/zod/v4/classic/compat.js +31 -0
  2031. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  2032. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  2033. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  2034. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  2035. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  2036. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  2037. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  2038. package/node_modules/zod/v4/classic/errors.js +57 -0
  2039. package/node_modules/zod/v4/classic/external.cjs +97 -0
  2040. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  2041. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  2042. package/node_modules/zod/v4/classic/external.js +17 -0
  2043. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  2044. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  2045. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  2046. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  2047. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  2048. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  2049. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  2050. package/node_modules/zod/v4/classic/in-out.js +36 -0
  2051. package/node_modules/zod/v4/classic/index.cjs +52 -0
  2052. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  2053. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  2054. package/node_modules/zod/v4/classic/index.js +4 -0
  2055. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  2056. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  2057. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  2058. package/node_modules/zod/v4/classic/iso.js +15 -0
  2059. package/node_modules/zod/v4/classic/package.json +7 -0
  2060. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  2061. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  2062. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  2063. package/node_modules/zod/v4/classic/parse.js +16 -0
  2064. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  2065. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  2066. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  2067. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  2068. package/node_modules/zod/v4/core/api.cjs +1269 -0
  2069. package/node_modules/zod/v4/core/api.d.cts +335 -0
  2070. package/node_modules/zod/v4/core/api.d.ts +335 -0
  2071. package/node_modules/zod/v4/core/api.js +1107 -0
  2072. package/node_modules/zod/v4/core/checks.cjs +561 -0
  2073. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  2074. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  2075. package/node_modules/zod/v4/core/checks.js +516 -0
  2076. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  2077. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  2078. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  2079. package/node_modules/zod/v4/core/compile.js +1866 -0
  2080. package/node_modules/zod/v4/core/core.cjs +167 -0
  2081. package/node_modules/zod/v4/core/core.d.cts +82 -0
  2082. package/node_modules/zod/v4/core/core.d.ts +82 -0
  2083. package/node_modules/zod/v4/core/core.js +141 -0
  2084. package/node_modules/zod/v4/core/doc.cjs +61 -0
  2085. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  2086. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  2087. package/node_modules/zod/v4/core/doc.js +38 -0
  2088. package/node_modules/zod/v4/core/errors.cjs +317 -0
  2089. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  2090. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  2091. package/node_modules/zod/v4/core/errors.js +267 -0
  2092. package/node_modules/zod/v4/core/index.cjs +70 -0
  2093. package/node_modules/zod/v4/core/index.d.cts +19 -0
  2094. package/node_modules/zod/v4/core/index.d.ts +19 -0
  2095. package/node_modules/zod/v4/core/index.js +19 -0
  2096. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  2097. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  2098. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  2099. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  2100. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  2101. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  2102. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  2103. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  2104. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  2105. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  2106. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  2107. package/node_modules/zod/v4/core/json-schema.js +1 -0
  2108. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  2109. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  2110. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  2111. package/node_modules/zod/v4/core/memoizer.js +311 -0
  2112. package/node_modules/zod/v4/core/package.json +7 -0
  2113. package/node_modules/zod/v4/core/parse.cjs +233 -0
  2114. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  2115. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  2116. package/node_modules/zod/v4/core/parse.js +175 -0
  2117. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  2118. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  2119. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  2120. package/node_modules/zod/v4/core/regexes.js +156 -0
  2121. package/node_modules/zod/v4/core/registries.cjs +75 -0
  2122. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  2123. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  2124. package/node_modules/zod/v4/core/registries.js +51 -0
  2125. package/node_modules/zod/v4/core/schemas.cjs +2699 -0
  2126. package/node_modules/zod/v4/core/schemas.d.cts +1275 -0
  2127. package/node_modules/zod/v4/core/schemas.d.ts +1275 -0
  2128. package/node_modules/zod/v4/core/schemas.js +2636 -0
  2129. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  2130. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  2131. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  2132. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  2133. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  2134. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  2135. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  2136. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  2137. package/node_modules/zod/v4/core/util.cjs +964 -0
  2138. package/node_modules/zod/v4/core/util.d.cts +280 -0
  2139. package/node_modules/zod/v4/core/util.d.ts +280 -0
  2140. package/node_modules/zod/v4/core/util.js +873 -0
  2141. package/node_modules/zod/v4/core/versions.cjs +27 -0
  2142. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  2143. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  2144. package/node_modules/zod/v4/core/versions.js +5 -0
  2145. package/node_modules/zod/v4/core/visit.cjs +214 -0
  2146. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  2147. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  2148. package/node_modules/zod/v4/core/visit.js +169 -0
  2149. package/node_modules/zod/v4/index.cjs +51 -0
  2150. package/node_modules/zod/v4/index.d.cts +3 -0
  2151. package/node_modules/zod/v4/index.d.ts +3 -0
  2152. package/node_modules/zod/v4/index.js +4 -0
  2153. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  2154. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  2155. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  2156. package/node_modules/zod/v4/locales/ar.js +111 -0
  2157. package/node_modules/zod/v4/locales/az.cjs +137 -0
  2158. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  2159. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  2160. package/node_modules/zod/v4/locales/az.js +110 -0
  2161. package/node_modules/zod/v4/locales/be.cjs +195 -0
  2162. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  2163. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  2164. package/node_modules/zod/v4/locales/be.js +168 -0
  2165. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  2166. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  2167. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  2168. package/node_modules/zod/v4/locales/bg.js +125 -0
  2169. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  2170. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  2171. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  2172. package/node_modules/zod/v4/locales/bn.js +113 -0
  2173. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  2174. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  2175. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  2176. package/node_modules/zod/v4/locales/ca.js +112 -0
  2177. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  2178. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  2179. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  2180. package/node_modules/zod/v4/locales/ckb.js +133 -0
  2181. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  2182. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  2183. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  2184. package/node_modules/zod/v4/locales/cs.js +116 -0
  2185. package/node_modules/zod/v4/locales/da.cjs +147 -0
  2186. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  2187. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  2188. package/node_modules/zod/v4/locales/da.js +120 -0
  2189. package/node_modules/zod/v4/locales/de.cjs +140 -0
  2190. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  2191. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  2192. package/node_modules/zod/v4/locales/de.js +113 -0
  2193. package/node_modules/zod/v4/locales/el.cjs +139 -0
  2194. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  2195. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  2196. package/node_modules/zod/v4/locales/el.js +112 -0
  2197. package/node_modules/zod/v4/locales/en.cjs +152 -0
  2198. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  2199. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  2200. package/node_modules/zod/v4/locales/en.js +125 -0
  2201. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  2202. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  2203. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  2204. package/node_modules/zod/v4/locales/eo.js +114 -0
  2205. package/node_modules/zod/v4/locales/es.cjs +163 -0
  2206. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  2207. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  2208. package/node_modules/zod/v4/locales/es.js +136 -0
  2209. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  2210. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  2211. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  2212. package/node_modules/zod/v4/locales/fa.js +119 -0
  2213. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  2214. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  2215. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  2216. package/node_modules/zod/v4/locales/fi.js +117 -0
  2217. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  2218. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  2219. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  2220. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  2221. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  2222. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  2223. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  2224. package/node_modules/zod/v4/locales/fr.js +129 -0
  2225. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  2226. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  2227. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  2228. package/node_modules/zod/v4/locales/gu.js +113 -0
  2229. package/node_modules/zod/v4/locales/he.cjs +248 -0
  2230. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  2231. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  2232. package/node_modules/zod/v4/locales/he.js +221 -0
  2233. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  2234. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  2235. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  2236. package/node_modules/zod/v4/locales/hi.js +111 -0
  2237. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  2238. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  2239. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  2240. package/node_modules/zod/v4/locales/hr.js +126 -0
  2241. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  2242. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  2243. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  2244. package/node_modules/zod/v4/locales/hu.js +113 -0
  2245. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  2246. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  2247. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  2248. package/node_modules/zod/v4/locales/hy.js +158 -0
  2249. package/node_modules/zod/v4/locales/id.cjs +138 -0
  2250. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  2251. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  2252. package/node_modules/zod/v4/locales/id.js +111 -0
  2253. package/node_modules/zod/v4/locales/index.cjs +152 -0
  2254. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  2255. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  2256. package/node_modules/zod/v4/locales/index.js +63 -0
  2257. package/node_modules/zod/v4/locales/is.cjs +141 -0
  2258. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  2259. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  2260. package/node_modules/zod/v4/locales/is.js +114 -0
  2261. package/node_modules/zod/v4/locales/it.cjs +140 -0
  2262. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  2263. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  2264. package/node_modules/zod/v4/locales/it.js +113 -0
  2265. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  2266. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  2267. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  2268. package/node_modules/zod/v4/locales/ja.js +112 -0
  2269. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  2270. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  2271. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  2272. package/node_modules/zod/v4/locales/ka.js +117 -0
  2273. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  2274. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  2275. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  2276. package/node_modules/zod/v4/locales/kh.js +5 -0
  2277. package/node_modules/zod/v4/locales/km.cjs +142 -0
  2278. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  2279. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  2280. package/node_modules/zod/v4/locales/km.js +115 -0
  2281. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  2282. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  2283. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  2284. package/node_modules/zod/v4/locales/kn.js +116 -0
  2285. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  2286. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  2287. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  2288. package/node_modules/zod/v4/locales/ko.js +116 -0
  2289. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  2290. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  2291. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  2292. package/node_modules/zod/v4/locales/lt.js +207 -0
  2293. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  2294. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  2295. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  2296. package/node_modules/zod/v4/locales/mk.js +114 -0
  2297. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  2298. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  2299. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  2300. package/node_modules/zod/v4/locales/ms.js +112 -0
  2301. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  2302. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  2303. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  2304. package/node_modules/zod/v4/locales/ne.js +111 -0
  2305. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  2306. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  2307. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  2308. package/node_modules/zod/v4/locales/nl.js +115 -0
  2309. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  2310. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  2311. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  2312. package/node_modules/zod/v4/locales/nn.js +113 -0
  2313. package/node_modules/zod/v4/locales/no.cjs +140 -0
  2314. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  2315. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  2316. package/node_modules/zod/v4/locales/no.js +113 -0
  2317. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  2318. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  2319. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  2320. package/node_modules/zod/v4/locales/ota.js +114 -0
  2321. package/node_modules/zod/v4/locales/package.json +7 -0
  2322. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  2323. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  2324. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  2325. package/node_modules/zod/v4/locales/pl.js +114 -0
  2326. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  2327. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  2328. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  2329. package/node_modules/zod/v4/locales/ps.js +119 -0
  2330. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  2331. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  2332. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  2333. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  2334. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  2335. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  2336. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  2337. package/node_modules/zod/v4/locales/pt.js +142 -0
  2338. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  2339. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  2340. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  2341. package/node_modules/zod/v4/locales/ro.js +122 -0
  2342. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  2343. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  2344. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  2345. package/node_modules/zod/v4/locales/ru.js +168 -0
  2346. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  2347. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  2348. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  2349. package/node_modules/zod/v4/locales/sk.js +116 -0
  2350. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  2351. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  2352. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  2353. package/node_modules/zod/v4/locales/sl.js +114 -0
  2354. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  2355. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  2356. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  2357. package/node_modules/zod/v4/locales/sv.js +115 -0
  2358. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  2359. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  2360. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  2361. package/node_modules/zod/v4/locales/ta.js +115 -0
  2362. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  2363. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  2364. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  2365. package/node_modules/zod/v4/locales/tg.js +117 -0
  2366. package/node_modules/zod/v4/locales/th.cjs +142 -0
  2367. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  2368. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  2369. package/node_modules/zod/v4/locales/th.js +115 -0
  2370. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  2371. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  2372. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  2373. package/node_modules/zod/v4/locales/tk.js +107 -0
  2374. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  2375. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  2376. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  2377. package/node_modules/zod/v4/locales/tr.js +110 -0
  2378. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  2379. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  2380. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  2381. package/node_modules/zod/v4/locales/ua.js +5 -0
  2382. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  2383. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  2384. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  2385. package/node_modules/zod/v4/locales/uk.js +113 -0
  2386. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  2387. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  2388. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  2389. package/node_modules/zod/v4/locales/ur.js +115 -0
  2390. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  2391. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  2392. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  2393. package/node_modules/zod/v4/locales/uz.js +113 -0
  2394. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  2395. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  2396. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  2397. package/node_modules/zod/v4/locales/vi.js +113 -0
  2398. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  2399. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  2400. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  2401. package/node_modules/zod/v4/locales/yo.js +112 -0
  2402. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  2403. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  2404. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  2405. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  2406. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  2407. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  2408. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  2409. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  2410. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  2411. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  2412. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  2413. package/node_modules/zod/v4/mini/checks.js +1 -0
  2414. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  2415. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  2416. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  2417. package/node_modules/zod/v4/mini/coerce.js +22 -0
  2418. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  2419. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  2420. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  2421. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  2422. package/node_modules/zod/v4/mini/external.cjs +95 -0
  2423. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  2424. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  2425. package/node_modules/zod/v4/mini/external.js +16 -0
  2426. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  2427. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  2428. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  2429. package/node_modules/zod/v4/mini/in-out.js +36 -0
  2430. package/node_modules/zod/v4/mini/index.cjs +51 -0
  2431. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  2432. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  2433. package/node_modules/zod/v4/mini/index.js +3 -0
  2434. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  2435. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  2436. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  2437. package/node_modules/zod/v4/mini/iso.js +34 -0
  2438. package/node_modules/zod/v4/mini/package.json +7 -0
  2439. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  2440. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  2441. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  2442. package/node_modules/zod/v4/mini/parse.js +1 -0
  2443. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  2444. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  2445. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  2446. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  2447. package/node_modules/zod/v4/package.json +7 -0
  2448. package/node_modules/zod/v4-mini/index.cjs +51 -0
  2449. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  2450. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  2451. package/node_modules/zod/v4-mini/index.js +3 -0
  2452. package/node_modules/zod/v4-mini/package.json +7 -0
  2453. package/npm-shrinkwrap.json +972 -0
  2454. package/package.json +51 -4
  2455. package/paseo-plugin.json +21 -0
  2456. package/scripts/prepare-office.mjs +20 -0
  2457. package/server/engine.ts +89 -0
  2458. package/server/external-file.ts +42 -0
  2459. package/server/generated/NotoSansSC-OFL.txt +195 -0
  2460. package/server/generated/NotoSansSC-Regular.otf +0 -0
  2461. package/server/generated/document-worker.ts +1 -0
  2462. package/server/generated/jpeg-encoder-LICENSE-APACHE.txt +201 -0
  2463. package/server/generated/jpeg-encoder-LICENSE-IJG.txt +69 -0
  2464. package/server/generated/jpeg-encoder-LICENSE-MIT.txt +25 -0
  2465. package/server/generated/markdown-rs-LICENSE.txt +22 -0
  2466. package/server/generated/rust-reader.cjs +273 -0
  2467. package/server/generated/rust-reader_bg.wasm +0 -0
  2468. package/server/markdown-index.ts +305 -0
  2469. package/server/markdown-links.ts +51 -0
  2470. package/server/markdown-page.ts +120 -0
  2471. package/server/office-fonts.cjs +824 -0
  2472. package/server/office-location.ts +41 -0
  2473. package/server/office-preview.ts +186 -0
  2474. package/server/office-worker.cjs +49 -0
  2475. package/server/office-xml.ts +79 -0
  2476. package/server/pdf-engine.ts +168 -0
  2477. package/server/pdf-text-geometry.ts +60 -0
  2478. package/server/rust-reader.ts +40 -0
  2479. package/server/structured-document.ts +69 -0
  2480. package/server/text-search.ts +15 -0
  2481. package/server/worker-entry.ts +42 -0
  2482. package/server/worker-protocol.ts +38 -0
  2483. package/server/worksheet.ts +67 -0
  2484. package/server/workspace-file.ts +63 -0
  2485. package/shared/contracts.ts +187 -0
  2486. package/shared/file-limits.ts +5 -0
  2487. package/shared/markdown-constants.ts +4 -0
  2488. package/shared/markdown-math.ts +198 -0
  2489. package/shared/markdown-references.ts +83 -0
  2490. package/shared/markdown-source-location.ts +8 -0
  2491. package/shared/reader-settings.ts +15 -0
  2492. package/shared/reader-shortcuts.ts +132 -0
  2493. package/vendor/office2pdf/DrawingML-LICENSE.txt +202 -0
  2494. package/vendor/office2pdf/LICENSE +190 -0
  2495. package/vendor/office2pdf/OFL-1.1.txt +92 -0
  2496. package/vendor/office2pdf/Selawik-LICENSE.txt +91 -0
  2497. package/vendor/office2pdf/office2pdf.cjs +826 -0
  2498. package/vendor/office2pdf/office2pdf_bg.wasm +4 -0
@@ -0,0 +1,3935 @@
1
+ /*! markdown-it 15.0.3 https://github.com/markdown-it/markdown-it @license MIT */
2
+ import * as mdurl from "mdurl";
3
+ import * as ucmicro from "uc.micro";
4
+ import { decodeHTMLStrict } from "entities";
5
+ import { LinkifyIt } from "linkify-it";
6
+ import punycode from "punycode.js";
7
+ //#region \0rolldown/runtime.js
8
+ var __defProp = Object.defineProperty;
9
+ var __exportAll = (all, no_symbols) => {
10
+ let target = {};
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
16
+ return target;
17
+ };
18
+ //#endregion
19
+ //#region src/common/utils.ts
20
+ /**
21
+ * Common utility functions exposed through `md.utils` for use by plugins.
22
+ *
23
+ * @module md.utils
24
+ */
25
+ var utils_exports = /* @__PURE__ */ __exportAll({
26
+ arrayReplaceAt: () => arrayReplaceAt,
27
+ asciiTrim: () => asciiTrim,
28
+ callable: () => callable,
29
+ escapeHtml: () => escapeHtml,
30
+ escapeRE: () => escapeRE,
31
+ fromCodePoint: () => fromCodePoint,
32
+ isMdAsciiPunct: () => isMdAsciiPunct,
33
+ isPunctChar: () => isPunctChar,
34
+ isPunctCharCode: () => isPunctCharCode,
35
+ isSpace: () => isSpace,
36
+ isValidEntityCode: () => isValidEntityCode,
37
+ isWhiteSpace: () => isWhiteSpace,
38
+ lib: () => lib,
39
+ normalizeReference: () => normalizeReference,
40
+ unescapeAll: () => unescapeAll,
41
+ unescapeMd: () => unescapeMd
42
+ });
43
+ function callable(cls) {
44
+ const wrapper = function(...args) {
45
+ return Reflect.construct(cls, args, new.target && new.target !== wrapper ? new.target : cls);
46
+ };
47
+ Object.defineProperty(wrapper, "name", { value: cls.name });
48
+ Object.setPrototypeOf(wrapper, cls);
49
+ wrapper.prototype = cls.prototype;
50
+ return wrapper;
51
+ }
52
+ /**
53
+ * Returns a copy of a token array with the token at `pos` replaced by
54
+ * `newElements`. Used to transform token streams without modifying the
55
+ * original array.
56
+ */
57
+ function arrayReplaceAt(src, pos, newElements) {
58
+ return [].concat(src.slice(0, pos), newElements, src.slice(pos + 1));
59
+ }
60
+ /** Checks whether a code point can be decoded from a numeric HTML entity. */
61
+ function isValidEntityCode(c) {
62
+ if (c >= 55296 && c <= 57343) return false;
63
+ if (c >= 64976 && c <= 65007) return false;
64
+ if ((c & 65535) === 65535 || (c & 65535) === 65534) return false;
65
+ if (c >= 0 && c <= 8) return false;
66
+ if (c === 11) return false;
67
+ if (c >= 14 && c <= 31) return false;
68
+ if (c >= 127 && c <= 159) return false;
69
+ if (c > 1114111) return false;
70
+ return true;
71
+ }
72
+ /**
73
+ * Converts a Unicode code point to a string, like `String.fromCodePoint()`,
74
+ * but does not throw for invalid input.
75
+ */
76
+ function fromCodePoint(c) {
77
+ if (c > 65535) {
78
+ c -= 65536;
79
+ const surrogate1 = 55296 + (c >> 10);
80
+ const surrogate2 = 56320 + (c & 1023);
81
+ return String.fromCharCode(surrogate1, surrogate2);
82
+ }
83
+ return String.fromCharCode(c);
84
+ }
85
+ var UNESCAPE_MD_RE = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g;
86
+ var UNESCAPE_ALL_RE = new RegExp(`${UNESCAPE_MD_RE.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`, "gi");
87
+ var DIGITAL_ENTITY_TEST_RE = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
88
+ function replaceEntityPattern(match, name) {
89
+ if (name.charCodeAt(0) === 35 && DIGITAL_ENTITY_TEST_RE.test(name)) {
90
+ const code = name[1].toLowerCase() === "x" ? parseInt(name.slice(2), 16) : parseInt(name.slice(1), 10);
91
+ if (isValidEntityCode(code)) return fromCodePoint(code);
92
+ return match;
93
+ }
94
+ const decoded = decodeHTMLStrict(match);
95
+ if (decoded !== match) return decoded;
96
+ return match;
97
+ }
98
+ /** Decodes Markdown backslash escapes. */
99
+ function unescapeMd(str) {
100
+ if (str.indexOf("\\") < 0) return str;
101
+ return str.replace(UNESCAPE_MD_RE, "$1");
102
+ }
103
+ /**
104
+ * Decodes Markdown backslash escapes and HTML character references in link
105
+ * destinations, link titles, and fenced code info strings.
106
+ */
107
+ function unescapeAll(str) {
108
+ if (str.indexOf("\\") < 0 && str.indexOf("&") < 0) return str;
109
+ return str.replace(UNESCAPE_ALL_RE, function(match, escaped, entity) {
110
+ if (escaped) return escaped;
111
+ return replaceEntityPattern(match, entity);
112
+ });
113
+ }
114
+ var HTML_ESCAPE_TEST_RE = /[&<>"]/;
115
+ var HTML_ESCAPE_REPLACE_RE = /[&<>"]/g;
116
+ var HTML_REPLACEMENTS = {
117
+ "&": "&amp;",
118
+ "<": "&lt;",
119
+ ">": "&gt;",
120
+ "\"": "&quot;"
121
+ };
122
+ function replaceUnsafeChar(ch) {
123
+ return HTML_REPLACEMENTS[ch];
124
+ }
125
+ /** Escapes HTML special characters in a string. */
126
+ function escapeHtml(str) {
127
+ if (HTML_ESCAPE_TEST_RE.test(str)) return str.replace(HTML_ESCAPE_REPLACE_RE, replaceUnsafeChar);
128
+ return str;
129
+ }
130
+ var REGEXP_ESCAPE_RE = /[.?*+^$[\]\\(){}|-]/g;
131
+ /** Escapes regular expression metacharacters in a string. */
132
+ function escapeRE(str) {
133
+ return str.replace(REGEXP_ESCAPE_RE, "\\$&");
134
+ }
135
+ /** Checks whether a character code is an ASCII space or tab. */
136
+ function isSpace(code) {
137
+ switch (code) {
138
+ case 9:
139
+ case 32: return true;
140
+ }
141
+ return false;
142
+ }
143
+ /**
144
+ * Checks whether a character code is whitespace recognized by Markdown.
145
+ *
146
+ * Matches the Unicode `Zs` category or `\t`, `\f`, `\v`, `\r`, `\n`.
147
+ */
148
+ function isWhiteSpace(code) {
149
+ if (code >= 8192 && code <= 8202) return true;
150
+ switch (code) {
151
+ case 9:
152
+ case 10:
153
+ case 11:
154
+ case 12:
155
+ case 13:
156
+ case 32:
157
+ case 160:
158
+ case 5760:
159
+ case 8239:
160
+ case 8287:
161
+ case 12288: return true;
162
+ }
163
+ return false;
164
+ }
165
+ /**
166
+ * Checks whether a character is Unicode punctuation or a symbol.
167
+ *
168
+ * Does not support astral characters.
169
+ */
170
+ function isPunctChar(ch) {
171
+ return ucmicro.P.test(ch) || ucmicro.S.test(ch);
172
+ }
173
+ /** Checks whether a Unicode code point is punctuation or a symbol. */
174
+ function isPunctCharCode(code) {
175
+ return isPunctChar(fromCodePoint(code));
176
+ }
177
+ /**
178
+ * Markdown ASCII punctuation characters.
179
+ *
180
+ * !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @,
181
+ * [, \, ], ^, _, `, {, |, }, or ~
182
+ *
183
+ * http://spec.commonmark.org/0.15/#ascii-punctuation-character
184
+ *
185
+ * Don't confuse with Unicode punctuation. It lacks some characters in the
186
+ * ASCII range.
187
+ */
188
+ function isMdAsciiPunct(ch) {
189
+ switch (ch) {
190
+ case 33:
191
+ case 34:
192
+ case 35:
193
+ case 36:
194
+ case 37:
195
+ case 38:
196
+ case 39:
197
+ case 40:
198
+ case 41:
199
+ case 42:
200
+ case 43:
201
+ case 44:
202
+ case 45:
203
+ case 46:
204
+ case 47:
205
+ case 58:
206
+ case 59:
207
+ case 60:
208
+ case 61:
209
+ case 62:
210
+ case 63:
211
+ case 64:
212
+ case 91:
213
+ case 92:
214
+ case 93:
215
+ case 94:
216
+ case 95:
217
+ case 96:
218
+ case 123:
219
+ case 124:
220
+ case 125:
221
+ case 126: return true;
222
+ default: return false;
223
+ }
224
+ }
225
+ /** Normalizes `[reference labels]` for case-insensitive lookup. */
226
+ function normalizeReference(str) {
227
+ str = str.trim().replace(/\s+/g, " ");
228
+ return str.toLowerCase().toUpperCase();
229
+ }
230
+ function isAsciiTrimmable(c) {
231
+ return c === 32 || c === 9 || c === 10 || c === 13;
232
+ }
233
+ /**
234
+ * "Light" `.trim()` for blocks (headings, paragraphs), where Unicode spaces
235
+ * should be preserved.
236
+ */
237
+ function asciiTrim(str) {
238
+ let start = 0;
239
+ for (; start < str.length; start++) if (!isAsciiTrimmable(str.charCodeAt(start))) break;
240
+ let end = str.length - 1;
241
+ for (; end >= start; end--) if (!isAsciiTrimmable(str.charCodeAt(end))) break;
242
+ return str.slice(start, end + 1);
243
+ }
244
+ /**
245
+ * Libraries commonly used by markdown-it and its plugins, re-exported to
246
+ * reduce duplicate dependencies in browser bundles.
247
+ */
248
+ var lib = {
249
+ mdurl,
250
+ ucmicro
251
+ };
252
+ //#endregion
253
+ //#region src/helpers/parse_link_label.ts
254
+ /** Finds the end of a link or image label (`[label]`). */
255
+ function parseLinkLabel(state, start, disableNested) {
256
+ let level, found, marker, prevPos;
257
+ const max = state.posMax;
258
+ const oldPos = state.pos;
259
+ state.pos = start + 1;
260
+ level = 1;
261
+ while (state.pos < max) {
262
+ marker = state.src.charCodeAt(state.pos);
263
+ if (marker === 93) {
264
+ level--;
265
+ if (level === 0) {
266
+ found = true;
267
+ break;
268
+ }
269
+ }
270
+ prevPos = state.pos;
271
+ state.md.inline.skipToken(state);
272
+ if (marker === 91) {
273
+ if (prevPos === state.pos - 1) level++;
274
+ else if (disableNested) {
275
+ state.pos = oldPos;
276
+ return -1;
277
+ }
278
+ }
279
+ }
280
+ let labelEnd = -1;
281
+ if (found) labelEnd = state.pos;
282
+ state.pos = oldPos;
283
+ return labelEnd;
284
+ }
285
+ //#endregion
286
+ //#region src/helpers/parse_link_destination.ts
287
+ /** Parses the destination in `[label](destination "title")`. */
288
+ function parseLinkDestination(str, start, max) {
289
+ let code;
290
+ let pos = start;
291
+ const result = {
292
+ ok: false,
293
+ pos: 0,
294
+ str: ""
295
+ };
296
+ if (str.charCodeAt(pos) === 60) {
297
+ pos++;
298
+ while (pos < max) {
299
+ code = str.charCodeAt(pos);
300
+ if (code === 10) return result;
301
+ if (code === 60) return result;
302
+ if (code === 62) {
303
+ result.pos = pos + 1;
304
+ result.str = unescapeAll(str.slice(start + 1, pos));
305
+ result.ok = true;
306
+ return result;
307
+ }
308
+ if (code === 92 && pos + 1 < max) {
309
+ pos += 2;
310
+ continue;
311
+ }
312
+ pos++;
313
+ }
314
+ return result;
315
+ }
316
+ let level = 0;
317
+ while (pos < max) {
318
+ code = str.charCodeAt(pos);
319
+ if (code === 32) break;
320
+ if (code < 32 || code === 127) break;
321
+ if (code === 92 && pos + 1 < max) {
322
+ if (str.charCodeAt(pos + 1) === 32) {
323
+ pos++;
324
+ continue;
325
+ }
326
+ pos += 2;
327
+ continue;
328
+ }
329
+ if (code === 40) {
330
+ level++;
331
+ if (level > 32) return result;
332
+ }
333
+ if (code === 41) {
334
+ if (level === 0) break;
335
+ level--;
336
+ }
337
+ pos++;
338
+ }
339
+ if (start === pos) return result;
340
+ if (level !== 0) return result;
341
+ result.str = unescapeAll(str.slice(start, pos));
342
+ result.pos = pos;
343
+ result.ok = true;
344
+ return result;
345
+ }
346
+ //#endregion
347
+ //#region src/helpers/parse_link_title.ts
348
+ /**
349
+ * Parses the optional title in `[label](destination "title")` or
350
+ * `[label]: destination "title"`.
351
+ *
352
+ * `prev_state` continues a reference title on the next source line.
353
+ */
354
+ function parseLinkTitle(str, start, max, prev_state) {
355
+ let code;
356
+ let pos = start;
357
+ const state = {
358
+ ok: false,
359
+ can_continue: false,
360
+ pos: 0,
361
+ str: "",
362
+ marker: 0
363
+ };
364
+ if (prev_state) {
365
+ state.str = prev_state.str;
366
+ state.marker = prev_state.marker;
367
+ } else {
368
+ if (pos >= max) return state;
369
+ let marker = str.charCodeAt(pos);
370
+ if (marker !== 34 && marker !== 39 && marker !== 40) return state;
371
+ start++;
372
+ pos++;
373
+ if (marker === 40) marker = 41;
374
+ state.marker = marker;
375
+ }
376
+ while (pos < max) {
377
+ code = str.charCodeAt(pos);
378
+ if (code === state.marker) {
379
+ state.pos = pos + 1;
380
+ state.str += unescapeAll(str.slice(start, pos));
381
+ state.ok = true;
382
+ return state;
383
+ } else if (code === 40 && state.marker === 41) return state;
384
+ else if (code === 92 && pos + 1 < max) pos++;
385
+ pos++;
386
+ }
387
+ state.can_continue = true;
388
+ state.str += unescapeAll(str.slice(start, pos));
389
+ return state;
390
+ }
391
+ //#endregion
392
+ //#region src/helpers/index.ts
393
+ /**
394
+ * Functions used to parse links and images, split out of parser rules because
395
+ * of their size.
396
+ *
397
+ * @module md.helpers
398
+ */
399
+ var helpers_exports = /* @__PURE__ */ __exportAll({
400
+ parseLinkDestination: () => parseLinkDestination,
401
+ parseLinkLabel: () => parseLinkLabel,
402
+ parseLinkTitle: () => parseLinkTitle
403
+ });
404
+ //#endregion
405
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
406
+ function _typeof(o) {
407
+ "@babel/helpers - typeof";
408
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
409
+ return typeof o;
410
+ } : function(o) {
411
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
412
+ }, _typeof(o);
413
+ }
414
+ //#endregion
415
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
416
+ function toPrimitive(t, r) {
417
+ if ("object" != _typeof(t) || !t) return t;
418
+ var e = t[Symbol.toPrimitive];
419
+ if (void 0 !== e) {
420
+ var i = e.call(t, r || "default");
421
+ if ("object" != _typeof(i)) return i;
422
+ throw new TypeError("@@toPrimitive must return a primitive value.");
423
+ }
424
+ return ("string" === r ? String : Number)(t);
425
+ }
426
+ //#endregion
427
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
428
+ function toPropertyKey(t) {
429
+ var i = toPrimitive(t, "string");
430
+ return "symbol" == _typeof(i) ? i : i + "";
431
+ }
432
+ //#endregion
433
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
434
+ function _defineProperty(e, r, t) {
435
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
436
+ value: t,
437
+ enumerable: !0,
438
+ configurable: !0,
439
+ writable: !0
440
+ }) : e[r] = t, e;
441
+ }
442
+ //#endregion
443
+ //#region src/token.ts
444
+ /**
445
+ * Represents one item in the parsed token stream, storing parsed data and
446
+ * providing helpers for managing HTML attributes.
447
+ */
448
+ var Token = class {
449
+ constructor(type, tag, nesting) {
450
+ _defineProperty(
451
+ this,
452
+ /**
453
+ * Source map info. Format: `[ line_begin, line_end ]`
454
+ */
455
+ "map",
456
+ null
457
+ );
458
+ _defineProperty(
459
+ this,
460
+ /**
461
+ * nesting level, the same as `state.level`
462
+ */
463
+ "level",
464
+ 0
465
+ );
466
+ _defineProperty(
467
+ this,
468
+ /**
469
+ * An array of child nodes (inline and img tokens)
470
+ */
471
+ "children",
472
+ null
473
+ );
474
+ _defineProperty(
475
+ this,
476
+ /**
477
+ * In a case of self-closing tag (code, html, fence, etc.),
478
+ * it has contents of this tag.
479
+ */
480
+ "content",
481
+ ""
482
+ );
483
+ _defineProperty(
484
+ this,
485
+ /**
486
+ * '*' or '_' for emphasis, fence string for fence, etc.
487
+ */
488
+ "markup",
489
+ ""
490
+ );
491
+ _defineProperty(
492
+ this,
493
+ /**
494
+ * Additional information:
495
+ *
496
+ * - Info string for "fence" tokens
497
+ * - The value "auto" for autolink "link_open" and "link_close" tokens
498
+ * - The string value of the item marker for ordered-list "list_item_open" tokens
499
+ */
500
+ "info",
501
+ ""
502
+ );
503
+ _defineProperty(
504
+ this,
505
+ /**
506
+ * True for block-level tokens, false for inline tokens.
507
+ * Used in renderer to calculate line breaks
508
+ */
509
+ "block",
510
+ false
511
+ );
512
+ _defineProperty(
513
+ this,
514
+ /**
515
+ * If it's true, ignore this element when rendering. Used for tight lists
516
+ * to hide paragraphs.
517
+ */
518
+ "hidden",
519
+ false
520
+ );
521
+ this.type = type;
522
+ this.tag = tag;
523
+ this.attrs = null;
524
+ this.nesting = nesting;
525
+ this.meta = null;
526
+ }
527
+ /**
528
+ * Search attribute index by name.
529
+ */
530
+ attrIndex(name) {
531
+ if (!this.attrs) return -1;
532
+ const attrs = this.attrs;
533
+ for (let i = 0, len = attrs.length; i < len; i++) if (attrs[i][0] === name) return i;
534
+ return -1;
535
+ }
536
+ /**
537
+ * Add `[ name, value ]` attribute to list. Init attrs if necessary
538
+ */
539
+ attrPush(attrData) {
540
+ if (this.attrs) this.attrs.push(attrData);
541
+ else this.attrs = [attrData];
542
+ }
543
+ /**
544
+ * Set `name` attribute to `value`. Override old value if exists.
545
+ */
546
+ attrSet(name, value) {
547
+ const idx = this.attrIndex(name);
548
+ const attrData = [name, value];
549
+ if (idx < 0) this.attrPush(attrData);
550
+ else this.attrs[idx] = attrData;
551
+ }
552
+ /**
553
+ * Get the value of attribute `name`, or null if it does not exist.
554
+ */
555
+ attrGet(name) {
556
+ const idx = this.attrIndex(name);
557
+ let value = null;
558
+ if (idx >= 0) value = this.attrs[idx][1];
559
+ return value;
560
+ }
561
+ /**
562
+ * Join value to existing attribute via space. Or create new attribute if not
563
+ * exists. Useful to operate with token classes.
564
+ */
565
+ attrJoin(name, value) {
566
+ const idx = this.attrIndex(name);
567
+ if (idx < 0) this.attrPush([name, value]);
568
+ else this.attrs[idx][1] = `${this.attrs[idx][1]} ${value}`;
569
+ }
570
+ };
571
+ //#endregion
572
+ //#region src/ruler.ts
573
+ /**
574
+ * Helper class, used by {@link MarkdownIt.core}, {@link MarkdownIt.block} and
575
+ * {@link MarkdownIt.inline} to manage sequences of functions (rules):
576
+ *
577
+ * - keep rules in defined order
578
+ * - assign the name to each rule
579
+ * - enable/disable rules
580
+ * - add/replace rules
581
+ * - allow assign rules to additional named chains (in the same)
582
+ * - cacheing lists of active rules
583
+ *
584
+ * You will not need use this class directly until write plugins. For simple
585
+ * rules control use {@link MarkdownIt.disable}, {@link MarkdownIt.enable} and
586
+ * {@link MarkdownIt.use}.
587
+ */
588
+ var Ruler = class {
589
+ constructor() {
590
+ _defineProperty(
591
+ this,
592
+ /** @internal */
593
+ "__rules__",
594
+ []
595
+ );
596
+ _defineProperty(
597
+ this,
598
+ /** @internal */
599
+ "__cache__",
600
+ null
601
+ );
602
+ }
603
+ /** @internal */
604
+ __find__(name) {
605
+ for (let i = 0; i < this.__rules__.length; i++) if (this.__rules__[i].name === name) return i;
606
+ return -1;
607
+ }
608
+ /** @internal */
609
+ __compile__() {
610
+ const chains = /* @__PURE__ */ new Set();
611
+ this.__rules__.forEach((rule) => {
612
+ if (!rule.enabled) return;
613
+ rule.alt.forEach((altName) => {
614
+ if (altName) chains.add(altName);
615
+ });
616
+ });
617
+ this.__cache__ = Object.create(null);
618
+ this.__cache__[""] = [];
619
+ this.__rules__.forEach((rule) => {
620
+ if (rule.enabled) this.__cache__[""].push(rule.fn);
621
+ });
622
+ chains.forEach((chain) => {
623
+ this.__cache__[chain] = [];
624
+ this.__rules__.forEach((rule) => {
625
+ if (rule.enabled && rule.alt.indexOf(chain) >= 0) this.__cache__[chain].push(rule.fn);
626
+ });
627
+ });
628
+ }
629
+ /**
630
+ * Replace rule by name with new function & options. Throws error if name not
631
+ * found.
632
+ *
633
+ * @example Replace existing typographer replacement rule with new one
634
+ * ```javascript
635
+ * import MarkdownIt from 'markdown-it'
636
+ * const md = new MarkdownIt()
637
+ *
638
+ * md.core.ruler.at('replacements', function replace(state) {
639
+ * //...
640
+ * });
641
+ * ```
642
+ */
643
+ at(name, fn, options = {}) {
644
+ const index = this.__find__(name);
645
+ if (index === -1) throw new Error(`Parser rule not found: ${name}`);
646
+ this.__rules__[index].fn = fn;
647
+ this.__rules__[index].alt = options.alt || [];
648
+ this.__cache__ = null;
649
+ }
650
+ /**
651
+ * Add new rule to chain before one with given name. See also
652
+ * {@link Ruler.after}, {@link Ruler.push}.
653
+ *
654
+ * @example
655
+ * ```javascript
656
+ * import MarkdownIt from 'markdown-it'
657
+ * const md = new MarkdownIt()
658
+ *
659
+ * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
660
+ * //...
661
+ * });
662
+ * ```
663
+ */
664
+ before(beforeName, ruleName, fn, options = {}) {
665
+ const index = this.__find__(beforeName);
666
+ if (index === -1) throw new Error(`Parser rule not found: ${beforeName}`);
667
+ this.__rules__.splice(index, 0, {
668
+ name: ruleName,
669
+ enabled: true,
670
+ fn,
671
+ alt: options.alt || []
672
+ });
673
+ this.__cache__ = null;
674
+ }
675
+ /**
676
+ * Add new rule to chain after one with given name. See also
677
+ * {@link Ruler.before}, {@link Ruler.push}.
678
+ *
679
+ * @example
680
+ * ```javascript
681
+ * import MarkdownIt from 'markdown-it'
682
+ * const md = new MarkdownIt()
683
+ *
684
+ * md.inline.ruler.after('text', 'my_rule', function replace(state) {
685
+ * //...
686
+ * });
687
+ * ```
688
+ */
689
+ after(afterName, ruleName, fn, options = {}) {
690
+ const index = this.__find__(afterName);
691
+ if (index === -1) throw new Error(`Parser rule not found: ${afterName}`);
692
+ this.__rules__.splice(index + 1, 0, {
693
+ name: ruleName,
694
+ enabled: true,
695
+ fn,
696
+ alt: options.alt || []
697
+ });
698
+ this.__cache__ = null;
699
+ }
700
+ /**
701
+ * Push new rule to the end of chain. See also
702
+ * {@link Ruler.before}, {@link Ruler.after}.
703
+ *
704
+ * @example
705
+ * ```javascript
706
+ * import MarkdownIt from 'markdown-it'
707
+ * const md = new MarkdownIt()
708
+ *
709
+ * md.core.ruler.push('my_rule', function replace(state) {
710
+ * //...
711
+ * });
712
+ * ```
713
+ */
714
+ push(ruleName, fn, options = {}) {
715
+ this.__rules__.push({
716
+ name: ruleName,
717
+ enabled: true,
718
+ fn,
719
+ alt: options.alt || []
720
+ });
721
+ this.__cache__ = null;
722
+ }
723
+ /**
724
+ * Enable rules with given names. If any rule name not found - throw Error.
725
+ * Errors can be disabled by second param.
726
+ *
727
+ * See also {@link Ruler.disable}, {@link Ruler.enableOnly}.
728
+ *
729
+ * Returns list of found rule names (if no exception happened).
730
+ */
731
+ enable(list, ignoreInvalid = false) {
732
+ if (!Array.isArray(list)) list = [list];
733
+ const result = [];
734
+ list.forEach((name) => {
735
+ const idx = this.__find__(name);
736
+ if (idx < 0) {
737
+ if (ignoreInvalid) return;
738
+ throw new Error(`Rules manager: invalid rule name ${name}`);
739
+ }
740
+ this.__rules__[idx].enabled = true;
741
+ result.push(name);
742
+ });
743
+ this.__cache__ = null;
744
+ return result;
745
+ }
746
+ /**
747
+ * Enable rules with given names, and disable everything else. If any rule name
748
+ * not found - throw Error. Errors can be disabled by second param.
749
+ *
750
+ * See also {@link Ruler.disable}, {@link Ruler.enable}.
751
+ */
752
+ enableOnly(list, ignoreInvalid = false) {
753
+ if (!Array.isArray(list)) list = [list];
754
+ this.__rules__.forEach((rule) => {
755
+ rule.enabled = false;
756
+ });
757
+ this.enable(list, ignoreInvalid);
758
+ }
759
+ /**
760
+ * Disable rules with given names. If any rule name not found - throw Error.
761
+ * Errors can be disabled by second param.
762
+ *
763
+ * See also {@link Ruler.enable}, {@link Ruler.enableOnly}.
764
+ *
765
+ * Returns list of found rule names (if no exception happened).
766
+ */
767
+ disable(list, ignoreInvalid = false) {
768
+ if (!Array.isArray(list)) list = [list];
769
+ const result = [];
770
+ list.forEach((name) => {
771
+ const idx = this.__find__(name);
772
+ if (idx < 0) {
773
+ if (ignoreInvalid) return;
774
+ throw new Error(`Rules manager: invalid rule name ${name}`);
775
+ }
776
+ this.__rules__[idx].enabled = false;
777
+ result.push(name);
778
+ });
779
+ this.__cache__ = null;
780
+ return result;
781
+ }
782
+ /**
783
+ * Return array of active functions (rules) for given chain name. It analyzes
784
+ * rules configuration, compiles caches if not exists and returns result.
785
+ *
786
+ * Default chain name is `''` (empty string). It can't be skipped. That's
787
+ * done intentionally, to keep signature monomorphic for high speed.
788
+ */
789
+ getRules(chainName) {
790
+ if (!this.__cache__) this.__compile__();
791
+ return this.__cache__[chainName] || [];
792
+ }
793
+ };
794
+ //#endregion
795
+ //#region src/renderer.ts
796
+ var default_rules = {};
797
+ default_rules.code_inline = function(tokens, idx, options, env, slf) {
798
+ const token = tokens[idx];
799
+ return `<code${slf.renderAttrs(token)}>${escapeHtml(token.content)}</code>`;
800
+ };
801
+ default_rules.code_block = function(tokens, idx, options, env, slf) {
802
+ const token = tokens[idx];
803
+ return `<pre${slf.renderAttrs(token)}><code>${escapeHtml(tokens[idx].content)}</code></pre>\n`;
804
+ };
805
+ default_rules.fence = function(tokens, idx, options, env, slf) {
806
+ const token = tokens[idx];
807
+ const info = token.info ? unescapeAll(token.info).trim() : "";
808
+ let langName = "";
809
+ let langAttrs = "";
810
+ if (info) {
811
+ const arr = info.split(/(\s+)/g);
812
+ langName = arr[0];
813
+ langAttrs = arr.slice(2).join("");
814
+ }
815
+ let highlighted;
816
+ if (options.highlight) highlighted = options.highlight(token.content, langName, langAttrs) || escapeHtml(token.content);
817
+ else highlighted = escapeHtml(token.content);
818
+ if (highlighted.indexOf("<pre") === 0) return highlighted + "\n";
819
+ if (info) {
820
+ const i = token.attrIndex("class");
821
+ const tmpAttrs = token.attrs ? token.attrs.slice() : [];
822
+ if (i < 0) tmpAttrs.push(["class", `${options.langPrefix}${langName}`]);
823
+ else {
824
+ tmpAttrs[i] = [tmpAttrs[i][0], tmpAttrs[i][1]];
825
+ tmpAttrs[i][1] += ` ${options.langPrefix}${langName}`;
826
+ }
827
+ const tmpToken = { attrs: tmpAttrs };
828
+ return `<pre><code${slf.renderAttrs(tmpToken)}>${highlighted}</code></pre>\n`;
829
+ }
830
+ return `<pre><code${slf.renderAttrs(token)}>${highlighted}</code></pre>\n`;
831
+ };
832
+ default_rules.image = function(tokens, idx, options, env, slf) {
833
+ const token = tokens[idx];
834
+ token.attrs[token.attrIndex("alt")][1] = slf.renderInlineAsText(token.children, options, env);
835
+ return slf.renderToken(tokens, idx, options);
836
+ };
837
+ default_rules.hardbreak = function(tokens, idx, options) {
838
+ return options.xhtmlOut ? "<br />\n" : "<br>\n";
839
+ };
840
+ default_rules.softbreak = function(tokens, idx, options) {
841
+ return options.breaks ? options.xhtmlOut ? "<br />\n" : "<br>\n" : "\n";
842
+ };
843
+ default_rules.text = function(tokens, idx) {
844
+ return escapeHtml(tokens[idx].content);
845
+ };
846
+ default_rules.html_block = function(tokens, idx) {
847
+ return tokens[idx].content;
848
+ };
849
+ default_rules.html_inline = function(tokens, idx) {
850
+ return tokens[idx].content;
851
+ };
852
+ /**
853
+ * Generates HTML from parsed token stream. Each instance has independent
854
+ * copy of rules. Those can be rewritten with ease. Also, you can add new
855
+ * rules if you create plugin and adds new token types.
856
+ *
857
+ * Creates new renderer instance and fills {@link Renderer.rules} with defaults.
858
+ */
859
+ var Renderer = class {
860
+ constructor() {
861
+ _defineProperty(
862
+ this,
863
+ /**
864
+ * Contains render rules for tokens. Can be updated and extended.
865
+ *
866
+ * See [source code](https://github.com/markdown-it/markdown-it/blob/master/src/renderer.ts)
867
+ * for more details and examples.
868
+ *
869
+ * @example Custom render rules
870
+ * ```javascript
871
+ * import MarkdownIt from 'markdown-it'
872
+ * const md = new MarkdownIt()
873
+ *
874
+ * md.renderer.rules.strong_open = function () { return '<b>'; };
875
+ * md.renderer.rules.strong_close = function () { return '</b>'; };
876
+ *
877
+ * const result = md.renderInline(...);
878
+ * ```
879
+ *
880
+ * @example Each rule is called as independent static function with fixed signature
881
+ * ```javascript
882
+ * function my_token_render(tokens, idx, options, env, renderer) {
883
+ * // ...
884
+ * return renderedHTML;
885
+ * }
886
+ * ```
887
+ */
888
+ "rules",
889
+ Object.assign({}, default_rules)
890
+ );
891
+ }
892
+ /**
893
+ * Render token attributes to string.
894
+ */
895
+ renderAttrs(token) {
896
+ let i, l, result;
897
+ if (!token.attrs) return "";
898
+ result = "";
899
+ for (i = 0, l = token.attrs.length; i < l; i++) result += ` ${escapeHtml(token.attrs[i][0])}="${escapeHtml(String(token.attrs[i][1]))}"`;
900
+ return result;
901
+ }
902
+ /**
903
+ * Default token renderer. Can be overriden by custom function
904
+ * in {@link Renderer.rules}.
905
+ */
906
+ renderToken(tokens, idx, options) {
907
+ const token = tokens[idx];
908
+ let result = "";
909
+ if (token.hidden) return "";
910
+ let prev = idx - 1;
911
+ while (prev >= 0 && tokens[prev].hidden && tokens[prev].nesting === 0) prev--;
912
+ if (token.block && token.nesting !== -1 && prev >= 0 && tokens[prev].hidden && tokens[prev].nesting === -1) result += "\n";
913
+ result += (token.nesting === -1 ? "</" : "<") + token.tag;
914
+ result += this.renderAttrs(token);
915
+ if (token.nesting === 0 && options.xhtmlOut) result += " /";
916
+ let needLf = false;
917
+ if (token.block) {
918
+ needLf = true;
919
+ if (token.nesting === 1) {
920
+ let next = idx + 1;
921
+ while (next < tokens.length && tokens[next].hidden && tokens[next].nesting === 0) next++;
922
+ if (next < tokens.length) {
923
+ const nextToken = tokens[next];
924
+ if (nextToken.type === "inline" || nextToken.hidden) needLf = false;
925
+ else if (nextToken.nesting === -1 && nextToken.tag === token.tag) needLf = false;
926
+ }
927
+ }
928
+ }
929
+ result += needLf ? ">\n" : ">";
930
+ return result;
931
+ }
932
+ /**
933
+ * The same as {@link Renderer.render}, but for single token of `inline` type.
934
+ */
935
+ renderInline(tokens, options, env) {
936
+ let result = "";
937
+ const rules = this.rules;
938
+ for (let i = 0, len = tokens.length; i < len; i++) {
939
+ const type = tokens[i].type;
940
+ if (typeof rules[type] !== "undefined") result += rules[type](tokens, i, options, env, this);
941
+ else result += this.renderToken(tokens, i, options);
942
+ }
943
+ return result;
944
+ }
945
+ /**
946
+ * Special kludge for image `alt` attributes to conform CommonMark spec.
947
+ * Don't try to use it! Spec requires to show `alt` content with stripped markup,
948
+ * instead of simple escaping.
949
+ */
950
+ renderInlineAsText(tokens, options, env) {
951
+ let result = "";
952
+ for (let i = 0, len = tokens.length; i < len; i++) switch (tokens[i].type) {
953
+ case "text":
954
+ case "code_inline":
955
+ result += tokens[i].content;
956
+ break;
957
+ case "image":
958
+ result += this.renderInlineAsText(tokens[i].children, options, env);
959
+ break;
960
+ case "html_inline":
961
+ case "html_block":
962
+ result += tokens[i].content;
963
+ break;
964
+ case "softbreak":
965
+ case "hardbreak": result += "\n";
966
+ }
967
+ return result;
968
+ }
969
+ /**
970
+ * Takes token stream and generates HTML. Probably, you will never need to call
971
+ * this method directly.
972
+ */
973
+ render(tokens, options, env) {
974
+ let result = "";
975
+ const rules = this.rules;
976
+ for (let i = 0, len = tokens.length; i < len; i++) {
977
+ const type = tokens[i].type;
978
+ if (type === "inline") result += this.renderInline(tokens[i].children, options, env);
979
+ else if (typeof rules[type] !== "undefined") result += rules[type](tokens, i, options, env, this);
980
+ else result += this.renderToken(tokens, i, options);
981
+ }
982
+ return result;
983
+ }
984
+ };
985
+ //#endregion
986
+ //#region src/rules_core/state_core.ts
987
+ /** Mutable state passed through the core rules chain. */
988
+ var StateCore = class {
989
+ constructor(src, md, env) {
990
+ _defineProperty(this, "tokens", []);
991
+ _defineProperty(this, "inlineMode", false);
992
+ _defineProperty(this, "Token", Token);
993
+ this.src = src;
994
+ this.env = env;
995
+ this.md = md;
996
+ }
997
+ };
998
+ //#endregion
999
+ //#region src/rules_core/normalize.ts
1000
+ var UNNORMALIZED_NEWLINE_RE = /\r\n?/g;
1001
+ var NULL_RE = /\0/g;
1002
+ function normalize(state) {
1003
+ let str;
1004
+ str = state.src.replace(UNNORMALIZED_NEWLINE_RE, "\n");
1005
+ str = str.replace(NULL_RE, "�");
1006
+ state.src = str;
1007
+ }
1008
+ //#endregion
1009
+ //#region src/rules_core/block.ts
1010
+ function block(state) {
1011
+ let token;
1012
+ if (state.inlineMode) {
1013
+ token = new state.Token("inline", "", 0);
1014
+ token.content = state.src;
1015
+ token.map = [0, 1];
1016
+ token.children = [];
1017
+ state.tokens.push(token);
1018
+ } else state.md.block.parse(state.src, state.md, state.env, state.tokens);
1019
+ }
1020
+ //#endregion
1021
+ //#region src/rules_core/strip_references.ts
1022
+ function strip_references(state) {
1023
+ const tokens = state.tokens;
1024
+ let last = 0;
1025
+ for (let curr = 0; curr < tokens.length; curr++) {
1026
+ if (tokens[curr].type === "reference_definition") continue;
1027
+ if (curr !== last) tokens[last] = tokens[curr];
1028
+ last++;
1029
+ }
1030
+ if (tokens.length !== last) tokens.length = last;
1031
+ }
1032
+ //#endregion
1033
+ //#region src/rules_core/inline.ts
1034
+ function inline(state) {
1035
+ const tokens = state.tokens;
1036
+ for (let i = 0, l = tokens.length; i < l; i++) {
1037
+ const tok = tokens[i];
1038
+ if (tok.type === "inline") state.md.inline.parse(tok.content, state.md, state.env, tok.children);
1039
+ }
1040
+ }
1041
+ //#endregion
1042
+ //#region src/rules_core/linkify.ts
1043
+ function isLinkOpen$1(str) {
1044
+ return /^<a[>\s]/i.test(str);
1045
+ }
1046
+ function isLinkClose$1(str) {
1047
+ return /^<\/a\s*>/i.test(str);
1048
+ }
1049
+ function linkify$1(state) {
1050
+ const blockTokens = state.tokens;
1051
+ if (!state.md.options.linkify) return;
1052
+ for (let j = 0, l = blockTokens.length; j < l; j++) {
1053
+ if (blockTokens[j].type !== "inline" || !state.md.linkify.test(blockTokens[j].content)) continue;
1054
+ const tokens = blockTokens[j].children;
1055
+ const replacements = [];
1056
+ let htmlLinkLevel = 0;
1057
+ for (let i = tokens.length - 1; i >= 0; i--) {
1058
+ const currentToken = tokens[i];
1059
+ if (currentToken.type === "link_close") {
1060
+ i--;
1061
+ while (tokens[i].level !== currentToken.level && tokens[i].type !== "link_open") i--;
1062
+ continue;
1063
+ }
1064
+ if (currentToken.type === "html_inline") {
1065
+ if (isLinkOpen$1(currentToken.content) && htmlLinkLevel > 0) htmlLinkLevel--;
1066
+ if (isLinkClose$1(currentToken.content)) htmlLinkLevel++;
1067
+ }
1068
+ if (htmlLinkLevel > 0) continue;
1069
+ if (currentToken.type === "text" && state.md.linkify.test(currentToken.content)) {
1070
+ const text = currentToken.content;
1071
+ let links = state.md.linkify.match(text);
1072
+ const nodes = [];
1073
+ let level = currentToken.level;
1074
+ let lastPos = 0;
1075
+ if (links.length > 0 && links[0].index === 0 && i > 0 && tokens[i - 1].type === "text_special") links = links.slice(1);
1076
+ for (let ln = 0; ln < links.length; ln++) {
1077
+ const url = links[ln].url;
1078
+ const fullUrl = state.md.normalizeLink(url);
1079
+ if (!state.md.validateLink(fullUrl)) continue;
1080
+ let urlText = links[ln].text;
1081
+ if (!links[ln].schema) urlText = state.md.normalizeLinkText(`http://${urlText}`).replace(/^http:\/\//, "");
1082
+ else if (links[ln].schema === "mailto:" && !/^mailto:/i.test(urlText)) urlText = state.md.normalizeLinkText(`mailto:${urlText}`).replace(/^mailto:/, "");
1083
+ else urlText = state.md.normalizeLinkText(urlText);
1084
+ const pos = links[ln].index;
1085
+ if (pos > lastPos) {
1086
+ const token = new state.Token("text", "", 0);
1087
+ token.content = text.slice(lastPos, pos);
1088
+ token.level = level;
1089
+ nodes.push(token);
1090
+ }
1091
+ const token_o = new state.Token("link_open", "a", 1);
1092
+ token_o.attrs = [["href", fullUrl]];
1093
+ token_o.level = level++;
1094
+ token_o.markup = "linkify";
1095
+ token_o.info = "auto";
1096
+ nodes.push(token_o);
1097
+ const token_t = new state.Token("text", "", 0);
1098
+ token_t.content = urlText;
1099
+ token_t.level = level;
1100
+ nodes.push(token_t);
1101
+ const token_c = new state.Token("link_close", "a", -1);
1102
+ token_c.level = --level;
1103
+ token_c.markup = "linkify";
1104
+ token_c.info = "auto";
1105
+ nodes.push(token_c);
1106
+ lastPos = links[ln].lastIndex;
1107
+ }
1108
+ if (lastPos < text.length) {
1109
+ const token = new state.Token("text", "", 0);
1110
+ token.content = text.slice(lastPos);
1111
+ token.level = level;
1112
+ nodes.push(token);
1113
+ }
1114
+ replacements.push({
1115
+ index: i,
1116
+ nodes
1117
+ });
1118
+ }
1119
+ }
1120
+ if (replacements.length > 0) {
1121
+ let newTokensLength = tokens.length;
1122
+ for (const replacement of replacements) newTokensLength += replacement.nodes.length - 1;
1123
+ const newTokens = new Array(newTokensLength);
1124
+ let replacementIndex = 0;
1125
+ let newTokenIndex = 0;
1126
+ replacements.reverse();
1127
+ for (let i = 0; i < tokens.length; i++) {
1128
+ const replacement = replacements[replacementIndex];
1129
+ if ((replacement === null || replacement === void 0 ? void 0 : replacement.index) === i) {
1130
+ for (const node of replacement.nodes) newTokens[newTokenIndex++] = node;
1131
+ replacementIndex++;
1132
+ } else newTokens[newTokenIndex++] = tokens[i];
1133
+ }
1134
+ blockTokens[j].children = newTokens;
1135
+ }
1136
+ }
1137
+ }
1138
+ //#endregion
1139
+ //#region src/rules_core/replacements.ts
1140
+ var RARE_RE = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/;
1141
+ var SCOPED_ABBR_TEST_RE = /\((c|tm|r)\)/i;
1142
+ var SCOPED_ABBR_RE = /\((c|tm|r)\)/gi;
1143
+ var SCOPED_ABBR = {
1144
+ c: "©",
1145
+ r: "®",
1146
+ tm: "™"
1147
+ };
1148
+ function replaceFn(match, name) {
1149
+ return SCOPED_ABBR[name.toLowerCase()];
1150
+ }
1151
+ function replace_scoped(inlineTokens) {
1152
+ let inside_autolink = 0;
1153
+ for (let i = inlineTokens.length - 1; i >= 0; i--) {
1154
+ const token = inlineTokens[i];
1155
+ if (token.type === "text" && !inside_autolink) token.content = token.content.replace(SCOPED_ABBR_RE, replaceFn);
1156
+ if (token.type === "link_open" && token.info === "auto") inside_autolink--;
1157
+ if (token.type === "link_close" && token.info === "auto") inside_autolink++;
1158
+ }
1159
+ }
1160
+ function replace_rare(inlineTokens) {
1161
+ let inside_autolink = 0;
1162
+ for (let i = inlineTokens.length - 1; i >= 0; i--) {
1163
+ const token = inlineTokens[i];
1164
+ if (token.type === "text" && !inside_autolink) {
1165
+ if (RARE_RE.test(token.content)) token.content = token.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/gm, "$1—").replace(/(^|\s)--(?=\s|$)/gm, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm, "$1–");
1166
+ }
1167
+ if (token.type === "link_open" && token.info === "auto") inside_autolink--;
1168
+ if (token.type === "link_close" && token.info === "auto") inside_autolink++;
1169
+ }
1170
+ }
1171
+ function replace(state) {
1172
+ let blkIdx;
1173
+ if (!state.md.options.typographer) return;
1174
+ for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
1175
+ if (state.tokens[blkIdx].type !== "inline") continue;
1176
+ if (SCOPED_ABBR_TEST_RE.test(state.tokens[blkIdx].content)) replace_scoped(state.tokens[blkIdx].children);
1177
+ if (RARE_RE.test(state.tokens[blkIdx].content)) replace_rare(state.tokens[blkIdx].children);
1178
+ }
1179
+ }
1180
+ //#endregion
1181
+ //#region src/rules_core/smartquotes.ts
1182
+ var QUOTE_TEST_RE = /['"]/;
1183
+ var QUOTE_RE = /['"]/g;
1184
+ var APOSTROPHE = "’";
1185
+ var MAX_OPENERS = 1e3;
1186
+ function truncateStack(stack, heads, length) {
1187
+ while (stack.length > length) {
1188
+ const item = stack.pop();
1189
+ if (item.isSingleQuote) heads.single = item.prevSameQuoteIdx;
1190
+ else heads.double = item.prevSameQuoteIdx;
1191
+ }
1192
+ }
1193
+ function addReplacement(replacements, tokenIdx, pos, ch) {
1194
+ if (!replacements[tokenIdx]) replacements[tokenIdx] = [];
1195
+ replacements[tokenIdx].push({
1196
+ pos,
1197
+ ch
1198
+ });
1199
+ }
1200
+ function applyReplacements(str, replacements) {
1201
+ let result = "";
1202
+ let lastPos = 0;
1203
+ replacements.sort((a, b) => a.pos - b.pos);
1204
+ for (let i = 0; i < replacements.length; i++) {
1205
+ const replacement = replacements[i];
1206
+ result += str.slice(lastPos, replacement.pos) + replacement.ch;
1207
+ lastPos = replacement.pos + 1;
1208
+ }
1209
+ return result + str.slice(lastPos);
1210
+ }
1211
+ function process_inlines(tokens, state) {
1212
+ let j;
1213
+ const stack = [];
1214
+ const heads = {
1215
+ single: -1,
1216
+ double: -1
1217
+ };
1218
+ const replacements = {};
1219
+ for (let i = 0; i < tokens.length; i++) {
1220
+ const token = tokens[i];
1221
+ const thisLevel = tokens[i].level;
1222
+ for (j = stack.length - 1; j >= 0; j--) if (stack[j].level <= thisLevel) break;
1223
+ truncateStack(stack, heads, j + 1);
1224
+ if (token.type !== "text") continue;
1225
+ const text = token.content;
1226
+ let pos = 0;
1227
+ const max = text.length;
1228
+ OUTER: while (pos < max) {
1229
+ QUOTE_RE.lastIndex = pos;
1230
+ const t = QUOTE_RE.exec(text);
1231
+ if (!t) break;
1232
+ let canOpen = true;
1233
+ let canClose = true;
1234
+ pos = t.index + 1;
1235
+ const isSingle = t[0] === "'";
1236
+ let lastChar = 32;
1237
+ if (t.index - 1 >= 0) lastChar = text.charCodeAt(t.index - 1);
1238
+ else for (j = i - 1; j >= 0; j--) {
1239
+ if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
1240
+ if (!tokens[j].content) continue;
1241
+ lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);
1242
+ break;
1243
+ }
1244
+ let nextChar = 32;
1245
+ if (pos < max) nextChar = text.charCodeAt(pos);
1246
+ else for (j = i + 1; j < tokens.length; j++) {
1247
+ if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
1248
+ if (!tokens[j].content) continue;
1249
+ nextChar = tokens[j].content.charCodeAt(0);
1250
+ break;
1251
+ }
1252
+ const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctCharCode(lastChar);
1253
+ const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctCharCode(nextChar);
1254
+ const isLastWhiteSpace = isWhiteSpace(lastChar);
1255
+ const isNextWhiteSpace = isWhiteSpace(nextChar);
1256
+ if (isNextWhiteSpace) canOpen = false;
1257
+ else if (isNextPunctChar) {
1258
+ if (!(isLastWhiteSpace || isLastPunctChar)) canOpen = false;
1259
+ }
1260
+ if (isLastWhiteSpace) canClose = false;
1261
+ else if (isLastPunctChar) {
1262
+ if (!(isNextWhiteSpace || isNextPunctChar)) canClose = false;
1263
+ }
1264
+ if (nextChar === 34 && t[0] === "\"") {
1265
+ if (lastChar >= 48 && lastChar <= 57) canClose = canOpen = false;
1266
+ }
1267
+ if (canOpen && canClose) {
1268
+ canOpen = isLastPunctChar;
1269
+ canClose = isNextPunctChar;
1270
+ }
1271
+ if (!canOpen && !canClose) {
1272
+ if (isSingle) addReplacement(replacements, i, t.index, APOSTROPHE);
1273
+ continue;
1274
+ }
1275
+ if (canClose) {
1276
+ j = isSingle ? heads.single : heads.double;
1277
+ if (j >= 0 && stack[j].level === thisLevel) {
1278
+ const item = stack[j];
1279
+ let openQuote;
1280
+ let closeQuote;
1281
+ if (isSingle) {
1282
+ openQuote = state.md.options.quotes[2];
1283
+ closeQuote = state.md.options.quotes[3];
1284
+ } else {
1285
+ openQuote = state.md.options.quotes[0];
1286
+ closeQuote = state.md.options.quotes[1];
1287
+ }
1288
+ addReplacement(replacements, i, t.index, closeQuote);
1289
+ addReplacement(replacements, item.tokenIdx, item.contentPos, openQuote);
1290
+ truncateStack(stack, heads, j);
1291
+ continue OUTER;
1292
+ }
1293
+ }
1294
+ if (canOpen) {
1295
+ if (stack.length >= MAX_OPENERS) return;
1296
+ stack.push({
1297
+ tokenIdx: i,
1298
+ contentPos: t.index,
1299
+ isSingleQuote: isSingle,
1300
+ level: thisLevel,
1301
+ prevSameQuoteIdx: isSingle ? heads.single : heads.double
1302
+ });
1303
+ if (isSingle) heads.single = stack.length - 1;
1304
+ else heads.double = stack.length - 1;
1305
+ } else if (canClose && isSingle) addReplacement(replacements, i, t.index, APOSTROPHE);
1306
+ }
1307
+ }
1308
+ Object.keys(replacements).forEach(function(tokenIdx) {
1309
+ const idx = Number(tokenIdx);
1310
+ tokens[idx].content = applyReplacements(tokens[idx].content, replacements[tokenIdx]);
1311
+ });
1312
+ }
1313
+ function smartquotes(state) {
1314
+ if (!state.md.options.typographer) return;
1315
+ for (let blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
1316
+ if (state.tokens[blkIdx].type !== "inline" || !QUOTE_TEST_RE.test(state.tokens[blkIdx].content)) continue;
1317
+ process_inlines(state.tokens[blkIdx].children, state);
1318
+ }
1319
+ }
1320
+ //#endregion
1321
+ //#region src/rules_core/text_join.ts
1322
+ function join_alt(tokens) {
1323
+ let curr, last;
1324
+ const max = tokens.length;
1325
+ for (curr = 0; curr < max; curr++) if (tokens[curr].type === "text_special") tokens[curr].type = "text";
1326
+ for (curr = last = 0; curr < max; curr++) if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
1327
+ else {
1328
+ if (curr !== last) tokens[last] = tokens[curr];
1329
+ last++;
1330
+ }
1331
+ if (curr !== last) tokens.length = last;
1332
+ }
1333
+ function text_join(state) {
1334
+ let curr, last;
1335
+ const blockTokens = state.tokens;
1336
+ const l = blockTokens.length;
1337
+ for (let j = 0; j < l; j++) {
1338
+ if (blockTokens[j].type !== "inline") continue;
1339
+ const tokens = blockTokens[j].children;
1340
+ const max = tokens.length;
1341
+ for (curr = 0; curr < max; curr++) {
1342
+ if (tokens[curr].type === "text_special") tokens[curr].type = "text";
1343
+ if (tokens[curr].children) join_alt(tokens[curr].children);
1344
+ }
1345
+ for (curr = last = 0; curr < max; curr++) if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
1346
+ else {
1347
+ if (curr !== last) tokens[last] = tokens[curr];
1348
+ last++;
1349
+ }
1350
+ if (curr !== last) tokens.length = last;
1351
+ }
1352
+ }
1353
+ //#endregion
1354
+ //#region src/parser_core.ts
1355
+ var _rules$2 = [
1356
+ ["normalize", normalize],
1357
+ ["block", block],
1358
+ ["strip_references", strip_references],
1359
+ ["inline", inline],
1360
+ ["linkify", linkify$1],
1361
+ ["replacements", replace],
1362
+ ["smartquotes", smartquotes],
1363
+ ["text_join", text_join]
1364
+ ];
1365
+ /**
1366
+ * Top-level rules executor. Glues block/inline parsers and does intermediate
1367
+ * transformations.
1368
+ */
1369
+ var ParserCore = class {
1370
+ constructor() {
1371
+ _defineProperty(
1372
+ this,
1373
+ /**
1374
+ * {@link Ruler} instance. Keep configuration of core rules.
1375
+ */
1376
+ "ruler",
1377
+ new Ruler()
1378
+ );
1379
+ _defineProperty(this, "State", StateCore);
1380
+ for (let i = 0; i < _rules$2.length; i++) this.ruler.push(_rules$2[i][0], _rules$2[i][1]);
1381
+ }
1382
+ /**
1383
+ * Executes core chain rules.
1384
+ */
1385
+ process(state) {
1386
+ const rules = this.ruler.getRules("");
1387
+ for (let i = 0, l = rules.length; i < l; i++) rules[i](state);
1388
+ }
1389
+ };
1390
+ //#endregion
1391
+ //#region src/rules_block/state_block.ts
1392
+ /** Mutable state passed to block rules while tokenizing a source document. */
1393
+ var StateBlock = class {
1394
+ constructor(src, md, env, tokens) {
1395
+ _defineProperty(this, "bMarks", []);
1396
+ _defineProperty(this, "eMarks", []);
1397
+ _defineProperty(this, "tShift", []);
1398
+ _defineProperty(this, "sCount", []);
1399
+ _defineProperty(this, "bsCount", []);
1400
+ _defineProperty(this, "blkIndent", 0);
1401
+ _defineProperty(this, "line", 0);
1402
+ _defineProperty(this, "lineMax", 0);
1403
+ _defineProperty(this, "tight", false);
1404
+ _defineProperty(this, "listIndent", -1);
1405
+ _defineProperty(this, "parentType", "root");
1406
+ _defineProperty(this, "level", 0);
1407
+ _defineProperty(this, "Token", Token);
1408
+ this.src = src;
1409
+ this.md = md;
1410
+ this.env = env;
1411
+ this.tokens = tokens;
1412
+ const s = this.src;
1413
+ for (let start = 0, pos = 0, indent = 0, offset = 0, len = s.length, indent_found = false; pos < len; pos++) {
1414
+ const ch = s.charCodeAt(pos);
1415
+ if (!indent_found) {
1416
+ if (isSpace(ch)) {
1417
+ indent++;
1418
+ if (ch === 9) offset += 4 - offset % 4;
1419
+ else offset++;
1420
+ continue;
1421
+ } else indent_found = true;
1422
+ }
1423
+ if (ch === 10 || pos === len - 1) {
1424
+ if (ch !== 10) pos++;
1425
+ this.bMarks.push(start);
1426
+ this.eMarks.push(pos);
1427
+ this.tShift.push(indent);
1428
+ this.sCount.push(offset);
1429
+ this.bsCount.push(0);
1430
+ indent_found = false;
1431
+ indent = 0;
1432
+ offset = 0;
1433
+ start = pos + 1;
1434
+ }
1435
+ }
1436
+ this.bMarks.push(s.length);
1437
+ this.eMarks.push(s.length);
1438
+ this.tShift.push(0);
1439
+ this.sCount.push(0);
1440
+ this.bsCount.push(0);
1441
+ this.lineMax = this.bMarks.length - 1;
1442
+ }
1443
+ push(type, tag, nesting) {
1444
+ const token = new Token(type, tag, nesting);
1445
+ token.block = true;
1446
+ if (nesting < 0) this.level--;
1447
+ token.level = this.level;
1448
+ if (nesting > 0) this.level++;
1449
+ this.tokens.push(token);
1450
+ return token;
1451
+ }
1452
+ isEmpty(line) {
1453
+ return this.bMarks[line] + this.tShift[line] >= this.eMarks[line];
1454
+ }
1455
+ skipEmptyLines(from) {
1456
+ for (let max = this.lineMax; from < max; from++) if (this.bMarks[from] + this.tShift[from] < this.eMarks[from]) break;
1457
+ return from;
1458
+ }
1459
+ skipSpaces(pos) {
1460
+ for (let max = this.src.length; pos < max; pos++) if (!isSpace(this.src.charCodeAt(pos))) break;
1461
+ return pos;
1462
+ }
1463
+ skipSpacesBack(pos, min) {
1464
+ if (pos <= min) return pos;
1465
+ while (pos > min) if (!isSpace(this.src.charCodeAt(--pos))) return pos + 1;
1466
+ return pos;
1467
+ }
1468
+ skipChars(pos, code) {
1469
+ for (let max = this.src.length; pos < max; pos++) if (this.src.charCodeAt(pos) !== code) break;
1470
+ return pos;
1471
+ }
1472
+ skipCharsBack(pos, code, min) {
1473
+ if (pos <= min) return pos;
1474
+ while (pos > min) if (code !== this.src.charCodeAt(--pos)) return pos + 1;
1475
+ return pos;
1476
+ }
1477
+ getLines(begin, end, indent, keepLastLF) {
1478
+ if (begin >= end) return "";
1479
+ const queue = new Array(end - begin);
1480
+ for (let i = 0, line = begin; line < end; line++, i++) {
1481
+ let lineIndent = 0;
1482
+ const lineStart = this.bMarks[line];
1483
+ let first = lineStart;
1484
+ let last;
1485
+ if (line + 1 < end || keepLastLF) last = this.eMarks[line] + 1;
1486
+ else last = this.eMarks[line];
1487
+ while (first < last && lineIndent < indent) {
1488
+ const ch = this.src.charCodeAt(first);
1489
+ if (isSpace(ch)) {
1490
+ if (ch === 9) lineIndent += 4 - (lineIndent + this.bsCount[line]) % 4;
1491
+ else lineIndent++;
1492
+ } else if (first - lineStart < this.tShift[line]) lineIndent++;
1493
+ else break;
1494
+ first++;
1495
+ }
1496
+ if (lineIndent > indent) queue[i] = new Array(lineIndent - indent + 1).join(" ") + this.src.slice(first, last);
1497
+ else queue[i] = this.src.slice(first, last);
1498
+ }
1499
+ return queue.join("");
1500
+ }
1501
+ };
1502
+ //#endregion
1503
+ //#region src/rules_block/table.ts
1504
+ var MAX_AUTOCOMPLETED_CELLS = 65536;
1505
+ function getLine(state, line) {
1506
+ const pos = state.bMarks[line] + state.tShift[line];
1507
+ const max = state.eMarks[line];
1508
+ return state.src.slice(pos, max);
1509
+ }
1510
+ function escapedSplit(str) {
1511
+ const result = [];
1512
+ const max = str.length;
1513
+ let pos = 0;
1514
+ let ch = str.charCodeAt(pos);
1515
+ let isEscaped = false;
1516
+ let lastPos = 0;
1517
+ let current = "";
1518
+ while (pos < max) {
1519
+ if (ch === 124) {
1520
+ if (!isEscaped) {
1521
+ result.push(current + str.substring(lastPos, pos));
1522
+ current = "";
1523
+ lastPos = pos + 1;
1524
+ } else {
1525
+ current += str.substring(lastPos, pos - 1);
1526
+ lastPos = pos;
1527
+ }
1528
+ }
1529
+ isEscaped = ch === 92;
1530
+ pos++;
1531
+ ch = str.charCodeAt(pos);
1532
+ }
1533
+ result.push(current + str.substring(lastPos));
1534
+ return result;
1535
+ }
1536
+ function table(state, startLine, endLine, silent) {
1537
+ if (startLine + 2 > endLine) return false;
1538
+ let nextLine = startLine + 1;
1539
+ if (state.sCount[nextLine] < state.blkIndent) return false;
1540
+ if (state.sCount[nextLine] - state.blkIndent >= 4) return false;
1541
+ let pos = state.bMarks[nextLine] + state.tShift[nextLine];
1542
+ if (pos >= state.eMarks[nextLine]) return false;
1543
+ const firstCh = state.src.charCodeAt(pos++);
1544
+ if (firstCh !== 124 && firstCh !== 45 && firstCh !== 58) return false;
1545
+ if (pos >= state.eMarks[nextLine]) return false;
1546
+ const secondCh = state.src.charCodeAt(pos++);
1547
+ if (secondCh !== 124 && secondCh !== 45 && secondCh !== 58 && !isSpace(secondCh)) return false;
1548
+ if (firstCh === 45 && isSpace(secondCh)) return false;
1549
+ while (pos < state.eMarks[nextLine]) {
1550
+ const ch = state.src.charCodeAt(pos);
1551
+ if (ch !== 124 && ch !== 45 && ch !== 58 && !isSpace(ch)) return false;
1552
+ pos++;
1553
+ }
1554
+ let lineText = getLine(state, startLine + 1);
1555
+ let columns = lineText.split("|");
1556
+ const aligns = [];
1557
+ for (let i = 0; i < columns.length; i++) {
1558
+ const t = columns[i].trim();
1559
+ if (!t) {
1560
+ if (i === 0 || i === columns.length - 1) continue;
1561
+ else return false;
1562
+ }
1563
+ if (!/^:?-+:?$/.test(t)) return false;
1564
+ if (t.charCodeAt(t.length - 1) === 58) aligns.push(t.charCodeAt(0) === 58 ? "center" : "right");
1565
+ else if (t.charCodeAt(0) === 58) aligns.push("left");
1566
+ else aligns.push("");
1567
+ }
1568
+ lineText = getLine(state, startLine).trim();
1569
+ if (lineText.indexOf("|") === -1) return false;
1570
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
1571
+ columns = escapedSplit(lineText);
1572
+ if (columns.length && columns[0] === "") columns.shift();
1573
+ if (columns.length && columns[columns.length - 1] === "") columns.pop();
1574
+ const columnCount = columns.length;
1575
+ if (columnCount === 0 || columnCount !== aligns.length) return false;
1576
+ if (silent) return true;
1577
+ const oldParentType = state.parentType;
1578
+ state.parentType = "table";
1579
+ const terminatorRules = state.md.block.ruler.getRules("blockquote");
1580
+ const token_to = state.push("table_open", "table", 1);
1581
+ const tableLines = [startLine, 0];
1582
+ token_to.map = tableLines;
1583
+ const token_tho = state.push("thead_open", "thead", 1);
1584
+ token_tho.map = [startLine, startLine + 1];
1585
+ const token_htro = state.push("tr_open", "tr", 1);
1586
+ token_htro.map = [startLine, startLine + 1];
1587
+ for (let i = 0; i < columns.length; i++) {
1588
+ const token_ho = state.push("th_open", "th", 1);
1589
+ if (aligns[i]) token_ho.attrs = [["style", `text-align:${aligns[i]}`]];
1590
+ const token_il = state.push("inline", "", 0);
1591
+ token_il.content = columns[i].trim();
1592
+ token_il.children = [];
1593
+ state.push("th_close", "th", -1);
1594
+ }
1595
+ state.push("tr_close", "tr", -1);
1596
+ state.push("thead_close", "thead", -1);
1597
+ let tbodyLines;
1598
+ let autocompletedCells = 0;
1599
+ for (nextLine = startLine + 2; nextLine < endLine; nextLine++) {
1600
+ if (state.sCount[nextLine] < state.blkIndent) break;
1601
+ let terminate = false;
1602
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
1603
+ terminate = true;
1604
+ break;
1605
+ }
1606
+ if (terminate) break;
1607
+ lineText = getLine(state, nextLine).trim();
1608
+ if (!lineText) break;
1609
+ if (state.sCount[nextLine] - state.blkIndent >= 4) break;
1610
+ columns = escapedSplit(lineText);
1611
+ if (columns.length && columns[0] === "") columns.shift();
1612
+ if (columns.length && columns[columns.length - 1] === "") columns.pop();
1613
+ autocompletedCells += columnCount - columns.length;
1614
+ if (autocompletedCells > MAX_AUTOCOMPLETED_CELLS) break;
1615
+ if (nextLine === startLine + 2) {
1616
+ const token_tbo = state.push("tbody_open", "tbody", 1);
1617
+ token_tbo.map = tbodyLines = [startLine + 2, 0];
1618
+ }
1619
+ const token_tro = state.push("tr_open", "tr", 1);
1620
+ token_tro.map = [nextLine, nextLine + 1];
1621
+ for (let i = 0; i < columnCount; i++) {
1622
+ const token_tdo = state.push("td_open", "td", 1);
1623
+ if (aligns[i]) token_tdo.attrs = [["style", `text-align:${aligns[i]}`]];
1624
+ const token_il = state.push("inline", "", 0);
1625
+ token_il.content = columns[i] ? columns[i].trim() : "";
1626
+ token_il.children = [];
1627
+ state.push("td_close", "td", -1);
1628
+ }
1629
+ state.push("tr_close", "tr", -1);
1630
+ }
1631
+ if (tbodyLines) {
1632
+ state.push("tbody_close", "tbody", -1);
1633
+ tbodyLines[1] = nextLine;
1634
+ }
1635
+ state.push("table_close", "table", -1);
1636
+ tableLines[1] = nextLine;
1637
+ state.parentType = oldParentType;
1638
+ state.line = nextLine;
1639
+ return true;
1640
+ }
1641
+ //#endregion
1642
+ //#region src/rules_block/code.ts
1643
+ function code(state, startLine, endLine) {
1644
+ if (state.sCount[startLine] - state.blkIndent < 4) return false;
1645
+ let nextLine = startLine + 1;
1646
+ let last = nextLine;
1647
+ while (nextLine < endLine) {
1648
+ if (state.isEmpty(nextLine)) {
1649
+ nextLine++;
1650
+ continue;
1651
+ }
1652
+ if (state.sCount[nextLine] - state.blkIndent >= 4) {
1653
+ nextLine++;
1654
+ last = nextLine;
1655
+ continue;
1656
+ }
1657
+ break;
1658
+ }
1659
+ state.line = last;
1660
+ const token = state.push("code_block", "code", 0);
1661
+ token.content = state.getLines(startLine, last, 4 + state.blkIndent, false) + "\n";
1662
+ token.map = [startLine, state.line];
1663
+ return true;
1664
+ }
1665
+ //#endregion
1666
+ //#region src/rules_block/fence.ts
1667
+ function fence(state, startLine, endLine, silent) {
1668
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
1669
+ let max = state.eMarks[startLine];
1670
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
1671
+ if (pos + 3 > max) return false;
1672
+ const marker = state.src.charCodeAt(pos);
1673
+ if (marker !== 126 && marker !== 96) return false;
1674
+ let mem = pos;
1675
+ pos = state.skipChars(pos, marker);
1676
+ let len = pos - mem;
1677
+ if (len < 3) return false;
1678
+ const markup = state.src.slice(mem, pos);
1679
+ const params = state.src.slice(pos, max);
1680
+ if (marker === 96) {
1681
+ if (params.indexOf(String.fromCharCode(marker)) >= 0) return false;
1682
+ }
1683
+ if (silent) return true;
1684
+ let nextLine = startLine;
1685
+ let haveEndMarker = false;
1686
+ for (;;) {
1687
+ nextLine++;
1688
+ if (nextLine >= endLine) break;
1689
+ pos = mem = state.bMarks[nextLine] + state.tShift[nextLine];
1690
+ max = state.eMarks[nextLine];
1691
+ if (pos < max && state.sCount[nextLine] < state.blkIndent) break;
1692
+ if (state.src.charCodeAt(pos) !== marker) continue;
1693
+ if (state.sCount[nextLine] - state.blkIndent >= 4) continue;
1694
+ pos = state.skipChars(pos, marker);
1695
+ if (pos - mem < len) continue;
1696
+ pos = state.skipSpaces(pos);
1697
+ if (pos < max) continue;
1698
+ haveEndMarker = true;
1699
+ break;
1700
+ }
1701
+ len = state.sCount[startLine];
1702
+ state.line = nextLine + (haveEndMarker ? 1 : 0);
1703
+ const token = state.push("fence", "code", 0);
1704
+ token.info = params;
1705
+ token.content = state.getLines(startLine + 1, nextLine, len, true);
1706
+ token.markup = markup;
1707
+ token.map = [startLine, state.line];
1708
+ return true;
1709
+ }
1710
+ //#endregion
1711
+ //#region src/rules_block/blockquote.ts
1712
+ function blockquote(state, startLine, endLine, silent) {
1713
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
1714
+ let max = state.eMarks[startLine];
1715
+ const oldLineMax = state.lineMax;
1716
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
1717
+ if (state.src.charCodeAt(pos) !== 62) return false;
1718
+ if (silent) return true;
1719
+ const oldBMarks = [];
1720
+ const oldBSCount = [];
1721
+ const oldSCount = [];
1722
+ const oldTShift = [];
1723
+ const terminatorRules = state.md.block.ruler.getRules("blockquote");
1724
+ const oldParentType = state.parentType;
1725
+ state.parentType = "blockquote";
1726
+ let lastLineEmpty = false;
1727
+ let nextLine;
1728
+ for (nextLine = startLine; nextLine < endLine; nextLine++) {
1729
+ const isOutdented = state.sCount[nextLine] < state.blkIndent;
1730
+ pos = state.bMarks[nextLine] + state.tShift[nextLine];
1731
+ max = state.eMarks[nextLine];
1732
+ if (pos >= max) break;
1733
+ if (state.src.charCodeAt(pos++) === 62 && !isOutdented) {
1734
+ let initial = state.sCount[nextLine] + 1;
1735
+ let spaceAfterMarker;
1736
+ let adjustTab;
1737
+ if (state.src.charCodeAt(pos) === 32) {
1738
+ pos++;
1739
+ initial++;
1740
+ adjustTab = false;
1741
+ spaceAfterMarker = true;
1742
+ } else if (state.src.charCodeAt(pos) === 9) {
1743
+ spaceAfterMarker = true;
1744
+ if ((state.bsCount[nextLine] + initial) % 4 === 3) {
1745
+ pos++;
1746
+ initial++;
1747
+ adjustTab = false;
1748
+ } else adjustTab = true;
1749
+ } else spaceAfterMarker = false;
1750
+ let offset = initial;
1751
+ oldBMarks.push(state.bMarks[nextLine]);
1752
+ state.bMarks[nextLine] = pos;
1753
+ while (pos < max) {
1754
+ const ch = state.src.charCodeAt(pos);
1755
+ if (isSpace(ch)) {
1756
+ if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine] + (adjustTab ? 1 : 0)) % 4;
1757
+ else offset++;
1758
+ } else break;
1759
+ pos++;
1760
+ }
1761
+ lastLineEmpty = pos >= max;
1762
+ oldBSCount.push(state.bsCount[nextLine]);
1763
+ state.bsCount[nextLine] = state.sCount[nextLine] + 1 + (spaceAfterMarker ? 1 : 0);
1764
+ oldSCount.push(state.sCount[nextLine]);
1765
+ state.sCount[nextLine] = offset - initial;
1766
+ oldTShift.push(state.tShift[nextLine]);
1767
+ state.tShift[nextLine] = pos - state.bMarks[nextLine];
1768
+ continue;
1769
+ }
1770
+ if (lastLineEmpty) break;
1771
+ let terminate = false;
1772
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
1773
+ terminate = true;
1774
+ break;
1775
+ }
1776
+ if (terminate) {
1777
+ state.lineMax = nextLine;
1778
+ if (state.blkIndent !== 0) {
1779
+ oldBMarks.push(state.bMarks[nextLine]);
1780
+ oldBSCount.push(state.bsCount[nextLine]);
1781
+ oldTShift.push(state.tShift[nextLine]);
1782
+ oldSCount.push(state.sCount[nextLine]);
1783
+ state.sCount[nextLine] -= state.blkIndent;
1784
+ }
1785
+ break;
1786
+ }
1787
+ oldBMarks.push(state.bMarks[nextLine]);
1788
+ oldBSCount.push(state.bsCount[nextLine]);
1789
+ oldTShift.push(state.tShift[nextLine]);
1790
+ oldSCount.push(state.sCount[nextLine]);
1791
+ state.sCount[nextLine] = -1;
1792
+ }
1793
+ const oldIndent = state.blkIndent;
1794
+ state.blkIndent = 0;
1795
+ const token_o = state.push("blockquote_open", "blockquote", 1);
1796
+ token_o.markup = ">";
1797
+ const lines = [startLine, 0];
1798
+ token_o.map = lines;
1799
+ state.md.block.tokenize(state, startLine, nextLine);
1800
+ const token_c = state.push("blockquote_close", "blockquote", -1);
1801
+ token_c.markup = ">";
1802
+ state.lineMax = oldLineMax;
1803
+ state.parentType = oldParentType;
1804
+ lines[1] = state.line;
1805
+ for (let i = 0; i < oldTShift.length; i++) {
1806
+ state.bMarks[i + startLine] = oldBMarks[i];
1807
+ state.tShift[i + startLine] = oldTShift[i];
1808
+ state.sCount[i + startLine] = oldSCount[i];
1809
+ state.bsCount[i + startLine] = oldBSCount[i];
1810
+ }
1811
+ state.blkIndent = oldIndent;
1812
+ return true;
1813
+ }
1814
+ //#endregion
1815
+ //#region src/rules_block/hr.ts
1816
+ function hr(state, startLine, endLine, silent) {
1817
+ const max = state.eMarks[startLine];
1818
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
1819
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
1820
+ const marker = state.src.charCodeAt(pos++);
1821
+ if (marker !== 42 && marker !== 45 && marker !== 95) return false;
1822
+ let cnt = 1;
1823
+ while (pos < max) {
1824
+ const ch = state.src.charCodeAt(pos++);
1825
+ if (ch !== marker && !isSpace(ch)) return false;
1826
+ if (ch === marker) cnt++;
1827
+ }
1828
+ if (cnt < 3) return false;
1829
+ if (silent) return true;
1830
+ state.line = startLine + 1;
1831
+ const token = state.push("hr", "hr", 0);
1832
+ token.map = [startLine, state.line];
1833
+ token.markup = Array(cnt + 1).join(String.fromCharCode(marker));
1834
+ return true;
1835
+ }
1836
+ //#endregion
1837
+ //#region src/rules_block/list.ts
1838
+ function skipBulletListMarker(state, startLine) {
1839
+ const max = state.eMarks[startLine];
1840
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
1841
+ const marker = state.src.charCodeAt(pos++);
1842
+ if (marker !== 42 && marker !== 45 && marker !== 43) return -1;
1843
+ if (pos < max) {
1844
+ if (!isSpace(state.src.charCodeAt(pos))) return -1;
1845
+ }
1846
+ return pos;
1847
+ }
1848
+ function skipOrderedListMarker(state, startLine) {
1849
+ const start = state.bMarks[startLine] + state.tShift[startLine];
1850
+ const max = state.eMarks[startLine];
1851
+ let pos = start;
1852
+ if (pos + 1 >= max) return -1;
1853
+ let ch = state.src.charCodeAt(pos++);
1854
+ if (ch < 48 || ch > 57) return -1;
1855
+ for (;;) {
1856
+ if (pos >= max) return -1;
1857
+ ch = state.src.charCodeAt(pos++);
1858
+ if (ch >= 48 && ch <= 57) {
1859
+ if (pos - start >= 10) return -1;
1860
+ continue;
1861
+ }
1862
+ if (ch === 41 || ch === 46) break;
1863
+ return -1;
1864
+ }
1865
+ if (pos < max) {
1866
+ ch = state.src.charCodeAt(pos);
1867
+ if (!isSpace(ch)) return -1;
1868
+ }
1869
+ return pos;
1870
+ }
1871
+ function markTightParagraphs(state, idx) {
1872
+ const level = state.level + 2;
1873
+ for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) if (state.tokens[i].level === level && state.tokens[i].type === "paragraph_open") {
1874
+ state.tokens[i + 2].hidden = true;
1875
+ state.tokens[i].hidden = true;
1876
+ i += 2;
1877
+ }
1878
+ }
1879
+ function list(state, startLine, endLine, silent) {
1880
+ let max, pos, start, token;
1881
+ let nextLine = startLine;
1882
+ let tight = true;
1883
+ if (state.sCount[nextLine] - state.blkIndent >= 4) return false;
1884
+ if (state.listIndent >= 0 && state.sCount[nextLine] - state.listIndent >= 4 && state.sCount[nextLine] < state.blkIndent) return false;
1885
+ let isTerminatingParagraph = false;
1886
+ if (silent && state.parentType === "paragraph") {
1887
+ if (state.sCount[nextLine] >= state.blkIndent) isTerminatingParagraph = true;
1888
+ }
1889
+ let isOrdered;
1890
+ let markerValue;
1891
+ let posAfterMarker;
1892
+ if ((posAfterMarker = skipOrderedListMarker(state, nextLine)) >= 0) {
1893
+ isOrdered = true;
1894
+ start = state.bMarks[nextLine] + state.tShift[nextLine];
1895
+ markerValue = Number(state.src.slice(start, posAfterMarker - 1));
1896
+ if (isTerminatingParagraph && markerValue !== 1) return false;
1897
+ } else if ((posAfterMarker = skipBulletListMarker(state, nextLine)) >= 0) isOrdered = false;
1898
+ else return false;
1899
+ if (isTerminatingParagraph) {
1900
+ if (state.skipSpaces(posAfterMarker) >= state.eMarks[nextLine]) return false;
1901
+ }
1902
+ if (silent) return true;
1903
+ const markerCharCode = state.src.charCodeAt(posAfterMarker - 1);
1904
+ const listTokIdx = state.tokens.length;
1905
+ if (isOrdered) {
1906
+ token = state.push("ordered_list_open", "ol", 1);
1907
+ if (markerValue !== 1) token.attrs = [["start", markerValue]];
1908
+ } else token = state.push("bullet_list_open", "ul", 1);
1909
+ const listLines = [nextLine, 0];
1910
+ token.map = listLines;
1911
+ token.markup = String.fromCharCode(markerCharCode);
1912
+ let prevEmptyEnd = false;
1913
+ const terminatorRules = state.md.block.ruler.getRules("list");
1914
+ const oldParentType = state.parentType;
1915
+ state.parentType = "list";
1916
+ while (nextLine < endLine) {
1917
+ pos = posAfterMarker;
1918
+ max = state.eMarks[nextLine];
1919
+ const initial = state.sCount[nextLine] + posAfterMarker - (state.bMarks[nextLine] + state.tShift[nextLine]);
1920
+ let offset = initial;
1921
+ while (pos < max) {
1922
+ const ch = state.src.charCodeAt(pos);
1923
+ if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine]) % 4;
1924
+ else if (ch === 32) offset++;
1925
+ else break;
1926
+ pos++;
1927
+ }
1928
+ const contentStart = pos;
1929
+ let indentAfterMarker;
1930
+ if (contentStart >= max) indentAfterMarker = 1;
1931
+ else indentAfterMarker = offset - initial;
1932
+ if (indentAfterMarker > 4) indentAfterMarker = 1;
1933
+ const indent = initial + indentAfterMarker;
1934
+ token = state.push("list_item_open", "li", 1);
1935
+ token.markup = String.fromCharCode(markerCharCode);
1936
+ const itemLines = [nextLine, 0];
1937
+ token.map = itemLines;
1938
+ if (isOrdered) token.info = state.src.slice(start, posAfterMarker - 1);
1939
+ const oldTight = state.tight;
1940
+ const oldTShift = state.tShift[nextLine];
1941
+ const oldSCount = state.sCount[nextLine];
1942
+ const oldListIndent = state.listIndent;
1943
+ state.listIndent = state.blkIndent;
1944
+ state.blkIndent = indent;
1945
+ state.tight = true;
1946
+ state.tShift[nextLine] = contentStart - state.bMarks[nextLine];
1947
+ state.sCount[nextLine] = offset;
1948
+ if (contentStart >= max && state.isEmpty(nextLine + 1)) state.line = Math.min(state.line + 2, endLine);
1949
+ else state.md.block.tokenize(state, nextLine, endLine);
1950
+ if (!state.tight || prevEmptyEnd) tight = false;
1951
+ prevEmptyEnd = state.line - nextLine > 1 && state.isEmpty(state.line - 1);
1952
+ state.blkIndent = state.listIndent;
1953
+ state.listIndent = oldListIndent;
1954
+ state.tShift[nextLine] = oldTShift;
1955
+ state.sCount[nextLine] = oldSCount;
1956
+ state.tight = oldTight;
1957
+ token = state.push("list_item_close", "li", -1);
1958
+ token.markup = String.fromCharCode(markerCharCode);
1959
+ nextLine = state.line;
1960
+ itemLines[1] = nextLine;
1961
+ if (nextLine >= endLine) break;
1962
+ if (state.sCount[nextLine] < state.blkIndent) break;
1963
+ if (state.sCount[nextLine] - state.blkIndent >= 4) break;
1964
+ let terminate = false;
1965
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
1966
+ terminate = true;
1967
+ break;
1968
+ }
1969
+ if (terminate) break;
1970
+ if (isOrdered) {
1971
+ posAfterMarker = skipOrderedListMarker(state, nextLine);
1972
+ if (posAfterMarker < 0) break;
1973
+ start = state.bMarks[nextLine] + state.tShift[nextLine];
1974
+ } else {
1975
+ posAfterMarker = skipBulletListMarker(state, nextLine);
1976
+ if (posAfterMarker < 0) break;
1977
+ }
1978
+ if (markerCharCode !== state.src.charCodeAt(posAfterMarker - 1)) break;
1979
+ }
1980
+ if (isOrdered) token = state.push("ordered_list_close", "ol", -1);
1981
+ else token = state.push("bullet_list_close", "ul", -1);
1982
+ token.markup = String.fromCharCode(markerCharCode);
1983
+ listLines[1] = nextLine;
1984
+ state.line = nextLine;
1985
+ state.parentType = oldParentType;
1986
+ if (tight) markTightParagraphs(state, listTokIdx);
1987
+ return true;
1988
+ }
1989
+ //#endregion
1990
+ //#region src/rules_block/reference.ts
1991
+ var MAX_LABEL_LENGTH = 999;
1992
+ function countCodePoints(str) {
1993
+ let length = str.length;
1994
+ for (let i = 0; i < str.length - 1; i++) {
1995
+ const high = str.charCodeAt(i);
1996
+ if (high < 55296 || high > 56319) continue;
1997
+ const low = str.charCodeAt(i + 1);
1998
+ if (low >= 56320 && low <= 57343) {
1999
+ length--;
2000
+ i++;
2001
+ }
2002
+ }
2003
+ return length;
2004
+ }
2005
+ function lineEnd(state, line) {
2006
+ return Math.min(state.eMarks[line] + 1, state.src.length);
2007
+ }
2008
+ function getNextLinePos(state, nextLine) {
2009
+ const endLine = state.lineMax;
2010
+ if (nextLine >= endLine || state.isEmpty(nextLine)) return -1;
2011
+ let isContinuation = false;
2012
+ if (state.sCount[nextLine] - state.blkIndent > 3) isContinuation = true;
2013
+ if (state.sCount[nextLine] < 0) isContinuation = true;
2014
+ if (!isContinuation) {
2015
+ const terminatorRules = state.md.block.ruler.getRules("reference");
2016
+ const oldParentType = state.parentType;
2017
+ state.parentType = "reference";
2018
+ let terminate = false;
2019
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
2020
+ terminate = true;
2021
+ break;
2022
+ }
2023
+ state.parentType = oldParentType;
2024
+ if (terminate) return -1;
2025
+ }
2026
+ return state.bMarks[nextLine] + state.tShift[nextLine];
2027
+ }
2028
+ function reference(state, startLine, _endLine, silent) {
2029
+ const src = state.src;
2030
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
2031
+ let nextLine = startLine + 1;
2032
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
2033
+ if (src.charCodeAt(pos) !== 91) return false;
2034
+ let max = lineEnd(state, startLine);
2035
+ let rawLabel = "";
2036
+ let labelEnd = -1;
2037
+ let segmentStart = ++pos;
2038
+ while (pos < max) {
2039
+ if (rawLabel.length + pos - segmentStart > MAX_LABEL_LENGTH * 2) return false;
2040
+ let ch = src.charCodeAt(pos);
2041
+ if (ch === 91) return false;
2042
+ if (ch === 93) {
2043
+ labelEnd = pos;
2044
+ break;
2045
+ }
2046
+ if (ch === 92) ch = src.charCodeAt(++pos);
2047
+ if (ch === 10 && pos < max) {
2048
+ const nextPos = getNextLinePos(state, nextLine);
2049
+ if (nextPos < 0) return false;
2050
+ rawLabel += src.slice(segmentStart, max);
2051
+ pos = segmentStart = nextPos;
2052
+ max = lineEnd(state, nextLine++);
2053
+ continue;
2054
+ }
2055
+ pos++;
2056
+ }
2057
+ if (labelEnd < 0 || src.charCodeAt(labelEnd + 1) !== 58) return false;
2058
+ rawLabel += src.slice(segmentStart, labelEnd);
2059
+ if (rawLabel.length > MAX_LABEL_LENGTH && countCodePoints(rawLabel) > MAX_LABEL_LENGTH) return false;
2060
+ pos = labelEnd + 2;
2061
+ while (pos < max) {
2062
+ const ch = src.charCodeAt(pos);
2063
+ if (ch === 10) {
2064
+ const nextPos = getNextLinePos(state, nextLine);
2065
+ if (nextPos < 0) break;
2066
+ pos = nextPos;
2067
+ max = lineEnd(state, nextLine++);
2068
+ } else if (isSpace(ch)) pos++;
2069
+ else break;
2070
+ }
2071
+ const destRes = state.md.helpers.parseLinkDestination(src, pos, max);
2072
+ if (!destRes.ok) return false;
2073
+ const href = state.md.normalizeLink(destRes.str);
2074
+ if (!state.md.validateLink(href)) return false;
2075
+ pos = destRes.pos;
2076
+ const destEndPos = pos;
2077
+ const destEndMax = max;
2078
+ const destEndLineNo = nextLine;
2079
+ while (pos < max) {
2080
+ const ch = src.charCodeAt(pos);
2081
+ if (ch === 10) {
2082
+ const nextPos = getNextLinePos(state, nextLine);
2083
+ if (nextPos < 0) break;
2084
+ pos = nextPos;
2085
+ max = lineEnd(state, nextLine++);
2086
+ } else if (isSpace(ch)) pos++;
2087
+ else break;
2088
+ }
2089
+ const titleStart = pos;
2090
+ let titleRes = state.md.helpers.parseLinkTitle(src, pos, max);
2091
+ while (titleRes.can_continue) {
2092
+ const nextPos = getNextLinePos(state, nextLine);
2093
+ if (nextPos < 0) break;
2094
+ pos = nextPos;
2095
+ max = lineEnd(state, nextLine++);
2096
+ titleRes = state.md.helpers.parseLinkTitle(src, pos, max, titleRes);
2097
+ }
2098
+ let title;
2099
+ if (titleStart !== destEndPos && titleRes.ok) {
2100
+ title = titleRes.str;
2101
+ pos = titleRes.pos;
2102
+ } else {
2103
+ title = "";
2104
+ pos = destEndPos;
2105
+ max = destEndMax;
2106
+ nextLine = destEndLineNo;
2107
+ }
2108
+ while (pos < max) {
2109
+ if (!isSpace(src.charCodeAt(pos))) break;
2110
+ pos++;
2111
+ }
2112
+ if (pos < max && src.charCodeAt(pos) !== 10) {
2113
+ if (title) {
2114
+ title = "";
2115
+ pos = destEndPos;
2116
+ max = destEndMax;
2117
+ nextLine = destEndLineNo;
2118
+ while (pos < max) {
2119
+ if (!isSpace(src.charCodeAt(pos))) break;
2120
+ pos++;
2121
+ }
2122
+ }
2123
+ }
2124
+ if (pos < max && src.charCodeAt(pos) !== 10) return false;
2125
+ const label = normalizeReference(rawLabel);
2126
+ if (!label) return false;
2127
+ /* istanbul ignore if */
2128
+ if (silent) return true;
2129
+ if (typeof state.env.references === "undefined") state.env.references = {};
2130
+ if (typeof state.env.references[label] === "undefined") state.env.references[label] = {
2131
+ title,
2132
+ href
2133
+ };
2134
+ const token = state.push("reference_definition", "", 0);
2135
+ token.map = [startLine, nextLine];
2136
+ token.hidden = true;
2137
+ const meta = Object.create(null);
2138
+ meta.label = label;
2139
+ token.meta = meta;
2140
+ state.line = nextLine;
2141
+ return true;
2142
+ }
2143
+ //#endregion
2144
+ //#region src/common/html_blocks.ts
2145
+ var html_blocks_default = [
2146
+ "address",
2147
+ "article",
2148
+ "aside",
2149
+ "base",
2150
+ "basefont",
2151
+ "blockquote",
2152
+ "body",
2153
+ "caption",
2154
+ "center",
2155
+ "col",
2156
+ "colgroup",
2157
+ "dd",
2158
+ "details",
2159
+ "dialog",
2160
+ "dir",
2161
+ "div",
2162
+ "dl",
2163
+ "dt",
2164
+ "fieldset",
2165
+ "figcaption",
2166
+ "figure",
2167
+ "footer",
2168
+ "form",
2169
+ "frame",
2170
+ "frameset",
2171
+ "h1",
2172
+ "h2",
2173
+ "h3",
2174
+ "h4",
2175
+ "h5",
2176
+ "h6",
2177
+ "head",
2178
+ "header",
2179
+ "hr",
2180
+ "html",
2181
+ "iframe",
2182
+ "legend",
2183
+ "li",
2184
+ "link",
2185
+ "main",
2186
+ "menu",
2187
+ "menuitem",
2188
+ "nav",
2189
+ "noframes",
2190
+ "ol",
2191
+ "optgroup",
2192
+ "option",
2193
+ "p",
2194
+ "param",
2195
+ "search",
2196
+ "section",
2197
+ "summary",
2198
+ "table",
2199
+ "tbody",
2200
+ "td",
2201
+ "tfoot",
2202
+ "th",
2203
+ "thead",
2204
+ "title",
2205
+ "tr",
2206
+ "track",
2207
+ "ul"
2208
+ ];
2209
+ //#endregion
2210
+ //#region src/common/html_re.ts
2211
+ var open_tag = `<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`;
2212
+ var close_tag = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";
2213
+ new RegExp(`^(?:${open_tag}|${close_tag}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);
2214
+ var HTML_OPEN_CLOSE_TAG_RE = new RegExp(`^(?:${open_tag}|${close_tag})`);
2215
+ //#endregion
2216
+ //#region src/rules_block/html_block.ts
2217
+ var HTML_SEQUENCES = [
2218
+ [
2219
+ /^<(script|pre|style|textarea)(?=(\s|>|$))/i,
2220
+ /<\/(script|pre|style|textarea)>/i,
2221
+ true
2222
+ ],
2223
+ [
2224
+ /^<!--/,
2225
+ /-->/,
2226
+ true
2227
+ ],
2228
+ [
2229
+ /^<\?/,
2230
+ /\?>/,
2231
+ true
2232
+ ],
2233
+ [
2234
+ /^<![A-Za-z]/,
2235
+ />/,
2236
+ true
2237
+ ],
2238
+ [
2239
+ /^<!\[CDATA\[/,
2240
+ /\]\]>/,
2241
+ true
2242
+ ],
2243
+ [
2244
+ new RegExp(`^</?(${html_blocks_default.join("|")})(?=(\\s|/?>|$))`, "i"),
2245
+ /^$/,
2246
+ true
2247
+ ],
2248
+ [
2249
+ new RegExp(`${HTML_OPEN_CLOSE_TAG_RE.source}\\s*$`),
2250
+ /^$/,
2251
+ false
2252
+ ]
2253
+ ];
2254
+ function html_block(state, startLine, endLine, silent) {
2255
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
2256
+ let max = state.eMarks[startLine];
2257
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
2258
+ if (!state.md.options.html) return false;
2259
+ if (state.src.charCodeAt(pos) !== 60) return false;
2260
+ let lineText = state.src.slice(pos, max);
2261
+ let i = 0;
2262
+ for (; i < HTML_SEQUENCES.length; i++) if (HTML_SEQUENCES[i][0].test(lineText)) break;
2263
+ if (i === HTML_SEQUENCES.length) return false;
2264
+ if (silent) return HTML_SEQUENCES[i][2];
2265
+ let nextLine = startLine + 1;
2266
+ const endsOnBlankLine = HTML_SEQUENCES[i][1].test("");
2267
+ if (!HTML_SEQUENCES[i][1].test(lineText)) for (; nextLine < endLine; nextLine++) {
2268
+ if (state.sCount[nextLine] < state.blkIndent) {
2269
+ if (endsOnBlankLine || !state.isEmpty(nextLine)) break;
2270
+ }
2271
+ pos = state.bMarks[nextLine] + state.tShift[nextLine];
2272
+ max = state.eMarks[nextLine];
2273
+ lineText = state.src.slice(pos, max);
2274
+ if (HTML_SEQUENCES[i][1].test(lineText)) {
2275
+ if (lineText.length !== 0) nextLine++;
2276
+ break;
2277
+ }
2278
+ }
2279
+ state.line = nextLine;
2280
+ const token = state.push("html_block", "", 0);
2281
+ token.map = [startLine, nextLine];
2282
+ token.content = state.getLines(startLine, nextLine, state.blkIndent, true);
2283
+ return true;
2284
+ }
2285
+ //#endregion
2286
+ //#region src/rules_block/heading.ts
2287
+ function heading(state, startLine, endLine, silent) {
2288
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
2289
+ let max = state.eMarks[startLine];
2290
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
2291
+ let ch = state.src.charCodeAt(pos);
2292
+ if (ch !== 35 || pos >= max) return false;
2293
+ let level = 1;
2294
+ ch = state.src.charCodeAt(++pos);
2295
+ while (ch === 35 && pos < max && level <= 6) {
2296
+ level++;
2297
+ ch = state.src.charCodeAt(++pos);
2298
+ }
2299
+ if (level > 6 || pos < max && !isSpace(ch)) return false;
2300
+ if (silent) return true;
2301
+ max = state.skipSpacesBack(max, pos);
2302
+ const tmp = state.skipCharsBack(max, 35, pos);
2303
+ if (tmp > pos && isSpace(state.src.charCodeAt(tmp - 1))) max = tmp;
2304
+ state.line = startLine + 1;
2305
+ const token_o = state.push("heading_open", `h${level}`, 1);
2306
+ token_o.markup = "########".slice(0, level);
2307
+ token_o.map = [startLine, state.line];
2308
+ const token_i = state.push("inline", "", 0);
2309
+ token_i.content = asciiTrim(state.src.slice(pos, max));
2310
+ token_i.map = [startLine, state.line];
2311
+ token_i.children = [];
2312
+ const token_c = state.push("heading_close", `h${level}`, -1);
2313
+ token_c.markup = "########".slice(0, level);
2314
+ return true;
2315
+ }
2316
+ //#endregion
2317
+ //#region src/rules_block/lheading.ts
2318
+ function lheading(state, startLine, endLine) {
2319
+ const terminatorRules = state.md.block.ruler.getRules("paragraph");
2320
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
2321
+ const oldParentType = state.parentType;
2322
+ state.parentType = "paragraph";
2323
+ let level = 0;
2324
+ let marker;
2325
+ let nextLine = startLine + 1;
2326
+ for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
2327
+ if (state.sCount[nextLine] - state.blkIndent > 3) continue;
2328
+ if (state.sCount[nextLine] >= state.blkIndent) {
2329
+ let pos = state.bMarks[nextLine] + state.tShift[nextLine];
2330
+ const max = state.eMarks[nextLine];
2331
+ if (pos < max) {
2332
+ marker = state.src.charCodeAt(pos);
2333
+ if (marker === 45 || marker === 61) {
2334
+ pos = state.skipChars(pos, marker);
2335
+ pos = state.skipSpaces(pos);
2336
+ if (pos >= max) {
2337
+ level = marker === 61 ? 1 : 2;
2338
+ break;
2339
+ }
2340
+ }
2341
+ }
2342
+ }
2343
+ if (state.sCount[nextLine] < 0) continue;
2344
+ let terminate = false;
2345
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
2346
+ terminate = true;
2347
+ break;
2348
+ }
2349
+ if (terminate) break;
2350
+ }
2351
+ if (!level) {
2352
+ state.parentType = oldParentType;
2353
+ return false;
2354
+ }
2355
+ const content = asciiTrim(state.getLines(startLine, nextLine, state.blkIndent, false));
2356
+ state.line = nextLine + 1;
2357
+ const token_o = state.push("heading_open", `h${level}`, 1);
2358
+ token_o.markup = String.fromCharCode(marker);
2359
+ token_o.map = [startLine, state.line];
2360
+ const token_i = state.push("inline", "", 0);
2361
+ token_i.content = content;
2362
+ token_i.map = [startLine, state.line - 1];
2363
+ token_i.children = [];
2364
+ const token_c = state.push("heading_close", `h${level}`, -1);
2365
+ token_c.markup = String.fromCharCode(marker);
2366
+ state.parentType = oldParentType;
2367
+ return true;
2368
+ }
2369
+ //#endregion
2370
+ //#region src/rules_block/paragraph.ts
2371
+ function paragraph(state, startLine, endLine) {
2372
+ const terminatorRules = state.md.block.ruler.getRules("paragraph");
2373
+ const oldParentType = state.parentType;
2374
+ let nextLine = startLine + 1;
2375
+ state.parentType = "paragraph";
2376
+ for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
2377
+ if (state.sCount[nextLine] - state.blkIndent > 3) continue;
2378
+ if (state.sCount[nextLine] < 0) continue;
2379
+ let terminate = false;
2380
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
2381
+ terminate = true;
2382
+ break;
2383
+ }
2384
+ if (terminate) break;
2385
+ }
2386
+ const content = asciiTrim(state.getLines(startLine, nextLine, state.blkIndent, false));
2387
+ state.line = nextLine;
2388
+ const token_o = state.push("paragraph_open", "p", 1);
2389
+ token_o.map = [startLine, state.line];
2390
+ const token_i = state.push("inline", "", 0);
2391
+ token_i.content = content;
2392
+ token_i.map = [startLine, state.line];
2393
+ token_i.children = [];
2394
+ state.push("paragraph_close", "p", -1);
2395
+ state.parentType = oldParentType;
2396
+ return true;
2397
+ }
2398
+ //#endregion
2399
+ //#region src/parser_block.ts
2400
+ var _rules$1 = [
2401
+ [
2402
+ "table",
2403
+ table,
2404
+ ["paragraph", "reference"]
2405
+ ],
2406
+ ["code", code],
2407
+ [
2408
+ "fence",
2409
+ fence,
2410
+ [
2411
+ "paragraph",
2412
+ "reference",
2413
+ "blockquote",
2414
+ "list"
2415
+ ]
2416
+ ],
2417
+ [
2418
+ "blockquote",
2419
+ blockquote,
2420
+ [
2421
+ "paragraph",
2422
+ "reference",
2423
+ "blockquote",
2424
+ "list"
2425
+ ]
2426
+ ],
2427
+ [
2428
+ "hr",
2429
+ hr,
2430
+ [
2431
+ "paragraph",
2432
+ "reference",
2433
+ "blockquote",
2434
+ "list"
2435
+ ]
2436
+ ],
2437
+ [
2438
+ "list",
2439
+ list,
2440
+ [
2441
+ "paragraph",
2442
+ "reference",
2443
+ "blockquote"
2444
+ ]
2445
+ ],
2446
+ ["reference", reference],
2447
+ [
2448
+ "html_block",
2449
+ html_block,
2450
+ [
2451
+ "paragraph",
2452
+ "reference",
2453
+ "blockquote"
2454
+ ]
2455
+ ],
2456
+ [
2457
+ "heading",
2458
+ heading,
2459
+ [
2460
+ "paragraph",
2461
+ "reference",
2462
+ "blockquote"
2463
+ ]
2464
+ ],
2465
+ ["lheading", lheading],
2466
+ ["paragraph", paragraph]
2467
+ ];
2468
+ /**
2469
+ * Block-level tokenizer.
2470
+ */
2471
+ var ParserBlock = class {
2472
+ constructor() {
2473
+ _defineProperty(
2474
+ this,
2475
+ /**
2476
+ * {@link Ruler} instance. Keep configuration of block rules.
2477
+ */
2478
+ "ruler",
2479
+ new Ruler()
2480
+ );
2481
+ _defineProperty(this, "State", StateBlock);
2482
+ for (let i = 0; i < _rules$1.length; i++) this.ruler.push(_rules$1[i][0], _rules$1[i][1], { alt: (_rules$1[i][2] || []).slice() });
2483
+ }
2484
+ tokenize(state, startLine, endLine) {
2485
+ const rules = this.ruler.getRules("");
2486
+ const len = rules.length;
2487
+ const maxNesting = state.md.options.maxNesting;
2488
+ let line = startLine;
2489
+ let hasEmptyLines = false;
2490
+ while (line < endLine) {
2491
+ state.line = line = state.skipEmptyLines(line);
2492
+ if (line >= endLine) break;
2493
+ if (state.sCount[line] < state.blkIndent) break;
2494
+ if (state.level >= maxNesting) {
2495
+ state.line = endLine;
2496
+ break;
2497
+ }
2498
+ const prevLine = state.line;
2499
+ let ok = false;
2500
+ for (let i = 0; i < len; i++) {
2501
+ ok = rules[i](state, line, endLine, false);
2502
+ if (ok) {
2503
+ if (prevLine >= state.line) throw new Error("block rule didn't increment state.line");
2504
+ break;
2505
+ }
2506
+ }
2507
+ if (!ok) throw new Error("none of the block rules matched");
2508
+ state.tight = !hasEmptyLines;
2509
+ if (state.isEmpty(state.line - 1)) hasEmptyLines = true;
2510
+ line = state.line;
2511
+ if (line < endLine && state.isEmpty(line)) {
2512
+ hasEmptyLines = true;
2513
+ line++;
2514
+ state.line = line;
2515
+ }
2516
+ }
2517
+ }
2518
+ /**
2519
+ * Process input string and push block tokens into `outTokens`
2520
+ */
2521
+ parse(src, md, env, outTokens) {
2522
+ if (!src) return;
2523
+ const state = new this.State(src, md, env, outTokens);
2524
+ this.tokenize(state, state.line, state.lineMax);
2525
+ }
2526
+ };
2527
+ //#endregion
2528
+ //#region src/rules_inline/state_inline.ts
2529
+ /** Mutable state passed to inline rules while tokenizing inline content. */
2530
+ var StateInline = class {
2531
+ constructor(src, md, env, outTokens) {
2532
+ _defineProperty(this, "pos", 0);
2533
+ _defineProperty(this, "level", 0);
2534
+ _defineProperty(this, "pending", "");
2535
+ _defineProperty(this, "pendingLevel", 0);
2536
+ _defineProperty(this, "cache", {});
2537
+ _defineProperty(this, "backticks", {});
2538
+ _defineProperty(this, "backticksScanned", false);
2539
+ _defineProperty(this, "skipHtmlSpecial", false);
2540
+ _defineProperty(this, "linkLevel", 0);
2541
+ _defineProperty(this, "delimiters", []);
2542
+ _defineProperty(this, "_prev_delimiters", []);
2543
+ _defineProperty(this, "Token", Token);
2544
+ this.src = src;
2545
+ this.env = env;
2546
+ this.md = md;
2547
+ this.tokens = outTokens;
2548
+ this.tokens_meta = Array(outTokens.length);
2549
+ this.posMax = this.src.length;
2550
+ }
2551
+ pushPending() {
2552
+ const token = new Token("text", "", 0);
2553
+ token.content = this.pending;
2554
+ token.level = this.pendingLevel;
2555
+ this.tokens.push(token);
2556
+ this.pending = "";
2557
+ return token;
2558
+ }
2559
+ push(type, tag, nesting) {
2560
+ if (this.pending) this.pushPending();
2561
+ const token = new Token(type, tag, nesting);
2562
+ let token_meta = void 0;
2563
+ if (nesting < 0) {
2564
+ this.level--;
2565
+ this.delimiters = this._prev_delimiters.pop();
2566
+ }
2567
+ token.level = this.level;
2568
+ if (nesting > 0) {
2569
+ this.level++;
2570
+ this._prev_delimiters.push(this.delimiters);
2571
+ this.delimiters = [];
2572
+ token_meta = { delimiters: this.delimiters };
2573
+ }
2574
+ this.pendingLevel = this.level;
2575
+ this.tokens.push(token);
2576
+ this.tokens_meta.push(token_meta);
2577
+ return token;
2578
+ }
2579
+ scanDelims(start, canSplitWord) {
2580
+ const max = this.posMax;
2581
+ const marker = this.src.charCodeAt(start);
2582
+ let lastChar;
2583
+ if (start === 0) lastChar = 32;
2584
+ else if (start === 1) {
2585
+ lastChar = this.src.charCodeAt(0);
2586
+ if ((lastChar & 63488) === 55296) lastChar = 65533;
2587
+ } else {
2588
+ lastChar = this.src.charCodeAt(start - 1);
2589
+ if ((lastChar & 64512) === 56320) {
2590
+ const highSurr = this.src.charCodeAt(start - 2);
2591
+ lastChar = (highSurr & 64512) === 55296 ? 65536 + (highSurr - 55296 << 10) + (lastChar - 56320) : 65533;
2592
+ } else if ((lastChar & 64512) === 55296) lastChar = 65533;
2593
+ }
2594
+ let pos = start;
2595
+ while (pos < max && this.src.charCodeAt(pos) === marker) pos++;
2596
+ const count = pos - start;
2597
+ let nextChar = pos < max ? this.src.charCodeAt(pos) : 32;
2598
+ if ((nextChar & 64512) === 55296) {
2599
+ const lowSurr = this.src.charCodeAt(pos + 1);
2600
+ nextChar = (lowSurr & 64512) === 56320 ? 65536 + (nextChar - 55296 << 10) + (lowSurr - 56320) : 65533;
2601
+ } else if ((nextChar & 64512) === 56320) nextChar = 65533;
2602
+ const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctCharCode(lastChar);
2603
+ const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctCharCode(nextChar);
2604
+ const isLastWhiteSpace = isWhiteSpace(lastChar);
2605
+ const isNextWhiteSpace = isWhiteSpace(nextChar);
2606
+ const left_flanking = !isNextWhiteSpace && (!isNextPunctChar || isLastWhiteSpace || isLastPunctChar);
2607
+ const right_flanking = !isLastWhiteSpace && (!isLastPunctChar || isNextWhiteSpace || isNextPunctChar);
2608
+ return {
2609
+ can_open: left_flanking && (canSplitWord || !right_flanking || isLastPunctChar),
2610
+ can_close: right_flanking && (canSplitWord || !left_flanking || isNextPunctChar),
2611
+ length: count
2612
+ };
2613
+ }
2614
+ };
2615
+ //#endregion
2616
+ //#region src/rules_inline/text.ts
2617
+ function isTerminatorChar(ch) {
2618
+ switch (ch) {
2619
+ case 10:
2620
+ case 33:
2621
+ case 35:
2622
+ case 36:
2623
+ case 37:
2624
+ case 38:
2625
+ case 42:
2626
+ case 43:
2627
+ case 45:
2628
+ case 58:
2629
+ case 60:
2630
+ case 61:
2631
+ case 62:
2632
+ case 64:
2633
+ case 91:
2634
+ case 92:
2635
+ case 93:
2636
+ case 94:
2637
+ case 95:
2638
+ case 96:
2639
+ case 123:
2640
+ case 125:
2641
+ case 126: return true;
2642
+ default: return false;
2643
+ }
2644
+ }
2645
+ function text(state, silent) {
2646
+ let pos = state.pos;
2647
+ while (pos < state.posMax && !isTerminatorChar(state.src.charCodeAt(pos))) pos++;
2648
+ if (pos === state.pos) return false;
2649
+ if (!silent) state.pending += state.src.slice(state.pos, pos);
2650
+ state.pos = pos;
2651
+ return true;
2652
+ }
2653
+ //#endregion
2654
+ //#region src/rules_inline/linkify.ts
2655
+ function isAsciiAlpha(code) {
2656
+ return code >= 65 && code <= 90 || code >= 97 && code <= 122;
2657
+ }
2658
+ function isSchemeChar(code) {
2659
+ return code >= 65 && code <= 90 || code >= 97 && code <= 122 || code >= 48 && code <= 57 || code === 43 || code === 45 || code === 46;
2660
+ }
2661
+ function linkify(state, silent) {
2662
+ if (!state.md.options.linkify) return false;
2663
+ if (state.linkLevel > 0) return false;
2664
+ const pos = state.pos;
2665
+ const max = state.posMax;
2666
+ if (pos + 3 > max) return false;
2667
+ if (state.src.charCodeAt(pos) !== 58) return false;
2668
+ if (state.src.charCodeAt(pos + 1) !== 47) return false;
2669
+ if (state.src.charCodeAt(pos + 2) !== 47) return false;
2670
+ const protoMin = pos - Math.min(10, state.pending.length, pos);
2671
+ let protoStart = pos;
2672
+ while (protoStart > protoMin && isSchemeChar(state.src.charCodeAt(protoStart - 1))) protoStart--;
2673
+ if (protoStart === pos || !isAsciiAlpha(state.src.charCodeAt(protoStart))) return false;
2674
+ const protoLength = pos - protoStart;
2675
+ const link = state.md.linkify.matchAtStart(state.src.slice(protoStart));
2676
+ if (!link) return false;
2677
+ let url = link.url;
2678
+ if (url.length <= protoLength) return false;
2679
+ let urlEnd = url.length;
2680
+ while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 42) urlEnd--;
2681
+ if (urlEnd !== url.length) url = url.slice(0, urlEnd);
2682
+ const fullUrl = state.md.normalizeLink(url);
2683
+ if (!state.md.validateLink(fullUrl)) return false;
2684
+ if (!silent) {
2685
+ state.pending = state.pending.slice(0, -protoLength);
2686
+ const token_o = state.push("link_open", "a", 1);
2687
+ token_o.attrs = [["href", fullUrl]];
2688
+ token_o.markup = "linkify";
2689
+ token_o.info = "auto";
2690
+ const token_t = state.push("text", "", 0);
2691
+ token_t.content = state.md.normalizeLinkText(url);
2692
+ const token_c = state.push("link_close", "a", -1);
2693
+ token_c.markup = "linkify";
2694
+ token_c.info = "auto";
2695
+ }
2696
+ state.pos += url.length - protoLength;
2697
+ return true;
2698
+ }
2699
+ //#endregion
2700
+ //#region src/rules_inline/newline.ts
2701
+ function newline(state, silent) {
2702
+ let pos = state.pos;
2703
+ if (state.src.charCodeAt(pos) !== 10) return false;
2704
+ const pmax = state.pending.length - 1;
2705
+ const max = state.posMax;
2706
+ if (!silent) {
2707
+ if (pmax >= 0 && state.pending.charCodeAt(pmax) === 32) {
2708
+ if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 32) {
2709
+ let ws = pmax - 1;
2710
+ while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 32) ws--;
2711
+ state.pending = state.pending.slice(0, ws);
2712
+ state.push("hardbreak", "br", 0);
2713
+ } else {
2714
+ state.pending = state.pending.slice(0, -1);
2715
+ state.push("softbreak", "br", 0);
2716
+ }
2717
+ } else state.push("softbreak", "br", 0);
2718
+ }
2719
+ pos++;
2720
+ while (pos < max && isSpace(state.src.charCodeAt(pos))) pos++;
2721
+ state.pos = pos;
2722
+ return true;
2723
+ }
2724
+ //#endregion
2725
+ //#region src/rules_inline/escape.ts
2726
+ var ESCAPED = [];
2727
+ for (let i = 0; i < 256; i++) ESCAPED.push(0);
2728
+ "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(ch) {
2729
+ ESCAPED[ch.charCodeAt(0)] = 1;
2730
+ });
2731
+ function escape(state, silent) {
2732
+ let pos = state.pos;
2733
+ const max = state.posMax;
2734
+ if (state.src.charCodeAt(pos) !== 92) return false;
2735
+ pos++;
2736
+ if (pos >= max) return false;
2737
+ let ch1 = state.src.charCodeAt(pos);
2738
+ if (ch1 === 10) {
2739
+ if (!silent) state.push("hardbreak", "br", 0);
2740
+ pos++;
2741
+ while (pos < max) {
2742
+ ch1 = state.src.charCodeAt(pos);
2743
+ if (!isSpace(ch1)) break;
2744
+ pos++;
2745
+ }
2746
+ state.pos = pos;
2747
+ return true;
2748
+ }
2749
+ if (ch1 === 32) {
2750
+ if (!silent) {
2751
+ const token = state.push("text_special", "", 0);
2752
+ token.content = "\\";
2753
+ token.markup = "\\";
2754
+ token.info = "escape";
2755
+ }
2756
+ state.pos = pos;
2757
+ return true;
2758
+ }
2759
+ let escapedStr = state.src[pos];
2760
+ if (ch1 >= 55296 && ch1 <= 56319 && pos + 1 < max) {
2761
+ const ch2 = state.src.charCodeAt(pos + 1);
2762
+ if (ch2 >= 56320 && ch2 <= 57343) {
2763
+ escapedStr += state.src[pos + 1];
2764
+ pos++;
2765
+ }
2766
+ }
2767
+ const origStr = "\\" + escapedStr;
2768
+ if (!silent) {
2769
+ const token = state.push("text_special", "", 0);
2770
+ if (ch1 < 256 && ESCAPED[ch1] !== 0) token.content = escapedStr;
2771
+ else token.content = origStr;
2772
+ token.markup = origStr;
2773
+ token.info = "escape";
2774
+ }
2775
+ state.pos = pos + 1;
2776
+ return true;
2777
+ }
2778
+ //#endregion
2779
+ //#region src/rules_inline/backticks.ts
2780
+ function buildLastRuns(src) {
2781
+ const lastRuns = {};
2782
+ let pos = 0;
2783
+ while ((pos = src.indexOf("`", pos)) !== -1) {
2784
+ const start = pos;
2785
+ while (src.charCodeAt(++pos) === 96);
2786
+ lastRuns[pos - start] = start;
2787
+ }
2788
+ return lastRuns;
2789
+ }
2790
+ function backtick(state, silent) {
2791
+ var _state$backticks$open;
2792
+ const start = state.pos;
2793
+ if (state.src.charCodeAt(start) !== 96) return false;
2794
+ const max = state.posMax;
2795
+ let pos = start + 1;
2796
+ while (pos < max && state.src.charCodeAt(pos) === 96) pos++;
2797
+ const marker = state.src.slice(start, pos);
2798
+ const openerLength = marker.length;
2799
+ if (!state.backticksScanned) {
2800
+ state.backticks = buildLastRuns(state.src);
2801
+ state.backticksScanned = true;
2802
+ }
2803
+ if (((_state$backticks$open = state.backticks[openerLength]) !== null && _state$backticks$open !== void 0 ? _state$backticks$open : -1) >= pos) {
2804
+ let matchEnd = pos;
2805
+ let matchStart;
2806
+ while ((matchStart = state.src.indexOf("`", matchEnd)) !== -1 && matchStart < max) {
2807
+ matchEnd = matchStart + 1;
2808
+ while (state.src.charCodeAt(matchEnd) === 96) matchEnd++;
2809
+ if (matchEnd > max) break;
2810
+ if (matchEnd - matchStart === openerLength) {
2811
+ if (!silent) {
2812
+ const token = state.push("code_inline", "code", 0);
2813
+ token.markup = marker;
2814
+ let content = state.src.slice(pos, matchStart).replace(/\n/g, " ");
2815
+ if (content.startsWith(" ") && content.endsWith(" ") && /[^ ]/.test(content)) content = content.slice(1, -1);
2816
+ token.content = content;
2817
+ }
2818
+ state.pos = matchEnd;
2819
+ return true;
2820
+ }
2821
+ }
2822
+ }
2823
+ if (!silent) state.pending += marker;
2824
+ state.pos = pos;
2825
+ return true;
2826
+ }
2827
+ //#endregion
2828
+ //#region src/rules_inline/strikethrough.ts
2829
+ function strikethrough_tokenize(state, silent) {
2830
+ const start = state.pos;
2831
+ const marker = state.src.charCodeAt(start);
2832
+ if (silent) return false;
2833
+ if (marker !== 126) return false;
2834
+ const scanned = state.scanDelims(state.pos, true);
2835
+ let len = scanned.length;
2836
+ const ch = String.fromCharCode(marker);
2837
+ if (len < 2) return false;
2838
+ let token;
2839
+ if (len % 2) {
2840
+ token = state.push("text", "", 0);
2841
+ token.content = ch;
2842
+ len--;
2843
+ }
2844
+ for (let i = 0; i < len; i += 2) {
2845
+ token = state.push("text", "", 0);
2846
+ token.content = ch + ch;
2847
+ state.delimiters.push({
2848
+ marker,
2849
+ length: 0,
2850
+ token: state.tokens.length - 1,
2851
+ end: -1,
2852
+ open: scanned.can_open,
2853
+ close: scanned.can_close
2854
+ });
2855
+ }
2856
+ state.pos += scanned.length;
2857
+ return true;
2858
+ }
2859
+ function postProcess$1(state, delimiters) {
2860
+ let token;
2861
+ const loneMarkers = [];
2862
+ const max = delimiters.length;
2863
+ for (let i = 0; i < max; i++) {
2864
+ const startDelim = delimiters[i];
2865
+ if (startDelim.marker !== 126) continue;
2866
+ if (startDelim.end === -1) continue;
2867
+ const endDelim = delimiters[startDelim.end];
2868
+ token = state.tokens[startDelim.token];
2869
+ token.type = "s_open";
2870
+ token.tag = "s";
2871
+ token.nesting = 1;
2872
+ token.markup = "~~";
2873
+ token.content = "";
2874
+ token = state.tokens[endDelim.token];
2875
+ token.type = "s_close";
2876
+ token.tag = "s";
2877
+ token.nesting = -1;
2878
+ token.markup = "~~";
2879
+ token.content = "";
2880
+ if (state.tokens[endDelim.token - 1].type === "text" && state.tokens[endDelim.token - 1].content === "~") loneMarkers.push(endDelim.token - 1);
2881
+ }
2882
+ while (loneMarkers.length) {
2883
+ const i = loneMarkers.pop();
2884
+ let j = i + 1;
2885
+ while (j < state.tokens.length && state.tokens[j].type === "s_close") j++;
2886
+ j--;
2887
+ if (i !== j) {
2888
+ token = state.tokens[j];
2889
+ state.tokens[j] = state.tokens[i];
2890
+ state.tokens[i] = token;
2891
+ }
2892
+ }
2893
+ }
2894
+ function strikethrough_postProcess(state) {
2895
+ const tokens_meta = state.tokens_meta;
2896
+ const max = state.tokens_meta.length;
2897
+ postProcess$1(state, state.delimiters);
2898
+ for (let curr = 0; curr < max; curr++) {
2899
+ var _tokens_meta$curr;
2900
+ const delimiters = (_tokens_meta$curr = tokens_meta[curr]) === null || _tokens_meta$curr === void 0 ? void 0 : _tokens_meta$curr.delimiters;
2901
+ if (delimiters) postProcess$1(state, delimiters);
2902
+ }
2903
+ }
2904
+ var strikethrough_default = {
2905
+ tokenize: strikethrough_tokenize,
2906
+ postProcess: strikethrough_postProcess
2907
+ };
2908
+ //#endregion
2909
+ //#region src/rules_inline/emphasis.ts
2910
+ function emphasis_tokenize(state, silent) {
2911
+ const start = state.pos;
2912
+ const marker = state.src.charCodeAt(start);
2913
+ if (silent) return false;
2914
+ if (marker !== 95 && marker !== 42) return false;
2915
+ const scanned = state.scanDelims(state.pos, marker === 42);
2916
+ for (let i = 0; i < scanned.length; i++) {
2917
+ const token = state.push("text", "", 0);
2918
+ token.content = String.fromCharCode(marker);
2919
+ state.delimiters.push({
2920
+ marker,
2921
+ length: scanned.length,
2922
+ token: state.tokens.length - 1,
2923
+ end: -1,
2924
+ open: scanned.can_open,
2925
+ close: scanned.can_close
2926
+ });
2927
+ }
2928
+ state.pos += scanned.length;
2929
+ return true;
2930
+ }
2931
+ function postProcess(state, delimiters) {
2932
+ const max = delimiters.length;
2933
+ for (let i = max - 1; i >= 0; i--) {
2934
+ const startDelim = delimiters[i];
2935
+ if (startDelim.marker !== 95 && startDelim.marker !== 42) continue;
2936
+ if (startDelim.end === -1) continue;
2937
+ const endDelim = delimiters[startDelim.end];
2938
+ const isStrong = i > 0 && delimiters[i - 1].end === startDelim.end + 1 && delimiters[i - 1].marker === startDelim.marker && delimiters[i - 1].token === startDelim.token - 1 && delimiters[startDelim.end + 1].token === endDelim.token + 1;
2939
+ const ch = String.fromCharCode(startDelim.marker);
2940
+ const token_o = state.tokens[startDelim.token];
2941
+ token_o.type = isStrong ? "strong_open" : "em_open";
2942
+ token_o.tag = isStrong ? "strong" : "em";
2943
+ token_o.nesting = 1;
2944
+ token_o.markup = isStrong ? ch + ch : ch;
2945
+ token_o.content = "";
2946
+ const token_c = state.tokens[endDelim.token];
2947
+ token_c.type = isStrong ? "strong_close" : "em_close";
2948
+ token_c.tag = isStrong ? "strong" : "em";
2949
+ token_c.nesting = -1;
2950
+ token_c.markup = isStrong ? ch + ch : ch;
2951
+ token_c.content = "";
2952
+ if (isStrong) {
2953
+ state.tokens[delimiters[i - 1].token].content = "";
2954
+ state.tokens[delimiters[startDelim.end + 1].token].content = "";
2955
+ i--;
2956
+ }
2957
+ }
2958
+ }
2959
+ function emphasis_post_process(state) {
2960
+ const tokens_meta = state.tokens_meta;
2961
+ const max = state.tokens_meta.length;
2962
+ postProcess(state, state.delimiters);
2963
+ for (let curr = 0; curr < max; curr++) {
2964
+ var _tokens_meta$curr;
2965
+ const delimiters = (_tokens_meta$curr = tokens_meta[curr]) === null || _tokens_meta$curr === void 0 ? void 0 : _tokens_meta$curr.delimiters;
2966
+ if (delimiters) postProcess(state, delimiters);
2967
+ }
2968
+ }
2969
+ var emphasis_default = {
2970
+ tokenize: emphasis_tokenize,
2971
+ postProcess: emphasis_post_process
2972
+ };
2973
+ //#endregion
2974
+ //#region src/rules_inline/link.ts
2975
+ function link(state, silent) {
2976
+ let code, label, res, ref;
2977
+ let href = "";
2978
+ let title = "";
2979
+ let start = state.pos;
2980
+ let parseReference = true;
2981
+ if (state.src.charCodeAt(state.pos) !== 91) return false;
2982
+ const oldPos = state.pos;
2983
+ const max = state.posMax;
2984
+ const labelStart = state.pos + 1;
2985
+ const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos, true);
2986
+ if (labelEnd < 0) return false;
2987
+ let pos = labelEnd + 1;
2988
+ if (pos < max && state.src.charCodeAt(pos) === 40) {
2989
+ parseReference = false;
2990
+ pos++;
2991
+ for (; pos < max; pos++) {
2992
+ code = state.src.charCodeAt(pos);
2993
+ if (!isSpace(code) && code !== 10) break;
2994
+ }
2995
+ if (pos >= max) return false;
2996
+ start = pos;
2997
+ res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
2998
+ if (res.ok) {
2999
+ href = state.md.normalizeLink(res.str);
3000
+ if (state.md.validateLink(href)) pos = res.pos;
3001
+ else href = "";
3002
+ start = pos;
3003
+ for (; pos < max; pos++) {
3004
+ code = state.src.charCodeAt(pos);
3005
+ if (!isSpace(code) && code !== 10) break;
3006
+ }
3007
+ res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
3008
+ if (pos < max && start !== pos && res.ok) {
3009
+ title = res.str;
3010
+ pos = res.pos;
3011
+ for (; pos < max; pos++) {
3012
+ code = state.src.charCodeAt(pos);
3013
+ if (!isSpace(code) && code !== 10) break;
3014
+ }
3015
+ }
3016
+ }
3017
+ if (pos >= max || state.src.charCodeAt(pos) !== 41) parseReference = true;
3018
+ pos++;
3019
+ }
3020
+ if (parseReference) {
3021
+ if (typeof state.env.references === "undefined") return false;
3022
+ if (pos < max && state.src.charCodeAt(pos) === 91) {
3023
+ start = pos + 1;
3024
+ pos = state.md.helpers.parseLinkLabel(state, pos);
3025
+ if (pos >= 0) label = state.src.slice(start, pos++);
3026
+ else pos = labelEnd + 1;
3027
+ } else pos = labelEnd + 1;
3028
+ if (!label) label = state.src.slice(labelStart, labelEnd);
3029
+ label = normalizeReference(label);
3030
+ ref = state.env.references[label];
3031
+ if (!ref) {
3032
+ state.pos = oldPos;
3033
+ return false;
3034
+ }
3035
+ href = ref.href;
3036
+ title = ref.title;
3037
+ }
3038
+ if (!silent) {
3039
+ state.pos = labelStart;
3040
+ state.posMax = labelEnd;
3041
+ const token_o = state.push("link_open", "a", 1);
3042
+ const attrs = [["href", href]];
3043
+ token_o.attrs = attrs;
3044
+ if (title) attrs.push(["title", title]);
3045
+ if (label) {
3046
+ const meta = Object.create(null);
3047
+ meta.label = label;
3048
+ token_o.meta = meta;
3049
+ }
3050
+ state.linkLevel++;
3051
+ state.md.inline.tokenize(state);
3052
+ state.linkLevel--;
3053
+ state.push("link_close", "a", -1);
3054
+ }
3055
+ state.pos = pos;
3056
+ state.posMax = max;
3057
+ return true;
3058
+ }
3059
+ //#endregion
3060
+ //#region src/rules_inline/image.ts
3061
+ function image(state, silent) {
3062
+ let code, content, label, pos, ref, res, title, start;
3063
+ let href = "";
3064
+ const oldPos = state.pos;
3065
+ const max = state.posMax;
3066
+ if (state.src.charCodeAt(state.pos) !== 33) return false;
3067
+ if (state.src.charCodeAt(state.pos + 1) !== 91) return false;
3068
+ const labelStart = state.pos + 2;
3069
+ const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos + 1, false);
3070
+ if (labelEnd < 0) return false;
3071
+ pos = labelEnd + 1;
3072
+ if (pos < max && state.src.charCodeAt(pos) === 40) {
3073
+ pos++;
3074
+ for (; pos < max; pos++) {
3075
+ code = state.src.charCodeAt(pos);
3076
+ if (!isSpace(code) && code !== 10) break;
3077
+ }
3078
+ if (pos >= max) return false;
3079
+ start = pos;
3080
+ res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
3081
+ if (res.ok) {
3082
+ href = state.md.normalizeLink(res.str);
3083
+ if (state.md.validateLink(href)) pos = res.pos;
3084
+ else href = "";
3085
+ }
3086
+ start = pos;
3087
+ for (; pos < max; pos++) {
3088
+ code = state.src.charCodeAt(pos);
3089
+ if (!isSpace(code) && code !== 10) break;
3090
+ }
3091
+ res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
3092
+ if (pos < max && start !== pos && res.ok) {
3093
+ title = res.str;
3094
+ pos = res.pos;
3095
+ for (; pos < max; pos++) {
3096
+ code = state.src.charCodeAt(pos);
3097
+ if (!isSpace(code) && code !== 10) break;
3098
+ }
3099
+ } else title = "";
3100
+ if (pos >= max || state.src.charCodeAt(pos) !== 41) {
3101
+ state.pos = oldPos;
3102
+ return false;
3103
+ }
3104
+ pos++;
3105
+ } else {
3106
+ if (typeof state.env.references === "undefined") return false;
3107
+ if (pos < max && state.src.charCodeAt(pos) === 91) {
3108
+ start = pos + 1;
3109
+ pos = state.md.helpers.parseLinkLabel(state, pos);
3110
+ if (pos >= 0) label = state.src.slice(start, pos++);
3111
+ else pos = labelEnd + 1;
3112
+ } else pos = labelEnd + 1;
3113
+ if (!label) label = state.src.slice(labelStart, labelEnd);
3114
+ label = normalizeReference(label);
3115
+ ref = state.env.references[label];
3116
+ if (!ref) {
3117
+ state.pos = oldPos;
3118
+ return false;
3119
+ }
3120
+ href = ref.href;
3121
+ title = ref.title;
3122
+ }
3123
+ if (!silent) {
3124
+ content = state.src.slice(labelStart, labelEnd);
3125
+ const tokens = [];
3126
+ state.md.inline.parse(content, state.md, state.env, tokens);
3127
+ const token = state.push("image", "img", 0);
3128
+ const attrs = [["src", href], ["alt", ""]];
3129
+ token.attrs = attrs;
3130
+ token.children = tokens;
3131
+ token.content = content;
3132
+ if (title) attrs.push(["title", title]);
3133
+ if (label) {
3134
+ const meta = Object.create(null);
3135
+ meta.label = label;
3136
+ token.meta = meta;
3137
+ }
3138
+ }
3139
+ state.pos = pos;
3140
+ state.posMax = max;
3141
+ return true;
3142
+ }
3143
+ //#endregion
3144
+ //#region src/rules_inline/autolink.ts
3145
+ var EMAIL_RE = /^([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])?)*)$/;
3146
+ var AUTOLINK_RE = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
3147
+ function autolink(state, silent) {
3148
+ let pos = state.pos;
3149
+ if (state.src.charCodeAt(pos) !== 60) return false;
3150
+ const start = state.pos;
3151
+ const max = state.posMax;
3152
+ for (;;) {
3153
+ if (++pos >= max) return false;
3154
+ const ch = state.src.charCodeAt(pos);
3155
+ if (ch === 60) return false;
3156
+ if (ch === 62) break;
3157
+ }
3158
+ const url = state.src.slice(start + 1, pos);
3159
+ if (AUTOLINK_RE.test(url)) {
3160
+ const fullUrl = state.md.normalizeLink(url);
3161
+ if (!state.md.validateLink(fullUrl)) return false;
3162
+ if (!silent) {
3163
+ const token_o = state.push("link_open", "a", 1);
3164
+ token_o.attrs = [["href", fullUrl]];
3165
+ token_o.markup = "autolink";
3166
+ token_o.info = "auto";
3167
+ const token_t = state.push("text", "", 0);
3168
+ token_t.content = state.md.normalizeLinkText(url);
3169
+ const token_c = state.push("link_close", "a", -1);
3170
+ token_c.markup = "autolink";
3171
+ token_c.info = "auto";
3172
+ }
3173
+ state.pos += url.length + 2;
3174
+ return true;
3175
+ }
3176
+ if (EMAIL_RE.test(url)) {
3177
+ const fullUrl = state.md.normalizeLink(`mailto:${url}`);
3178
+ if (!state.md.validateLink(fullUrl)) return false;
3179
+ if (!silent) {
3180
+ const token_o = state.push("link_open", "a", 1);
3181
+ token_o.attrs = [["href", fullUrl]];
3182
+ token_o.markup = "autolink";
3183
+ token_o.info = "auto";
3184
+ const token_t = state.push("text", "", 0);
3185
+ token_t.content = state.md.normalizeLinkText(url);
3186
+ const token_c = state.push("link_close", "a", -1);
3187
+ token_c.markup = "autolink";
3188
+ token_c.info = "auto";
3189
+ }
3190
+ state.pos += url.length + 2;
3191
+ return true;
3192
+ }
3193
+ return false;
3194
+ }
3195
+ //#endregion
3196
+ //#region src/rules_inline/html_inline.ts
3197
+ function isLinkOpen(str) {
3198
+ return /^<a[>\s]/i.test(str);
3199
+ }
3200
+ function isLinkClose(str) {
3201
+ return /^<\/a\s*>/i.test(str);
3202
+ }
3203
+ function isLetter(ch) {
3204
+ const lc = ch | 32;
3205
+ return lc >= 97 && lc <= 122;
3206
+ }
3207
+ function scanSpecial(state, pos) {
3208
+ const src = state.src;
3209
+ let start;
3210
+ let terminator;
3211
+ if (src.startsWith("<!--", pos)) {
3212
+ if (src.startsWith(">", pos + 4)) return pos + 5;
3213
+ if (src.startsWith("->", pos + 4)) return pos + 6;
3214
+ start = pos + 4;
3215
+ terminator = "-->";
3216
+ } else if (src.startsWith("<![CDATA[", pos)) {
3217
+ start = pos + 9;
3218
+ terminator = "]]>";
3219
+ } else if (src.charCodeAt(pos + 1) === 63) {
3220
+ start = pos + 2;
3221
+ terminator = "?>";
3222
+ } else if (isLetter(src.charCodeAt(pos + 2))) {
3223
+ start = pos + 3;
3224
+ terminator = ">";
3225
+ } else return -1;
3226
+ if (state.skipHtmlSpecial) return -1;
3227
+ const end = src.indexOf(terminator, start);
3228
+ if (end < 0) {
3229
+ state.skipHtmlSpecial = true;
3230
+ return -1;
3231
+ }
3232
+ return end + terminator.length;
3233
+ }
3234
+ function html_inline(state, silent) {
3235
+ if (!state.md.options.html) return false;
3236
+ const max = state.posMax;
3237
+ const pos = state.pos;
3238
+ if (state.src.charCodeAt(pos) !== 60 || pos + 2 >= max) return false;
3239
+ let end;
3240
+ const ch = state.src.charCodeAt(pos + 1);
3241
+ if (ch === 33 || ch === 63) end = scanSpecial(state, pos);
3242
+ else if (ch === 47 || isLetter(ch)) {
3243
+ const match = state.src.slice(pos).match(HTML_OPEN_CLOSE_TAG_RE);
3244
+ end = match ? pos + match[0].length : -1;
3245
+ } else return false;
3246
+ if (end < 0) return false;
3247
+ if (!silent) {
3248
+ const token = state.push("html_inline", "", 0);
3249
+ token.content = state.src.slice(pos, end);
3250
+ if (isLinkOpen(token.content)) state.linkLevel++;
3251
+ if (isLinkClose(token.content)) state.linkLevel--;
3252
+ }
3253
+ state.pos = end;
3254
+ return true;
3255
+ }
3256
+ //#endregion
3257
+ //#region src/rules_inline/entity.ts
3258
+ var DIGITAL_RE = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i;
3259
+ var NAMED_RE = /^&([a-z][a-z0-9]{1,31});/i;
3260
+ function entity(state, silent) {
3261
+ const pos = state.pos;
3262
+ const max = state.posMax;
3263
+ if (state.src.charCodeAt(pos) !== 38) return false;
3264
+ if (pos + 1 >= max) return false;
3265
+ if (state.src.charCodeAt(pos + 1) === 35) {
3266
+ const match = state.src.slice(pos).match(DIGITAL_RE);
3267
+ if (match) {
3268
+ if (!silent) {
3269
+ const code = match[1][0].toLowerCase() === "x" ? parseInt(match[1].slice(1), 16) : parseInt(match[1], 10);
3270
+ const token = state.push("text_special", "", 0);
3271
+ token.content = isValidEntityCode(code) ? fromCodePoint(code) : fromCodePoint(65533);
3272
+ token.markup = match[0];
3273
+ token.info = "entity";
3274
+ }
3275
+ state.pos += match[0].length;
3276
+ return true;
3277
+ }
3278
+ } else {
3279
+ const match = state.src.slice(pos).match(NAMED_RE);
3280
+ if (match) {
3281
+ const decoded = decodeHTMLStrict(match[0]);
3282
+ if (decoded !== match[0]) {
3283
+ if (!silent) {
3284
+ const token = state.push("text_special", "", 0);
3285
+ token.content = decoded;
3286
+ token.markup = match[0];
3287
+ token.info = "entity";
3288
+ }
3289
+ state.pos += match[0].length;
3290
+ return true;
3291
+ }
3292
+ }
3293
+ }
3294
+ return false;
3295
+ }
3296
+ //#endregion
3297
+ //#region src/rules_inline/balance_pairs.ts
3298
+ function processDelimiters(delimiters) {
3299
+ const openersBottom = {};
3300
+ const max = delimiters.length;
3301
+ if (!max) return;
3302
+ let headerIdx = 0;
3303
+ let lastTokenIdx = -2;
3304
+ const jumps = [];
3305
+ for (let closerIdx = 0; closerIdx < max; closerIdx++) {
3306
+ const closer = delimiters[closerIdx];
3307
+ jumps.push(0);
3308
+ if (delimiters[headerIdx].marker !== closer.marker || lastTokenIdx !== closer.token - 1) headerIdx = closerIdx;
3309
+ lastTokenIdx = closer.token;
3310
+ closer.length = closer.length || 0;
3311
+ if (!closer.close) continue;
3312
+ if (!openersBottom.hasOwnProperty(closer.marker)) openersBottom[closer.marker] = [
3313
+ -1,
3314
+ -1,
3315
+ -1,
3316
+ -1,
3317
+ -1,
3318
+ -1
3319
+ ];
3320
+ const minOpenerIdx = openersBottom[closer.marker][(closer.open ? 3 : 0) + closer.length % 3];
3321
+ let openerIdx = headerIdx - jumps[headerIdx] - 1;
3322
+ let newMinOpenerIdx = openerIdx;
3323
+ for (; openerIdx > minOpenerIdx; openerIdx -= jumps[openerIdx] + 1) {
3324
+ const opener = delimiters[openerIdx];
3325
+ if (opener.marker !== closer.marker) continue;
3326
+ if (opener.open && opener.end < 0) {
3327
+ let isOddMatch = false;
3328
+ if (opener.close || closer.open) {
3329
+ if ((opener.length + closer.length) % 3 === 0) {
3330
+ if (opener.length % 3 !== 0 || closer.length % 3 !== 0) isOddMatch = true;
3331
+ }
3332
+ }
3333
+ if (!isOddMatch) {
3334
+ const lastJump = openerIdx > 0 && !delimiters[openerIdx - 1].open ? jumps[openerIdx - 1] + 1 : 0;
3335
+ jumps[closerIdx] = closerIdx - openerIdx + lastJump;
3336
+ jumps[openerIdx] = lastJump;
3337
+ closer.open = false;
3338
+ opener.end = closerIdx;
3339
+ opener.close = false;
3340
+ newMinOpenerIdx = -1;
3341
+ lastTokenIdx = -2;
3342
+ break;
3343
+ }
3344
+ }
3345
+ }
3346
+ if (newMinOpenerIdx !== -1) openersBottom[closer.marker][(closer.open ? 3 : 0) + (closer.length || 0) % 3] = newMinOpenerIdx;
3347
+ }
3348
+ }
3349
+ function link_pairs(state) {
3350
+ const tokens_meta = state.tokens_meta;
3351
+ const max = state.tokens_meta.length;
3352
+ processDelimiters(state.delimiters);
3353
+ for (let curr = 0; curr < max; curr++) {
3354
+ var _tokens_meta$curr;
3355
+ const delimiters = (_tokens_meta$curr = tokens_meta[curr]) === null || _tokens_meta$curr === void 0 ? void 0 : _tokens_meta$curr.delimiters;
3356
+ if (delimiters) processDelimiters(delimiters);
3357
+ }
3358
+ }
3359
+ //#endregion
3360
+ //#region src/rules_inline/fragments_join.ts
3361
+ function fragments_join(state) {
3362
+ let curr, last;
3363
+ let level = 0;
3364
+ const tokens = state.tokens;
3365
+ const max = state.tokens.length;
3366
+ for (curr = last = 0; curr < max; curr++) {
3367
+ if (tokens[curr].nesting < 0) level--;
3368
+ tokens[curr].level = level;
3369
+ if (tokens[curr].nesting > 0) level++;
3370
+ if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
3371
+ else {
3372
+ if (curr !== last) tokens[last] = tokens[curr];
3373
+ last++;
3374
+ }
3375
+ }
3376
+ if (curr !== last) tokens.length = last;
3377
+ }
3378
+ //#endregion
3379
+ //#region src/parser_inline.ts
3380
+ var _rules = [
3381
+ ["text", text],
3382
+ ["linkify", linkify],
3383
+ ["newline", newline],
3384
+ ["escape", escape],
3385
+ ["backticks", backtick],
3386
+ ["strikethrough", strikethrough_default.tokenize],
3387
+ ["emphasis", emphasis_default.tokenize],
3388
+ ["link", link],
3389
+ ["image", image],
3390
+ ["autolink", autolink],
3391
+ ["html_inline", html_inline],
3392
+ ["entity", entity]
3393
+ ];
3394
+ var _rules2 = [
3395
+ ["balance_pairs", link_pairs],
3396
+ ["strikethrough", strikethrough_default.postProcess],
3397
+ ["emphasis", emphasis_default.postProcess],
3398
+ ["fragments_join", fragments_join]
3399
+ ];
3400
+ /**
3401
+ * Tokenizes paragraph content.
3402
+ */
3403
+ var ParserInline = class {
3404
+ constructor() {
3405
+ _defineProperty(
3406
+ this,
3407
+ /**
3408
+ * {@link Ruler} instance. Keep configuration of inline rules.
3409
+ */
3410
+ "ruler",
3411
+ new Ruler()
3412
+ );
3413
+ _defineProperty(
3414
+ this,
3415
+ /**
3416
+ * {@link Ruler} instance. Second ruler used for post-processing
3417
+ * (e.g. in emphasis-like rules).
3418
+ */
3419
+ "ruler2",
3420
+ new Ruler()
3421
+ );
3422
+ _defineProperty(this, "State", StateInline);
3423
+ for (let i = 0; i < _rules.length; i++) this.ruler.push(_rules[i][0], _rules[i][1]);
3424
+ for (let i = 0; i < _rules2.length; i++) this.ruler2.push(_rules2[i][0], _rules2[i][1]);
3425
+ }
3426
+ skipToken(state) {
3427
+ const pos = state.pos;
3428
+ const rules = this.ruler.getRules("");
3429
+ const len = rules.length;
3430
+ const maxNesting = state.md.options.maxNesting;
3431
+ const cache = state.cache;
3432
+ if (typeof cache[pos] !== "undefined") {
3433
+ state.pos = cache[pos];
3434
+ return;
3435
+ }
3436
+ let ok = false;
3437
+ if (state.level < maxNesting) for (let i = 0; i < len; i++) {
3438
+ state.level++;
3439
+ ok = rules[i](state, true);
3440
+ state.level--;
3441
+ if (ok) {
3442
+ if (pos >= state.pos) throw new Error("inline rule didn't increment state.pos");
3443
+ break;
3444
+ }
3445
+ }
3446
+ else state.pos = state.posMax;
3447
+ if (!ok) state.pos++;
3448
+ cache[pos] = state.pos;
3449
+ }
3450
+ tokenize(state) {
3451
+ const rules = this.ruler.getRules("");
3452
+ const len = rules.length;
3453
+ const end = state.posMax;
3454
+ const maxNesting = state.md.options.maxNesting;
3455
+ while (state.pos < end) {
3456
+ const prevPos = state.pos;
3457
+ let ok = false;
3458
+ if (state.level < maxNesting) for (let i = 0; i < len; i++) {
3459
+ ok = rules[i](state, false);
3460
+ if (ok) {
3461
+ if (prevPos >= state.pos) throw new Error("inline rule didn't increment state.pos");
3462
+ break;
3463
+ }
3464
+ }
3465
+ if (ok) {
3466
+ if (state.pos >= end) break;
3467
+ continue;
3468
+ }
3469
+ state.pending += state.src[state.pos++];
3470
+ }
3471
+ if (state.pending) state.pushPending();
3472
+ }
3473
+ /**
3474
+ * Process input string and push inline tokens into `outTokens`
3475
+ */
3476
+ parse(str, md, env, outTokens) {
3477
+ const state = new this.State(str, md, env, outTokens);
3478
+ this.tokenize(state);
3479
+ const rules = this.ruler2.getRules("");
3480
+ const len = rules.length;
3481
+ for (let i = 0; i < len; i++) rules[i](state);
3482
+ }
3483
+ };
3484
+ //#endregion
3485
+ //#region src/markdownit.ts
3486
+ var config = {
3487
+ default: {
3488
+ options: {
3489
+ html: false,
3490
+ xhtmlOut: false,
3491
+ breaks: false,
3492
+ langPrefix: "language-",
3493
+ linkify: false,
3494
+ typographer: false,
3495
+ quotes: "“”‘’",
3496
+ highlight: null,
3497
+ maxNesting: 100
3498
+ },
3499
+ components: {
3500
+ core: {},
3501
+ block: {},
3502
+ inline: {}
3503
+ }
3504
+ },
3505
+ zero: {
3506
+ options: {
3507
+ html: false,
3508
+ xhtmlOut: false,
3509
+ breaks: false,
3510
+ langPrefix: "language-",
3511
+ linkify: false,
3512
+ typographer: false,
3513
+ quotes: "“”‘’",
3514
+ highlight: null,
3515
+ maxNesting: 20
3516
+ },
3517
+ components: {
3518
+ core: { rules: [
3519
+ "normalize",
3520
+ "block",
3521
+ "strip_references",
3522
+ "inline",
3523
+ "text_join"
3524
+ ] },
3525
+ block: { rules: ["paragraph"] },
3526
+ inline: {
3527
+ rules: ["text"],
3528
+ rules2: ["balance_pairs", "fragments_join"]
3529
+ }
3530
+ }
3531
+ },
3532
+ commonmark: {
3533
+ options: {
3534
+ html: true,
3535
+ xhtmlOut: true,
3536
+ breaks: false,
3537
+ langPrefix: "language-",
3538
+ linkify: false,
3539
+ typographer: false,
3540
+ quotes: "“”‘’",
3541
+ highlight: null,
3542
+ maxNesting: 20
3543
+ },
3544
+ components: {
3545
+ core: { rules: [
3546
+ "normalize",
3547
+ "block",
3548
+ "strip_references",
3549
+ "inline",
3550
+ "text_join"
3551
+ ] },
3552
+ block: { rules: [
3553
+ "blockquote",
3554
+ "code",
3555
+ "fence",
3556
+ "heading",
3557
+ "hr",
3558
+ "html_block",
3559
+ "lheading",
3560
+ "list",
3561
+ "reference",
3562
+ "paragraph"
3563
+ ] },
3564
+ inline: {
3565
+ rules: [
3566
+ "autolink",
3567
+ "backticks",
3568
+ "emphasis",
3569
+ "entity",
3570
+ "escape",
3571
+ "html_inline",
3572
+ "image",
3573
+ "link",
3574
+ "newline",
3575
+ "text"
3576
+ ],
3577
+ rules2: [
3578
+ "balance_pairs",
3579
+ "emphasis",
3580
+ "fragments_join"
3581
+ ]
3582
+ }
3583
+ }
3584
+ }
3585
+ };
3586
+ var BAD_PROTO_RE = /^(vbscript|javascript|file|data):/;
3587
+ var GOOD_DATA_RE = /^data:image\/(gif|png|jpeg|webp);/;
3588
+ var RECODE_HOSTNAME_FOR = [
3589
+ "http:",
3590
+ "https:",
3591
+ "mailto:"
3592
+ ];
3593
+ /**
3594
+ * Parses Markdown into tokens and renders them to HTML.
3595
+ *
3596
+ * @category Main
3597
+ */
3598
+ var MarkdownIt = class {
3599
+ /**
3600
+ * Link validation function. CommonMark allows too much in links. By default
3601
+ * we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas
3602
+ * except some embedded image types.
3603
+ *
3604
+ * You can change this behaviour:
3605
+ *
3606
+ * @example
3607
+ * ```javascript
3608
+ * import MarkdownIt from 'markdown-it'
3609
+ * const md = new MarkdownIt()
3610
+ *
3611
+ * // enable everything
3612
+ * md.validateLink = function () { return true; }
3613
+ * ```
3614
+ */
3615
+ validateLink(url) {
3616
+ const str = url.trim().toLowerCase();
3617
+ return BAD_PROTO_RE.test(str) ? GOOD_DATA_RE.test(str) : true;
3618
+ }
3619
+ /**
3620
+ * Function used to encode link url to a machine-readable format,
3621
+ * which includes url-encoding, punycode, etc.
3622
+ */
3623
+ normalizeLink(url) {
3624
+ const parsed = mdurl.parse(url, true);
3625
+ if (parsed.hostname) {
3626
+ if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) try {
3627
+ parsed.hostname = punycode.toASCII(parsed.hostname);
3628
+ } catch (er) {}
3629
+ }
3630
+ if (parsed.auth) parsed.auth = mdurl.encode(parsed.auth);
3631
+ if (parsed.hostname) parsed.hostname = mdurl.encode(parsed.hostname);
3632
+ if (parsed.pathname) parsed.pathname = mdurl.encode(parsed.pathname);
3633
+ if (parsed.search) parsed.search = mdurl.encode(parsed.search);
3634
+ if (parsed.hash) parsed.hash = mdurl.encode(parsed.hash);
3635
+ return mdurl.format(parsed);
3636
+ }
3637
+ /**
3638
+ * Function used to decode link url to a human-readable format`
3639
+ */
3640
+ normalizeLinkText(url) {
3641
+ const parsed = mdurl.parse(url, true);
3642
+ if (parsed.hostname) {
3643
+ if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) try {
3644
+ parsed.hostname = punycode.toUnicode(parsed.hostname);
3645
+ } catch (er) {}
3646
+ }
3647
+ return mdurl.decode(mdurl.format(parsed), mdurl.decode.defaultChars + "%");
3648
+ }
3649
+ constructor(...args) {
3650
+ _defineProperty(
3651
+ this,
3652
+ /**
3653
+ * Instance of {@link ParserInline}. You may need it to add new rules when
3654
+ * writing plugins. For simple rules control use {@link MarkdownIt.disable}
3655
+ * and {@link MarkdownIt.enable}.
3656
+ */
3657
+ "inline",
3658
+ new ParserInline()
3659
+ );
3660
+ _defineProperty(
3661
+ this,
3662
+ /**
3663
+ * Instance of {@link ParserBlock}. You may need it to add new rules when
3664
+ * writing plugins. For simple rules control use {@link MarkdownIt.disable}
3665
+ * and {@link MarkdownIt.enable}.
3666
+ */
3667
+ "block",
3668
+ new ParserBlock()
3669
+ );
3670
+ _defineProperty(
3671
+ this,
3672
+ /**
3673
+ * Instance of {@link ParserCore} chain executor. You may need it to add new
3674
+ * rules when writing plugins. For simple rules control use
3675
+ * {@link MarkdownIt.disable} and {@link MarkdownIt.enable}.
3676
+ */
3677
+ "core",
3678
+ new ParserCore()
3679
+ );
3680
+ _defineProperty(
3681
+ this,
3682
+ /**
3683
+ * Instance of {@link Renderer}. Use it to modify output look. Or to add rendering
3684
+ * rules for new token types, generated by plugins.
3685
+ *
3686
+ * See {@link Renderer} docs and
3687
+ * [source code](https://github.com/markdown-it/markdown-it/blob/master/src/renderer.ts).
3688
+ *
3689
+ * @example
3690
+ * ```javascript
3691
+ * import MarkdownIt from 'markdown-it'
3692
+ * const md = new MarkdownIt()
3693
+ *
3694
+ * function myToken(tokens, idx, options, env, self) {
3695
+ * //...
3696
+ * return result;
3697
+ * };
3698
+ *
3699
+ * md.renderer.rules['my_token'] = myToken
3700
+ * ```
3701
+ */
3702
+ "renderer",
3703
+ new Renderer()
3704
+ );
3705
+ _defineProperty(
3706
+ this,
3707
+ /**
3708
+ * [linkify-it](https://github.com/markdown-it/linkify-it) instance.
3709
+ * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/src/rules_core/linkify.ts)
3710
+ * rule.
3711
+ */
3712
+ "linkify",
3713
+ new LinkifyIt()
3714
+ );
3715
+ _defineProperty(
3716
+ this,
3717
+ /**
3718
+ * Assorted utility functions, useful to write plugins. See details
3719
+ * [here](https://github.com/markdown-it/markdown-it/blob/master/src/common/utils.ts).
3720
+ */
3721
+ "utils",
3722
+ utils_exports
3723
+ );
3724
+ _defineProperty(
3725
+ this,
3726
+ /**
3727
+ * Link components parser functions, useful to write plugins. See details
3728
+ * [here](https://github.com/markdown-it/markdown-it/blob/master/src/helpers).
3729
+ */
3730
+ "helpers",
3731
+ Object.assign({}, helpers_exports)
3732
+ );
3733
+ const [presetNameOrOptions, options] = args;
3734
+ if (typeof presetNameOrOptions === "string") {
3735
+ this.configure(presetNameOrOptions);
3736
+ if (options) this.set(options);
3737
+ } else {
3738
+ this.configure("default");
3739
+ this.set(presetNameOrOptions || {});
3740
+ }
3741
+ }
3742
+ /**
3743
+ * Set parser options (in the same format as in constructor). Probably, you
3744
+ * will never need it, but you can change options after constructor call.
3745
+ *
3746
+ * __Note:__ To achieve the best possible performance, don't modify a
3747
+ * `markdown-it` instance options on the fly. If you need multiple configurations
3748
+ * it's best to create multiple instances and initialize each with separate
3749
+ * config.
3750
+ *
3751
+ * @example
3752
+ * ```javascript
3753
+ * import MarkdownIt from 'markdown-it'
3754
+ *
3755
+ * const md = new MarkdownIt()
3756
+ * .set({ html: true, breaks: true })
3757
+ * .set({ typographer: true })
3758
+ * ```
3759
+ */
3760
+ set(options) {
3761
+ Object.assign(this.options, options);
3762
+ return this;
3763
+ }
3764
+ /**
3765
+ * Batch load of all options and compenent settings. This is internal method,
3766
+ * and you probably will not need it. But if you will - see available presets
3767
+ * and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/src/presets)
3768
+ *
3769
+ * We strongly recommend to use presets instead of direct config loads. That
3770
+ * will give better compatibility with next versions.
3771
+ */
3772
+ configure(presets) {
3773
+ let p;
3774
+ if (typeof presets === "string") {
3775
+ const presetName = presets;
3776
+ p = config[presetName];
3777
+ if (!p) throw new Error(`Wrong 'markdown-it' preset "${presetName}", check name`);
3778
+ } else p = presets;
3779
+ if (!p) throw new Error("Wrong `markdown-it` preset, can't be empty");
3780
+ if (p.options) this.options = { ...p.options };
3781
+ const components = p.components;
3782
+ if (components) {
3783
+ var _components$inline;
3784
+ [
3785
+ "core",
3786
+ "block",
3787
+ "inline"
3788
+ ].forEach((name) => {
3789
+ var _components$name;
3790
+ const rules = (_components$name = components[name]) === null || _components$name === void 0 ? void 0 : _components$name.rules;
3791
+ if (rules) this[name].ruler.enableOnly(rules);
3792
+ });
3793
+ const rules2 = (_components$inline = components.inline) === null || _components$inline === void 0 ? void 0 : _components$inline.rules2;
3794
+ if (rules2) this.inline.ruler2.enableOnly(rules2);
3795
+ }
3796
+ return this;
3797
+ }
3798
+ /**
3799
+ * Enable list or rules. It will automatically find appropriate components,
3800
+ * containing rules with given names. If rule not found, and `ignoreInvalid`
3801
+ * not set - throws exception.
3802
+ *
3803
+ * @example
3804
+ * ```javascript
3805
+ * import MarkdownIt from 'markdown-it'
3806
+ *
3807
+ * const md = new MarkdownIt()
3808
+ * .enable(['sub', 'sup'])
3809
+ * .disable('smartquotes')
3810
+ * ```
3811
+ */
3812
+ enable(list, ignoreInvalid = false) {
3813
+ let result = [];
3814
+ if (!Array.isArray(list)) list = [list];
3815
+ [
3816
+ "core",
3817
+ "block",
3818
+ "inline"
3819
+ ].forEach((chain) => {
3820
+ result = result.concat(this[chain].ruler.enable(list, true));
3821
+ });
3822
+ result = result.concat(this.inline.ruler2.enable(list, true));
3823
+ const missed = list.filter((name) => result.indexOf(name) < 0);
3824
+ if (missed.length && !ignoreInvalid) throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${missed}`);
3825
+ return this;
3826
+ }
3827
+ /**
3828
+ * The same as {@link MarkdownIt.enable}, but turn specified rules off.
3829
+ */
3830
+ disable(list, ignoreInvalid = false) {
3831
+ let result = [];
3832
+ if (!Array.isArray(list)) list = [list];
3833
+ [
3834
+ "core",
3835
+ "block",
3836
+ "inline"
3837
+ ].forEach((chain) => {
3838
+ result = result.concat(this[chain].ruler.disable(list, true));
3839
+ });
3840
+ result = result.concat(this.inline.ruler2.disable(list, true));
3841
+ const missed = list.filter((name) => result.indexOf(name) < 0);
3842
+ if (missed.length && !ignoreInvalid) throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${missed}`);
3843
+ return this;
3844
+ }
3845
+ /**
3846
+ * Load specified plugin with given params into current parser instance.
3847
+ * It's just a sugar to call `plugin(md, params)` with curring.
3848
+ *
3849
+ * @example
3850
+ * ```javascript
3851
+ * import MarkdownIt from 'markdown-it'
3852
+ * import iterator from 'markdown-it-for-inline'
3853
+ *
3854
+ * const md = new MarkdownIt()
3855
+ * .use(iterator, 'foo_replace', 'text', function (tokens, idx) {
3856
+ * tokens[idx].content = tokens[idx].content.replace(/foo/g, 'bar')
3857
+ * })
3858
+ * ```
3859
+ */
3860
+ use(plugin, ...params) {
3861
+ plugin.apply(plugin, [this, ...params]);
3862
+ return this;
3863
+ }
3864
+ /**
3865
+ * Parse input string and return list of block tokens (special token type
3866
+ * "inline" will contain list of inline tokens). You should not call this
3867
+ * method directly, until you write custom renderer (for example, to produce
3868
+ * AST).
3869
+ *
3870
+ * `env` is used to pass data between "distributed" rules and return additional
3871
+ * metadata like reference info, needed for the renderer. It also can be used to
3872
+ * inject data in specific cases. Usually, you will be ok to pass `{}`,
3873
+ * and then pass updated object to renderer.
3874
+ */
3875
+ parse(src, env) {
3876
+ if (typeof src !== "string") throw new Error("Input data should be a String");
3877
+ const state = new this.core.State(src, this, env);
3878
+ this.core.process(state);
3879
+ return state.tokens;
3880
+ }
3881
+ /**
3882
+ * Render markdown string into html. It does all magic for you :).
3883
+ *
3884
+ * `env` can be used to inject additional metadata (`{}` by default).
3885
+ * But you will not need it with high probability. See also comment
3886
+ * in {@link MarkdownIt.parse}.
3887
+ */
3888
+ render(src, env = {}) {
3889
+ return this.renderer.render(this.parse(src, env), this.options, env);
3890
+ }
3891
+ /**
3892
+ * The same as {@link MarkdownIt.parse} but skip all block rules. It returns
3893
+ * the block tokens list with the single `inline` element, containing parsed
3894
+ * inline tokens in `children` property. Also updates `env` object.
3895
+ */
3896
+ parseInline(src, env) {
3897
+ const state = new this.core.State(src, this, env);
3898
+ state.inlineMode = true;
3899
+ this.core.process(state);
3900
+ return state.tokens;
3901
+ }
3902
+ /**
3903
+ * Similar to {@link MarkdownIt.render} but for single paragraph content.
3904
+ * Result will NOT be wrapped into `<p>` tags.
3905
+ */
3906
+ renderInline(src, env = {}) {
3907
+ return this.renderer.render(this.parseInline(src, env), this.options, env);
3908
+ }
3909
+ };
3910
+ _defineProperty(MarkdownIt, "Token", Token);
3911
+ _defineProperty(MarkdownIt, "Ruler", Ruler);
3912
+ _defineProperty(MarkdownIt, "Renderer", Renderer);
3913
+ _defineProperty(MarkdownIt, "ParserCore", ParserCore);
3914
+ _defineProperty(MarkdownIt, "StateCore", StateCore);
3915
+ _defineProperty(MarkdownIt, "ParserBlock", ParserBlock);
3916
+ _defineProperty(MarkdownIt, "StateBlock", StateBlock);
3917
+ _defineProperty(MarkdownIt, "ParserInline", ParserInline);
3918
+ _defineProperty(MarkdownIt, "StateInline", StateInline);
3919
+ //#endregion
3920
+ //#region src/index.ts
3921
+ /**
3922
+ * Default package export.
3923
+ *
3924
+ * For backward compatibility, the {@link MarkdownIt} class is wrapped so
3925
+ * legacy code can call it without `new`. New code should instantiate it as a
3926
+ * regular class with `new`. The compatibility wrapper may be removed in a
3927
+ * future release.
3928
+ *
3929
+ * @category Main
3930
+ */
3931
+ var MarkdownItCallable = callable(MarkdownIt);
3932
+ //#endregion
3933
+ export { MarkdownItCallable as default };
3934
+
3935
+ //# sourceMappingURL=markdown-it.mjs.map