@limetech/kompendium 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +313 -0
  3. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +13 -0
  4. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +1 -0
  5. package/dist/cjs/anchor-scroll-BmplAyR0.js +69 -0
  6. package/dist/cjs/anchor-scroll-BmplAyR0.js.map +1 -0
  7. package/dist/cjs/index-DYiJ6dQL.js +1866 -0
  8. package/dist/cjs/index-DYiJ6dQL.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +3 -0
  10. package/dist/cjs/index.cjs.js.map +1 -0
  11. package/dist/cjs/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.cjs.js.map +1 -0
  12. package/dist/cjs/kompendium-app_7.cjs.entry.js +2924 -0
  13. package/dist/cjs/kompendium-code.cjs.entry.js +2724 -0
  14. package/dist/cjs/kompendium-code.entry.cjs.js.map +1 -0
  15. package/dist/cjs/kompendium-component.cjs.entry.js +207 -0
  16. package/dist/cjs/kompendium-component.entry.cjs.js.map +1 -0
  17. package/dist/cjs/kompendium-debug.cjs.entry.js +47 -0
  18. package/dist/cjs/kompendium-debug.entry.cjs.js.map +1 -0
  19. package/dist/cjs/kompendium-example-code.cjs.entry.js +20 -0
  20. package/dist/cjs/kompendium-example-code.entry.cjs.js.map +1 -0
  21. package/dist/cjs/kompendium-example-markdown.cjs.entry.js +165 -0
  22. package/dist/cjs/kompendium-example-markdown.entry.cjs.js.map +1 -0
  23. package/dist/cjs/kompendium-guide.cjs.entry.js +33 -0
  24. package/dist/cjs/kompendium-guide.entry.cjs.js.map +1 -0
  25. package/dist/cjs/kompendium-markdown.cjs.entry.js +48923 -0
  26. package/dist/cjs/kompendium-markdown.entry.cjs.js.map +1 -0
  27. package/dist/cjs/kompendium-playground.cjs.entry.js +89 -0
  28. package/dist/cjs/kompendium-playground.entry.cjs.js.map +1 -0
  29. package/dist/cjs/kompendium-proplist.kompendium-taglist.entry.cjs.js.map +1 -0
  30. package/dist/cjs/kompendium-proplist_2.cjs.entry.js +49 -0
  31. package/dist/cjs/kompendium-type.cjs.entry.js +83 -0
  32. package/dist/cjs/kompendium-type.entry.cjs.js.map +1 -0
  33. package/dist/cjs/kompendium.cjs.js +25 -0
  34. package/dist/cjs/kompendium.cjs.js.map +1 -0
  35. package/dist/cjs/loader.cjs.js +13 -0
  36. package/dist/cjs/loader.cjs.js.map +1 -0
  37. package/dist/cjs/markdown-types-B884tLd-.js +15 -0
  38. package/dist/cjs/markdown-types-B884tLd-.js.map +1 -0
  39. package/dist/cjs/methods-DoA78dOH.js +97 -0
  40. package/dist/cjs/methods-DoA78dOH.js.map +1 -0
  41. package/dist/cjs/types-SjA7Kcy_.js +8 -0
  42. package/dist/cjs/types-SjA7Kcy_.js.map +1 -0
  43. package/dist/collection/assets/favicon.svg +65 -0
  44. package/dist/collection/assets/icons/bookmark-fill.svg +1 -0
  45. package/dist/collection/assets/icons/danger.svg +1 -0
  46. package/dist/collection/assets/icons/debug.svg +1 -0
  47. package/dist/collection/assets/icons/important.svg +1 -0
  48. package/dist/collection/assets/icons/info.svg +1 -0
  49. package/dist/collection/assets/icons/logo.svg +1 -0
  50. package/dist/collection/assets/icons/note.svg +1 -0
  51. package/dist/collection/assets/icons/search.svg +1 -0
  52. package/dist/collection/assets/icons/tip.svg +1 -0
  53. package/dist/collection/assets/icons/warning.svg +1 -0
  54. package/dist/collection/assets/logotype.svg +64 -0
  55. package/dist/collection/collection-manifest.json +35 -0
  56. package/dist/collection/components/anchor-scroll.js +61 -0
  57. package/dist/collection/components/anchor-scroll.js.map +1 -0
  58. package/dist/collection/components/app/app.css +125 -0
  59. package/dist/collection/components/app/app.js +149 -0
  60. package/dist/collection/components/app/app.js.map +1 -0
  61. package/dist/collection/components/code/code.css +250 -0
  62. package/dist/collection/components/code/code.js +82 -0
  63. package/dist/collection/components/code/code.js.map +1 -0
  64. package/dist/collection/components/code/examples/code.js +14 -0
  65. package/dist/collection/components/code/examples/code.js.map +1 -0
  66. package/dist/collection/components/component/component.css +383 -0
  67. package/dist/collection/components/component/component.js +191 -0
  68. package/dist/collection/components/component/component.js.map +1 -0
  69. package/dist/collection/components/component/templates/events.js +32 -0
  70. package/dist/collection/components/component/templates/events.js.map +1 -0
  71. package/dist/collection/components/component/templates/examples.js +17 -0
  72. package/dist/collection/components/component/templates/examples.js.map +1 -0
  73. package/dist/collection/components/component/templates/methods.js +54 -0
  74. package/dist/collection/components/component/templates/methods.js.map +1 -0
  75. package/dist/collection/components/component/templates/props.js +36 -0
  76. package/dist/collection/components/component/templates/props.js.map +1 -0
  77. package/dist/collection/components/component/templates/slots.js +14 -0
  78. package/dist/collection/components/component/templates/slots.js.map +1 -0
  79. package/dist/collection/components/component/templates/style.js +14 -0
  80. package/dist/collection/components/component/templates/style.js.map +1 -0
  81. package/dist/collection/components/darkmode-switch/darkmode-switch.css +141 -0
  82. package/dist/collection/components/darkmode-switch/darkmode-switch.js +90 -0
  83. package/dist/collection/components/darkmode-switch/darkmode-switch.js.map +1 -0
  84. package/dist/collection/components/darkmode-switch/types.js +2 -0
  85. package/dist/collection/components/darkmode-switch/types.js.map +1 -0
  86. package/dist/collection/components/debug/debug.js +146 -0
  87. package/dist/collection/components/debug/debug.js.map +1 -0
  88. package/dist/collection/components/guide/guide.js +61 -0
  89. package/dist/collection/components/guide/guide.js.map +1 -0
  90. package/dist/collection/components/markdown/examples/markdown-example.js +150 -0
  91. package/dist/collection/components/markdown/examples/markdown-example.js.map +1 -0
  92. package/dist/collection/components/markdown/examples/markdown.js +14 -0
  93. package/dist/collection/components/markdown/examples/markdown.js.map +1 -0
  94. package/dist/collection/components/markdown/markdown-types.js +8 -0
  95. package/dist/collection/components/markdown/markdown-types.js.map +1 -0
  96. package/dist/collection/components/markdown/markdown.css +660 -0
  97. package/dist/collection/components/markdown/markdown.js +83 -0
  98. package/dist/collection/components/markdown/markdown.js.map +1 -0
  99. package/dist/collection/components/navigation/navigation.css +403 -0
  100. package/dist/collection/components/navigation/navigation.js +184 -0
  101. package/dist/collection/components/navigation/navigation.js.map +1 -0
  102. package/dist/collection/components/playground/playground.css +198 -0
  103. package/dist/collection/components/playground/playground.js +174 -0
  104. package/dist/collection/components/playground/playground.js.map +1 -0
  105. package/dist/collection/components/playground/playground.types.js +2 -0
  106. package/dist/collection/components/playground/playground.types.js.map +1 -0
  107. package/dist/collection/components/proplist/proplist.css +334 -0
  108. package/dist/collection/components/proplist/proplist.js +53 -0
  109. package/dist/collection/components/proplist/proplist.js.map +1 -0
  110. package/dist/collection/components/search/search.css +183 -0
  111. package/dist/collection/components/search/search.js +76 -0
  112. package/dist/collection/components/search/search.js.map +1 -0
  113. package/dist/collection/components/taglist/taglist.css +58 -0
  114. package/dist/collection/components/taglist/taglist.js +82 -0
  115. package/dist/collection/components/taglist/taglist.js.map +1 -0
  116. package/dist/collection/components/type/templates/alias.js +11 -0
  117. package/dist/collection/components/type/templates/alias.js.map +1 -0
  118. package/dist/collection/components/type/templates/enum.js +25 -0
  119. package/dist/collection/components/type/templates/enum.js.map +1 -0
  120. package/dist/collection/components/type/templates/interface.js +13 -0
  121. package/dist/collection/components/type/templates/interface.js.map +1 -0
  122. package/dist/collection/components/type/type.js +97 -0
  123. package/dist/collection/components/type/type.js.map +1 -0
  124. package/dist/collection/index.js +4 -0
  125. package/dist/collection/index.js.map +1 -0
  126. package/dist/collection/kompendium/config.js +7 -0
  127. package/dist/collection/kompendium/config.js.map +1 -0
  128. package/dist/collection/kompendium/filesystem.js +9 -0
  129. package/dist/collection/kompendium/filesystem.js.map +1 -0
  130. package/dist/collection/kompendium/generator.js +217 -0
  131. package/dist/collection/kompendium/generator.js.map +1 -0
  132. package/dist/collection/kompendium/guides.js +30 -0
  133. package/dist/collection/kompendium/guides.js.map +1 -0
  134. package/dist/collection/kompendium/index.js +2 -0
  135. package/dist/collection/kompendium/index.js.map +1 -0
  136. package/dist/collection/kompendium/markdown-admonitions.js +82 -0
  137. package/dist/collection/kompendium/markdown-admonitions.js.map +1 -0
  138. package/dist/collection/kompendium/markdown-code.js +40 -0
  139. package/dist/collection/kompendium/markdown-code.js.map +1 -0
  140. package/dist/collection/kompendium/markdown-frontmatter.js +12 -0
  141. package/dist/collection/kompendium/markdown-frontmatter.js.map +1 -0
  142. package/dist/collection/kompendium/markdown-nodes.js +10 -0
  143. package/dist/collection/kompendium/markdown-nodes.js.map +1 -0
  144. package/dist/collection/kompendium/markdown-typelinks.js +115 -0
  145. package/dist/collection/kompendium/markdown-typelinks.js.map +1 -0
  146. package/dist/collection/kompendium/markdown.js +35 -0
  147. package/dist/collection/kompendium/markdown.js.map +1 -0
  148. package/dist/collection/kompendium/menu.js +149 -0
  149. package/dist/collection/kompendium/menu.js.map +1 -0
  150. package/dist/collection/kompendium/schema.js +167 -0
  151. package/dist/collection/kompendium/schema.js.map +1 -0
  152. package/dist/collection/kompendium/search.js +144 -0
  153. package/dist/collection/kompendium/search.js.map +1 -0
  154. package/dist/collection/kompendium/source.js +81 -0
  155. package/dist/collection/kompendium/source.js.map +1 -0
  156. package/dist/collection/kompendium/test/fixtures/basic.js +48 -0
  157. package/dist/collection/kompendium/test/fixtures/basic.js.map +1 -0
  158. package/dist/collection/kompendium/test/fixtures/filtering/example-type.js +2 -0
  159. package/dist/collection/kompendium/test/fixtures/filtering/example-type.js.map +1 -0
  160. package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js +2 -0
  161. package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js.map +1 -0
  162. package/dist/collection/kompendium/test/fixtures/filtering/private-types.js +2 -0
  163. package/dist/collection/kompendium/test/fixtures/filtering/private-types.js.map +1 -0
  164. package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js +2 -0
  165. package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js.map +1 -0
  166. package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js +2 -0
  167. package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js.map +1 -0
  168. package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js +29 -0
  169. package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js.map +1 -0
  170. package/dist/collection/kompendium/typedoc.js +481 -0
  171. package/dist/collection/kompendium/typedoc.js.map +1 -0
  172. package/dist/collection/kompendium/watch.js +9 -0
  173. package/dist/collection/kompendium/watch.js.map +1 -0
  174. package/dist/collection/types.js +2 -0
  175. package/dist/collection/types.js.map +1 -0
  176. package/dist/config.ts +8 -0
  177. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +10 -0
  178. package/dist/esm/_commonjsHelpers-BFTU3MAI.js.map +1 -0
  179. package/dist/esm/anchor-scroll-BAGXN2n6.js +65 -0
  180. package/dist/esm/anchor-scroll-BAGXN2n6.js.map +1 -0
  181. package/dist/esm/index-9UrzenzW.js +1857 -0
  182. package/dist/esm/index-9UrzenzW.js.map +1 -0
  183. package/dist/esm/index.js +2 -0
  184. package/dist/esm/index.js.map +1 -0
  185. package/dist/esm/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.js.map +1 -0
  186. package/dist/esm/kompendium-app_7.entry.js +2916 -0
  187. package/dist/esm/kompendium-code.entry.js +2722 -0
  188. package/dist/esm/kompendium-code.entry.js.map +1 -0
  189. package/dist/esm/kompendium-component.entry.js +205 -0
  190. package/dist/esm/kompendium-component.entry.js.map +1 -0
  191. package/dist/esm/kompendium-debug.entry.js +45 -0
  192. package/dist/esm/kompendium-debug.entry.js.map +1 -0
  193. package/dist/esm/kompendium-example-code.entry.js +18 -0
  194. package/dist/esm/kompendium-example-code.entry.js.map +1 -0
  195. package/dist/esm/kompendium-example-markdown.entry.js +163 -0
  196. package/dist/esm/kompendium-example-markdown.entry.js.map +1 -0
  197. package/dist/esm/kompendium-guide.entry.js +31 -0
  198. package/dist/esm/kompendium-guide.entry.js.map +1 -0
  199. package/dist/esm/kompendium-markdown.entry.js +48921 -0
  200. package/dist/esm/kompendium-markdown.entry.js.map +1 -0
  201. package/dist/esm/kompendium-playground.entry.js +87 -0
  202. package/dist/esm/kompendium-playground.entry.js.map +1 -0
  203. package/dist/esm/kompendium-proplist.kompendium-taglist.entry.js.map +1 -0
  204. package/dist/esm/kompendium-proplist_2.entry.js +46 -0
  205. package/dist/esm/kompendium-type.entry.js +81 -0
  206. package/dist/esm/kompendium-type.entry.js.map +1 -0
  207. package/dist/esm/kompendium.js +21 -0
  208. package/dist/esm/kompendium.js.map +1 -0
  209. package/dist/esm/loader.js +11 -0
  210. package/dist/esm/loader.js.map +1 -0
  211. package/dist/esm/markdown-types-Ajsawr_9.js +12 -0
  212. package/dist/esm/markdown-types-Ajsawr_9.js.map +1 -0
  213. package/dist/esm/methods-BAjd6f7g.js +94 -0
  214. package/dist/esm/methods-BAjd6f7g.js.map +1 -0
  215. package/dist/esm/types-BIPLEi1G.js +6 -0
  216. package/dist/esm/types-BIPLEi1G.js.map +1 -0
  217. package/dist/filesystem.ts +9 -0
  218. package/dist/generator.ts +302 -0
  219. package/dist/guides.ts +49 -0
  220. package/dist/index.cjs.js +1 -0
  221. package/dist/index.js +1 -0
  222. package/dist/index.ts +1 -0
  223. package/dist/kompendium/index.esm.js +2 -0
  224. package/dist/kompendium/index.esm.js.map +1 -0
  225. package/dist/kompendium/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.esm.js.map +1 -0
  226. package/dist/kompendium/kompendium-code.entry.esm.js.map +1 -0
  227. package/dist/kompendium/kompendium-component.entry.esm.js.map +1 -0
  228. package/dist/kompendium/kompendium-debug.entry.esm.js.map +1 -0
  229. package/dist/kompendium/kompendium-example-code.entry.esm.js.map +1 -0
  230. package/dist/kompendium/kompendium-example-markdown.entry.esm.js.map +1 -0
  231. package/dist/kompendium/kompendium-guide.entry.esm.js.map +1 -0
  232. package/dist/kompendium/kompendium-markdown.entry.esm.js.map +1 -0
  233. package/dist/kompendium/kompendium-playground.entry.esm.js.map +1 -0
  234. package/dist/kompendium/kompendium-proplist.kompendium-taglist.entry.esm.js.map +1 -0
  235. package/dist/kompendium/kompendium-type.entry.esm.js.map +1 -0
  236. package/dist/kompendium/kompendium.css +47 -0
  237. package/dist/kompendium/kompendium.esm.js +2 -0
  238. package/dist/kompendium/kompendium.esm.js.map +1 -0
  239. package/dist/kompendium/loader.esm.js.map +1 -0
  240. package/dist/kompendium/p-15e4b2c0.entry.js +2 -0
  241. package/dist/kompendium/p-15e4b2c0.entry.js.map +1 -0
  242. package/dist/kompendium/p-1cf0168f.entry.js +2 -0
  243. package/dist/kompendium/p-1cf0168f.entry.js.map +1 -0
  244. package/dist/kompendium/p-29c23c89.entry.js +2 -0
  245. package/dist/kompendium/p-29c23c89.entry.js.map +1 -0
  246. package/dist/kompendium/p-3981d11f.entry.js +2 -0
  247. package/dist/kompendium/p-3981d11f.entry.js.map +1 -0
  248. package/dist/kompendium/p-93f0548d.entry.js +2 -0
  249. package/dist/kompendium/p-93f0548d.entry.js.map +1 -0
  250. package/dist/kompendium/p-97b02575.entry.js +2 -0
  251. package/dist/kompendium/p-97b02575.entry.js.map +1 -0
  252. package/dist/kompendium/p-9UrzenzW.js +3 -0
  253. package/dist/kompendium/p-9UrzenzW.js.map +1 -0
  254. package/dist/kompendium/p-Ajsawr_9.js +2 -0
  255. package/dist/kompendium/p-Ajsawr_9.js.map +1 -0
  256. package/dist/kompendium/p-BAGXN2n6.js +2 -0
  257. package/dist/kompendium/p-BAGXN2n6.js.map +1 -0
  258. package/dist/kompendium/p-BFTU3MAI.js +2 -0
  259. package/dist/kompendium/p-BFTU3MAI.js.map +1 -0
  260. package/dist/kompendium/p-BIPLEi1G.js +2 -0
  261. package/dist/kompendium/p-BIPLEi1G.js.map +1 -0
  262. package/dist/kompendium/p-CnQEA7KO.js +2 -0
  263. package/dist/kompendium/p-CnQEA7KO.js.map +1 -0
  264. package/dist/kompendium/p-b0f95bd6.entry.js +2 -0
  265. package/dist/kompendium/p-b0f95bd6.entry.js.map +1 -0
  266. package/dist/kompendium/p-d9bcc473.entry.js +10 -0
  267. package/dist/kompendium/p-d9bcc473.entry.js.map +1 -0
  268. package/dist/kompendium/p-e36f3f1e.entry.js +2 -0
  269. package/dist/kompendium/p-e36f3f1e.entry.js.map +1 -0
  270. package/dist/kompendium/p-e52a2f57.entry.js +2 -0
  271. package/dist/kompendium/p-e52a2f57.entry.js.map +1 -0
  272. package/dist/kompendium/p-ec5861de.entry.js +2 -0
  273. package/dist/kompendium/p-ec5861de.entry.js.map +1 -0
  274. package/dist/markdown-admonitions.ts +112 -0
  275. package/dist/markdown-code.ts +51 -0
  276. package/dist/markdown-frontmatter.ts +19 -0
  277. package/dist/markdown-nodes.ts +23 -0
  278. package/dist/markdown-typelinks.ts +166 -0
  279. package/dist/markdown.ts +49 -0
  280. package/dist/menu.ts +189 -0
  281. package/dist/schema.ts +233 -0
  282. package/dist/search.ts +197 -0
  283. package/dist/source.ts +129 -0
  284. package/dist/typedoc.ts +665 -0
  285. package/dist/types/components/anchor-scroll.d.ts +36 -0
  286. package/dist/types/components/app/app.d.ts +22 -0
  287. package/dist/types/components/code/code.d.ts +26 -0
  288. package/dist/types/components/code/examples/code.d.ts +3 -0
  289. package/dist/types/components/component/component.d.ts +32 -0
  290. package/dist/types/components/component/templates/events.d.ts +5 -0
  291. package/dist/types/components/component/templates/examples.d.ts +9 -0
  292. package/dist/types/components/component/templates/methods.d.ts +5 -0
  293. package/dist/types/components/component/templates/props.d.ts +5 -0
  294. package/dist/types/components/component/templates/slots.d.ts +5 -0
  295. package/dist/types/components/component/templates/style.d.ts +5 -0
  296. package/dist/types/components/darkmode-switch/darkmode-switch.d.ts +18 -0
  297. package/dist/types/components/darkmode-switch/types.d.ts +2 -0
  298. package/dist/types/components/debug/debug.d.ts +24 -0
  299. package/dist/types/components/guide/guide.d.ts +14 -0
  300. package/dist/types/components/markdown/examples/markdown-example.d.ts +1 -0
  301. package/dist/types/components/markdown/examples/markdown.d.ts +7 -0
  302. package/dist/types/components/markdown/markdown-types.d.ts +2 -0
  303. package/dist/types/components/markdown/markdown.d.ts +20 -0
  304. package/dist/types/components/navigation/navigation.d.ts +35 -0
  305. package/dist/types/components/playground/playground.d.ts +32 -0
  306. package/dist/types/components/playground/playground.types.d.ts +1 -0
  307. package/dist/types/components/proplist/proplist.d.ts +12 -0
  308. package/dist/types/components/search/search.d.ts +15 -0
  309. package/dist/types/components/taglist/taglist.d.ts +16 -0
  310. package/dist/types/components/type/templates/alias.d.ts +4 -0
  311. package/dist/types/components/type/templates/enum.d.ts +4 -0
  312. package/dist/types/components/type/templates/interface.d.ts +4 -0
  313. package/dist/types/components/type/type.d.ts +15 -0
  314. package/dist/types/components.d.ts +517 -0
  315. package/dist/types/index.d.ts +5 -0
  316. package/dist/types/kompendium/config.d.ts +2 -0
  317. package/dist/types/kompendium/filesystem.d.ts +1 -0
  318. package/dist/types/kompendium/generator.d.ts +4 -0
  319. package/dist/types/kompendium/guides.d.ts +9 -0
  320. package/dist/types/kompendium/index.d.ts +1 -0
  321. package/dist/types/kompendium/markdown-admonitions.d.ts +3 -0
  322. package/dist/types/kompendium/markdown-code.d.ts +2 -0
  323. package/dist/types/kompendium/markdown-frontmatter.d.ts +6 -0
  324. package/dist/types/kompendium/markdown-nodes.d.ts +12 -0
  325. package/dist/types/kompendium/markdown-typelinks.d.ts +21 -0
  326. package/dist/types/kompendium/markdown.d.ts +8 -0
  327. package/dist/types/kompendium/menu.d.ts +12 -0
  328. package/dist/types/kompendium/schema.d.ts +9 -0
  329. package/dist/types/kompendium/search.d.ts +3 -0
  330. package/dist/types/kompendium/source.d.ts +10 -0
  331. package/dist/types/kompendium/test/fixtures/basic.d.ts +65 -0
  332. package/dist/types/kompendium/test/fixtures/filtering/example-type.d.ts +8 -0
  333. package/dist/types/kompendium/test/fixtures/filtering/node-modules-type.d.ts +8 -0
  334. package/dist/types/kompendium/test/fixtures/filtering/private-types.d.ts +23 -0
  335. package/dist/types/kompendium/test/fixtures/filtering/stencil-component-types.d.ts +19 -0
  336. package/dist/types/kompendium/test/fixtures/filtering/test-helper-type.d.ts +8 -0
  337. package/dist/types/kompendium/test/fixtures/filtering/valid-types.d.ts +42 -0
  338. package/dist/types/kompendium/typedoc.d.ts +2 -0
  339. package/dist/types/kompendium/watch.d.ts +1 -0
  340. package/dist/types/stencil-public-runtime.d.ts +1746 -0
  341. package/dist/types/types.d.ts +119 -0
  342. package/dist/watch.ts +14 -0
  343. package/loader/cdn.js +1 -0
  344. package/loader/index.cjs.js +1 -0
  345. package/loader/index.d.ts +24 -0
  346. package/loader/index.es2017.js +1 -0
  347. package/loader/index.js +2 -0
  348. package/package.json +116 -0
@@ -0,0 +1,2 @@
1
+ import{r as e,h as t,a as n}from"./p-9UrzenzW.js";import{g as i}from"./p-BFTU3MAI.js";import{g as r}from"./p-Ajsawr_9.js";import{a as o}from"./p-BAGXN2n6.js";function s(e){if(e){throw e}}var l;var a;function u(){if(a)return l;a=1;var e=Object.prototype.hasOwnProperty;var t=Object.prototype.toString;var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var r=function e(n){if(typeof Array.isArray==="function"){return Array.isArray(n)}return t.call(n)==="[object Array]"};var o=function n(i){if(!i||t.call(i)!=="[object Object]"){return false}var r=e.call(i,"constructor");var o=i.constructor&&i.constructor.prototype&&e.call(i.constructor.prototype,"isPrototypeOf");if(i.constructor&&!r&&!o){return false}var s;for(s in i){}return typeof s==="undefined"||e.call(i,s)};var s=function e(t,i){if(n&&i.name==="__proto__"){n(t,i.name,{enumerable:true,configurable:true,value:i.newValue,writable:true})}else{t[i.name]=i.newValue}};var u=function t(n,r){if(r==="__proto__"){if(!e.call(n,r)){return void 0}else if(i){return i(n,r).value}}return n[r]};l=function e(){var t,n,i,l,a,c;var f=arguments[0];var h=1;var d=arguments.length;var p=false;if(typeof f==="boolean"){p=f;f=arguments[1]||{};h=2}if(f==null||typeof f!=="object"&&typeof f!=="function"){f={}}for(;h<d;++h){t=arguments[h];if(t!=null){for(n in t){i=u(f,n);l=u(t,n);if(f!==l){if(p&&l&&(o(l)||(a=r(l)))){if(a){a=false;c=i&&r(i)?i:[]}else{c=i&&o(i)?i:{}}s(f,{name:n,newValue:e(p,c,l)})}else if(typeof l!=="undefined"){s(f,{name:n,newValue:l})}}}}}return f};return l}var c=u();var f=i(c);function h(e){if(typeof e!=="object"||e===null){return false}const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function d(){const e=[];const t={run:n,use:i};return t;function n(...t){let n=-1;const i=t.pop();if(typeof i!=="function"){throw new TypeError("Expected function as last argument, not "+i)}r(null,...t);function r(o,...s){const l=e[++n];let a=-1;if(o){i(o);return}while(++a<t.length){if(s[a]===null||s[a]===undefined){s[a]=t[a]}}t=s;if(l){p(l,r)(...s)}else{i(null,...s)}}}function i(n){if(typeof n!=="function"){throw new TypeError("Expected `middelware` to be a function, not "+n)}e.push(n);return t}}function p(e,t){let n;return i;function i(...t){const i=e.length>t.length;let s;if(i){t.push(r)}try{s=e.apply(this,t)}catch(e){const t=e;if(i&&n){throw t}return r(t)}if(!i){if(s&&s.then&&typeof s.then==="function"){s.then(o,r)}else if(s instanceof Error){r(s)}else{o(s)}}}function r(e,...i){if(!n){n=true;t(e,...i)}}function o(e){r(null,e)}}function m(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return b(e.position)}if("start"in e||"end"in e){return b(e)}if("line"in e||"column"in e){return g(e)}return""}function g(e){return k(e&&e.line)+":"+k(e&&e.column)}function b(e){return g(e&&e.start)+"-"+g(e&&e.end)}function k(e){return e&&typeof e==="number"?e:1}class y extends Error{constructor(e,t,n){super();if(typeof t==="string"){n=t;t=undefined}let i="";let r={};let o=false;if(t){if("line"in t&&"column"in t){r={place:t}}else if("start"in t&&"end"in t){r={place:t}}else if("type"in t){r={ancestors:[t],place:t.position}}else{r={...t}}}if(typeof e==="string"){i=e}else if(!r.cause&&e){o=true;i=e.message;r.cause=e}if(!r.ruleId&&!r.source&&typeof n==="string"){const e=n.indexOf(":");if(e===-1){r.ruleId=n}else{r.source=n.slice(0,e);r.ruleId=n.slice(e+1)}}if(!r.place&&r.ancestors&&r.ancestors){const e=r.ancestors[r.ancestors.length-1];if(e){r.place=e.position}}const s=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||undefined;this.cause=r.cause||undefined;this.column=s?s.column:undefined;this.fatal=undefined;this.file="";this.message=i;this.line=s?s.line:undefined;this.name=m(r.place)||"1:1";this.place=r.place||undefined;this.reason=this.message;this.ruleId=r.ruleId||undefined;this.source=r.source||undefined;this.stack=o&&r.cause&&typeof r.cause.stack==="string"?r.cause.stack:"";this.actual=undefined;this.expected=undefined;this.note=undefined;this.url=undefined}}y.prototype.file="";y.prototype.name="";y.prototype.reason="";y.prototype.message="";y.prototype.stack="";y.prototype.column=undefined;y.prototype.line=undefined;y.prototype.ancestors=undefined;y.prototype.cause=undefined;y.prototype.fatal=undefined;y.prototype.place=undefined;y.prototype.ruleId=undefined;y.prototype.source=undefined;const D={basename:w,dirname:E,extname:v,join:A,sep:"/"};function w(e,t){if(t!==undefined&&typeof t!=="string"){throw new TypeError('"ext" argument must be a string')}S(e);let n=0;let i=-1;let r=e.length;let o;if(t===undefined||t.length===0||t.length>e.length){while(r--){if(e.codePointAt(r)===47){if(o){n=r+1;break}}else if(i<0){o=true;i=r+1}}return i<0?"":e.slice(n,i)}if(t===e){return""}let s=-1;let l=t.length-1;while(r--){if(e.codePointAt(r)===47){if(o){n=r+1;break}}else{if(s<0){o=true;s=r+1}if(l>-1){if(e.codePointAt(r)===t.codePointAt(l--)){if(l<0){i=r}}else{l=-1;i=s}}}}if(n===i){i=s}else if(i<0){i=e.length}return e.slice(n,i)}function E(e){S(e);if(e.length===0){return"."}let t=-1;let n=e.length;let i;while(--n){if(e.codePointAt(n)===47){if(i){t=n;break}}else if(!i){i=true}}return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function v(e){S(e);let t=e.length;let n=-1;let i=0;let r=-1;let o=0;let s;while(t--){const l=e.codePointAt(t);if(l===47){if(s){i=t+1;break}continue}if(n<0){s=true;n=t+1}if(l===46){if(r<0){r=t}else if(o!==1){o=1}}else if(r>-1){o=-1}}if(r<0||n<0||o===0||o===1&&r===n-1&&r===i+1){return""}return e.slice(r,n)}function A(...e){let t=-1;let n;while(++t<e.length){S(e[t]);if(e[t]){n=n===undefined?e[t]:n+"/"+e[t]}}return n===undefined?".":C(n)}function C(e){S(e);const t=e.codePointAt(0)===47;let n=F(e,!t);if(n.length===0&&!t){n="."}if(n.length>0&&e.codePointAt(e.length-1)===47){n+="/"}return t?"/"+n:n}function F(e,t){let n="";let i=0;let r=-1;let o=0;let s=-1;let l;let a;while(++s<=e.length){if(s<e.length){l=e.codePointAt(s)}else if(l===47){break}else{l=47}if(l===47){if(r===s-1||o===1);else if(r!==s-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){a=n.lastIndexOf("/");if(a!==n.length-1){if(a<0){n="";i=0}else{n=n.slice(0,a);i=n.length-1-n.lastIndexOf("/")}r=s;o=0;continue}}else if(n.length>0){n="";i=0;r=s;o=0;continue}}if(t){n=n.length>0?n+"/..":"..";i=2}}else{if(n.length>0){n+="/"+e.slice(r+1,s)}else{n=e.slice(r+1,s)}i=s-r-1}r=s;o=0}else if(l===46&&o>-1){o++}else{o=-1}}return n}function S(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}}const x={cwd:T};function T(){return"/"}function O(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===undefined)}function N(e){if(typeof e==="string"){e=new URL(e)}else if(!O(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");t.code="ERR_INVALID_ARG_TYPE";throw t}if(e.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");e.code="ERR_INVALID_URL_SCHEME";throw e}return L(e)}function L(e){if(e.hostname!==""){const e=new TypeError('File URL host must be "localhost" or empty on darwin');e.code="ERR_INVALID_FILE_URL_HOST";throw e}const t=e.pathname;let n=-1;while(++n<t.length){if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const e=t.codePointAt(n+2);if(e===70||e===102){const e=new TypeError("File URL path must not include encoded / characters");e.code="ERR_INVALID_FILE_URL_PATH";throw e}}}return decodeURIComponent(t)}const I=["history","path","basename","stem","extname","dirname"];class _{constructor(e){let t;if(!e){t={}}else if(O(e)){t={path:e}}else if(typeof e==="string"||P(e)){t={value:e}}else{t=e}this.cwd="cwd"in t?"":x.cwd();this.data={};this.history=[];this.messages=[];let n=-1;while(++n<I.length){const e=I[n];if(e in t&&t[e]!==undefined&&t[e]!==null){this[e]=e==="history"?[...t[e]]:t[e]}}let i;for(i in t){if(!I.includes(i)){this[i]=t[i]}}}get basename(){return typeof this.path==="string"?D.basename(this.path):undefined}set basename(e){B(e,"basename");M(e,"basename");this.path=D.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?D.dirname(this.path):undefined}set dirname(e){R(this.basename,"dirname");this.path=D.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?D.extname(this.path):undefined}set extname(e){M(e,"extname");R(this.dirname,"extname");if(e){if(e.codePointAt(0)!==46){throw new Error("`extname` must start with `.`")}if(e.includes(".",1)){throw new Error("`extname` cannot contain multiple dots")}}this.path=D.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if(O(e)){e=N(e)}B(e,"path");if(this.path!==e){this.history.push(e)}}get stem(){return typeof this.path==="string"?D.basename(this.path,this.extname):undefined}set stem(e){B(e,"stem");M(e,"stem");this.path=D.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const i=this.message(e,t,n);i.fatal=true;throw i}info(e,t,n){const i=this.message(e,t,n);i.fatal=undefined;return i}message(e,t,n){const i=new y(e,t,n);if(this.path){i.name=this.path+":"+i.name;i.file=this.path}i.fatal=false;this.messages.push(i);return i}toString(e){if(this.value===undefined){return""}if(typeof this.value==="string"){return this.value}const t=new TextDecoder(e||undefined);return t.decode(this.value)}}function M(e,t){if(e&&e.includes(D.sep)){throw new Error("`"+t+"` cannot be a path: did not expect `"+D.sep+"`")}}function B(e,t){if(!e){throw new Error("`"+t+"` cannot be empty")}}function R(e,t){if(!e){throw new Error("Setting `"+t+"` requires `path` to be set too")}}function P(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}const q=function(e){const t=this;const n=t.constructor;const i=n.prototype;const r=i[e];const o=function(){return r.apply(o,arguments)};Object.setPrototypeOf(o,i);return o};const U={}.hasOwnProperty;class j extends q{constructor(){super("copy");this.Compiler=undefined;this.Parser=undefined;this.attachers=[];this.compiler=undefined;this.freezeIndex=-1;this.frozen=undefined;this.namespace={};this.parser=undefined;this.transformers=d()}copy(){const e=new j;let t=-1;while(++t<this.attachers.length){const n=this.attachers[t];e.use(...n)}e.data(f(true,{},this.namespace));return e}data(e,t){if(typeof e==="string"){if(arguments.length===2){V("data",this.frozen);this.namespace[e]=t;return this}return U.call(this.namespace,e)&&this.namespace[e]||undefined}if(e){V("data",this.frozen);this.namespace=e;return this}return this.namespace}freeze(){if(this.frozen){return this}const e=this;while(++this.freezeIndex<this.attachers.length){const[t,...n]=this.attachers[this.freezeIndex];if(n[0]===false){continue}if(n[0]===true){n[0]=undefined}const i=t.call(e,...n);if(typeof i==="function"){this.transformers.use(i)}}this.frozen=true;this.freezeIndex=Number.POSITIVE_INFINITY;return this}parse(e){this.freeze();const t=Y(e);const n=this.parser||this.Parser;H("parse",n);return n(String(t),t)}process(e,t){const n=this;this.freeze();H("process",this.parser||this.Parser);$("process",this.compiler||this.Compiler);return t?i(undefined,t):new Promise(i);function i(i,r){const o=Y(e);const s=n.parse(o);n.run(s,o,(function(e,t,i){if(e||!t||!i){return l(e)}const r=t;const o=n.stringify(r,i);if(X(o)){i.value=o}else{i.result=o}l(e,i)}));function l(e,n){if(e||!n){r(e)}else if(i){i(n)}else{t(undefined,n)}}}}processSync(e){let t=false;let n;this.freeze();H("processSync",this.parser||this.Parser);$("processSync",this.compiler||this.Compiler);this.process(e,i);K("processSync","process",t);return n;function i(e,i){t=true;s(e);n=i}}run(e,t,n){G(e);this.freeze();const i=this.transformers;if(!n&&typeof t==="function"){n=t;t=undefined}return n?r(undefined,n):new Promise(r);function r(r,o){const s=Y(t);i.run(e,s,l);function l(t,i,s){const l=i||e;if(t){o(t)}else if(r){r(l)}else{n(undefined,l,s)}}}}runSync(e,t){let n=false;let i;this.run(e,t,r);K("runSync","run",n);return i;function r(e,t){s(e);i=t;n=true}}stringify(e,t){this.freeze();const n=Y(t);const i=this.compiler||this.Compiler;$("stringify",i);G(e);return i(e,n)}use(e,...t){const n=this.attachers;const i=this.namespace;V("use",this.frozen);if(e===null||e===undefined);else if(typeof e==="function"){l(e,t)}else if(typeof e==="object"){if(Array.isArray(e)){s(e)}else{o(e)}}else{throw new TypeError("Expected usable value, not `"+e+"`")}return this;function r(e){if(typeof e==="function"){l(e,[])}else if(typeof e==="object"){if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else{o(e)}}else{throw new TypeError("Expected usable value, not `"+e+"`")}}function o(e){if(!("plugins"in e)&&!("settings"in e)){throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither")}s(e.plugins);if(e.settings){i.settings=f(true,i.settings,e.settings)}}function s(e){let t=-1;if(e===null||e===undefined);else if(Array.isArray(e)){while(++t<e.length){const n=e[t];r(n)}}else{throw new TypeError("Expected a list of plugins, not `"+e+"`")}}function l(e,t){let i=-1;let r=-1;while(++i<n.length){if(n[i][0]===e){r=i;break}}if(r===-1){n.push([e,...t])}else if(t.length>0){let[i,...o]=t;const s=n[r][1];if(h(s)&&h(i)){i=f(true,s,i)}n[r]=[e,i,...o]}}}}const z=(new j).freeze();function H(e,t){if(typeof t!=="function"){throw new TypeError("Cannot `"+e+"` without `parser`")}}function $(e,t){if(typeof t!=="function"){throw new TypeError("Cannot `"+e+"` without `compiler`")}}function V(e,t){if(t){throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}}function G(e){if(!h(e)||typeof e.type!=="string"){throw new TypeError("Expected node, got `"+e+"`")}}function K(e,t,n){if(!n){throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}}function Y(e){return W(e)?e:new _(e)}function W(e){return Boolean(e&&typeof e==="object"&&"message"in e&&"messages"in e)}function X(e){return typeof e==="string"||Q(e)}function Q(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}const J={};function Z(e,t){const n=J;const i=typeof n.includeImageAlt==="boolean"?n.includeImageAlt:true;const r=typeof n.includeHtml==="boolean"?n.includeHtml:true;return ee(e,i,r)}function ee(e,t,n){if(ne(e)){if("value"in e){return e.type==="html"&&!n?"":e.value}if(t&&"alt"in e&&e.alt){return e.alt}if("children"in e){return te(e.children,t,n)}}if(Array.isArray(e)){return te(e,t,n)}return""}function te(e,t,n){const i=[];let r=-1;while(++r<e.length){i[r]=ee(e[r],t,n)}return i.join("")}function ne(e){return Boolean(e&&typeof e==="object")}const ie=document.createElement("i");function re(e){const t="&"+e+";";ie.innerHTML=t;const n=ie.textContent;if(n.charCodeAt(n.length-1)===59&&e!=="semi"){return false}return n===t?false:n}function oe(e,t,n,i){const r=e.length;let o=0;let s;if(t<0){t=-t>r?0:r+t}else{t=t>r?r:t}n=n>0?n:0;if(i.length<1e4){s=Array.from(i);s.unshift(t,n);e.splice(...s)}else{if(n)e.splice(t,n);while(o<i.length){s=i.slice(o,o+1e4);s.unshift(t,0);e.splice(...s);o+=1e4;t+=1e4}}}function se(e,t){if(e.length>0){oe(e,e.length,0,t);return e}return t}const le={}.hasOwnProperty;function ae(e){const t={};let n=-1;while(++n<e.length){ue(t,e[n])}return t}function ue(e,t){let n;for(n in t){const i=le.call(e,n)?e[n]:undefined;const r=i||(e[n]={});const o=t[n];let s;if(o){for(s in o){if(!le.call(r,s))r[s]=[];const e=o[s];ce(r[s],Array.isArray(e)?e:e?[e]:[])}}}}function ce(e,t){let n=-1;const i=[];while(++n<t.length){(t[n].add==="after"?e:i).push(t[n])}oe(e,0,0,i)}function fe(e,t){const n=Number.parseInt(e,t);if(n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111){return"�"}return String.fromCodePoint(n)}function he(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const de=Ce(/[A-Za-z]/);const pe=Ce(/[\dA-Za-z]/);const me=Ce(/[#-'*+\--9=?A-Z^-~]/);function ge(e){return e!==null&&(e<32||e===127)}const be=Ce(/\d/);const ke=Ce(/[\dA-Fa-f]/);const ye=Ce(/[!-/:-@[-`{-~]/);function De(e){return e!==null&&e<-2}function we(e){return e!==null&&(e<0||e===32)}function Ee(e){return e===-2||e===-1||e===32}const ve=Ce(/\p{P}|\p{S}/u);const Ae=Ce(/\s/);function Ce(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Fe(e){const t=[];let n=-1;let i=0;let r=0;while(++n<e.length){const o=e.charCodeAt(n);let s="";if(o===37&&pe(e.charCodeAt(n+1))&&pe(e.charCodeAt(n+2))){r=2}else if(o<128){if(!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))){s=String.fromCharCode(o)}}else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);if(o<56320&&t>56319&&t<57344){s=String.fromCharCode(o,t);r=1}else{s="�"}}else{s=String.fromCharCode(o)}if(s){t.push(e.slice(i,n),encodeURIComponent(s));i=n+r+1;s=""}if(r){n+=r;r=0}}return t.join("")+e.slice(i)}function Se(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(i){if(Ee(i)){e.enter(n);return l(i)}return t(i)}function l(i){if(Ee(i)&&o++<r){e.consume(i);return l}e.exit(n);return t(i)}}const xe={tokenize:Te};function Te(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(n){if(n===null){e.consume(n);return}e.enter("lineEnding");e.consume(n);e.exit("lineEnding");return Se(e,t,"linePrefix")}function r(t){e.enter("paragraph");return o(t)}function o(t){const i=e.enter("chunkText",{contentType:"text",previous:n});if(n){n.next=i}n=i;return s(t)}function s(t){if(t===null){e.exit("chunkText");e.exit("paragraph");e.consume(t);return}if(De(t)){e.consume(t);e.exit("chunkText");return o}e.consume(t);return s}}const Oe={tokenize:Le};const Ne={tokenize:Ie};function Le(e){const t=this;const n=[];let i=0;let r;let o;let s;return l;function l(r){if(i<n.length){const o=n[i];t.containerState=o[1];return e.attempt(o[0].continuation,a,u)(r)}return u(r)}function a(e){i++;if(t.containerState._closeFlow){t.containerState._closeFlow=undefined;if(r){k()}const n=t.events.length;let o=n;let s;while(o--){if(t.events[o][0]==="exit"&&t.events[o][1].type==="chunkFlow"){s=t.events[o][1].end;break}}b(i);let l=n;while(l<t.events.length){t.events[l][1].end={...s};l++}oe(t.events,o+1,0,t.events.slice(n));t.events.length=l;return u(e)}return l(e)}function u(o){if(i===n.length){if(!r){return h(o)}if(r.currentConstruct&&r.currentConstruct.concrete){return p(o)}t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}t.containerState={};return e.check(Ne,c,f)(o)}function c(e){if(r)k();b(i);return h(e)}function f(e){t.parser.lazy[t.now().line]=i!==n.length;s=t.now().offset;return p(e)}function h(n){t.containerState={};return e.attempt(Ne,d,p)(n)}function d(e){i++;n.push([t.currentConstruct,t.containerState]);return h(e)}function p(n){if(n===null){if(r)k();b(0);e.consume(n);return}r=r||t.parser.flow(t.now());e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o});return m(n)}function m(n){if(n===null){g(e.exit("chunkFlow"),true);b(0);e.consume(n);return}if(De(n)){e.consume(n);g(e.exit("chunkFlow"));i=0;t.interrupt=undefined;return l}e.consume(n);return m}function g(e,n){const l=t.sliceStream(e);if(n)l.push(null);e.previous=o;if(o)o.next=e;o=e;r.defineSkip(e.start);r.write(l);if(t.parser.lazy[e.start.line]){let e=r.events.length;while(e--){if(r.events[e][1].start.offset<s&&(!r.events[e][1].end||r.events[e][1].end.offset>s)){return}}const n=t.events.length;let o=n;let l;let a;while(o--){if(t.events[o][0]==="exit"&&t.events[o][1].type==="chunkFlow"){if(l){a=t.events[o][1].end;break}l=true}}b(i);e=n;while(e<t.events.length){t.events[e][1].end={...a};e++}oe(t.events,o+1,0,t.events.slice(n));t.events.length=e}}function b(i){let r=n.length;while(r-- >i){const i=n[r];t.containerState=i[1];i[0].exit.call(t,e)}n.length=i}function k(){r.write([null]);o=undefined;r=undefined;t.containerState._closeFlow=undefined}}function Ie(e,t,n){return Se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?undefined:4)}function _e(e){if(e===null||we(e)||Ae(e)){return 1}if(ve(e)){return 2}}function Me(e,t,n){const i=[];let r=-1;while(++r<e.length){const o=e[r].resolveAll;if(o&&!i.includes(o)){t=o(t,n);i.push(o)}}return t}const Be={name:"attention",resolveAll:Re,tokenize:Pe};function Re(e,t){let n=-1;let i;let r;let o;let s;let l;let a;let u;let c;while(++n<e.length){if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){i=n;while(i--){if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3)){continue}a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[i][1].end};const h={...e[n][1].start};qe(f,-a);qe(h,a);s={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}};l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h};o={type:a>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}};r={type:a>1?"strong":"emphasis",start:{...s.start},end:{...l.end}};e[i][1].end={...s.start};e[n][1].start={...l.end};u=[];if(e[i][1].end.offset-e[i][1].start.offset){u=se(u,[["enter",e[i][1],t],["exit",e[i][1],t]])}u=se(u,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",o,t]]);u=se(u,Me(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t));u=se(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]);if(e[n][1].end.offset-e[n][1].start.offset){c=2;u=se(u,[["enter",e[n][1],t],["exit",e[n][1],t]])}else{c=0}oe(e,i-1,n-i+3,u);n=i+u.length-c-2;break}}}}n=-1;while(++n<e.length){if(e[n][1].type==="attentionSequence"){e[n][1].type="data"}}return e}function Pe(e,t){const n=this.parser.constructs.attentionMarkers.null;const i=this.previous;const r=_e(i);let o;return s;function s(t){o=t;e.enter("attentionSequence");return l(t)}function l(s){if(s===o){e.consume(s);return l}const a=e.exit("attentionSequence");const u=_e(s);const c=!u||u===2&&r||n.includes(s);const f=!r||r===2&&u||n.includes(i);a._open=Boolean(o===42?c:c&&(r||!f));a._close=Boolean(o===42?f:f&&(u||!c));return t(s)}}function qe(e,t){e.column+=t;e.offset+=t;e._bufferIndex+=t}const Ue={name:"autolink",tokenize:je};function je(e,t,n){let i=0;return r;function r(t){e.enter("autolink");e.enter("autolinkMarker");e.consume(t);e.exit("autolinkMarker");e.enter("autolinkProtocol");return o}function o(t){if(de(t)){e.consume(t);return s}if(t===64){return n(t)}return u(t)}function s(e){if(e===43||e===45||e===46||pe(e)){i=1;return l(e)}return u(e)}function l(t){if(t===58){e.consume(t);i=0;return a}if((t===43||t===45||t===46||pe(t))&&i++<32){e.consume(t);return l}i=0;return u(t)}function a(i){if(i===62){e.exit("autolinkProtocol");e.enter("autolinkMarker");e.consume(i);e.exit("autolinkMarker");e.exit("autolink");return t}if(i===null||i===32||i===60||ge(i)){return n(i)}e.consume(i);return a}function u(t){if(t===64){e.consume(t);return c}if(me(t)){e.consume(t);return u}return n(t)}function c(e){return pe(e)?f(e):n(e)}function f(n){if(n===46){e.consume(n);i=0;return c}if(n===62){e.exit("autolinkProtocol").type="autolinkEmail";e.enter("autolinkMarker");e.consume(n);e.exit("autolinkMarker");e.exit("autolink");return t}return h(n)}function h(t){if((t===45||pe(t))&&i++<63){const n=t===45?h:f;e.consume(t);return n}return n(t)}}const ze={partial:true,tokenize:He};function He(e,t,n){return i;function i(t){return Ee(t)?Se(e,r,"linePrefix")(t):r(t)}function r(e){return e===null||De(e)?t(e):n(e)}}const $e={continuation:{tokenize:Ge},exit:Ke,name:"blockQuote",tokenize:Ve};function Ve(e,t,n){const i=this;return r;function r(t){if(t===62){const n=i.containerState;if(!n.open){e.enter("blockQuote",{_container:true});n.open=true}e.enter("blockQuotePrefix");e.enter("blockQuoteMarker");e.consume(t);e.exit("blockQuoteMarker");return o}return n(t)}function o(n){if(Ee(n)){e.enter("blockQuotePrefixWhitespace");e.consume(n);e.exit("blockQuotePrefixWhitespace");e.exit("blockQuotePrefix");return t}e.exit("blockQuotePrefix");return t(n)}}function Ge(e,t,n){const i=this;return r;function r(t){if(Ee(t)){return Se(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t)}return o(t)}function o(i){return e.attempt($e,t,n)(i)}}function Ke(e){e.exit("blockQuote")}const Ye={name:"characterEscape",tokenize:We};function We(e,t,n){return i;function i(t){e.enter("characterEscape");e.enter("escapeMarker");e.consume(t);e.exit("escapeMarker");return r}function r(i){if(ye(i)){e.enter("characterEscapeValue");e.consume(i);e.exit("characterEscapeValue");e.exit("characterEscape");return t}return n(i)}}const Xe={name:"characterReference",tokenize:Qe};function Qe(e,t,n){const i=this;let r=0;let o;let s;return l;function l(t){e.enter("characterReference");e.enter("characterReferenceMarker");e.consume(t);e.exit("characterReferenceMarker");return a}function a(t){if(t===35){e.enter("characterReferenceMarkerNumeric");e.consume(t);e.exit("characterReferenceMarkerNumeric");return u}e.enter("characterReferenceValue");o=31;s=pe;return c(t)}function u(t){if(t===88||t===120){e.enter("characterReferenceMarkerHexadecimal");e.consume(t);e.exit("characterReferenceMarkerHexadecimal");e.enter("characterReferenceValue");o=6;s=ke;return c}e.enter("characterReferenceValue");o=7;s=be;return c(t)}function c(l){if(l===59&&r){const r=e.exit("characterReferenceValue");if(s===pe&&!re(i.sliceSerialize(r))){return n(l)}e.enter("characterReferenceMarker");e.consume(l);e.exit("characterReferenceMarker");e.exit("characterReference");return t}if(s(l)&&r++<o){e.consume(l);return c}return n(l)}}const Je={partial:true,tokenize:tt};const Ze={concrete:true,name:"codeFenced",tokenize:et};function et(e,t,n){const i=this;const r={partial:true,tokenize:w};let o=0;let s=0;let l;return a;function a(e){return u(e)}function u(t){const n=i.events[i.events.length-1];o=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],true).length:0;l=t;e.enter("codeFenced");e.enter("codeFencedFence");e.enter("codeFencedFenceSequence");return c(t)}function c(t){if(t===l){s++;e.consume(t);return c}if(s<3){return n(t)}e.exit("codeFencedFenceSequence");return Ee(t)?Se(e,f,"whitespace")(t):f(t)}function f(n){if(n===null||De(n)){e.exit("codeFencedFence");return i.interrupt?t(n):e.check(Je,m,D)(n)}e.enter("codeFencedFenceInfo");e.enter("chunkString",{contentType:"string"});return h(n)}function h(t){if(t===null||De(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return f(t)}if(Ee(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return Se(e,d,"whitespace")(t)}if(t===96&&t===l){return n(t)}e.consume(t);return h}function d(t){if(t===null||De(t)){return f(t)}e.enter("codeFencedFenceMeta");e.enter("chunkString",{contentType:"string"});return p(t)}function p(t){if(t===null||De(t)){e.exit("chunkString");e.exit("codeFencedFenceMeta");return f(t)}if(t===96&&t===l){return n(t)}e.consume(t);return p}function m(t){return e.attempt(r,D,g)(t)}function g(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return b}function b(t){return o>0&&Ee(t)?Se(e,k,"linePrefix",o+1)(t):k(t)}function k(t){if(t===null||De(t)){return e.check(Je,m,D)(t)}e.enter("codeFlowValue");return y(t)}function y(t){if(t===null||De(t)){e.exit("codeFlowValue");return k(t)}e.consume(t);return y}function D(n){e.exit("codeFenced");return t(n)}function w(e,t,n){let r=0;return o;function o(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return a}function a(t){e.enter("codeFencedFence");return Ee(t)?Se(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t):u(t)}function u(t){if(t===l){e.enter("codeFencedFenceSequence");return c(t)}return n(t)}function c(t){if(t===l){r++;e.consume(t);return c}if(r>=s){e.exit("codeFencedFenceSequence");return Ee(t)?Se(e,f,"whitespace")(t):f(t)}return n(t)}function f(i){if(i===null||De(i)){e.exit("codeFencedFence");return t(i)}return n(i)}}}function tt(e,t,n){const i=this;return r;function r(t){if(t===null){return n(t)}e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return o}function o(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}const nt={name:"codeIndented",tokenize:rt};const it={partial:true,tokenize:ot};function rt(e,t,n){const i=this;return r;function r(t){e.enter("codeIndented");return Se(e,o,"linePrefix",4+1)(t)}function o(e){const t=i.events[i.events.length-1];return t&&t[1].type==="linePrefix"&&t[2].sliceSerialize(t[1],true).length>=4?s(e):n(e)}function s(t){if(t===null){return a(t)}if(De(t)){return e.attempt(it,s,a)(t)}e.enter("codeFlowValue");return l(t)}function l(t){if(t===null||De(t)){e.exit("codeFlowValue");return s(t)}e.consume(t);return l}function a(n){e.exit("codeIndented");return t(n)}}function ot(e,t,n){const i=this;return r;function r(t){if(i.parser.lazy[i.now().line]){return n(t)}if(De(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return r}return Se(e,o,"linePrefix",4+1)(t)}function o(e){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],true).length>=4?t(e):De(e)?r(e):n(e)}}const st={name:"codeText",previous:at,resolve:lt,tokenize:ut};function lt(e){let t=e.length-4;let n=3;let i;let r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){i=n;while(++i<t){if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding";e[t][1].type="codeTextPadding";n+=2;t-=2;break}}}i=n-1;t++;while(++i<=t){if(r===undefined){if(i!==t&&e[i][1].type!=="lineEnding"){r=i}}else if(i===t||e[i][1].type==="lineEnding"){e[r][1].type="codeTextData";if(i!==r+2){e[r][1].end=e[i-1][1].end;e.splice(r+2,i-r-2);t-=i-r-2;i=r+2}r=undefined}}return e}function at(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ut(e,t,n){let i=0;let r;let o;return s;function s(t){e.enter("codeText");e.enter("codeTextSequence");return l(t)}function l(t){if(t===96){e.consume(t);i++;return l}e.exit("codeTextSequence");return a(t)}function a(t){if(t===null){return n(t)}if(t===32){e.enter("space");e.consume(t);e.exit("space");return a}if(t===96){o=e.enter("codeTextSequence");r=0;return c(t)}if(De(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return a}e.enter("codeTextData");return u(t)}function u(t){if(t===null||t===32||t===96||De(t)){e.exit("codeTextData");return a(t)}e.consume(t);return u}function c(n){if(n===96){e.consume(n);r++;return c}if(r===i){e.exit("codeTextSequence");e.exit("codeText");return t(n)}o.type="codeTextData";return u(n)}}class ct{constructor(e){this.left=e?[...e]:[];this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length){throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`")}if(e<this.left.length)return this.left[e];return this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){this.setCursor(0);return this.right.pop()}slice(e,t){const n=t===null||t===undefined?Number.POSITIVE_INFINITY:t;if(n<this.left.length){return this.left.slice(e,n)}if(e>this.left.length){return this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse()}return this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const i=t||0;this.setCursor(Math.trunc(e));const r=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);if(n)ft(this.left,n);return r.reverse()}pop(){this.setCursor(Number.POSITIVE_INFINITY);return this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY);this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY);ft(this.left,e)}unshift(e){this.setCursor(0);this.right.push(e)}unshiftMany(e){this.setCursor(0);ft(this.right,e.reverse())}setCursor(e){if(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)return;if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);ft(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ft(this.left,t.reverse())}}}function ft(e,t){let n=0;if(t.length<1e4){e.push(...t)}else{while(n<t.length){e.push(...t.slice(n,n+1e4));n+=1e4}}}function ht(e){const t={};let n=-1;let i;let r;let o;let s;let l;let a;let u;const c=new ct(e);while(++n<c.length){while(n in t){n=t[n]}i=c.get(n);if(n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"){a=i[1]._tokenizer.events;o=0;if(o<a.length&&a[o][1].type==="lineEndingBlank"){o+=2}if(o<a.length&&a[o][1].type==="content"){while(++o<a.length){if(a[o][1].type==="content"){break}if(a[o][1].type==="chunkText"){a[o][1]._isInFirstContentOfListItem=true;o++}}}}if(i[0]==="enter"){if(i[1].contentType){Object.assign(t,dt(c,n));n=t[n];u=true}}else if(i[1]._container){o=n;r=undefined;while(o--){s=c.get(o);if(s[1].type==="lineEnding"||s[1].type==="lineEndingBlank"){if(s[0]==="enter"){if(r){c.get(r)[1].type="lineEndingBlank"}s[1].type="lineEnding";r=o}}else if(s[1].type==="linePrefix"||s[1].type==="listItemIndent");else{break}}if(r){i[1].end={...c.get(r)[1].start};l=c.slice(r,n);l.unshift(i);c.splice(r,n-r+1,l)}}}oe(e,0,Number.POSITIVE_INFINITY,c.slice(0));return!u}function dt(e,t){const n=e.get(t)[1];const i=e.get(t)[2];let r=t-1;const o=[];let s=n._tokenizer;if(!s){s=i.parser[n.contentType](n.start);if(n._contentTypeTextTrailing){s._contentTypeTextTrailing=true}}const l=s.events;const a=[];const u={};let c;let f;let h=-1;let d=n;let p=0;let m=0;const g=[m];while(d){while(e.get(++r)[1]!==d){}o.push(r);if(!d._tokenizer){c=i.sliceStream(d);if(!d.next){c.push(null)}if(f){s.defineSkip(d.start)}if(d._isInFirstContentOfListItem){s._gfmTasklistFirstContentOfListItem=true}s.write(c);if(d._isInFirstContentOfListItem){s._gfmTasklistFirstContentOfListItem=undefined}}f=d;d=d.next}d=n;while(++h<l.length){if(l[h][0]==="exit"&&l[h-1][0]==="enter"&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line){m=h+1;g.push(m);d._tokenizer=undefined;d.previous=undefined;d=d.next}}s.events=[];if(d){d._tokenizer=undefined;d.previous=undefined}else{g.pop()}h=g.length;while(h--){const t=l.slice(g[h],g[h+1]);const n=o.pop();a.push([n,n+t.length-1]);e.splice(n,2,t)}a.reverse();h=-1;while(++h<a.length){u[p+a[h][0]]=p+a[h][1];p+=a[h][1]-a[h][0]-1}return u}const pt={resolve:gt,tokenize:bt};const mt={partial:true,tokenize:kt};function gt(e){ht(e);return e}function bt(e,t){let n;return i;function i(t){e.enter("content");n=e.enter("chunkContent",{contentType:"content"});return r(t)}function r(t){if(t===null){return o(t)}if(De(t)){return e.check(mt,s,o)(t)}e.consume(t);return r}function o(n){e.exit("chunkContent");e.exit("content");return t(n)}function s(t){e.consume(t);e.exit("chunkContent");n.next=e.enter("chunkContent",{contentType:"content",previous:n});n=n.next;return r}}function kt(e,t,n){const i=this;return r;function r(t){e.exit("chunkContent");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return Se(e,o,"linePrefix")}function o(r){if(r===null||De(r)){return n(r)}const o=i.events[i.events.length-1];if(!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],true).length>=4){return t(r)}return e.interrupt(i.parser.constructs.flow,n,t)(r)}}function yt(e,t,n,i,r,o,s,l,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return f;function f(t){if(t===60){e.enter(i);e.enter(r);e.enter(o);e.consume(t);e.exit(o);return h}if(t===null||t===32||t===41||ge(t)){return n(t)}e.enter(i);e.enter(s);e.enter(l);e.enter("chunkString",{contentType:"string"});return m(t)}function h(n){if(n===62){e.enter(o);e.consume(n);e.exit(o);e.exit(r);e.exit(i);return t}e.enter(l);e.enter("chunkString",{contentType:"string"});return d(n)}function d(t){if(t===62){e.exit("chunkString");e.exit(l);return h(t)}if(t===null||t===60||De(t)){return n(t)}e.consume(t);return t===92?p:d}function p(t){if(t===60||t===62||t===92){e.consume(t);return d}return d(t)}function m(r){if(!c&&(r===null||r===41||we(r))){e.exit("chunkString");e.exit(l);e.exit(s);e.exit(i);return t(r)}if(c<u&&r===40){e.consume(r);c++;return m}if(r===41){e.consume(r);c--;return m}if(r===null||r===32||r===40||ge(r)){return n(r)}e.consume(r);return r===92?g:m}function g(t){if(t===40||t===41||t===92){e.consume(t);return m}return m(t)}}function Dt(e,t,n,i,r,o){const s=this;let l=0;let a;return u;function u(t){e.enter(i);e.enter(r);e.consume(t);e.exit(r);e.enter(o);return c}function c(u){if(l>999||u===null||u===91||u===93&&!a||u===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs){return n(u)}if(u===93){e.exit(o);e.enter(r);e.consume(u);e.exit(r);e.exit(i);return t}if(De(u)){e.enter("lineEnding");e.consume(u);e.exit("lineEnding");return c}e.enter("chunkString",{contentType:"string"});return f(u)}function f(t){if(t===null||t===91||t===93||De(t)||l++>999){e.exit("chunkString");return c(t)}e.consume(t);if(!a)a=!Ee(t);return t===92?h:f}function h(t){if(t===91||t===92||t===93){e.consume(t);l++;return f}return f(t)}}function wt(e,t,n,i,r,o){let s;return l;function l(t){if(t===34||t===39||t===40){e.enter(i);e.enter(r);e.consume(t);e.exit(r);s=t===40?41:t;return a}return n(t)}function a(n){if(n===s){e.enter(r);e.consume(n);e.exit(r);e.exit(i);return t}e.enter(o);return u(n)}function u(t){if(t===s){e.exit(o);return a(s)}if(t===null){return n(t)}if(De(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return Se(e,u,"linePrefix")}e.enter("chunkString",{contentType:"string"});return c(t)}function c(t){if(t===s||t===null||De(t)){e.exit("chunkString");return u(t)}e.consume(t);return t===92?f:c}function f(t){if(t===s||t===92){e.consume(t);return c}return c(t)}}function Et(e,t){let n;return i;function i(r){if(De(r)){e.enter("lineEnding");e.consume(r);e.exit("lineEnding");n=true;return i}if(Ee(r)){return Se(e,i,n?"linePrefix":"lineSuffix")(r)}return t(r)}}const vt={name:"definition",tokenize:Ct};const At={partial:true,tokenize:Ft};function Ct(e,t,n){const i=this;let r;return o;function o(t){e.enter("definition");return s(t)}function s(t){return Dt.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}function l(t){r=he(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1));if(t===58){e.enter("definitionMarker");e.consume(t);e.exit("definitionMarker");return a}return n(t)}function a(t){return we(t)?Et(e,u)(t):u(t)}function u(t){return yt(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(At,f,f)(t)}function f(t){return Ee(t)?Se(e,h,"whitespace")(t):h(t)}function h(o){if(o===null||De(o)){e.exit("definition");i.parser.defined.push(r);return t(o)}return n(o)}}function Ft(e,t,n){return i;function i(t){return we(t)?Et(e,r)(t):n(t)}function r(t){return wt(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Ee(t)?Se(e,s,"whitespace")(t):s(t)}function s(e){return e===null||De(e)?t(e):n(e)}}const St={name:"hardBreakEscape",tokenize:xt};function xt(e,t,n){return i;function i(t){e.enter("hardBreakEscape");e.consume(t);return r}function r(i){if(De(i)){e.exit("hardBreakEscape");return t(i)}return n(i)}}const Tt={name:"headingAtx",resolve:Ot,tokenize:Nt};function Ot(e,t){let n=e.length-2;let i=3;let r;let o;if(e[i][1].type==="whitespace"){i+=2}if(n-2>i&&e[n][1].type==="whitespace"){n-=2}if(e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")){n-=i+1===n?2:4}if(n>i){r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end};o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"};oe(e,i,n-i+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])}return e}function Nt(e,t,n){let i=0;return r;function r(t){e.enter("atxHeading");return o(t)}function o(t){e.enter("atxHeadingSequence");return s(t)}function s(t){if(t===35&&i++<6){e.consume(t);return s}if(t===null||we(t)){e.exit("atxHeadingSequence");return l(t)}return n(t)}function l(n){if(n===35){e.enter("atxHeadingSequence");return a(n)}if(n===null||De(n)){e.exit("atxHeading");return t(n)}if(Ee(n)){return Se(e,l,"whitespace")(n)}e.enter("atxHeadingText");return u(n)}function a(t){if(t===35){e.consume(t);return a}e.exit("atxHeadingSequence");return l(t)}function u(t){if(t===null||t===35||we(t)){e.exit("atxHeadingText");return l(t)}e.consume(t);return u}}const Lt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];const It=["pre","script","style","textarea"];const _t={concrete:true,name:"htmlFlow",resolveTo:Rt,tokenize:Pt};const Mt={partial:true,tokenize:Ut};const Bt={partial:true,tokenize:qt};function Rt(e){let t=e.length;while(t--){if(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"){break}}if(t>1&&e[t-2][1].type==="linePrefix"){e[t][1].start=e[t-2][1].start;e[t+1][1].start=e[t-2][1].start;e.splice(t-2,2)}return e}function Pt(e,t,n){const i=this;let r;let o;let s;let l;let a;return u;function u(e){return c(e)}function c(t){e.enter("htmlFlow");e.enter("htmlFlowData");e.consume(t);return f}function f(l){if(l===33){e.consume(l);return h}if(l===47){e.consume(l);o=true;return m}if(l===63){e.consume(l);r=3;return i.interrupt?t:B}if(de(l)){e.consume(l);s=String.fromCharCode(l);return g}return n(l)}function h(o){if(o===45){e.consume(o);r=2;return d}if(o===91){e.consume(o);r=5;l=0;return p}if(de(o)){e.consume(o);r=4;return i.interrupt?t:B}return n(o)}function d(r){if(r===45){e.consume(r);return i.interrupt?t:B}return n(r)}function p(r){const o="CDATA[";if(r===o.charCodeAt(l++)){e.consume(r);if(l===o.length){return i.interrupt?t:x}return p}return n(r)}function m(t){if(de(t)){e.consume(t);s=String.fromCharCode(t);return g}return n(t)}function g(l){if(l===null||l===47||l===62||we(l)){const a=l===47;const u=s.toLowerCase();if(!a&&!o&&It.includes(u)){r=1;return i.interrupt?t(l):x(l)}if(Lt.includes(s.toLowerCase())){r=6;if(a){e.consume(l);return b}return i.interrupt?t(l):x(l)}r=7;return i.interrupt&&!i.parser.lazy[i.now().line]?n(l):o?k(l):y(l)}if(l===45||pe(l)){e.consume(l);s+=String.fromCharCode(l);return g}return n(l)}function b(r){if(r===62){e.consume(r);return i.interrupt?t:x}return n(r)}function k(t){if(Ee(t)){e.consume(t);return k}return F(t)}function y(t){if(t===47){e.consume(t);return F}if(t===58||t===95||de(t)){e.consume(t);return D}if(Ee(t)){e.consume(t);return y}return F(t)}function D(t){if(t===45||t===46||t===58||t===95||pe(t)){e.consume(t);return D}return w(t)}function w(t){if(t===61){e.consume(t);return E}if(Ee(t)){e.consume(t);return w}return y(t)}function E(t){if(t===null||t===60||t===61||t===62||t===96){return n(t)}if(t===34||t===39){e.consume(t);a=t;return v}if(Ee(t)){e.consume(t);return E}return A(t)}function v(t){if(t===a){e.consume(t);a=null;return C}if(t===null||De(t)){return n(t)}e.consume(t);return v}function A(t){if(t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||we(t)){return w(t)}e.consume(t);return A}function C(e){if(e===47||e===62||Ee(e)){return y(e)}return n(e)}function F(t){if(t===62){e.consume(t);return S}return n(t)}function S(t){if(t===null||De(t)){return x(t)}if(Ee(t)){e.consume(t);return S}return n(t)}function x(t){if(t===45&&r===2){e.consume(t);return L}if(t===60&&r===1){e.consume(t);return I}if(t===62&&r===4){e.consume(t);return R}if(t===63&&r===3){e.consume(t);return B}if(t===93&&r===5){e.consume(t);return M}if(De(t)&&(r===6||r===7)){e.exit("htmlFlowData");return e.check(Mt,P,T)(t)}if(t===null||De(t)){e.exit("htmlFlowData");return T(t)}e.consume(t);return x}function T(t){return e.check(Bt,O,P)(t)}function O(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return N}function N(t){if(t===null||De(t)){return T(t)}e.enter("htmlFlowData");return x(t)}function L(t){if(t===45){e.consume(t);return B}return x(t)}function I(t){if(t===47){e.consume(t);s="";return _}return x(t)}function _(t){if(t===62){const n=s.toLowerCase();if(It.includes(n)){e.consume(t);return R}return x(t)}if(de(t)&&s.length<8){e.consume(t);s+=String.fromCharCode(t);return _}return x(t)}function M(t){if(t===93){e.consume(t);return B}return x(t)}function B(t){if(t===62){e.consume(t);return R}if(t===45&&r===2){e.consume(t);return B}return x(t)}function R(t){if(t===null||De(t)){e.exit("htmlFlowData");return P(t)}e.consume(t);return R}function P(n){e.exit("htmlFlow");return t(n)}}function qt(e,t,n){const i=this;return r;function r(t){if(De(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return o}return n(t)}function o(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}function Ut(e,t,n){return i;function i(i){e.enter("lineEnding");e.consume(i);e.exit("lineEnding");return e.attempt(ze,t,n)}}const jt={name:"htmlText",tokenize:zt};function zt(e,t,n){const i=this;let r;let o;let s;return l;function l(t){e.enter("htmlText");e.enter("htmlTextData");e.consume(t);return a}function a(t){if(t===33){e.consume(t);return u}if(t===47){e.consume(t);return w}if(t===63){e.consume(t);return y}if(de(t)){e.consume(t);return A}return n(t)}function u(t){if(t===45){e.consume(t);return c}if(t===91){e.consume(t);o=0;return p}if(de(t)){e.consume(t);return k}return n(t)}function c(t){if(t===45){e.consume(t);return d}return n(t)}function f(t){if(t===null){return n(t)}if(t===45){e.consume(t);return h}if(De(t)){s=f;return I(t)}e.consume(t);return f}function h(t){if(t===45){e.consume(t);return d}return f(t)}function d(e){return e===62?L(e):e===45?h(e):f(e)}function p(t){const i="CDATA[";if(t===i.charCodeAt(o++)){e.consume(t);return o===i.length?m:p}return n(t)}function m(t){if(t===null){return n(t)}if(t===93){e.consume(t);return g}if(De(t)){s=m;return I(t)}e.consume(t);return m}function g(t){if(t===93){e.consume(t);return b}return m(t)}function b(t){if(t===62){return L(t)}if(t===93){e.consume(t);return b}return m(t)}function k(t){if(t===null||t===62){return L(t)}if(De(t)){s=k;return I(t)}e.consume(t);return k}function y(t){if(t===null){return n(t)}if(t===63){e.consume(t);return D}if(De(t)){s=y;return I(t)}e.consume(t);return y}function D(e){return e===62?L(e):y(e)}function w(t){if(de(t)){e.consume(t);return E}return n(t)}function E(t){if(t===45||pe(t)){e.consume(t);return E}return v(t)}function v(t){if(De(t)){s=v;return I(t)}if(Ee(t)){e.consume(t);return v}return L(t)}function A(t){if(t===45||pe(t)){e.consume(t);return A}if(t===47||t===62||we(t)){return C(t)}return n(t)}function C(t){if(t===47){e.consume(t);return L}if(t===58||t===95||de(t)){e.consume(t);return F}if(De(t)){s=C;return I(t)}if(Ee(t)){e.consume(t);return C}return L(t)}function F(t){if(t===45||t===46||t===58||t===95||pe(t)){e.consume(t);return F}return S(t)}function S(t){if(t===61){e.consume(t);return x}if(De(t)){s=S;return I(t)}if(Ee(t)){e.consume(t);return S}return C(t)}function x(t){if(t===null||t===60||t===61||t===62||t===96){return n(t)}if(t===34||t===39){e.consume(t);r=t;return T}if(De(t)){s=x;return I(t)}if(Ee(t)){e.consume(t);return x}e.consume(t);return O}function T(t){if(t===r){e.consume(t);r=undefined;return N}if(t===null){return n(t)}if(De(t)){s=T;return I(t)}e.consume(t);return T}function O(t){if(t===null||t===34||t===39||t===60||t===61||t===96){return n(t)}if(t===47||t===62||we(t)){return C(t)}e.consume(t);return O}function N(e){if(e===47||e===62||we(e)){return C(e)}return n(e)}function L(i){if(i===62){e.consume(i);e.exit("htmlTextData");e.exit("htmlText");return t}return n(i)}function I(t){e.exit("htmlTextData");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return _}function _(t){return Ee(t)?Se(e,M,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t):M(t)}function M(t){e.enter("htmlTextData");return s(t)}}const Ht={name:"labelEnd",resolveAll:Kt,resolveTo:Yt,tokenize:Wt};const $t={tokenize:Xt};const Vt={tokenize:Qt};const Gt={tokenize:Jt};function Kt(e){let t=-1;const n=[];while(++t<e.length){const i=e[t][1];n.push(e[t]);if(i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const e=i.type==="labelImage"?4:2;i.type="data";t+=e}}if(e.length!==n.length){oe(e,0,e.length,n)}return e}function Yt(e,t){let n=e.length;let i=0;let r;let o;let s;let l;while(n--){r=e[n][1];if(o){if(r.type==="link"||r.type==="labelLink"&&r._inactive){break}if(e[n][0]==="enter"&&r.type==="labelLink"){r._inactive=true}}else if(s){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced){o=n;if(r.type!=="labelLink"){i=2;break}}}else if(r.type==="labelEnd"){s=n}}const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};const u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}};const c={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[s-2][1].start}};l=[["enter",a,t],["enter",u,t]];l=se(l,e.slice(o+1,o+i+3));l=se(l,[["enter",c,t]]);l=se(l,Me(t.parser.constructs.insideSpan.null,e.slice(o+i+4,s-3),t));l=se(l,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]);l=se(l,e.slice(s+1));l=se(l,[["exit",a,t]]);oe(e,o,e.length,l);return e}function Wt(e,t,n){const i=this;let r=i.events.length;let o;let s;while(r--){if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){o=i.events[r][1];break}}return l;function l(t){if(!o){return n(t)}if(o._inactive){return f(t)}s=i.parser.defined.includes(he(i.sliceSerialize({start:o.end,end:i.now()})));e.enter("labelEnd");e.enter("labelMarker");e.consume(t);e.exit("labelMarker");e.exit("labelEnd");return a}function a(t){if(t===40){return e.attempt($t,c,s?c:f)(t)}if(t===91){return e.attempt(Vt,c,s?u:f)(t)}return s?c(t):f(t)}function u(t){return e.attempt(Gt,c,f)(t)}function c(e){return t(e)}function f(e){o._balanced=true;return n(e)}}function Xt(e,t,n){return i;function i(t){e.enter("resource");e.enter("resourceMarker");e.consume(t);e.exit("resourceMarker");return r}function r(t){return we(t)?Et(e,o)(t):o(t)}function o(t){if(t===41){return c(t)}return yt(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function s(t){return we(t)?Et(e,a)(t):c(t)}function l(e){return n(e)}function a(t){if(t===34||t===39||t===40){return wt(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t)}return c(t)}function u(t){return we(t)?Et(e,c)(t):c(t)}function c(i){if(i===41){e.enter("resourceMarker");e.consume(i);e.exit("resourceMarker");e.exit("resource");return t}return n(i)}}function Qt(e,t,n){const i=this;return r;function r(t){return Dt.call(i,e,o,s,"reference","referenceMarker","referenceString")(t)}function o(e){return i.parser.defined.includes(he(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function s(e){return n(e)}}function Jt(e,t,n){return i;function i(t){e.enter("reference");e.enter("referenceMarker");e.consume(t);e.exit("referenceMarker");return r}function r(i){if(i===93){e.enter("referenceMarker");e.consume(i);e.exit("referenceMarker");e.exit("reference");return t}return n(i)}}const Zt={name:"labelStartImage",resolveAll:Ht.resolveAll,tokenize:en};function en(e,t,n){const i=this;return r;function r(t){e.enter("labelImage");e.enter("labelImageMarker");e.consume(t);e.exit("labelImageMarker");return o}function o(t){if(t===91){e.enter("labelMarker");e.consume(t);e.exit("labelMarker");e.exit("labelImage");return s}return n(t)}function s(e){return e===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}}const tn={name:"labelStartLink",resolveAll:Ht.resolveAll,tokenize:nn};function nn(e,t,n){const i=this;return r;function r(t){e.enter("labelLink");e.enter("labelMarker");e.consume(t);e.exit("labelMarker");e.exit("labelLink");return o}function o(e){return e===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}}const rn={name:"lineEnding",tokenize:on};function on(e,t){return n;function n(n){e.enter("lineEnding");e.consume(n);e.exit("lineEnding");return Se(e,t,"linePrefix")}}const sn={name:"thematicBreak",tokenize:ln};function ln(e,t,n){let i=0;let r;return o;function o(t){e.enter("thematicBreak");return s(t)}function s(e){r=e;return l(e)}function l(o){if(o===r){e.enter("thematicBreakSequence");return a(o)}if(i>=3&&(o===null||De(o))){e.exit("thematicBreak");return t(o)}return n(o)}function a(t){if(t===r){e.consume(t);i++;return a}e.exit("thematicBreakSequence");return Ee(t)?Se(e,l,"whitespace")(t):l(t)}}const an={continuation:{tokenize:hn},exit:pn,name:"list",tokenize:fn};const un={partial:true,tokenize:mn};const cn={partial:true,tokenize:dn};function fn(e,t,n){const i=this;const r=i.events[i.events.length-1];let o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],true).length:0;let s=0;return l;function l(t){const r=i.containerState.type||(t===42||t===43||t===45?"listUnordered":"listOrdered");if(r==="listUnordered"?!i.containerState.marker||t===i.containerState.marker:be(t)){if(!i.containerState.type){i.containerState.type=r;e.enter(r,{_container:true})}if(r==="listUnordered"){e.enter("listItemPrefix");return t===42||t===45?e.check(sn,n,u)(t):u(t)}if(!i.interrupt||t===49){e.enter("listItemPrefix");e.enter("listItemValue");return a(t)}}return n(t)}function a(t){if(be(t)&&++s<10){e.consume(t);return a}if((!i.interrupt||s<2)&&(i.containerState.marker?t===i.containerState.marker:t===41||t===46)){e.exit("listItemValue");return u(t)}return n(t)}function u(t){e.enter("listItemMarker");e.consume(t);e.exit("listItemMarker");i.containerState.marker=i.containerState.marker||t;return e.check(ze,i.interrupt?n:c,e.attempt(un,h,f))}function c(e){i.containerState.initialBlankLine=true;o++;return h(e)}function f(t){if(Ee(t)){e.enter("listItemPrefixWhitespace");e.consume(t);e.exit("listItemPrefixWhitespace");return h}return n(t)}function h(n){i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),true).length;return t(n)}}function hn(e,t,n){const i=this;i.containerState._closeFlow=undefined;return e.check(ze,r,o);function r(n){i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine;return Se(e,t,"listItemIndent",i.containerState.size+1)(n)}function o(n){if(i.containerState.furtherBlankLines||!Ee(n)){i.containerState.furtherBlankLines=undefined;i.containerState.initialBlankLine=undefined;return s(n)}i.containerState.furtherBlankLines=undefined;i.containerState.initialBlankLine=undefined;return e.attempt(cn,t,s)(n)}function s(r){i.containerState._closeFlow=true;i.interrupt=undefined;return Se(e,e.attempt(an,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(r)}}function dn(e,t,n){const i=this;return Se(e,r,"listItemIndent",i.containerState.size+1);function r(e){const r=i.events[i.events.length-1];return r&&r[1].type==="listItemIndent"&&r[2].sliceSerialize(r[1],true).length===i.containerState.size?t(e):n(e)}}function pn(e){e.exit(this.containerState.type)}function mn(e,t,n){const i=this;return Se(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4+1);function r(e){const r=i.events[i.events.length-1];return!Ee(e)&&r&&r[1].type==="listItemPrefixWhitespace"?t(e):n(e)}}const gn={name:"setextUnderline",resolveTo:bn,tokenize:kn};function bn(e,t){let n=e.length;let i;let r;let o;while(n--){if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}if(e[n][1].type==="paragraph"){r=n}}else{if(e[n][1].type==="content"){e.splice(n,1)}if(!o&&e[n][1].type==="definition"){o=n}}}const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText";if(o){e.splice(r,0,["enter",s,t]);e.splice(o+1,0,["exit",e[i][1],t]);e[i][1].end={...e[o][1].end}}else{e[i][1]=s}e.push(["exit",s,t]);return e}function kn(e,t,n){const i=this;let r;return o;function o(t){let o=i.events.length;let l;while(o--){if(i.events[o][1].type!=="lineEnding"&&i.events[o][1].type!=="linePrefix"&&i.events[o][1].type!=="content"){l=i.events[o][1].type==="paragraph";break}}if(!i.parser.lazy[i.now().line]&&(i.interrupt||l)){e.enter("setextHeadingLine");r=t;return s(t)}return n(t)}function s(t){e.enter("setextHeadingLineSequence");return l(t)}function l(t){if(t===r){e.consume(t);return l}e.exit("setextHeadingLineSequence");return Ee(t)?Se(e,a,"lineSuffix")(t):a(t)}function a(i){if(i===null||De(i)){e.exit("setextHeadingLine");return t(i)}return n(i)}}const yn={tokenize:Dn};function Dn(e){const t=this;const n=e.attempt(ze,i,e.attempt(this.parser.constructs.flowInitial,r,Se(e,e.attempt(this.parser.constructs.flow,r,e.attempt(pt,r)),"linePrefix")));return n;function i(i){if(i===null){e.consume(i);return}e.enter("lineEndingBlank");e.consume(i);e.exit("lineEndingBlank");t.currentConstruct=undefined;return n}function r(i){if(i===null){e.consume(i);return}e.enter("lineEnding");e.consume(i);e.exit("lineEnding");t.currentConstruct=undefined;return n}}const wn={resolveAll:Cn()};const En=An("string");const vn=An("text");function An(e){return{resolveAll:Cn(e==="text"?Fn:undefined),tokenize:t};function t(t){const n=this;const i=this.parser.constructs[e];const r=t.attempt(i,o,s);return o;function o(e){return a(e)?r(e):s(e)}function s(e){if(e===null){t.consume(e);return}t.enter("data");t.consume(e);return l}function l(e){if(a(e)){t.exit("data");return r(e)}t.consume(e);return l}function a(e){if(e===null){return true}const t=i[e];let r=-1;if(t){while(++r<t.length){const e=t[r];if(!e.previous||e.previous.call(n,n.previous)){return true}}}return false}}}function Cn(e){return t;function t(t,n){let i=-1;let r;while(++i<=t.length){if(r===undefined){if(t[i]&&t[i][1].type==="data"){r=i;i++}}else if(!t[i]||t[i][1].type!=="data"){if(i!==r+2){t[r][1].end=t[i-1][1].end;t.splice(r+2,i-r-2);i=r+2}r=undefined}}return e?e(t,n):t}}function Fn(e,t){let n=0;while(++n<=e.length){if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1];const r=t.sliceStream(i);let o=r.length;let s=-1;let l=0;let a;while(o--){const e=r[o];if(typeof e==="string"){s=e.length;while(e.charCodeAt(s-1)===32){l++;s--}if(s)break;s=-1}else if(e===-2){a=true;l++}else if(e===-1);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length){l=0}if(l){const r={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...r.start};if(i.start.offset===i.end.offset){Object.assign(i,r)}else{e.splice(n,0,["enter",r,t],["exit",r,t]);n+=2}}n++}}return e}const Sn={[42]:an,[43]:an,[45]:an,[48]:an,[49]:an,[50]:an,[51]:an,[52]:an,[53]:an,[54]:an,[55]:an,[56]:an,[57]:an,[62]:$e};const xn={[91]:vt};const Tn={[-2]:nt,[-1]:nt,[32]:nt};const On={[35]:Tt,[42]:sn,[45]:[gn,sn],[60]:_t,[61]:gn,[95]:sn,[96]:Ze,[126]:Ze};const Nn={[38]:Xe,[92]:Ye};const Ln={[-5]:rn,[-4]:rn,[-3]:rn,[33]:Zt,[38]:Xe,[42]:Be,[60]:[Ue,jt],[91]:tn,[92]:[St,Ye],[93]:Ht,[95]:Be,[96]:st};const In={null:[Be,wn]};const _n={null:[42,95]};const Mn={null:[]};var Bn=Object.freeze({__proto__:null,attentionMarkers:_n,contentInitial:xn,disable:Mn,document:Sn,flow:On,flowInitial:Tn,insideSpan:In,string:Nn,text:Ln});function Rn(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={};const o=[];let s=[];let l=[];const a={attempt:v(w),check:v(E),consume:k,enter:y,exit:D,interrupt:v(E,{interrupt:true})};const u={code:null,containerState:{},defineSkip:m,events:[],now:p,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:f};let c=t.tokenize.call(u,a);if(t.resolveAll){o.push(t)}return u;function f(e){s=se(s,e);g();if(s[s.length-1]!==null){return[]}A(t,0);u.events=Me(o,u.events,u);return u.events}function h(e,t){return qn(d(e),t)}function d(e){return Pn(s,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:r,offset:o}=i;return{_bufferIndex:e,_index:t,line:n,column:r,offset:o}}function m(e){r[e.line]=e.column;F()}function g(){let e;while(i._index<s.length){const t=s[i._index];if(typeof t==="string"){e=i._index;if(i._bufferIndex<0){i._bufferIndex=0}while(i._index===e&&i._bufferIndex<t.length){b(t.charCodeAt(i._bufferIndex))}}else{b(t)}}}function b(e){c=c(e)}function k(e){if(De(e)){i.line++;i.column=1;i.offset+=e===-3?2:1;F()}else if(e!==-1){i.column++;i.offset++}if(i._bufferIndex<0){i._index++}else{i._bufferIndex++;if(i._bufferIndex===s[i._index].length){i._bufferIndex=-1;i._index++}}u.previous=e}function y(e,t){const n=t||{};n.type=e;n.start=p();u.events.push(["enter",n,u]);l.push(n);return n}function D(e){const t=l.pop();t.end=p();u.events.push(["exit",t,u]);return t}function w(e,t){A(e,t.from)}function E(e,t){t.restore()}function v(e,t){return n;function n(n,i,r){let o;let s;let l;let c;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):f(n);function f(e){return t;function t(t){const n=t!==null&&e[t];const i=t!==null&&e.null;const r=[...Array.isArray(n)?n:n?[n]:[],...Array.isArray(i)?i:i?[i]:[]];return h(r)(t)}}function h(e){o=e;s=0;if(e.length===0){return r}return d(e[s])}function d(e){return n;function n(n){c=C();l=e;if(!e.partial){u.currentConstruct=e}if(e.name&&u.parser.constructs.disable.null.includes(e.name)){return m()}return e.tokenize.call(t?Object.assign(Object.create(u),t):u,a,p,m)(n)}}function p(t){e(l,c);return i}function m(e){c.restore();if(++s<o.length){return d(o[s])}return r}}}function A(e,t){if(e.resolveAll&&!o.includes(e)){o.push(e)}if(e.resolve){oe(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u))}if(e.resolveTo){u.events=e.resolveTo(u.events,u)}}function C(){const e=p();const t=u.previous;const n=u.currentConstruct;const r=u.events.length;const o=Array.from(l);return{from:r,restore:s};function s(){i=e;u.previous=t;u.currentConstruct=n;u.events.length=r;l=o;F()}}function F(){if(i.line in r&&i.column<2){i.column=r[i.line];i.offset+=r[i.line]-1}}}function Pn(e,t){const n=t.start._index;const i=t.start._bufferIndex;const r=t.end._index;const o=t.end._bufferIndex;let s;if(n===r){s=[e[n].slice(i,o)]}else{s=e.slice(n,r);if(i>-1){const e=s[0];if(typeof e==="string"){s[0]=e.slice(i)}else{s.shift()}}if(o>0){s.push(e[r].slice(0,o))}}return s}function qn(e,t){let n=-1;const i=[];let r;while(++n<e.length){const o=e[n];let s;if(typeof o==="string"){s=o}else switch(o){case-5:{s="\r";break}case-4:{s="\n";break}case-3:{s="\r"+"\n";break}case-2:{s=t?" ":"\t";break}case-1:{if(!t&&r)continue;s=" ";break}default:{s=String.fromCharCode(o)}}r=o===-2;i.push(s)}return i.join("")}function Un(e){const t=e||{};const n=ae([Bn,...t.extensions||[]]);const i={constructs:n,content:r(xe),defined:[],document:r(Oe),flow:r(yn),lazy:{},string:r(En),text:r(vn)};return i;function r(e){return t;function t(t){return Rn(i,e,t)}}}function jn(e){while(!ht(e)){}return e}const zn=/[\0\t\n\r]/g;function Hn(){let e=1;let t="";let n=true;let i;return r;function r(r,o,s){const l=[];let a;let u;let c;let f;let h;r=t+(typeof r==="string"?r.toString():new TextDecoder(o||undefined).decode(r));c=0;t="";if(n){if(r.charCodeAt(0)===65279){c++}n=undefined}while(c<r.length){zn.lastIndex=c;a=zn.exec(r);f=a&&a.index!==undefined?a.index:r.length;h=r.charCodeAt(f);if(!a){t=r.slice(c);break}if(h===10&&c===f&&i){l.push(-3);i=undefined}else{if(i){l.push(-5);i=undefined}if(c<f){l.push(r.slice(c,f));e+=f-c}switch(h){case 0:{l.push(65533);e++;break}case 9:{u=Math.ceil(e/4)*4;l.push(-2);while(e++<u)l.push(-1);break}case 10:{l.push(-4);e=1;break}default:{i=true;e=1}}}c=f+1}if(s){if(i)l.push(-5);if(t)l.push(t);l.push(null)}return l}}const $n=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Vn(e){return e.replace($n,Gn)}function Gn(e,t,n){if(t){return t}const i=n.charCodeAt(0);if(i===35){const e=n.charCodeAt(1);const t=e===120||e===88;return fe(n.slice(t?2:1),t?16:10)}return re(n)||e}function Kn(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return Wn(e.position)}if("start"in e||"end"in e){return Wn(e)}if("line"in e||"column"in e){return Yn(e)}return""}function Yn(e){return Xn(e&&e.line)+":"+Xn(e&&e.column)}function Wn(e){return Yn(e&&e.start)+"-"+Yn(e&&e.end)}function Xn(e){return e&&typeof e==="number"?e:1}const Qn={}.hasOwnProperty;function Jn(e,t,n){if(t&&typeof t==="object"){n=t;t=undefined}return Zn(n)(jn(Un(n).document().write(Hn()(e,t,true))))}function Zn(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ne),autolinkProtocol:C,autolinkEmail:C,atxHeading:o(Q),blockQuote:o(G),characterEscape:C,characterReference:C,codeFenced:o(K),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(K,s),codeText:o(Y,s),codeTextData:C,data:C,codeFlowValue:C,definition:o(W),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(X),hardBreakEscape:o(J),hardBreakTrailing:o(J),htmlFlow:o(ee,s),htmlFlowData:C,htmlText:o(ee,s),htmlTextData:C,image:o(te),label:s,link:o(ne),listItem:o(oe),listItemValue:h,listOrdered:o(ie,f),listUnordered:o(ie),paragraph:o(se),reference:q,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Q),strong:o(le),thematicBreak:o(ue)},exit:{atxHeading:a(),atxHeadingSequence:w,autolink:a(),autolinkEmail:V,autolinkProtocol:$,blockQuote:a(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:j,characterReferenceMarkerNumeric:j,characterReferenceValue:z,characterReference:H,codeFenced:a(g),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:F,codeIndented:a(b),codeText:a(N),codeTextData:F,data:F,definition:a(),definitionDestinationString:D,definitionLabelString:k,definitionTitleString:y,emphasis:a(),hardBreakEscape:a(x),hardBreakTrailing:a(x),htmlFlow:a(T),htmlFlowData:F,htmlText:a(O),htmlTextData:F,image:a(I),label:M,labelText:_,lineEnding:S,link:a(L),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:U,resourceDestinationString:B,resourceTitleString:R,resource:P,setextHeading:a(A),setextHeadingLineSequence:v,setextHeadingText:E,strong:a(),thematicBreak:a()}};ti(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(e){let i={type:"root",children:[]};const o={stack:[i],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:c,data:n};const a=[];let f=-1;while(++f<e.length){if(e[f][1].type==="listOrdered"||e[f][1].type==="listUnordered"){if(e[f][0]==="enter"){a.push(f)}else{const t=a.pop();f=r(e,t,f)}}}f=-1;while(++f<e.length){const n=t[e[f][0]];if(Qn.call(n,e[f][1].type)){n[e[f][1].type].call(Object.assign({sliceSerialize:e[f][2].sliceSerialize},o),e[f][1])}}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];const t=e[1]||ii;t.call(o,undefined,e[0])}i.position={start:ei(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ei(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})};f=-1;while(++f<t.transforms.length){i=t.transforms[f](i)||i}return i}function r(e,t,n){let i=t-1;let r=-1;let o=false;let s;let l;let a;let u;while(++i<=n){const t=e[i];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{if(t[0]==="enter"){r++}else{r--}u=undefined;break}case"lineEndingBlank":{if(t[0]==="enter"){if(s&&!u&&!r&&!a){a=i}u=undefined}break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":{break}default:{u=undefined}}if(!r&&t[0]==="enter"&&t[1].type==="listItemPrefix"||r===-1&&t[0]==="exit"&&(t[1].type==="listUnordered"||t[1].type==="listOrdered")){if(s){let r=i;l=undefined;while(r--){const t=e[r];if(t[1].type==="lineEnding"||t[1].type==="lineEndingBlank"){if(t[0]==="exit")continue;if(l){e[l][1].type="lineEndingBlank";o=true}t[1].type="lineEnding";l=r}else if(t[1].type==="linePrefix"||t[1].type==="blockQuotePrefix"||t[1].type==="blockQuotePrefixWhitespace"||t[1].type==="blockQuoteMarker"||t[1].type==="listItemIndent");else{break}}if(a&&(!l||a<l)){s._spread=true}s.end=Object.assign({},l?e[l][1].start:t[1].end);e.splice(l||i,0,["exit",s,t[2]]);i++;n++}if(t[1].type==="listItemPrefix"){const r={type:"listItem",_spread:false,start:Object.assign({},t[1].start),end:undefined};s=r;e.splice(i,0,["enter",r,t[2]]);i++;n++;a=undefined;u=true}}}e[t][1]._spread=o;return n}function o(e,t){return n;function n(n){l.call(this,e(n),n);if(t)t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){const i=this.stack[this.stack.length-1];const r=i.children;r.push(e);this.stack.push(e);this.tokenStack.push([t,n||undefined]);e.position={start:ei(t.start),end:undefined}}function a(e){return t;function t(t){if(e)e.call(this,t);u.call(this,t)}}function u(e,t){const n=this.stack.pop();const i=this.tokenStack.pop();if(!i){throw new Error("Cannot close `"+e.type+"` ("+Kn({start:e.start,end:e.end})+"): it’s not open")}else if(i[0].type!==e.type){if(t){t.call(this,e,i[0])}else{const t=i[1]||ii;t.call(this,e,i[0])}}n.position.end=ei(e.end)}function c(){return Z(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=true}function h(e){if(this.data.expectingFirstListItemValue){const t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10);this.data.expectingFirstListItemValue=undefined}}function d(){const e=this.resume();const t=this.stack[this.stack.length-1];t.lang=e}function p(){const e=this.resume();const t=this.stack[this.stack.length-1];t.meta=e}function m(){if(this.data.flowCodeInside)return;this.buffer();this.data.flowCodeInside=true}function g(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"");this.data.flowCodeInside=undefined}function b(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,"")}function k(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=he(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();const t=this.stack[this.stack.length-1];t.title=e}function D(){const e=this.resume();const t=this.stack[this.stack.length-1];t.url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function E(){this.data.setextHeadingSlurpLineEnding=true}function v(e){const t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=undefined}function C(e){const t=this.stack[this.stack.length-1];const n=t.children;let i=n[n.length-1];if(!i||i.type!=="text"){i=ae();i.position={start:ei(e.start),end:undefined};n.push(i)}this.stack.push(i)}function F(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e);t.position.end=ei(e.end)}function S(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){const t=n.children[n.children.length-1];t.position.end=ei(e.end);this.data.atHardBreak=undefined;return}if(!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)){C.call(this,e);F.call(this,e)}}function x(){this.data.atHardBreak=true}function T(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e}function O(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e}function N(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference";e.referenceType=t;delete e.url;delete e.title}else{delete e.identifier;delete e.label}this.data.referenceType=undefined}function I(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference";e.referenceType=t;delete e.url;delete e.title}else{delete e.identifier;delete e.label}this.data.referenceType=undefined}function _(e){const t=this.sliceSerialize(e);const n=this.stack[this.stack.length-2];n.label=Vn(t);n.identifier=he(t).toLowerCase()}function M(){const e=this.stack[this.stack.length-1];const t=this.resume();const n=this.stack[this.stack.length-1];this.data.inReference=true;if(n.type==="link"){const t=e.children;n.children=t}else{n.alt=t}}function B(){const e=this.resume();const t=this.stack[this.stack.length-1];t.url=e}function R(){const e=this.resume();const t=this.stack[this.stack.length-1];t.title=e}function P(){this.data.inReference=undefined}function q(){this.data.referenceType="collapsed"}function U(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=he(this.sliceSerialize(e)).toLowerCase();this.data.referenceType="full"}function j(e){this.data.characterReferenceType=e.type}function z(e){const t=this.sliceSerialize(e);const n=this.data.characterReferenceType;let i;if(n){i=fe(t,n==="characterReferenceMarkerNumeric"?10:16);this.data.characterReferenceType=undefined}else{const e=re(t);i=e}const r=this.stack[this.stack.length-1];r.value+=i}function H(e){const t=this.stack.pop();t.position.end=ei(e.end)}function $(e){F.call(this,e);const t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function V(e){F.call(this,e);const t=this.stack[this.stack.length-1];t.url="mailto:"+this.sliceSerialize(e)}function G(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function W(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function ie(e){return{type:"list",ordered:e.type==="listOrdered",start:null,spread:e._spread,children:[]}}function oe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function se(){return{type:"paragraph",children:[]}}function le(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function ue(){return{type:"thematicBreak"}}}function ei(e){return{line:e.line,column:e.column,offset:e.offset}}function ti(e,t){let n=-1;while(++n<t.length){const i=t[n];if(Array.isArray(i)){ti(e,i)}else{ni(e,i)}}}function ni(e,t){let n;for(n in t){if(Qn.call(t,n)){switch(n){case"canContainEols":{const i=t[n];if(i){e[n].push(...i)}break}case"transforms":{const i=t[n];if(i){e[n].push(...i)}break}case"enter":case"exit":{const i=t[n];if(i){Object.assign(e[n],i)}break}}}}}function ii(e,t){if(e){throw new Error("Cannot close `"+e.type+"` ("+Kn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kn({start:t.start,end:t.end})+") is open")}else{throw new Error("Cannot close document, a token (`"+t.type+"`, "+Kn({start:t.start,end:t.end})+") is still open")}}function ri(e){const t=this;t.parser=n;function n(n){return Jn(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var oi={exports:{}};var si;function li(){if(si)return oi.exports;si=1;(function(e){(function(){var t;{t=e.exports=r}t.format=r;t.vsprintf=i;if(typeof console!=="undefined"&&typeof console.log==="function"){t.printf=n}function n(){console.log(r.apply(null,arguments))}function i(e,t){return r.apply(null,[e].concat(t))}function r(e){var t=1,n=[].slice.call(arguments),i=0,r=e.length,o="",s,l=false,a,u,c=false,f,h=function(){return n[t++]},d=function(){var t="";while(/\d/.test(e[i])){t+=e[i++];s=e[i]}return t.length>0?parseInt(t):null};for(;i<r;++i){s=e[i];if(l){l=false;if(s=="."){c=false;s=e[++i]}else if(s=="0"&&e[i+1]=="."){c=true;i+=2;s=e[i]}else{c=true}f=d();switch(s){case"b":o+=parseInt(h(),10).toString(2);break;case"c":a=h();if(typeof a==="string"||a instanceof String)o+=a;else o+=String.fromCharCode(parseInt(a,10));break;case"d":o+=parseInt(h(),10);break;case"f":u=String(parseFloat(h()).toFixed(f||6));o+=c?u:u.replace(/^0/,"");break;case"j":o+=JSON.stringify(h());break;case"o":o+="0"+parseInt(h(),10).toString(8);break;case"s":o+=h();break;case"x":o+="0x"+parseInt(h(),10).toString(16);break;case"X":o+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:o+=s;break}}else if(s==="%"){l=true}else{o+=s}}return o}})()})(oi);return oi.exports}var ai=li();var ui=i(ai);const ci=Object.assign(fi(Error),{eval:fi(EvalError),range:fi(RangeError),reference:fi(ReferenceError),syntax:fi(SyntaxError),type:fi(TypeError),uri:fi(URIError)});function fi(e){t.displayName=e.displayName||e.name;return t;function t(t,...n){const i=t?ui(t,...n):t;return new e(i)}}const hi={}.hasOwnProperty;const di={yaml:"-",toml:"+"};function pi(e){const t=[];let n=-1;const i=Array.isArray(e)?e:e?[e]:["yaml"];while(++n<i.length){t[n]=mi(i[n])}return t}function mi(e){let t=e;if(typeof t==="string"){if(!hi.call(di,t)){throw ci("Missing matter definition for `%s`",t)}t={type:t,marker:di[t]}}else if(typeof t!=="object"){throw ci("Expected matter to be an object, not `%j`",t)}if(!hi.call(t,"type")){throw ci("Missing `type` in matter `%j`",t)}if(!hi.call(t,"fence")&&!hi.call(t,"marker")){throw ci("Missing `marker` or `fence` in matter `%j`",t)}return t}function gi(e){const t=pi(e);const n={};let i=-1;while(++i<t.length){const e=t[i];const r=ki(e,"open").charCodeAt(0);const o=bi(e);const s=n[r];if(Array.isArray(s)){s.push(o)}else{n[r]=[o]}}return{flow:n}}function bi(e){const t=e.anywhere;const n=e.type;const i=n+"Fence";const r=i+"Sequence";const o=n+"Value";const s={tokenize:c,partial:true};let l;let a=0;return{tokenize:u,concrete:true};function u(u,c,f){const h=this;return d;function d(o){const s=h.now();if(s.column===1&&(s.line===1||t)){l=ki(e,"open");a=0;if(o===l.charCodeAt(a)){u.enter(n);u.enter(i);u.enter(r);return p(o)}}return f(o)}function p(e){if(a===l.length){u.exit(r);if(Ee(e)){u.enter("whitespace");return m(e)}return g(e)}if(e===l.charCodeAt(a++)){u.consume(e);return p}return f(e)}function m(e){if(Ee(e)){u.consume(e);return m}u.exit("whitespace");return g(e)}function g(t){if(De(t)){u.exit(i);u.enter("lineEnding");u.consume(t);u.exit("lineEnding");l=ki(e,"close");a=0;return u.attempt(s,D,b)}return f(t)}function b(e){if(e===null||De(e)){return y(e)}u.enter(o);return k(e)}function k(e){if(e===null||De(e)){u.exit(o);return y(e)}u.consume(e);return k}function y(e){if(e===null){return f(e)}u.enter("lineEnding");u.consume(e);u.exit("lineEnding");return u.attempt(s,D,b)}function D(e){u.exit(n);return c(e)}}function c(e,t,n){let o=0;return s;function s(t){if(t===l.charCodeAt(o)){e.enter(i);e.enter(r);return a(t)}return n(t)}function a(t){if(o===l.length){e.exit(r);if(Ee(t)){e.enter("whitespace");return u(t)}return c(t)}if(t===l.charCodeAt(o++)){e.consume(t);return a}return n(t)}function u(t){if(Ee(t)){e.consume(t);return u}e.exit("whitespace");return c(t)}function c(r){if(r===null||De(r)){e.exit(i);return t(r)}return n(r)}}}function ki(e,t){return e.marker?yi(e.marker,t).repeat(3):yi(e.fence,t)}function yi(e,t){return typeof e==="string"?e:e[t]}function Di(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wi(e){const t=pi(e);const n={};const i={};let r=-1;while(++r<t.length){const e=t[r];n[e.type]=Ei(e);i[e.type]=vi;i[e.type+"Value"]=Ai}return{enter:n,exit:i}}function Ei(e){return t;function t(t){this.enter({type:e.type,value:""},t);this.buffer()}}function vi(e){const t=this.resume();const n=this.stack[this.stack.length-1];this.exit(e);n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function Ai(e){this.config.enter.data.call(this,e);this.config.exit.data.call(this,e)}function Ci(e){const t=[];const n={};const i=pi(e);let r=-1;while(++r<i.length){const e=i[r];n[e.type]=Fi(e);const o=Si(e,"open");t.push({atBreak:true,character:o.charAt(0),after:Di(o.charAt(1))})}return{unsafe:t,handlers:n}}function Fi(e){const t=Si(e,"open");const n=Si(e,"close");return i;function i(e){return t+(e.value?"\n"+e.value:"")+"\n"+n}}function Si(e,t){return e.marker?xi(e.marker,t).repeat(3):xi(e.fence,t)}function xi(e,t){return typeof e==="string"?e:e[t]}const Ti="yaml";function Oi(e){const t=this;const n=e||Ti;const i=t.data();const r=i.micromarkExtensions||(i.micromarkExtensions=[]);const o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]);const s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(gi(n));o.push(wi(n));s.push(Ci(n))}function Ni(e,t){const n=String(e);if(typeof t!=="string"){throw new TypeError("Expected character")}let i=0;let r=n.indexOf(t);while(r!==-1){i++;r=n.indexOf(t,r+t.length)}return i}const Li=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];const Ii={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function _i(e){const t=typeof e==="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Mi(e){const t=typeof e==="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Bi(e){const t=typeof e==="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Ri(e){return Bi(e)||_i(e)}const Pi=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function qi(e,t){const n=t||{};const i=typeof n.additional==="string"?n.additional.charCodeAt(0):n.additional;const r=[];let o=0;let s=-1;let l="";let a;let u;if(n.position){if("start"in n.position||"indent"in n.position){u=n.position.indent;a=n.position.start}else{a=n.position}}let c=(a?a.line:0)||1;let f=(a?a.column:0)||1;let h=p();let d;o--;while(++o<=e.length){if(d===10){f=(u?u[s]:0)||1}d=e.charCodeAt(o);if(d===38){const t=e.charCodeAt(o+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||i&&t===i){l+=String.fromCharCode(d);f++;continue}const s=o+1;let a=s;let u=s;let c;if(t===35){u=++a;const t=e.charCodeAt(u);if(t===88||t===120){c="hexadecimal";u=++a}else{c="decimal"}}else{c="named"}let b="";let k="";let y="";const D=c==="named"?Ri:c==="decimal"?_i:Mi;u--;while(++u<=e.length){const t=e.charCodeAt(u);if(!D(t)){break}y+=String.fromCharCode(t);if(c==="named"&&Li.includes(y)){b=y;k=re(y)}}let w=e.charCodeAt(u)===59;if(w){u++;const e=c==="named"?re(y):false;if(e){b=y;k=e}}let E=1+u-s;let v="";if(!w&&n.nonTerminated===false);else if(!y){if(c!=="named"){m(4,E)}}else if(c==="named"){if(w&&!k){m(5,1)}else{if(b!==y){u=a+b.length;E=1+u-a;w=false}if(!w){const t=b?1:3;if(n.attribute){const n=e.charCodeAt(u);if(n===61){m(t,E);k=""}else if(Ri(n)){k=""}else{m(t,E)}}else{m(t,E)}}}v=k}else{if(!w){m(2,E)}let e=Number.parseInt(y,c==="hexadecimal"?16:10);if(Ui(e)){m(7,E);v=String.fromCharCode(65533)}else if(e in Ii){m(6,E);v=Ii[e]}else{let t="";if(ji(e)){m(6,E)}if(e>65535){e-=65536;t+=String.fromCharCode(e>>>(10&1023)|55296);e=56320|e&1023}v=t+String.fromCharCode(e)}}if(v){g();h=p();o=u-1;f+=u-s+1;r.push(v);const t=p();t.offset++;if(n.reference){n.reference.call(n.referenceContext||undefined,v,{start:h,end:t},e.slice(s-1,u))}h=t}else{y=e.slice(s-1,u);l+=y;f+=y.length;o=u-1}}else{if(d===10){c++;s++;f=0}if(Number.isNaN(d)){g()}else{l+=String.fromCharCode(d);f++}}}return r.join("");function p(){return{line:c,column:f,offset:o+((a?a.offset:0)||0)}}function m(e,t){let i;if(n.warning){i=p();i.column+=t;i.offset+=t;n.warning.call(n.warningContext||undefined,Pi[e],i,e)}}function g(){if(l){r.push(l);if(n.text){n.text.call(n.textContext||undefined,l,{start:h,end:p()})}l=""}}}function Ui(e){return e>=55296&&e<=57343||e>1114111}function ji(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const zi=/["&'<>`]/g;const Hi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;const $i=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;const Vi=/[|\\{}()[\]^$+*?.]/g;const Gi=new WeakMap;function Ki(e,t){e=e.replace(t.subset?Yi(t.subset):zi,i);if(t.subset||t.escapeOnly){return e}return e.replace(Hi,n).replace($i,i);function n(e,n,i){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),t)}function i(e,n,i){return t.format(e.charCodeAt(0),i.charCodeAt(n+1),t)}}function Yi(e){let t=Gi.get(e);if(!t){t=Wi(e);Gi.set(e,t)}return t}function Wi(e){const t=[];let n=-1;while(++n<e.length){t.push(e[n].replace(Vi,"\\$&"))}return new RegExp("(?:"+t.join("|")+")","g")}const Xi=/[\dA-Fa-f]/;function Qi(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!Xi.test(String.fromCharCode(t))?i:i+";"}const Ji=/\d/;function Zi(e,t,n){const i="&#"+String(e);return n&&t&&!Ji.test(String.fromCharCode(t))?i:i+";"}const er=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];const tr={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};const nr=["cent","copy","divide","gt","lt","not","para","times"];const ir={}.hasOwnProperty;const rr={};let or;for(or in tr){if(ir.call(tr,or)){rr[tr[or]]=or}}const sr=/[^\dA-Za-z]/;function lr(e,t,n,i){const r=String.fromCharCode(e);if(ir.call(rr,r)){const e=rr[r];const o="&"+e;if(n&&er.includes(e)&&!nr.includes(e)&&(!i||t&&t!==61&&sr.test(String.fromCharCode(t)))){return o}return o+";"}return""}function ar(e,t,n){let i=Qi(e,t,n.omitOptionalSemicolons);let r;if(n.useNamedReferences||n.useShortestReferences){r=lr(e,t,n.omitOptionalSemicolons,n.attribute)}if((n.useShortestReferences||!r)&&n.useShortestReferences){const r=Zi(e,t,n.omitOptionalSemicolons);if(r.length<i.length){i=r}}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function ur(e){return"&#x"+e.toString(16).toUpperCase()+";"}function cr(e,t){return Ki(e,Object.assign({format:ar},t))}function fr(e,t){return Ki(e,Object.assign({format:ur},t))}const hr=function(e){if(e===null||e===undefined){return br}if(typeof e==="function"){return gr(e)}if(typeof e==="object"){return Array.isArray(e)?dr(e):pr(e)}if(typeof e==="string"){return mr(e)}throw new Error("Expected function, string, or object as test")};function dr(e){const t=[];let n=-1;while(++n<e.length){t[n]=hr(e[n])}return gr(i);function i(...e){let n=-1;while(++n<t.length){if(t[n].apply(this,e))return true}return false}}function pr(e){const t=e;return gr(n);function n(n){const i=n;let r;for(r in e){if(i[r]!==t[r])return false}return true}}function mr(e){return gr(t);function t(t){return t&&t.type===e}}function gr(e){return t;function t(t,n,i){return Boolean(kr(t)&&e.call(this,t,typeof n==="number"?n:undefined,i||undefined))}}function br(){return true}function kr(e){return e!==null&&typeof e==="object"&&"type"in e}function yr(e){return e}const Dr=[];const wr=true;const Er=false;const vr="skip";function Ar(e,t,n,i){let r;if(typeof t==="function"&&typeof n!=="function"){i=n;n=t}else{r=t}const o=hr(r);const s=i?-1:1;l(e,undefined,[])();function l(e,r,a){const u=e&&typeof e==="object"?e:{};if(typeof u.type==="string"){const t=typeof u.tagName==="string"?u.tagName:typeof u.name==="string"?u.name:undefined;Object.defineProperty(c,"name",{value:"node ("+yr(e.type+(t?"<"+t+">":""))+")"})}return c;function c(){let u=Dr;let c;let f;let h;if(!t||o(e,r,a[a.length-1]||undefined)){u=Cr(n(e,a));if(u[0]===Er){return u}}if("children"in e&&e.children){const t=e;if(t.children&&u[0]!==vr){f=(i?t.children.length:-1)+s;h=a.concat(t);while(f>-1&&f<t.children.length){const e=t.children[f];c=l(e,f,h)();if(c[0]===Er){return c}f=typeof c[1]==="number"?c[1]:f+s}}}return u}}}function Cr(e){if(Array.isArray(e)){return e}if(typeof e==="number"){return[wr,e]}return e===null||e===undefined?Dr:[e]}const Fr={}.hasOwnProperty;const Sr={};const xr=/^[^\t\n\r "#'.<=>`}]+$/;const Tr=/^[^\t\n\r "'<=>`}]+$/;function Or(){return{canContainEols:["textDirective"],enter:{directiveContainer:Lr,directiveContainerAttributes:qr,directiveContainerLabel:Rr,directiveLeaf:Ir,directiveLeafAttributes:qr,directiveText:_r,directiveTextAttributes:qr},exit:{directiveContainer:Vr,directiveContainerAttributeClassValue:jr,directiveContainerAttributeIdValue:Ur,directiveContainerAttributeName:Hr,directiveContainerAttributeValue:zr,directiveContainerAttributes:$r,directiveContainerLabel:Pr,directiveContainerName:Br,directiveLeaf:Vr,directiveLeafAttributeClassValue:jr,directiveLeafAttributeIdValue:Ur,directiveLeafAttributeName:Hr,directiveLeafAttributeValue:zr,directiveLeafAttributes:$r,directiveLeafName:Br,directiveText:Vr,directiveTextAttributeClassValue:jr,directiveTextAttributeIdValue:Ur,directiveTextAttributeName:Hr,directiveTextAttributeValue:zr,directiveTextAttributes:$r,directiveTextName:Br}}}function Nr(e){const t=Sr;if(t.quote!=='"'&&t.quote!=="'"&&t.quote!==null&&t.quote!==undefined){throw new Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`")}n.peek=Gr;return{handlers:{containerDirective:n,leafDirective:n,textDirective:n},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:true,character:":",after:":"}]};function n(e,t,n,r){const o=n.createTracker(r);const s=Yr(e);const l=n.enter(e.type);let a=o.move(s+(e.name||""));let u;if(e.type==="containerDirective"){const t=(e.children||[])[0];u=Kr(t)?t:undefined}else{u=e}if(u&&u.children&&u.children.length>0){const t=n.enter("label");const i=`${e.type}Label`;const r=n.enter(i);a+=o.move("[");a+=o.move(n.containerPhrasing(u,{...o.current(),before:a,after:"]"}));a+=o.move("]");r();t()}a+=o.move(i(e,n));if(e.type==="containerDirective"){const t=(e.children||[])[0];let i=e;if(Kr(t)){i=Object.assign({},e,{children:e.children.slice(1)})}if(i&&i.children&&i.children.length>0){a+=o.move("\n");a+=o.move(n.containerFlow(i,o.current()))}a+=o.move("\n"+s)}l();return a}function i(e,n){const i=e.attributes||{};const o=[];let s;let l;let a;let u;for(u in i){if(Fr.call(i,u)&&i[u]!==undefined&&i[u]!==null){const c=String(i[u]);if(u==="id"){a=t.preferShortcut!==false&&xr.test(c)?"#"+c:r("id",c,e,n)}else if(u==="class"){const i=c.split(/[\t\n\r ]+/g);const o=[];const a=[];let u=-1;while(++u<i.length){(t.preferShortcut!==false&&xr.test(i[u])?a:o).push(i[u])}s=o.length>0?r("class",o.join(" "),e,n):"";l=a.length>0?"."+a.join("."):""}else{o.push(r(u,c,e,n))}}}if(s){o.unshift(s)}if(l){o.unshift(l)}if(a){o.unshift(a)}return o.length>0?"{"+o.join(" ")+"}":""}function r(e,n,i,r){if(t.collapseEmptyAttributes!==false&&!n)return e;if(t.preferUnquoted&&Tr.test(n)){return e+"="+n}const o=t.quote||r.options.quote||'"';const s=o==='"'?"'":'"';const l=t.quoteSmart&&Ni(n,o)>Ni(n,s)?s:o;const a=i.type==="textDirective"?[l]:[l,"\n","\r"];return e+"="+l+fr(n,{subset:a})+l}}function Lr(e){Mr.call(this,"containerDirective",e)}function Ir(e){Mr.call(this,"leafDirective",e)}function _r(e){Mr.call(this,"textDirective",e)}function Mr(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function Br(e){const t=this.stack[this.stack.length-1];t.name=this.sliceSerialize(e)}function Rr(e){this.enter({type:"paragraph",data:{directiveLabel:true},children:[]},e)}function Pr(e){this.exit(e)}function qr(){this.data.directiveAttributes=[];this.buffer()}function Ur(e){const t=this.data.directiveAttributes;t.push(["id",qi(this.sliceSerialize(e),{attribute:true})])}function jr(e){const t=this.data.directiveAttributes;t.push(["class",qi(this.sliceSerialize(e),{attribute:true})])}function zr(e){const t=this.data.directiveAttributes;t[t.length-1][1]=qi(this.sliceSerialize(e),{attribute:true})}function Hr(e){const t=this.data.directiveAttributes;t.push([this.sliceSerialize(e),""])}function $r(){const e=this.data.directiveAttributes;const t={};let n=-1;while(++n<e.length){const i=e[n];if(i[0]==="class"&&t.class){t.class+=" "+i[1]}else{t[i[0]]=i[1]}}this.data.directiveAttributes=undefined;this.resume();const i=this.stack[this.stack.length-1];i.attributes=t}function Vr(e){this.exit(e)}function Gr(){return":"}function Kr(e){return Boolean(e&&e.type==="paragraph"&&e.data&&e.data.directiveLabel)}function Yr(e){let t=0;if(e.type==="containerDirective"){Ar(e,(function(e,n){if(e.type==="containerDirective"){let e=n.length;let i=0;while(e--){if(n[e].type==="containerDirective"){i++}}if(i>t)t=i}}));t+=3}else if(e.type==="leafDirective"){t=2}else{t=1}return":".repeat(t)}function Wr(e,t,n,i,r,o,s,l,a,u,c,f,h,d,p){let m;let g;return b;function b(t){e.enter(i);e.enter(r);e.consume(t);e.exit(r);return k}function k(t){if(t===35){m=s;return y(t)}if(t===46){m=l;return y(t)}if(t===58||t===95||de(t)){e.enter(o);e.enter(a);e.consume(t);return E}if(p&&Ee(t)){return Se(e,k,"whitespace")(t)}if(!p&&we(t)){return Et(e,k)(t)}return O(t)}function y(t){const n=m+"Marker";e.enter(o);e.enter(m);e.enter(n);e.consume(t);e.exit(n);return D}function D(t){if(t===null||t===34||t===35||t===39||t===46||t===60||t===61||t===62||t===96||t===125||we(t)){return n(t)}const i=m+"Value";e.enter(i);e.consume(t);return w}function w(t){if(t===null||t===34||t===39||t===60||t===61||t===62||t===96){return n(t)}if(t===35||t===46||t===125||we(t)){const n=m+"Value";e.exit(n);e.exit(m);e.exit(o);return k(t)}e.consume(t);return w}function E(t){if(t===45||t===46||t===58||t===95||pe(t)){e.consume(t);return E}e.exit(a);if(p&&Ee(t)){return Se(e,v,"whitespace")(t)}if(!p&&we(t)){return Et(e,v)(t)}return v(t)}function v(t){if(t===61){e.enter(u);e.consume(t);e.exit(u);return A}e.exit(o);return k(t)}function A(t){if(t===null||t===60||t===61||t===62||t===96||t===125||p&&De(t)){return n(t)}if(t===34||t===39){e.enter(c);e.enter(h);e.consume(t);e.exit(h);g=t;return F}if(p&&Ee(t)){return Se(e,A,"whitespace")(t)}if(!p&&we(t)){return Et(e,A)(t)}e.enter(f);e.enter(d);e.consume(t);g=undefined;return C}function C(t){if(t===null||t===34||t===39||t===60||t===61||t===62||t===96){return n(t)}if(t===125||we(t)){e.exit(d);e.exit(f);e.exit(o);return k(t)}e.consume(t);return C}function F(t){if(t===g){e.enter(h);e.consume(t);e.exit(h);e.exit(c);e.exit(o);return T}e.enter(f);return S(t)}function S(t){if(t===g){e.exit(f);return F(t)}if(t===null){return n(t)}if(De(t)){return p?n(t):Et(e,S)(t)}e.enter(d);e.consume(t);return x}function x(t){if(t===g||t===null||De(t)){e.exit(d);return S(t)}e.consume(t);return x}function T(e){return e===125||we(e)?k(e):O(e)}function O(o){if(o===125){e.enter(r);e.consume(o);e.exit(r);e.exit(i);return t}return n(o)}}function Xr(e,t,n,i,r,o,s){let l=0;let a=0;let u;return c;function c(t){e.enter(i);e.enter(r);e.consume(t);e.exit(r);return f}function f(n){if(n===93){e.enter(r);e.consume(n);e.exit(r);e.exit(i);return t}e.enter(o);return h(n)}function h(t){if(t===93&&!a){return m(t)}const n=e.enter("chunkText",{contentType:"text",previous:u});if(u)u.next=n;u=n;return d(t)}function d(t){if(t===null||l>999){return n(t)}if(t===91&&++a>32){return n(t)}if(t===93&&!a--){e.exit("chunkText");return m(t)}if(De(t)){if(s){return n(t)}e.consume(t);e.exit("chunkText");return h}e.consume(t);return t===92?p:d}function p(t){if(t===91||t===92||t===93){e.consume(t);l++;return d}return d(t)}function m(n){e.exit(o);e.enter(r);e.consume(n);e.exit(r);e.exit(i);return t}}function Qr(e,t,n,i){const r=this;return o;function o(t){if(de(t)){e.enter(i);e.consume(t);return s}return n(t)}function s(o){if(o===45||o===95||pe(o)){e.consume(o);return s}e.exit(i);return r.previous===45||r.previous===95?n(o):t(o)}}const Jr={tokenize:no,concrete:true};const Zr={tokenize:io,partial:true};const eo={tokenize:ro,partial:true};const to={tokenize:oo,partial:true};function no(e,t,n){const i=this;const r=i.events[i.events.length-1];const o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],true).length:0;let s=0;let l;return a;function a(t){e.enter("directiveContainer");e.enter("directiveContainerFence");e.enter("directiveContainerSequence");return u(t)}function u(t){if(t===58){e.consume(t);s++;return u}if(s<3){return n(t)}e.exit("directiveContainerSequence");return Qr.call(i,e,c,n,"directiveContainerName")(t)}function c(t){return t===91?e.attempt(Zr,f,f)(t):f(t)}function f(t){return t===123?e.attempt(eo,h,h)(t):h(t)}function h(t){return Se(e,d,"whitespace")(t)}function d(r){e.exit("directiveContainerFence");if(r===null){return v(r)}if(De(r)){if(i.interrupt){return t(r)}return e.attempt(to,p,v)(r)}return n(r)}function p(t){if(t===null){return v(t)}if(De(t)){return e.check(to,y,v)(t)}e.enter("directiveContainerContent");return m(t)}function m(t){return e.attempt({tokenize:A,partial:true},E,o?Se(e,g,"linePrefix",o+1):g)(t)}function g(t){if(t===null){return E(t)}if(De(t)){return e.check(to,k,E)(t)}return k(t)}function b(t){if(t===null){const n=e.exit("chunkDocument");i.parser.lazy[n.start.line]=false;return E(t)}if(De(t)){return e.check(to,D,w)(t)}e.consume(t);return b}function k(t){const n=e.enter("chunkDocument",{contentType:"document",previous:l});if(l)l.next=n;l=n;return b(t)}function y(t){e.enter("directiveContainerContent");return m(t)}function D(t){e.consume(t);const n=e.exit("chunkDocument");i.parser.lazy[n.start.line]=false;return m}function w(t){const n=e.exit("chunkDocument");i.parser.lazy[n.start.line]=false;return E(t)}function E(t){e.exit("directiveContainerContent");return v(t)}function v(n){e.exit("directiveContainer");return t(n)}function A(e,t,n){let r=0;return Se(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4);function o(t){e.enter("directiveContainerFence");e.enter("directiveContainerSequence");return l(t)}function l(t){if(t===58){e.consume(t);r++;return l}if(r<s)return n(t);e.exit("directiveContainerSequence");return Se(e,a,"whitespace")(t)}function a(i){if(i===null||De(i)){e.exit("directiveContainerFence");return t(i)}return n(i)}}}function io(e,t,n){return Xr(e,t,n,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",true)}function ro(e,t,n){return Wr(e,t,n,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",true)}function oo(e,t,n){const i=this;return r;function r(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return o}function o(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}const so={tokenize:uo};const lo={tokenize:co,partial:true};const ao={tokenize:fo,partial:true};function uo(e,t,n){const i=this;return r;function r(t){e.enter("directiveLeaf");e.enter("directiveLeafSequence");e.consume(t);return o}function o(t){if(t===58){e.consume(t);e.exit("directiveLeafSequence");return Qr.call(i,e,s,n,"directiveLeafName")}return n(t)}function s(t){return t===91?e.attempt(lo,l,l)(t):l(t)}function l(t){return t===123?e.attempt(ao,a,a)(t):a(t)}function a(t){return Se(e,u,"whitespace")(t)}function u(i){if(i===null||De(i)){e.exit("directiveLeaf");return t(i)}return n(i)}}function co(e,t,n){return Xr(e,t,n,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",true)}function fo(e,t,n){return Wr(e,t,n,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",true)}const ho={tokenize:bo,previous:go};const po={tokenize:ko,partial:true};const mo={tokenize:yo,partial:true};function go(e){return e!==58||this.events[this.events.length-1][1].type==="characterEscape"}function bo(e,t,n){const i=this;return r;function r(t){e.enter("directiveText");e.enter("directiveTextMarker");e.consume(t);e.exit("directiveTextMarker");return Qr.call(i,e,o,n,"directiveTextName")}function o(t){return t===58?n(t):t===91?e.attempt(po,s,s)(t):s(t)}function s(t){return t===123?e.attempt(mo,l,l)(t):l(t)}function l(n){e.exit("directiveText");return t(n)}}function ko(e,t,n){return Xr(e,t,n,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function yo(e,t,n){return Wr(e,t,n,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function Do(){return{text:{[58]:ho},flow:{[58]:[Jr,so]}}}function wo(){const e=this;const t=e.data();const n=t.micromarkExtensions||(t.micromarkExtensions=[]);const i=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]);const r=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);n.push(Do());i.push(Or());r.push(Nr())}function Eo(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function vo(e,t,n){const i=n||{};const r=hr(i.ignore||[]);const o=Ao(t);let s=-1;while(++s<o.length){Ar(e,"text",l)}function l(e,t){let n=-1;let i;while(++n<t.length){const e=t[n];const o=i?i.children:undefined;if(r(e,o?o.indexOf(e):undefined,i)){return}i=e}if(i){return a(e,t)}}function a(e,t){const n=t[t.length-1];const i=o[s][0];const r=o[s][1];let l=0;const a=n.children;const u=a.indexOf(e);let c=false;let f=[];i.lastIndex=0;let h=i.exec(e.value);while(h){const n=h.index;const o={index:h.index,input:h.input,stack:[...t,e]};let s=r(...h,o);if(typeof s==="string"){s=s.length>0?{type:"text",value:s}:undefined}if(s===false){i.lastIndex=n+1}else{if(l!==n){f.push({type:"text",value:e.value.slice(l,n)})}if(Array.isArray(s)){f.push(...s)}else if(s){f.push(s)}l=n+h[0].length;c=true}if(!i.global){break}h=i.exec(e.value)}if(c){if(l<e.value.length){f.push({type:"text",value:e.value.slice(l)})}n.children.splice(u,1,...f)}else{f=[e]}return u+f.length}}function Ao(e){const t=[];if(!Array.isArray(e)){throw new TypeError("Expected find and replace tuple or list of tuples")}const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;while(++i<n.length){const e=n[i];t.push([Co(e[0]),Fo(e[1])])}return t}function Co(e){return typeof e==="string"?new RegExp(Eo(e),"g"):e}function Fo(e){return typeof e==="function"?e:function(){return e}}const So="phrasing";const xo=["autolink","link","image","label"];function To(){return{transforms:[Ro],enter:{literalAutolink:No,literalAutolinkEmail:Lo,literalAutolinkHttp:Lo,literalAutolinkWww:Lo},exit:{literalAutolink:Bo,literalAutolinkEmail:Mo,literalAutolinkHttp:Io,literalAutolinkWww:_o}}}function Oo(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:xo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:xo},{character:":",before:"[ps]",after:"\\/",inConstruct:So,notInConstruct:xo}]}}function No(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Lo(e){this.config.enter.autolinkProtocol.call(this,e)}function Io(e){this.config.exit.autolinkProtocol.call(this,e)}function _o(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function Mo(e){this.config.exit.autolinkEmail.call(this,e)}function Bo(e){this.exit(e)}function Ro(e){vo(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Po],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,qo]],{ignore:["link","linkReference"]})}function Po(e,t,n,i,r){let o="";if(!zo(r)){return false}if(/^w/i.test(t)){n=t+n;t="";o="http://"}if(!Uo(n)){return false}const s=jo(n+i);if(!s[0])return false;const l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};if(s[1]){return[l,{type:"text",value:s[1]}]}return l}function qo(e,t,n,i){if(!zo(i,true)||/[-\d_]$/.test(n)){return false}return{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Uo(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2]))){return false}return true}function jo(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t){return[e,undefined]}e=e.slice(0,t.index);let n=t[0];let i=n.indexOf(")");const r=Ni(e,"(");let o=Ni(e,")");while(i!==-1&&r>o){e+=n.slice(0,i+1);n=n.slice(i+1);i=n.indexOf(")");o++}return[e,n]}function zo(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ae(n)||ve(n))&&(!t||n!==47)}Jo.peek=Qo;function Ho(){this.buffer()}function $o(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Vo(){this.buffer()}function Go(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ko(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.identifier=he(this.sliceSerialize(e)).toLowerCase();n.label=t}function Yo(e){this.exit(e)}function Wo(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.identifier=he(this.sliceSerialize(e)).toLowerCase();n.label=t}function Xo(e){this.exit(e)}function Qo(){return"["}function Jo(e,t,n,i){const r=n.createTracker(i);let o=r.move("[^");const s=n.enter("footnoteReference");const l=n.enter("reference");o+=r.move(n.safe(n.associationId(e),{after:"]",before:o}));l();s();o+=r.move("]");return o}function Zo(){return{enter:{gfmFootnoteCallString:Ho,gfmFootnoteCall:$o,gfmFootnoteDefinitionLabelString:Vo,gfmFootnoteDefinition:Go},exit:{gfmFootnoteCallString:Ko,gfmFootnoteCall:Yo,gfmFootnoteDefinitionLabelString:Wo,gfmFootnoteDefinition:Xo}}}function es(e){let t=false;if(e&&e.firstLineBlank){t=true}return{handlers:{footnoteDefinition:n,footnoteReference:Jo},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(e,n,i,r){const o=i.createTracker(r);let s=o.move("[^");const l=i.enter("footnoteDefinition");const a=i.enter("label");s+=o.move(i.safe(i.associationId(e),{before:s,after:"]"}));a();s+=o.move("]:");if(e.children&&e.children.length>0){o.shift(4);s+=o.move((t?"\n":" ")+i.indentLines(i.containerFlow(e,o.current()),t?ns:ts))}l();return s}}function ts(e,t,n){return t===0?e:ns(e,t,n)}function ns(e,t,n){return(n?"":" ")+e}const is=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];as.peek=us;function rs(){return{canContainEols:["delete"],enter:{strikethrough:ss},exit:{strikethrough:ls}}}function os(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:is}],handlers:{delete:as}}}function ss(e){this.enter({type:"delete",children:[]},e)}function ls(e){this.exit(e)}function as(e,t,n,i){const r=n.createTracker(i);const o=n.enter("strikethrough");let s=r.move("~~");s+=n.containerPhrasing(e,{...r.current(),before:s,after:"~"});s+=r.move("~~");o();return s}function us(){return"~"}function cs(e){return e.length}function fs(e,t){const n=t||{};const i=(n.align||[]).concat();const r=n.stringLength||cs;const o=[];const s=[];const l=[];const a=[];let u=0;let c=-1;while(++c<e.length){const t=[];const i=[];let o=-1;if(e[c].length>u){u=e[c].length}while(++o<e[c].length){const s=hs(e[c][o]);if(n.alignDelimiters!==false){const e=r(s);i[o]=e;if(a[o]===undefined||e>a[o]){a[o]=e}}t.push(s)}s[c]=t;l[c]=i}let f=-1;if(typeof i==="object"&&"length"in i){while(++f<u){o[f]=ds(i[f])}}else{const e=ds(i);while(++f<u){o[f]=e}}f=-1;const h=[];const d=[];while(++f<u){const e=o[f];let t="";let i="";if(e===99){t=":";i=":"}else if(e===108){t=":"}else if(e===114){i=":"}let r=n.alignDelimiters===false?1:Math.max(1,a[f]-t.length-i.length);const s=t+"-".repeat(r)+i;if(n.alignDelimiters!==false){r=t.length+r+i.length;if(r>a[f]){a[f]=r}d[f]=r}h[f]=s}s.splice(1,0,h);l.splice(1,0,d);c=-1;const p=[];while(++c<s.length){const e=s[c];const t=l[c];f=-1;const i=[];while(++f<u){const r=e[f]||"";let s="";let l="";if(n.alignDelimiters!==false){const e=a[f]-(t[f]||0);const n=o[f];if(n===114){s=" ".repeat(e)}else if(n===99){if(e%2){s=" ".repeat(e/2+.5);l=" ".repeat(e/2-.5)}else{s=" ".repeat(e/2);l=s}}else{l=" ".repeat(e)}}if(n.delimiterStart!==false&&!f){i.push("|")}if(n.padding!==false&&!(n.alignDelimiters===false&&r==="")&&(n.delimiterStart!==false||f)){i.push(" ")}if(n.alignDelimiters!==false){i.push(s)}i.push(r);if(n.alignDelimiters!==false){i.push(l)}if(n.padding!==false){i.push(" ")}if(n.delimiterEnd!==false||f!==u-1){i.push("|")}}p.push(n.delimiterEnd===false?i.join("").replace(/ +$/,""):i.join(""))}return p.join("\n")}function hs(e){return e===null||e===undefined?"":String(e)}function ds(e){const t=typeof e==="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const ps={}.hasOwnProperty;function ms(e,t){const n=t||{};function i(t,...n){let r=i.invalid;const o=i.handlers;if(t&&ps.call(t,e)){const n=String(t[e]);r=ps.call(o,n)?o[n]:i.unknown}if(r){return r.call(this,t,...n)}}i.handlers=n.handlers||{};i.invalid=n.invalid;i.unknown=n.unknown;return i}function gs(e,t,n,i){const r=n.enter("blockquote");const o=n.createTracker(i);o.move("> ");o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),bs);r();return s}function bs(e,t,n){return">"+(n?"":" ")+e}function ks(e,t){return ys(e,t.inConstruct,true)&&!ys(e,t.notInConstruct,false)}function ys(e,t,n){if(typeof t==="string"){t=[t]}if(!t||t.length===0){return n}let i=-1;while(++i<t.length){if(e.includes(t[i])){return true}}return false}function Ds(e,t,n,i){let r=-1;while(++r<n.unsafe.length){if(n.unsafe[r].character==="\n"&&ks(n.stack,n.unsafe[r])){return/[ \t]/.test(i.before)?"":" "}}return"\\\n"}function ws(e,t){const n=String(e);let i=n.indexOf(t);let r=i;let o=0;let s=0;if(typeof t!=="string"){throw new TypeError("Expected substring")}while(i!==-1){if(i===r){if(++o>s){s=o}}else{o=1}r=i+t.length;i=n.indexOf(t,r)}return s}function Es(e,t){return Boolean(t.options.fences===false&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function vs(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~"){throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`")}return t}function As(e,t,n,i){const r=vs(n);const o=e.value||"";const s=r==="`"?"GraveAccent":"Tilde";if(Es(e,n)){const e=n.enter("codeIndented");const t=n.indentLines(o,Cs);e();return t}const l=n.createTracker(i);const a=r.repeat(Math.max(ws(o,r)+1,3));const u=n.enter("codeFenced");let c=l.move(a);if(e.lang){const t=n.enter(`codeFencedLang${s}`);c+=l.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()}));t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);c+=l.move(" ");c+=l.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...l.current()}));t()}c+=l.move("\n");if(o){c+=l.move(o+"\n")}c+=l.move(a);u();return c}function Cs(e,t,n){return(n?"":" ")+e}function Fs(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'"){throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`")}return t}function Ss(e,t,n,i){const r=Fs(n);const o=r==='"'?"Quote":"Apostrophe";const s=n.enter("definition");let l=n.enter("label");const a=n.createTracker(i);let u=a.move("[");u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()}));u+=a.move("]: ");l();if(!e.url||/[\0- \u007F]/.test(e.url)){l=n.enter("destinationLiteral");u+=a.move("<");u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()}));u+=a.move(">")}else{l=n.enter("destinationRaw");u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...a.current()}))}l();if(e.title){l=n.enter(`title${o}`);u+=a.move(" "+r);u+=a.move(n.safe(e.title,{before:u,after:r,...a.current()}));u+=a.move(r);l()}s();return u}function xs(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`")}return t}function Ts(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Os(e,t,n){const i=_e(e);const r=_e(t);if(i===undefined){return r===undefined?n==="_"?{inside:true,outside:true}:{inside:false,outside:false}:r===1?{inside:true,outside:true}:{inside:false,outside:true}}if(i===1){return r===undefined?{inside:false,outside:false}:r===1?{inside:true,outside:true}:{inside:false,outside:false}}return r===undefined?{inside:false,outside:false}:r===1?{inside:true,outside:false}:{inside:false,outside:false}}Ns.peek=Ls;function Ns(e,t,n,i){const r=xs(n);const o=n.enter("emphasis");const s=n.createTracker(i);const l=s.move(r);let a=s.move(n.containerPhrasing(e,{after:r,before:l,...s.current()}));const u=a.charCodeAt(0);const c=Os(i.before.charCodeAt(i.before.length-1),u,r);if(c.inside){a=Ts(u)+a.slice(1)}const f=a.charCodeAt(a.length-1);const h=Os(i.after.charCodeAt(0),f,r);if(h.inside){a=a.slice(0,-1)+Ts(f)}const d=s.move(r);o();n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside};return l+a+d}function Ls(e,t,n){return n.options.emphasis||"*"}function Is(e,t,n,i){let r;let o;let s;if(typeof t==="function"&&typeof n!=="function"){o=undefined;s=t;r=n}else{o=t;s=n;r=i}Ar(e,o,l,r);function l(e,t){const n=t[t.length-1];const i=n?n.children.indexOf(e):undefined;return s(e,i,n)}}function _s(e,t){let n=false;Is(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||e.type==="break"){n=true;return Er}}));return Boolean((!e.depth||e.depth<3)&&Z(e)&&(t.options.setext||n))}function Ms(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1);const o=n.createTracker(i);if(_s(e,n)){const t=n.enter("headingSetext");const i=n.enter("phrasing");const s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});i();t();return s+"\n"+(r===1?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(r);const l=n.enter("headingAtx");const a=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});if(/^[\t ]/.test(u)){u=Ts(u.charCodeAt(0))+u.slice(1)}u=u?s+" "+u:s;if(n.options.closeAtx){u+=" "+s}a();l();return u}Bs.peek=Rs;function Bs(e){return e.value||""}function Rs(){return"<"}Ps.peek=qs;function Ps(e,t,n,i){const r=Fs(n);const o=r==='"'?"Quote":"Apostrophe";const s=n.enter("image");let l=n.enter("label");const a=n.createTracker(i);let u=a.move("![");u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()}));u+=a.move("](");l();if(!e.url&&e.title||/[\0- \u007F]/.test(e.url)){l=n.enter("destinationLiteral");u+=a.move("<");u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()}));u+=a.move(">")}else{l=n.enter("destinationRaw");u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))}l();if(e.title){l=n.enter(`title${o}`);u+=a.move(" "+r);u+=a.move(n.safe(e.title,{before:u,after:r,...a.current()}));u+=a.move(r);l()}u+=a.move(")");s();return u}function qs(){return"!"}Us.peek=js;function Us(e,t,n,i){const r=e.referenceType;const o=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(i);let a=l.move("![");const u=n.safe(e.alt,{before:a,after:"]",...l.current()});a+=l.move(u+"][");s();const c=n.stack;n.stack=[];s=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});s();n.stack=c;o();if(r==="full"||!u||u!==f){a+=l.move(f+"]")}else if(r==="shortcut"){a=a.slice(0,-1)}else{a+=l.move("]")}return a}function js(){return"!"}zs.peek=Hs;function zs(e,t,n){let i=e.value||"";let r="`";let o=-1;while(new RegExp("(^|[^`])"+r+"([^`]|$)").test(i)){r+="`"}if(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))){i=" "+i+" "}while(++o<n.unsafe.length){const e=n.unsafe[o];const t=n.compilePattern(e);let r;if(!e.atBreak)continue;while(r=t.exec(i)){let e=r.index;if(i.charCodeAt(e)===10&&i.charCodeAt(e-1)===13){e--}i=i.slice(0,e)+" "+i.slice(r.index+1)}}return r+i+r}function Hs(){return"`"}function $s(e,t){const n=Z(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Vs.peek=Gs;function Vs(e,t,n,i){const r=Fs(n);const o=r==='"'?"Quote":"Apostrophe";const s=n.createTracker(i);let l;let a;if($s(e,n)){const t=n.stack;n.stack=[];l=n.enter("autolink");let i=s.move("<");i+=s.move(n.containerPhrasing(e,{before:i,after:">",...s.current()}));i+=s.move(">");l();n.stack=t;return i}l=n.enter("link");a=n.enter("label");let u=s.move("[");u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()}));u+=s.move("](");a();if(!e.url&&e.title||/[\0- \u007F]/.test(e.url)){a=n.enter("destinationLiteral");u+=s.move("<");u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()}));u+=s.move(">")}else{a=n.enter("destinationRaw");u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))}a();if(e.title){a=n.enter(`title${o}`);u+=s.move(" "+r);u+=s.move(n.safe(e.title,{before:u,after:r,...s.current()}));u+=s.move(r);a()}u+=s.move(")");l();return u}function Gs(e,t,n){return $s(e,n)?"<":"["}Ks.peek=Ys;function Ks(e,t,n,i){const r=e.referenceType;const o=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(i);let a=l.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...l.current()});a+=l.move(u+"][");s();const c=n.stack;n.stack=[];s=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});s();n.stack=c;o();if(r==="full"||!u||u!==f){a+=l.move(f+"]")}else if(r==="shortcut"){a=a.slice(0,-1)}else{a+=l.move("]")}return a}function Ys(){return"["}function Ws(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-"){throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`")}return t}function Xs(e){const t=Ws(e);const n=e.options.bulletOther;if(!n){return t==="*"?"-":"*"}if(n!=="*"&&n!=="+"&&n!=="-"){throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`")}if(n===t){throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different")}return n}function Qs(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")"){throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`")}return t}function Js(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_"){throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`")}return t}function Zs(e,t,n,i){const r=n.enter("list");const o=n.bulletCurrent;let s=e.ordered?Qs(n):Ws(n);const l=e.ordered?s==="."?")":".":Xs(n);let a=t&&n.bulletLastUsed?s===n.bulletLastUsed:false;if(!e.ordered){const t=e.children?e.children[0]:undefined;if((s==="*"||s==="-")&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0){a=true}if(Js(n)===s&&t){let t=-1;while(++t<e.children.length){const n=e.children[t];if(n&&n.type==="listItem"&&n.children&&n.children[0]&&n.children[0].type==="thematicBreak"){a=true;break}}}}if(a){s=l}n.bulletCurrent=s;const u=n.containerFlow(e,i);n.bulletLastUsed=s;n.bulletCurrent=o;r();return u}function el(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed"){throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`")}return t}function tl(e,t,n,i){const r=el(n);let o=n.bulletCurrent||Ws(n);if(t&&t.type==="list"&&t.ordered){o=(typeof t.start==="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===false?0:t.children.indexOf(e))+o}let s=o.length+1;if(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread)){s=Math.ceil(s/4)*4}const l=n.createTracker(i);l.move(o+" ".repeat(s-o.length));l.shift(s);const a=n.enter("listItem");const u=n.indentLines(n.containerFlow(e,l.current()),c);a();return u;function c(e,t,n){if(t){return(n?"":" ".repeat(s))+e}return(n?o:o+" ".repeat(s-o.length))+e}}function nl(e,t,n,i){const r=n.enter("paragraph");const o=n.enter("phrasing");const s=n.containerPhrasing(e,i);o();r();return s}const il=hr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rl(e,t,n,i){const r=e.children.some((function(e){return il(e)}));const o=r?n.containerPhrasing:n.containerFlow;return o.call(n,e,i)}function ol(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`")}return t}sl.peek=ll;function sl(e,t,n,i){const r=ol(n);const o=n.enter("strong");const s=n.createTracker(i);const l=s.move(r+r);let a=s.move(n.containerPhrasing(e,{after:r,before:l,...s.current()}));const u=a.charCodeAt(0);const c=Os(i.before.charCodeAt(i.before.length-1),u,r);if(c.inside){a=Ts(u)+a.slice(1)}const f=a.charCodeAt(a.length-1);const h=Os(i.after.charCodeAt(0),f,r);if(h.inside){a=a.slice(0,-1)+Ts(f)}const d=s.move(r+r);o();n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside};return l+a+d}function ll(e,t,n){return n.options.strong||"*"}function al(e,t,n,i){return n.safe(e.value,i)}function ul(e){const t=e.options.ruleRepetition||3;if(t<3){throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more")}return t}function cl(e,t,n){const i=(Js(n)+(n.options.ruleSpaces?" ":"")).repeat(ul(n));return n.options.ruleSpaces?i.slice(0,-1):i}const fl={blockquote:gs,break:Ds,code:As,definition:Ss,emphasis:Ns,hardBreak:Ds,heading:Ms,html:Bs,image:Ps,imageReference:Us,inlineCode:zs,link:Vs,linkReference:Ks,list:Zs,listItem:tl,paragraph:nl,root:rl,strong:sl,text:al,thematicBreak:cl};function hl(){return{enter:{table:dl,tableData:bl,tableHeader:bl,tableRow:ml},exit:{codeText:kl,table:pl,tableData:gl,tableHeader:gl,tableRow:gl}}}function dl(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return e==="none"?null:e})),children:[]},e);this.data.inTable=true}function pl(e){this.exit(e);this.data.inTable=undefined}function ml(e){this.enter({type:"tableRow",children:[]},e)}function gl(e){this.exit(e)}function bl(e){this.enter({type:"tableCell",children:[]},e)}function kl(e){let t=this.resume();if(this.data.inTable){t=t.replace(/\\([\\|])/g,yl)}const n=this.stack[this.stack.length-1];n.value=t;this.exit(e)}function yl(e,t){return t==="|"?t:e}function Dl(e){const t=e||{};const n=t.tableCellPadding;const i=t.tablePipeAlign;const r=t.stringLength;const o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:true,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:true,character:":",after:"-"},{atBreak:true,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:a,tableRow:l}};function s(e,t,n,i){return u(c(e,n,i),e.align)}function l(e,t,n,i){const r=f(e,n,i);const o=u([r]);return o.slice(0,o.indexOf("\n"))}function a(e,t,n,i){const r=n.enter("tableCell");const s=n.enter("phrasing");const l=n.containerPhrasing(e,{...i,before:o,after:o});s();r();return l}function u(e,t){return fs(e,{align:t,alignDelimiters:i,padding:n,stringLength:r})}function c(e,t,n){const i=e.children;let r=-1;const o=[];const s=t.enter("table");while(++r<i.length){o[r]=f(i[r],t,n)}s();return o}function f(e,t,n){const i=e.children;let r=-1;const o=[];const s=t.enter("tableRow");while(++r<i.length){o[r]=a(i[r],e,t,n)}s();return o}function h(e,t,n){let i=fl.inlineCode(e,t,n);if(n.stack.includes("tableCell")){i=i.replace(/\|/g,"\\$&")}return i}}function wl(){return{exit:{taskListCheckValueChecked:vl,taskListCheckValueUnchecked:vl,paragraph:Al}}}function El(){return{unsafe:[{atBreak:true,character:"-",after:"[:|-]"}],handlers:{listItem:Cl}}}function vl(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Al(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked==="boolean"){const e=this.stack[this.stack.length-1];const n=e.children[0];if(n&&n.type==="text"){const i=t.children;let r=-1;let o;while(++r<i.length){const e=i[r];if(e.type==="paragraph"){o=e;break}}if(o===e){n.value=n.value.slice(1);if(n.value.length===0){e.children.shift()}else if(e.position&&n.position&&typeof n.position.start.offset==="number"){n.position.start.column++;n.position.start.offset++;e.position.start=Object.assign({},n.position.start)}}}}this.exit(e)}function Cl(e,t,n,i){const r=e.children[0];const o=typeof e.checked==="boolean"&&r&&r.type==="paragraph";const s="["+(e.checked?"x":" ")+"] ";const l=n.createTracker(i);if(o){l.move(s)}let a=fl.listItem(e,t,n,{...i,...l.current()});if(o){a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)}return a;function u(e){return e+s}}function Fl(){return[To(),Zo(),rs(),hl(),wl()]}function Sl(e){return{extensions:[Oo(),es(e),os(),Dl(e),El()]}}const xl={tokenize:zl,partial:true};const Tl={tokenize:Hl,partial:true};const Ol={tokenize:$l,partial:true};const Nl={tokenize:Vl,partial:true};const Ll={tokenize:Gl,partial:true};const Il={name:"wwwAutolink",tokenize:Ul,previous:Kl};const _l={name:"protocolAutolink",tokenize:jl,previous:Yl};const Ml={name:"emailAutolink",tokenize:ql,previous:Wl};const Bl={};function Rl(){return{text:Bl}}let Pl=48;while(Pl<123){Bl[Pl]=Ml;Pl++;if(Pl===58)Pl=65;else if(Pl===91)Pl=97}Bl[43]=Ml;Bl[45]=Ml;Bl[46]=Ml;Bl[95]=Ml;Bl[72]=[Ml,_l];Bl[104]=[Ml,_l];Bl[87]=[Ml,Il];Bl[119]=[Ml,Il];function ql(e,t,n){const i=this;let r;let o;return s;function s(t){if(!Xl(t)||!Wl.call(i,i.previous)||Ql(i.events)){return n(t)}e.enter("literalAutolink");e.enter("literalAutolinkEmail");return l(t)}function l(t){if(Xl(t)){e.consume(t);return l}if(t===64){e.consume(t);return a}return n(t)}function a(t){if(t===46){return e.check(Ll,c,u)(t)}if(t===45||t===95||pe(t)){o=true;e.consume(t);return a}return c(t)}function u(t){e.consume(t);r=true;return a}function c(s){if(o&&r&&de(i.previous)){e.exit("literalAutolinkEmail");e.exit("literalAutolink");return t(s)}return n(s)}}function Ul(e,t,n){const i=this;return r;function r(t){if(t!==87&&t!==119||!Kl.call(i,i.previous)||Ql(i.events)){return n(t)}e.enter("literalAutolink");e.enter("literalAutolinkWww");return e.check(xl,e.attempt(Tl,e.attempt(Ol,o),n),n)(t)}function o(n){e.exit("literalAutolinkWww");e.exit("literalAutolink");return t(n)}}function jl(e,t,n){const i=this;let r="";let o=false;return s;function s(t){if((t===72||t===104)&&Yl.call(i,i.previous)&&!Ql(i.events)){e.enter("literalAutolink");e.enter("literalAutolinkHttp");r+=String.fromCodePoint(t);e.consume(t);return l}return n(t)}function l(t){if(de(t)&&r.length<5){r+=String.fromCodePoint(t);e.consume(t);return l}if(t===58){const n=r.toLowerCase();if(n==="http"||n==="https"){e.consume(t);return a}}return n(t)}function a(t){if(t===47){e.consume(t);if(o){return u}o=true;return a}return n(t)}function u(t){return t===null||ge(t)||we(t)||Ae(t)||ve(t)?n(t):e.attempt(Tl,e.attempt(Ol,c),n)(t)}function c(n){e.exit("literalAutolinkHttp");e.exit("literalAutolink");return t(n)}}function zl(e,t,n){let i=0;return r;function r(t){if((t===87||t===119)&&i<3){i++;e.consume(t);return r}if(t===46&&i===3){e.consume(t);return o}return n(t)}function o(e){return e===null?n(e):t(e)}}function Hl(e,t,n){let i;let r;let o;return s;function s(t){if(t===46||t===95){return e.check(Nl,a,l)(t)}if(t===null||we(t)||Ae(t)||t!==45&&ve(t)){return a(t)}o=true;e.consume(t);return s}function l(t){if(t===95){i=true}else{r=i;i=undefined}e.consume(t);return s}function a(e){if(r||i||!o){return n(e)}return t(e)}}function $l(e,t){let n=0;let i=0;return r;function r(s){if(s===40){n++;e.consume(s);return r}if(s===41&&i<n){return o(s)}if(s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126){return e.check(Nl,t,o)(s)}if(s===null||we(s)||Ae(s)){return t(s)}e.consume(s);return r}function o(t){if(t===41){i++}e.consume(t);return r}}function Vl(e,t,n){return i;function i(s){if(s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126){e.consume(s);return i}if(s===38){e.consume(s);return o}if(s===93){e.consume(s);return r}if(s===60||s===null||we(s)||Ae(s)){return t(s)}return n(s)}function r(e){if(e===null||e===40||e===91||we(e)||Ae(e)){return t(e)}return i(e)}function o(e){return de(e)?s(e):n(e)}function s(t){if(t===59){e.consume(t);return i}if(de(t)){e.consume(t);return s}return n(t)}}function Gl(e,t,n){return i;function i(t){e.consume(t);return r}function r(e){return pe(e)?n(e):t(e)}}function Kl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||we(e)}function Yl(e){return!de(e)}function Wl(e){return!(e===47||Xl(e))}function Xl(e){return e===43||e===45||e===46||e===95||pe(e)}function Ql(e){let t=e.length;let n=false;while(t--){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=true;break}if(i._gfmAutolinkLiteralWalkedInto){n=false;break}}if(e.length>0&&!n){e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=true}return n}const Jl={tokenize:sa,partial:true};function Zl(){return{document:{[91]:{name:"gfmFootnoteDefinition",tokenize:ia,continuation:{tokenize:ra},exit:oa}},text:{[91]:{name:"gfmFootnoteCall",tokenize:na},[93]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ea,resolveTo:ta}}}}function ea(e,t,n){const i=this;let r=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;while(r--){const e=i.events[r][1];if(e.type==="labelImage"){s=e;break}if(e.type==="gfmFootnoteCall"||e.type==="labelLink"||e.type==="label"||e.type==="image"||e.type==="link"){break}}return l;function l(r){if(!s||!s._balanced){return n(r)}const l=he(i.sliceSerialize({start:s.end,end:i.now()}));if(l.codePointAt(0)!==94||!o.includes(l.slice(1))){return n(r)}e.enter("gfmFootnoteCallLabelMarker");e.consume(r);e.exit("gfmFootnoteCallLabelMarker");return t(r)}}function ta(e,t){let n=e.length;while(n--){if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){break}}e[n+1][1].type="data";e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)};const r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++;r.end.offset++;r.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)};const s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)};const l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];e.splice(n,e.length-n+1,...l);return e}function na(e,t,n){const i=this;const r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0;let s;return l;function l(t){e.enter("gfmFootnoteCall");e.enter("gfmFootnoteCallLabelMarker");e.consume(t);e.exit("gfmFootnoteCallLabelMarker");return a}function a(t){if(t!==94)return n(t);e.enter("gfmFootnoteCallMarker");e.consume(t);e.exit("gfmFootnoteCallMarker");e.enter("gfmFootnoteCallString");e.enter("chunkString").contentType="string";return u}function u(l){if(o>999||l===93&&!s||l===null||l===91||we(l)){return n(l)}if(l===93){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");if(!r.includes(he(i.sliceSerialize(o)))){return n(l)}e.enter("gfmFootnoteCallLabelMarker");e.consume(l);e.exit("gfmFootnoteCallLabelMarker");e.exit("gfmFootnoteCall");return t}if(!we(l)){s=true}o++;e.consume(l);return l===92?c:u}function c(t){if(t===91||t===92||t===93){e.consume(t);o++;return u}return u(t)}}function ia(e,t,n){const i=this;const r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;let s=0;let l;return a;function a(t){e.enter("gfmFootnoteDefinition")._container=true;e.enter("gfmFootnoteDefinitionLabel");e.enter("gfmFootnoteDefinitionLabelMarker");e.consume(t);e.exit("gfmFootnoteDefinitionLabelMarker");return u}function u(t){if(t===94){e.enter("gfmFootnoteDefinitionMarker");e.consume(t);e.exit("gfmFootnoteDefinitionMarker");e.enter("gfmFootnoteDefinitionLabelString");e.enter("chunkString").contentType="string";return c}return n(t)}function c(t){if(s>999||t===93&&!l||t===null||t===91||we(t)){return n(t)}if(t===93){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");o=he(i.sliceSerialize(n));e.enter("gfmFootnoteDefinitionLabelMarker");e.consume(t);e.exit("gfmFootnoteDefinitionLabelMarker");e.exit("gfmFootnoteDefinitionLabel");return h}if(!we(t)){l=true}s++;e.consume(t);return t===92?f:c}function f(t){if(t===91||t===92||t===93){e.consume(t);s++;return c}return c(t)}function h(t){if(t===58){e.enter("definitionMarker");e.consume(t);e.exit("definitionMarker");if(!r.includes(o)){r.push(o)}return Se(e,d,"gfmFootnoteDefinitionWhitespace")}return n(t)}function d(e){return t(e)}}function ra(e,t,n){return e.check(ze,t,e.attempt(Jl,t,n))}function oa(e){e.exit("gfmFootnoteDefinition")}function sa(e,t,n){const i=this;return Se(e,r,"gfmFootnoteDefinitionIndent",4+1);function r(e){const r=i.events[i.events.length-1];return r&&r[1].type==="gfmFootnoteDefinitionIndent"&&r[2].sliceSerialize(r[1],true).length===4?t(e):n(e)}}function la(e){const t=e||{};let n=t.singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:r};if(n===null||n===undefined){n=true}return{text:{[126]:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;while(++n<e.length){if(e[n][0]==="enter"&&e[n][1].type==="strikethroughSequenceTemporary"&&e[n][1]._close){let i=n;while(i--){if(e[i][0]==="exit"&&e[i][1].type==="strikethroughSequenceTemporary"&&e[i][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[i][1].end.offset-e[i][1].start.offset){e[n][1].type="strikethroughSequence";e[i][1].type="strikethroughSequence";const r={type:"strikethrough",start:Object.assign({},e[i][1].start),end:Object.assign({},e[n][1].end)};const o={type:"strikethroughText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)};const s=[["enter",r,t],["enter",e[i][1],t],["exit",e[i][1],t],["enter",o,t]];const l=t.parser.constructs.insideSpan.null;if(l){oe(s,s.length,0,Me(l,e.slice(i+1,n),t))}oe(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",r,t]]);oe(e,i-1,n-i+3,s);n=i+s.length-2;break}}}}n=-1;while(++n<e.length){if(e[n][1].type==="strikethroughSequenceTemporary"){e[n][1].type="data"}}return e}function o(e,t,i){const r=this.previous;const o=this.events;let s=0;return l;function l(t){if(r===126&&o[o.length-1][1].type!=="characterEscape"){return i(t)}e.enter("strikethroughSequenceTemporary");return a(t)}function a(o){const l=_e(r);if(o===126){if(s>1)return i(o);e.consume(o);s++;return a}if(s<2&&!n)return i(o);const u=e.exit("strikethroughSequenceTemporary");const c=_e(o);u._open=!c||c===2&&Boolean(l);u._close=!l||l===2&&Boolean(c);return t(o)}}}class aa{constructor(){this.map=[]}add(e,t,n){ua(this,e,t,n)}consume(e){this.map.sort((function(e,t){return e[0]-t[0]}));if(this.map.length===0){return}let t=this.map.length;const n=[];while(t>0){t-=1;n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]);e.length=this.map[t][0]}n.push(e.slice());e.length=0;let i=n.pop();while(i){for(const t of i){e.push(t)}i=n.pop()}this.map.length=0}}function ua(e,t,n,i){let r=0;if(n===0&&i.length===0){return}while(r<e.map.length){if(e.map[r][0]===t){e.map[r][1]+=n;e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}function ca(e,t){let n=false;const i=[];while(t<e.length){const r=e[t];if(n){if(r[0]==="enter"){if(r[1].type==="tableContent"){i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none")}}else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const e=i.length-1;i[e]=i[e]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow"){break}}else if(r[0]==="enter"&&r[1].type==="tableDelimiterRow"){n=true}t+=1}return i}function fa(){return{flow:{null:{name:"table",tokenize:ha,resolveAll:da}}}}function ha(e,t,n){const i=this;let r=0;let o=0;let s;return l;function l(e){let t=i.events.length-1;while(t>-1){const e=i.events[t][1].type;if(e==="lineEnding"||e==="linePrefix")t--;else break}const r=t>-1?i.events[t][1].type:null;const o=r==="tableHead"||r==="tableRow"?E:a;if(o===E&&i.parser.lazy[i.now().line]){return n(e)}return o(e)}function a(t){e.enter("tableHead");e.enter("tableRow");return u(t)}function u(e){if(e===124){return c(e)}s=true;o+=1;return c(e)}function c(t){if(t===null){return n(t)}if(De(t)){if(o>1){o=0;i.interrupt=true;e.exit("tableRow");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return d}return n(t)}if(Ee(t)){return Se(e,c,"whitespace")(t)}o+=1;if(s){s=false;r+=1}if(t===124){e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");s=true;return c}e.enter("data");return f(t)}function f(t){if(t===null||t===124||we(t)){e.exit("data");return c(t)}e.consume(t);return t===92?h:f}function h(t){if(t===92||t===124){e.consume(t);return f}return f(t)}function d(t){i.interrupt=false;if(i.parser.lazy[i.now().line]){return n(t)}e.enter("tableDelimiterRow");s=false;if(Ee(t)){return Se(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t)}return p(t)}function p(t){if(t===45||t===58){return g(t)}if(t===124){s=true;e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");return m}return w(t)}function m(t){if(Ee(t)){return Se(e,g,"whitespace")(t)}return g(t)}function g(t){if(t===58){o+=1;s=true;e.enter("tableDelimiterMarker");e.consume(t);e.exit("tableDelimiterMarker");return b}if(t===45){o+=1;return b(t)}if(t===null||De(t)){return D(t)}return w(t)}function b(t){if(t===45){e.enter("tableDelimiterFiller");return k(t)}return w(t)}function k(t){if(t===45){e.consume(t);return k}if(t===58){s=true;e.exit("tableDelimiterFiller");e.enter("tableDelimiterMarker");e.consume(t);e.exit("tableDelimiterMarker");return y}e.exit("tableDelimiterFiller");return y(t)}function y(t){if(Ee(t)){return Se(e,D,"whitespace")(t)}return D(t)}function D(n){if(n===124){return p(n)}if(n===null||De(n)){if(!s||r!==o){return w(n)}e.exit("tableDelimiterRow");e.exit("tableHead");return t(n)}return w(n)}function w(e){return n(e)}function E(t){e.enter("tableRow");return v(t)}function v(n){if(n===124){e.enter("tableCellDivider");e.consume(n);e.exit("tableCellDivider");return v}if(n===null||De(n)){e.exit("tableRow");return t(n)}if(Ee(n)){return Se(e,v,"whitespace")(n)}e.enter("data");return A(n)}function A(t){if(t===null||t===124||we(t)){e.exit("data");return v(t)}e.consume(t);return t===92?C:A}function C(t){if(t===92||t===124){e.consume(t);return A}return A(t)}}function da(e,t){let n=-1;let i=true;let r=0;let o=[0,0,0,0];let s=[0,0,0,0];let l=false;let a=0;let u;let c;let f;const h=new aa;while(++n<e.length){const d=e[n];const p=d[1];if(d[0]==="enter"){if(p.type==="tableHead"){l=false;if(a!==0){ma(h,t,a,u,c);c=undefined;a=0}u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)};h.add(n,0,[["enter",u,t]])}else if(p.type==="tableRow"||p.type==="tableDelimiterRow"){i=true;f=undefined;o=[0,0,0,0];s=[0,n+1,0,0];if(l){l=false;c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)};h.add(n,0,[["enter",c,t]])}r=p.type==="tableDelimiterRow"?2:c?3:1}else if(r&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")){i=false;if(s[2]===0){if(o[1]!==0){s[0]=s[1];f=pa(h,t,o,r,undefined,f);o=[0,0,0,0]}s[2]=n}}else if(p.type==="tableCellDivider"){if(i){i=false}else{if(o[1]!==0){s[0]=s[1];f=pa(h,t,o,r,undefined,f)}o=s;s=[o[1],n,0,0]}}}else if(p.type==="tableHead"){l=true;a=n}else if(p.type==="tableRow"||p.type==="tableDelimiterRow"){a=n;if(o[1]!==0){s[0]=s[1];f=pa(h,t,o,r,n,f)}else if(s[1]!==0){f=pa(h,t,s,r,n,f)}r=0}else if(r&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")){s[3]=n}}if(a!==0){ma(h,t,a,u,c)}h.consume(t.events);n=-1;while(++n<t.events.length){const e=t.events[n];if(e[0]==="enter"&&e[1].type==="table"){e[1]._align=ca(t.events,n)}}return e}function pa(e,t,n,i,r,o){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData";const l="tableContent";if(n[0]!==0){o.end=Object.assign({},ga(t.events,n[0]));e.add(n[0],0,[["exit",o,t]])}const a=ga(t.events,n[1]);o={type:s,start:Object.assign({},a),end:Object.assign({},a)};e.add(n[1],0,[["enter",o,t]]);if(n[2]!==0){const r=ga(t.events,n[2]);const o=ga(t.events,n[3]);const s={type:l,start:Object.assign({},r),end:Object.assign({},o)};e.add(n[2],0,[["enter",s,t]]);if(i!==2){const i=t.events[n[2]];const r=t.events[n[3]];i[1].end=Object.assign({},r[1].end);i[1].type="chunkText";i[1].contentType="text";if(n[3]>n[2]+1){const t=n[2]+1;const i=n[3]-n[2]-1;e.add(t,i,[])}}e.add(n[3]+1,0,[["exit",s,t]])}if(r!==undefined){o.end=Object.assign({},ga(t.events,r));e.add(r,0,[["exit",o,t]]);o=undefined}return o}function ma(e,t,n,i,r){const o=[];const s=ga(t.events,n);if(r){r.end=Object.assign({},s);o.push(["exit",r,t])}i.end=Object.assign({},s);o.push(["exit",i,t]);e.add(n+1,0,o)}function ga(e,t){const n=e[t];const i=n[0]==="enter"?"start":"end";return n[1][i]}const ba={name:"tasklistCheck",tokenize:ya};function ka(){return{text:{[91]:ba}}}function ya(e,t,n){const i=this;return r;function r(t){if(i.previous!==null||!i._gfmTasklistFirstContentOfListItem){return n(t)}e.enter("taskListCheck");e.enter("taskListCheckMarker");e.consume(t);e.exit("taskListCheckMarker");return o}function o(t){if(we(t)){e.enter("taskListCheckValueUnchecked");e.consume(t);e.exit("taskListCheckValueUnchecked");return s}if(t===88||t===120){e.enter("taskListCheckValueChecked");e.consume(t);e.exit("taskListCheckValueChecked");return s}return n(t)}function s(t){if(t===93){e.enter("taskListCheckMarker");e.consume(t);e.exit("taskListCheckMarker");e.exit("taskListCheck");return l}return n(t)}function l(i){if(De(i)){return t(i)}if(Ee(i)){return e.check({tokenize:Da},t,n)(i)}return n(i)}}function Da(e,t,n){return Se(e,i,"whitespace");function i(e){return e===null?n(e):t(e)}}function wa(e){return ae([Rl(),Zl(),la(e),fa(),ka()])}const Ea={};function va(e){const t=this;const n=e||Ea;const i=t.data();const r=i.micromarkExtensions||(i.micromarkExtensions=[]);const o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]);const s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(wa(n));o.push(Fl());s.push(Sl(n))}function Aa(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),true)};e.patch(t,n);return e.applyData(t,n)}function Ca(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};e.patch(t,n);return[e.applyData(t,n),{type:"text",value:"\n"}]}function Fa(e,t){const n=t.value?t.value+"\n":"";const i={};const r=t.lang?t.lang.split(/\s+/):[];if(r.length>0){i.className=["language-"+r[0]]}let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};if(t.meta){o.data={meta:t.meta}}e.patch(t,o);o=e.applyData(t,o);o={type:"element",tagName:"pre",properties:{},children:[o]};e.patch(t,o);return o}function Sa(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function xa(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function Ta(e,t){const n=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-";const i=String(t.identifier).toUpperCase();const r=Fe(i.toLowerCase());const o=e.footnoteOrder.indexOf(i);let s;let l=e.footnoteCounts.get(i);if(l===undefined){l=0;e.footnoteOrder.push(i);s=e.footnoteOrder.length}else{s=o+1}l+=1;e.footnoteCounts.set(i,l);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:true,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};e.patch(t,u);return e.applyData(t,u)}function Oa(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function Na(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};e.patch(t,n);return e.applyData(t,n)}return undefined}function La(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"){i+="[]"}else if(n==="full"){i+="["+(t.label||t.identifier)+"]"}if(t.type==="imageReference"){return[{type:"text",value:"!["+t.alt+i}]}const r=e.all(t);const o=r[0];if(o&&o.type==="text"){o.value="["+o.value}else{r.unshift({type:"text",value:"["})}const s=r[r.length-1];if(s&&s.type==="text"){s.value+=i}else{r.push({type:"text",value:i})}return r}function Ia(e,t){const n=String(t.identifier).toUpperCase();const i=e.definitionById.get(n);if(!i){return La(e,t)}const r={src:Fe(i.url||""),alt:t.alt};if(i.title!==null&&i.title!==undefined){r.title=i.title}const o={type:"element",tagName:"img",properties:r,children:[]};e.patch(t,o);return e.applyData(t,o)}function _a(e,t){const n={src:Fe(t.url)};if(t.alt!==null&&t.alt!==undefined){n.alt=t.alt}if(t.title!==null&&t.title!==undefined){n.title=t.title}const i={type:"element",tagName:"img",properties:n,children:[]};e.patch(t,i);return e.applyData(t,i)}function Ma(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};e.patch(t,i);return e.applyData(t,i)}function Ba(e,t){const n=String(t.identifier).toUpperCase();const i=e.definitionById.get(n);if(!i){return La(e,t)}const r={href:Fe(i.url||"")};if(i.title!==null&&i.title!==undefined){r.title=i.title}const o={type:"element",tagName:"a",properties:r,children:e.all(t)};e.patch(t,o);return e.applyData(t,o)}function Ra(e,t){const n={href:Fe(t.url)};if(t.title!==null&&t.title!==undefined){n.title=t.title}const i={type:"element",tagName:"a",properties:n,children:e.all(t)};e.patch(t,i);return e.applyData(t,i)}function Pa(e,t,n){const i=e.all(t);const r=n?qa(n):Ua(t);const o={};const s=[];if(typeof t.checked==="boolean"){const e=i[0];let n;if(e&&e.type==="element"&&e.tagName==="p"){n=e}else{n={type:"element",tagName:"p",properties:{},children:[]};i.unshift(n)}if(n.children.length>0){n.children.unshift({type:"text",value:" "})}n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:true},children:[]});o.className=["task-list-item"]}let l=-1;while(++l<i.length){const e=i[l];if(r||l!==0||e.type!=="element"||e.tagName!=="p"){s.push({type:"text",value:"\n"})}if(e.type==="element"&&e.tagName==="p"&&!r){s.push(...e.children)}else{s.push(e)}}const a=i[i.length-1];if(a&&(r||a.type!=="element"||a.tagName!=="p")){s.push({type:"text",value:"\n"})}const u={type:"element",tagName:"li",properties:o,children:s};e.patch(t,u);return e.applyData(t,u)}function qa(e){let t=false;if(e.type==="list"){t=e.spread||false;const n=e.children;let i=-1;while(!t&&++i<n.length){t=Ua(n[i])}}return t}function Ua(e){const t=e.spread;return t===null||t===undefined?e.children.length>1:t}function ja(e,t){const n={};const i=e.all(t);let r=-1;if(typeof t.start==="number"&&t.start!==1){n.start=t.start}while(++r<i.length){const e=i[r];if(e.type==="element"&&e.tagName==="li"&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,true)};e.patch(t,o);return e.applyData(t,o)}function za(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function Ha(e,t){const n={type:"root",children:e.wrap(e.all(t))};e.patch(t,n);return e.applyData(t,n)}function $a(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}const Va=Ka("end");const Ga=Ka("start");function Ka(e){return t;function t(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line==="number"&&n.line>0&&typeof n.column==="number"&&n.column>0){return{line:n.line,column:n.column,offset:typeof n.offset==="number"&&n.offset>-1?n.offset:undefined}}}}function Ya(e){const t=Ga(e);const n=Va(e);if(t&&n){return{start:t,end:n}}}function Wa(e,t){const n=e.all(t);const i=n.shift();const r=[];if(i){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([i],true)};e.patch(t.children[0],n);r.push(n)}if(n.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,true)};const o=Ga(t.children[1]);const s=Va(t.children[t.children.length-1]);if(o&&s)i.position={start:o,end:s};r.push(i)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(r,true)};e.patch(t,o);return e.applyData(t,o)}function Xa(e,t,n){const i=n?n.children:undefined;const r=i?i.indexOf(t):1;const o=r===0?"th":"td";const s=n&&n.type==="table"?n.align:undefined;const l=s?s.length:t.children.length;let a=-1;const u=[];while(++a<l){const n=t.children[a];const i={};const r=s?s[a]:undefined;if(r){i.align=r}let l={type:"element",tagName:o,properties:i,children:[]};if(n){l.children=e.all(n);e.patch(n,l);l=e.applyData(n,l)}u.push(l)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,true)};e.patch(t,c);return e.applyData(t,c)}function Qa(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}const Ja=9;const Za=32;function eu(e){const t=String(e);const n=/\r?\n|\r/g;let i=n.exec(t);let r=0;const o=[];while(i){o.push(tu(t.slice(r,i.index),r>0,true),i[0]);r=i.index+i[0].length;i=n.exec(t)}o.push(tu(t.slice(r),r>0,false));return o.join("")}function tu(e,t,n){let i=0;let r=e.length;if(t){let t=e.codePointAt(i);while(t===Ja||t===Za){i++;t=e.codePointAt(i)}}if(n){let t=e.codePointAt(r-1);while(t===Ja||t===Za){r--;t=e.codePointAt(r-1)}}return r>i?e.slice(i,r):""}function nu(e,t){const n={type:"text",value:eu(String(t.value))};e.patch(t,n);return e.applyData(t,n)}function iu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};e.patch(t,n);return e.applyData(t,n)}const ru={blockquote:Aa,break:Ca,code:Fa,delete:Sa,emphasis:xa,footnoteReference:Ta,heading:Oa,html:Na,imageReference:Ia,image:_a,inlineCode:Ma,linkReference:Ba,link:Ra,listItem:Pa,list:ja,paragraph:za,root:Ha,strong:$a,table:Wa,tableCell:Qa,tableRow:Xa,text:nu,thematicBreak:iu,toml:ou,yaml:ou,definition:ou,footnoteDefinition:ou};function ou(){return undefined}const su=-1;const lu=0;const au=1;const uu=2;const cu=3;const fu=4;const hu=5;const du=6;const pu=7;const mu=8;const gu=typeof self==="object"?self:globalThis;const bu=(e,t)=>{const n=(t,n)=>{e.set(n,t);return t};const i=r=>{if(e.has(r))return e.get(r);const[o,s]=t[r];switch(o){case lu:case su:return n(s,r);case au:{const e=n([],r);for(const t of s)e.push(i(t));return e}case uu:{const e=n({},r);for(const[t,n]of s)e[i(t)]=i(n);return e}case cu:return n(new Date(s),r);case fu:{const{source:e,flags:t}=s;return n(new RegExp(e,t),r)}case hu:{const e=n(new Map,r);for(const[t,n]of s)e.set(i(t),i(n));return e}case du:{const e=n(new Set,r);for(const t of s)e.add(i(t));return e}case pu:{const{name:e,message:t}=s;return n(new gu[e](t),r)}case mu:return n(BigInt(s),r);case"BigInt":return n(Object(BigInt(s)),r)}return n(new gu[o](s),r)};return i};const ku=e=>bu(new Map,e)(0);const yu="";const{toString:Du}={};const{keys:wu}=Object;const Eu=e=>{const t=typeof e;if(t!=="object"||!e)return[lu,t];const n=Du.call(e).slice(8,-1);switch(n){case"Array":return[au,yu];case"Object":return[uu,yu];case"Date":return[cu,yu];case"RegExp":return[fu,yu];case"Map":return[hu,yu];case"Set":return[du,yu]}if(n.includes("Array"))return[au,n];if(n.includes("Error"))return[pu,n];return[uu,n]};const vu=([e,t])=>e===lu&&(t==="function"||t==="symbol");const Au=(e,t,n,i)=>{const r=(e,t)=>{const r=i.push(e)-1;n.set(t,r);return r};const o=i=>{if(n.has(i))return n.get(i);let[s,l]=Eu(i);switch(s){case lu:{let t=i;switch(l){case"bigint":s=mu;t=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return r([su],i)}return r([s,t],i)}case au:{if(l)return r([l,[...i]],i);const e=[];const t=r([s,e],i);for(const t of i)e.push(o(t));return t}case uu:{if(l){switch(l){case"BigInt":return r([l,i.toString()],i);case"Boolean":case"Number":case"String":return r([l,i.valueOf()],i)}}if(t&&"toJSON"in i)return o(i.toJSON());const n=[];const a=r([s,n],i);for(const t of wu(i)){if(e||!vu(Eu(i[t])))n.push([o(t),o(i[t])])}return a}case cu:return r([s,i.toISOString()],i);case fu:{const{source:e,flags:t}=i;return r([s,{source:e,flags:t}],i)}case hu:{const t=[];const n=r([s,t],i);for(const[n,r]of i){if(e||!(vu(Eu(n))||vu(Eu(r))))t.push([o(n),o(r)])}return n}case du:{const t=[];const n=r([s,t],i);for(const n of i){if(e||!vu(Eu(n)))t.push(o(n))}return n}}const{message:a}=i;return r([s,{name:l,message:a}],i)};return o};const Cu=(e,{json:t,lossy:n}={})=>{const i=[];return Au(!(t||n),!!t,new Map,i)(e),i};var Fu=typeof structuredClone==="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ku(Cu(e,t)):structuredClone(e):(e,t)=>ku(Cu(e,t));function Su(e,t){const n=[{type:"text",value:"↩"}];if(t>1){n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]})}return n}function xu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Tu(e){const t=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-";const n=e.options.footnoteBackContent||Su;const i=e.options.footnoteBackLabel||xu;const r=e.options.footnoteLabel||"Footnotes";const o=e.options.footnoteLabelTagName||"h2";const s=e.options.footnoteLabelProperties||{className:["sr-only"]};const l=[];let a=-1;while(++a<e.footnoteOrder.length){const r=e.footnoteById.get(e.footnoteOrder[a]);if(!r){continue}const o=e.all(r);const s=String(r.identifier).toUpperCase();const u=Fe(s.toLowerCase());let c=0;const f=[];const h=e.footnoteCounts.get(s);while(h!==undefined&&++c<=h){if(f.length>0){f.push({type:"text",value:" "})}let e=typeof n==="string"?n:n(a,c);if(typeof e==="string"){e={type:"text",value:e}}f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:typeof i==="string"?i:i(a,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=o[o.length-1];if(d&&d.type==="element"&&d.tagName==="p"){const e=d.children[d.children.length-1];if(e&&e.type==="text"){e.value+=" "}else{d.children.push({type:"text",value:" "})}d.children.push(...f)}else{o.push(...f)}const p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,true)};e.patch(r,p);l.push(p)}if(l.length===0){return}return{type:"element",tagName:"section",properties:{dataFootnotes:true,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Fu(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,true)},{type:"text",value:"\n"}]}}const Ou={}.hasOwnProperty;const Nu={};function Lu(e,t){const n=t||Nu;const i=new Map;const r=new Map;const o=new Map;const s={...ru,...n.handlers};const l={all:u,applyData:_u,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:a,options:n,patch:Iu,wrap:Bu};Is(e,(function(e){if(e.type==="definition"||e.type==="footnoteDefinition"){const t=e.type==="definition"?i:r;const n=String(e.identifier).toUpperCase();if(!t.has(n)){t.set(n,e)}}}));return l;function a(e,t){const n=e.type;const i=l.handlers[n];if(Ou.call(l.handlers,n)&&i){return i(l,e,t)}if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e;const i=Fu(n);i.children=l.all(e);return i}return Fu(e)}const r=l.options.unknownHandler||Mu;return r(l,e,t)}function u(e){const t=[];if("children"in e){const n=e.children;let i=-1;while(++i<n.length){const r=l.one(n[i],e);if(r){if(i&&n[i-1].type==="break"){if(!Array.isArray(r)&&r.type==="text"){r.value=Ru(r.value)}if(!Array.isArray(r)&&r.type==="element"){const e=r.children[0];if(e&&e.type==="text"){e.value=Ru(e.value)}}}if(Array.isArray(r)){t.push(...r)}else{t.push(r)}}}}return t}}function Iu(e,t){if(e.position)t.position=Ya(e)}function _u(e,t){let n=t;if(e&&e.data){const t=e.data.hName;const i=e.data.hChildren;const r=e.data.hProperties;if(typeof t==="string"){if(n.type==="element"){n.tagName=t}else{const e="children"in n?n.children:[n];n={type:"element",tagName:t,properties:{},children:e}}}if(n.type==="element"&&r){Object.assign(n.properties,Fu(r))}if("children"in n&&n.children&&i!==null&&i!==undefined){n.children=i}}return n}function Mu(e,t){const n=t.data||{};const i="value"in t&&!(Ou.call(n,"hProperties")||Ou.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};e.patch(t,i);return e.applyData(t,i)}function Bu(e,t){const n=[];let i=-1;if(t){n.push({type:"text",value:"\n"})}while(++i<e.length){if(i)n.push({type:"text",value:"\n"});n.push(e[i])}if(t&&e.length>0){n.push({type:"text",value:"\n"})}return n}function Ru(e){let t=0;let n=e.charCodeAt(t);while(n===9||n===32){t++;n=e.charCodeAt(t)}return e.slice(t)}function Pu(e,t){const n=Lu(e,t);const i=n.one(e,undefined);const r=Tu(n);const o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};if(r){o.children.push({type:"text",value:"\n"},r)}return o}function qu(e,t){if(e&&"run"in e){return async function(n,i){const r=Pu(n,{file:i,...t});await e.run(r,i)}}return function(n,i){return Pu(n,{file:i,...e||t})}}let Uu=class e{constructor(e,t,n){this.normal=t;this.property=e;if(n){this.space=n}}};Uu.prototype.normal={};Uu.prototype.property={};Uu.prototype.space=undefined;function ju(e,t){const n={};const i={};for(const t of e){Object.assign(n,t.property);Object.assign(i,t.normal)}return new Uu(n,i,t)}function zu(e){return e.toLowerCase()}let Hu=class e{constructor(e,t){this.attribute=t;this.property=e}};Hu.prototype.attribute="";Hu.prototype.booleanish=false;Hu.prototype.boolean=false;Hu.prototype.commaOrSpaceSeparated=false;Hu.prototype.commaSeparated=false;Hu.prototype.defined=false;Hu.prototype.mustUseProperty=false;Hu.prototype.number=false;Hu.prototype.overloadedBoolean=false;Hu.prototype.property="";Hu.prototype.spaceSeparated=false;Hu.prototype.space=undefined;let $u=0;const Vu=Ju();const Gu=Ju();const Ku=Ju();const Yu=Ju();const Wu=Ju();const Xu=Ju();const Qu=Ju();function Ju(){return 2**++$u}var Zu=Object.freeze({__proto__:null,boolean:Vu,booleanish:Gu,commaOrSpaceSeparated:Qu,commaSeparated:Xu,number:Yu,overloadedBoolean:Ku,spaceSeparated:Wu});const ec=Object.keys(Zu);let tc=class e extends Hu{constructor(e,t,n,i){let r=-1;super(e,t);nc(this,"space",i);if(typeof n==="number"){while(++r<ec.length){const e=ec[r];nc(this,ec[r],(n&Zu[e])===Zu[e])}}}};tc.prototype.defined=true;function nc(e,t,n){if(n){e[t]=n}}function ic(e){const t={};const n={};for(const[i,r]of Object.entries(e.properties)){const o=new tc(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){o.mustUseProperty=true}t[i]=o;n[zu(i)]=i;n[zu(o.attribute)]=i}return new Uu(t,n,e.space)}const rc=ic({properties:{ariaActiveDescendant:null,ariaAtomic:Gu,ariaAutoComplete:null,ariaBusy:Gu,ariaChecked:Gu,ariaColCount:Yu,ariaColIndex:Yu,ariaColSpan:Yu,ariaControls:Wu,ariaCurrent:null,ariaDescribedBy:Wu,ariaDetails:null,ariaDisabled:Gu,ariaDropEffect:Wu,ariaErrorMessage:null,ariaExpanded:Gu,ariaFlowTo:Wu,ariaGrabbed:Gu,ariaHasPopup:null,ariaHidden:Gu,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wu,ariaLevel:Yu,ariaLive:null,ariaModal:Gu,ariaMultiLine:Gu,ariaMultiSelectable:Gu,ariaOrientation:null,ariaOwns:Wu,ariaPlaceholder:null,ariaPosInSet:Yu,ariaPressed:Gu,ariaReadOnly:Gu,ariaRelevant:null,ariaRequired:Gu,ariaRoleDescription:Wu,ariaRowCount:Yu,ariaRowIndex:Yu,ariaRowSpan:Yu,ariaSelected:Gu,ariaSetSize:Yu,ariaSort:null,ariaValueMax:Yu,ariaValueMin:Yu,ariaValueNow:Yu,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function oc(e,t){return t in e?e[t]:t}function sc(e,t){return oc(e,t.toLowerCase())}const lc=ic({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xu,acceptCharset:Wu,accessKey:Wu,action:null,allow:null,allowFullScreen:Vu,allowPaymentRequest:Vu,allowUserMedia:Vu,alt:null,as:null,async:Vu,autoCapitalize:null,autoComplete:Wu,autoFocus:Vu,autoPlay:Vu,blocking:Wu,capture:null,charSet:null,checked:Vu,cite:null,className:Wu,cols:Yu,colSpan:null,content:null,contentEditable:Gu,controls:Vu,controlsList:Wu,coords:Yu|Xu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Vu,defer:Vu,dir:null,dirName:null,disabled:Vu,download:Ku,draggable:Gu,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Vu,formTarget:null,headers:Wu,height:Yu,hidden:Ku,high:Yu,href:null,hrefLang:null,htmlFor:Wu,httpEquiv:Wu,id:null,imageSizes:null,imageSrcSet:null,inert:Vu,inputMode:null,integrity:null,is:null,isMap:Vu,itemId:null,itemProp:Wu,itemRef:Wu,itemScope:Vu,itemType:Wu,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Vu,low:Yu,manifest:null,max:null,maxLength:Yu,media:null,method:null,min:null,minLength:Yu,multiple:Vu,muted:Vu,name:null,nonce:null,noModule:Vu,noValidate:Vu,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Vu,optimum:Yu,pattern:null,ping:Wu,placeholder:null,playsInline:Vu,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Vu,referrerPolicy:null,rel:Wu,required:Vu,reversed:Vu,rows:Yu,rowSpan:Yu,sandbox:Wu,scope:null,scoped:Vu,seamless:Vu,selected:Vu,shadowRootClonable:Vu,shadowRootDelegatesFocus:Vu,shadowRootMode:null,shape:null,size:Yu,sizes:null,slot:null,span:Yu,spellCheck:Gu,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Yu,step:null,style:null,tabIndex:Yu,target:null,title:null,translate:null,type:null,typeMustMatch:Vu,useMap:null,value:Gu,width:Yu,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wu,axis:null,background:null,bgColor:null,border:Yu,borderColor:null,bottomMargin:Yu,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Vu,declare:Vu,event:null,face:null,frame:null,frameBorder:null,hSpace:Yu,leftMargin:Yu,link:null,longDesc:null,lowSrc:null,marginHeight:Yu,marginWidth:Yu,noResize:Vu,noHref:Vu,noShade:Vu,noWrap:Vu,object:null,profile:null,prompt:null,rev:null,rightMargin:Yu,rules:null,scheme:null,scrolling:Gu,standby:null,summary:null,text:null,topMargin:Yu,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Yu,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Vu,disableRemotePlayback:Vu,prefix:null,property:null,results:Yu,security:null,unselectable:null},space:"html",transform:sc});const ac=ic({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Qu,accentHeight:Yu,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Yu,amplitude:Yu,arabicForm:null,ascent:Yu,attributeName:null,attributeType:null,azimuth:Yu,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Yu,by:null,calcMode:null,capHeight:Yu,className:Wu,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Yu,diffuseConstant:Yu,direction:null,display:null,dur:null,divisor:Yu,dominantBaseline:null,download:Vu,dx:null,dy:null,edgeMode:null,editable:null,elevation:Yu,enableBackground:null,end:null,event:null,exponent:Yu,externalResourcesRequired:null,fill:null,fillOpacity:Yu,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xu,g2:Xu,glyphName:Xu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Yu,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Yu,horizOriginX:Yu,horizOriginY:Yu,id:null,ideographic:Yu,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Yu,k:Yu,k1:Yu,k2:Yu,k3:Yu,k4:Yu,kernelMatrix:Qu,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Yu,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Yu,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Yu,overlineThickness:Yu,paintOrder:null,panose1:null,path:null,pathLength:Yu,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wu,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Yu,pointsAtY:Yu,pointsAtZ:Yu,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qu,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qu,rev:Qu,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qu,requiredFeatures:Qu,requiredFonts:Qu,requiredFormats:Qu,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Yu,specularExponent:Yu,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Yu,strikethroughThickness:Yu,string:null,stroke:null,strokeDashArray:Qu,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Yu,strokeOpacity:Yu,strokeWidth:null,style:null,surfaceScale:Yu,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qu,tabIndex:Yu,tableValues:null,target:null,targetX:Yu,targetY:Yu,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qu,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Yu,underlineThickness:Yu,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Yu,values:null,vAlphabetic:Yu,vMathematical:Yu,vectorEffect:null,vHanging:Yu,vIdeographic:Yu,version:null,vertAdvY:Yu,vertOriginX:Yu,vertOriginY:Yu,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Yu,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:oc});const uc=ic({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});const cc=ic({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sc});const fc=ic({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});const hc=/[A-Z]/g;const dc=/-[a-z]/g;const pc=/^data[-\w.:]+$/i;function mc(e,t){const n=zu(t);let i=t;let r=Hu;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&pc.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(dc,bc);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!dc.test(e)){let n=e.replace(hc,gc);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=tc}return new r(i,t)}function gc(e){return"-"+e.toLowerCase()}function bc(e){return e.charAt(1).toUpperCase()}const kc=ju([rc,lc,uc,cc,fc],"html");const yc=ju([rc,ac,uc,cc,fc],"svg");function Dc(e){const t=[];const n=String(e||"");let i=n.indexOf(",");let r=0;let o=false;while(!o){if(i===-1){i=n.length;o=true}const e=n.slice(r,i).trim();if(e||!o){t.push(e)}r=i+1;i=n.indexOf(",",r)}return t}const wc=/[#.]/g;function Ec(e,t){const n=e||"";const i={};let r=0;let o;let s;while(r<n.length){wc.lastIndex=r;const e=wc.exec(n);const t=n.slice(r,e?e.index:n.length);if(t){if(!o){s=t}else if(o==="#"){i.id=t}else if(Array.isArray(i.className)){i.className.push(t)}else{i.className=[t]}r+=t.length}if(e){o=e[0];r++}}return{type:"element",tagName:s||t||"div",properties:i,children:[]}}function vc(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ac(e,t,n){const i=n?Oc(n):undefined;function r(n,r,...o){let s;if(n===null||n===undefined){s={type:"root",children:[]};const e=r;o.unshift(e)}else{s=Ec(n,t);const l=s.tagName.toLowerCase();const a=i?i.get(l):undefined;s.tagName=a||l;if(Cc(r)){o.unshift(r)}else{for(const[t,n]of Object.entries(r)){Fc(e,s.properties,t,n)}}}for(const e of o){Sc(s.children,e)}if(s.type==="element"&&s.tagName==="template"){s.content={type:"root",children:s.children};s.children=[]}return s}return r}function Cc(e){if(e===null||typeof e!=="object"||Array.isArray(e)){return true}if(typeof e.type!=="string")return false;const t=e;const n=Object.keys(e);for(const e of n){const n=t[e];if(n&&typeof n==="object"){if(!Array.isArray(n))return true;const e=n;for(const t of e){if(typeof t!=="number"&&typeof t!=="string"){return true}}}}if("children"in e&&Array.isArray(e.children)){return true}return false}function Fc(e,t,n,i){const r=mc(e,n);let o;if(i===null||i===undefined)return;if(typeof i==="number"){if(Number.isNaN(i))return;o=i}else if(typeof i==="boolean"){o=i}else if(typeof i==="string"){if(r.spaceSeparated){o=vc(i)}else if(r.commaSeparated){o=Dc(i)}else if(r.commaOrSpaceSeparated){o=vc(Dc(i).join(" "))}else{o=xc(r,r.property,i)}}else if(Array.isArray(i)){o=[...i]}else{o=r.property==="style"?Tc(i):String(i)}if(Array.isArray(o)){const e=[];for(const t of o){e.push(xc(r,r.property,t))}o=e}if(r.property==="className"&&Array.isArray(t.className)){o=t.className.concat(o)}t[r.property]=o}function Sc(e,t){if(t===null||t===undefined);else if(typeof t==="number"||typeof t==="string"){e.push({type:"text",value:String(t)})}else if(Array.isArray(t)){for(const n of t){Sc(e,n)}}else if(typeof t==="object"&&"type"in t){if(t.type==="root"){Sc(e,t.children)}else{e.push(t)}}else{throw new Error("Expected node, nodes, or string, got `"+t+"`")}}function xc(e,t,n){if(typeof n==="string"){if(e.number&&n&&!Number.isNaN(Number(n))){return Number(n)}if((e.boolean||e.overloadedBoolean)&&(n===""||zu(n)===zu(t))){return true}}return n}function Tc(e){const t=[];for(const[n,i]of Object.entries(e)){t.push([n,i].join(": "))}return t.join("; ")}function Oc(e){const t=new Map;for(const n of e){t.set(n.toLowerCase(),n)}return t}const Nc=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];const Lc=Ac(kc,"div");const Ic=Ac(yc,"g",Nc);function _c(e){const t=String(e);const n=[];return{toOffset:r,toPoint:i};function i(e){if(typeof e==="number"&&e>-1&&e<=t.length){let i=0;while(true){let r=n[i];if(r===undefined){const e=Mc(t,n[i-1]);r=e===-1?t.length+1:e+1;n[i]=r}if(r>e){return{line:i+1,column:e-(i>0?n[i-1]:0)+1,offset:e}}i++}}}function r(e){if(e&&typeof e.line==="number"&&typeof e.column==="number"&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){while(n.length<e.line){const e=n[n.length-1];const i=Mc(t,e);const r=i===-1?t.length+1:i+1;if(e===r)break;n.push(r)}const i=(e.line>1?n[e.line-2]:0)+e.column-1;if(i<n[e.line-1])return i}}}function Mc(e,t){const n=e.indexOf("\r",t);const i=e.indexOf("\n",t);if(i===-1)return n;if(n===-1||n+1===i)return i;return n<i?n:i}const Bc={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};const Rc={}.hasOwnProperty;const Pc=Object.prototype;function qc(e,t){const n=t||{};return Uc({file:n.file||undefined,location:false,schema:n.space==="svg"?yc:kc,verbose:n.verbose||false},e)}function Uc(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;n={type:"comment",value:i.data};Hc(e,i,n);return n}case"#document":case"#document-fragment":{const i=t;const r="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":false;n={type:"root",children:jc(e,t.childNodes),data:{quirksMode:r}};if(e.file&&e.location){const t=String(e.file);const i=_c(t);const r=i.toPoint(0);const o=i.toPoint(t.length);n.position={start:r,end:o}}return n}case"#documentType":{const i=t;n={type:"doctype"};Hc(e,i,n);return n}case"#text":{const i=t;n={type:"text",value:i.value};Hc(e,i,n);return n}default:{const i=t;n=zc(e,i);return n}}}function jc(e,t){let n=-1;const i=[];while(++n<t.length){const r=Uc(e,t[n]);i.push(r)}return i}function zc(e,t){const n=e.schema;e.schema=t.namespaceURI===Bc.svg?yc:kc;let i=-1;const r={};while(++i<t.attrs.length){const e=t.attrs[i];const n=(e.prefix?e.prefix+":":"")+e.name;if(!Rc.call(Pc,n)){r[n]=e.value}}const o=e.schema.space==="svg"?Ic:Lc;const s=o(t.tagName,r,jc(e,t.childNodes));Hc(e,t,s);if(s.tagName==="template"){const n=t;const i=n.sourceCodeLocation;const r=i&&i.startTag&&Vc(i.startTag);const o=i&&i.endTag&&Vc(i.endTag);const l=Uc(e,n.content);if(r&&o&&e.file){l.position={start:r.end,end:o.start}}s.content=l}e.schema=n;return s}function Hc(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=$c(e,n,t.sourceCodeLocation);if(i){e.location=true;n.position=i}}}function $c(e,t,n){const i=Vc(n);if(t.type==="element"){const r=t.children[t.children.length-1];if(i&&!n.endTag&&r&&r.position&&r.position.end){i.end=Object.assign({},r.position.end)}if(e.verbose){const i={};let r;if(n.attrs){for(r in n.attrs){if(Rc.call(n.attrs,r)){i[mc(e.schema,r).property]=Vc(n.attrs[r])}}}const o=Vc(n.startTag);const s=n.endTag?Vc(n.endTag):undefined;const l={opening:o};if(s)l.closing=s;l.properties=i;t.data={position:l}}}return i}function Vc(e){const t=Gc({line:e.startLine,column:e.startCol,offset:e.startOffset});const n=Gc({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:undefined}function Gc(e){return e.line&&e.column?e:undefined}function Kc(e,t){const n={};const i=e[e.length-1]===""?[...e,""]:e;return i.join((n.padRight?" ":"")+","+(n.padLeft===false?"":" ")).trim()}let Yc=class e{constructor(e,t,n){this.normal=t;this.property=e;if(n){this.space=n}}};Yc.prototype.normal={};Yc.prototype.property={};Yc.prototype.space=undefined;function Wc(e,t){const n={};const i={};for(const t of e){Object.assign(n,t.property);Object.assign(i,t.normal)}return new Yc(n,i,t)}function Xc(e){return e.toLowerCase()}let Qc=class e{constructor(e,t){this.attribute=t;this.property=e}};Qc.prototype.attribute="";Qc.prototype.booleanish=false;Qc.prototype.boolean=false;Qc.prototype.commaOrSpaceSeparated=false;Qc.prototype.commaSeparated=false;Qc.prototype.defined=false;Qc.prototype.mustUseProperty=false;Qc.prototype.number=false;Qc.prototype.overloadedBoolean=false;Qc.prototype.property="";Qc.prototype.spaceSeparated=false;Qc.prototype.space=undefined;let Jc=0;const Zc=lf();const ef=lf();const tf=lf();const nf=lf();const rf=lf();const of=lf();const sf=lf();function lf(){return 2**++Jc}var af=Object.freeze({__proto__:null,boolean:Zc,booleanish:ef,commaOrSpaceSeparated:sf,commaSeparated:of,number:nf,overloadedBoolean:tf,spaceSeparated:rf});const uf=Object.keys(af);let cf=class e extends Qc{constructor(e,t,n,i){let r=-1;super(e,t);ff(this,"space",i);if(typeof n==="number"){while(++r<uf.length){const e=uf[r];ff(this,uf[r],(n&af[e])===af[e])}}}};cf.prototype.defined=true;function ff(e,t,n){if(n){e[t]=n}}function hf(e){const t={};const n={};for(const[i,r]of Object.entries(e.properties)){const o=new cf(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){o.mustUseProperty=true}t[i]=o;n[Xc(i)]=i;n[Xc(o.attribute)]=i}return new Yc(t,n,e.space)}const df=hf({properties:{ariaActiveDescendant:null,ariaAtomic:ef,ariaAutoComplete:null,ariaBusy:ef,ariaChecked:ef,ariaColCount:nf,ariaColIndex:nf,ariaColSpan:nf,ariaControls:rf,ariaCurrent:null,ariaDescribedBy:rf,ariaDetails:null,ariaDisabled:ef,ariaDropEffect:rf,ariaErrorMessage:null,ariaExpanded:ef,ariaFlowTo:rf,ariaGrabbed:ef,ariaHasPopup:null,ariaHidden:ef,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rf,ariaLevel:nf,ariaLive:null,ariaModal:ef,ariaMultiLine:ef,ariaMultiSelectable:ef,ariaOrientation:null,ariaOwns:rf,ariaPlaceholder:null,ariaPosInSet:nf,ariaPressed:ef,ariaReadOnly:ef,ariaRelevant:null,ariaRequired:ef,ariaRoleDescription:rf,ariaRowCount:nf,ariaRowIndex:nf,ariaRowSpan:nf,ariaSelected:ef,ariaSetSize:nf,ariaSort:null,ariaValueMax:nf,ariaValueMin:nf,ariaValueNow:nf,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pf(e,t){return t in e?e[t]:t}function mf(e,t){return pf(e,t.toLowerCase())}const gf=hf({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:of,acceptCharset:rf,accessKey:rf,action:null,allow:null,allowFullScreen:Zc,allowPaymentRequest:Zc,allowUserMedia:Zc,alt:null,as:null,async:Zc,autoCapitalize:null,autoComplete:rf,autoFocus:Zc,autoPlay:Zc,blocking:rf,capture:null,charSet:null,checked:Zc,cite:null,className:rf,cols:nf,colSpan:null,content:null,contentEditable:ef,controls:Zc,controlsList:rf,coords:nf|of,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Zc,defer:Zc,dir:null,dirName:null,disabled:Zc,download:tf,draggable:ef,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Zc,formTarget:null,headers:rf,height:nf,hidden:tf,high:nf,href:null,hrefLang:null,htmlFor:rf,httpEquiv:rf,id:null,imageSizes:null,imageSrcSet:null,inert:Zc,inputMode:null,integrity:null,is:null,isMap:Zc,itemId:null,itemProp:rf,itemRef:rf,itemScope:Zc,itemType:rf,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Zc,low:nf,manifest:null,max:null,maxLength:nf,media:null,method:null,min:null,minLength:nf,multiple:Zc,muted:Zc,name:null,nonce:null,noModule:Zc,noValidate:Zc,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Zc,optimum:nf,pattern:null,ping:rf,placeholder:null,playsInline:Zc,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Zc,referrerPolicy:null,rel:rf,required:Zc,reversed:Zc,rows:nf,rowSpan:nf,sandbox:rf,scope:null,scoped:Zc,seamless:Zc,selected:Zc,shadowRootClonable:Zc,shadowRootDelegatesFocus:Zc,shadowRootMode:null,shape:null,size:nf,sizes:null,slot:null,span:nf,spellCheck:ef,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nf,step:null,style:null,tabIndex:nf,target:null,title:null,translate:null,type:null,typeMustMatch:Zc,useMap:null,value:ef,width:nf,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rf,axis:null,background:null,bgColor:null,border:nf,borderColor:null,bottomMargin:nf,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Zc,declare:Zc,event:null,face:null,frame:null,frameBorder:null,hSpace:nf,leftMargin:nf,link:null,longDesc:null,lowSrc:null,marginHeight:nf,marginWidth:nf,noResize:Zc,noHref:Zc,noShade:Zc,noWrap:Zc,object:null,profile:null,prompt:null,rev:null,rightMargin:nf,rules:null,scheme:null,scrolling:ef,standby:null,summary:null,text:null,topMargin:nf,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nf,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Zc,disableRemotePlayback:Zc,prefix:null,property:null,results:nf,security:null,unselectable:null},space:"html",transform:mf});const bf=hf({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:sf,accentHeight:nf,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nf,amplitude:nf,arabicForm:null,ascent:nf,attributeName:null,attributeType:null,azimuth:nf,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nf,by:null,calcMode:null,capHeight:nf,className:rf,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nf,diffuseConstant:nf,direction:null,display:null,dur:null,divisor:nf,dominantBaseline:null,download:Zc,dx:null,dy:null,edgeMode:null,editable:null,elevation:nf,enableBackground:null,end:null,event:null,exponent:nf,externalResourcesRequired:null,fill:null,fillOpacity:nf,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:of,g2:of,glyphName:of,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nf,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nf,horizOriginX:nf,horizOriginY:nf,id:null,ideographic:nf,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nf,k:nf,k1:nf,k2:nf,k3:nf,k4:nf,kernelMatrix:sf,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nf,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nf,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nf,overlineThickness:nf,paintOrder:null,panose1:null,path:null,pathLength:nf,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rf,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nf,pointsAtY:nf,pointsAtZ:nf,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sf,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sf,rev:sf,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sf,requiredFeatures:sf,requiredFonts:sf,requiredFormats:sf,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nf,specularExponent:nf,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nf,strikethroughThickness:nf,string:null,stroke:null,strokeDashArray:sf,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nf,strokeOpacity:nf,strokeWidth:null,style:null,surfaceScale:nf,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sf,tabIndex:nf,tableValues:null,target:null,targetX:nf,targetY:nf,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sf,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nf,underlineThickness:nf,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nf,values:null,vAlphabetic:nf,vMathematical:nf,vectorEffect:null,vHanging:nf,vIdeographic:nf,version:null,vertAdvY:nf,vertOriginX:nf,vertOriginY:nf,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nf,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pf});const kf=hf({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});const yf=hf({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mf});const Df=hf({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});const wf=/[A-Z]/g;const Ef=/-[a-z]/g;const vf=/^data[-\w.:]+$/i;function Af(e,t){const n=Xc(t);let i=t;let r=Qc;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&vf.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(Ef,Ff);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Ef.test(e)){let n=e.replace(wf,Cf);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=cf}return new r(i,t)}function Cf(e){return"-"+e.toLowerCase()}function Ff(e){return e.charAt(1).toUpperCase()}const Sf=Wc([df,gf,kf,yf,Df],"html");const xf=Wc([df,bf,kf,yf,Df],"svg");function Tf(e){return e.join(" ").trim()}const Of={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};const Nf={};const Lf={}.hasOwnProperty;const If=ms("type",{handlers:{root:Mf,element:Uf,text:Pf,comment:qf,doctype:Rf}});function _f(e,t){const n=t||Nf;const i=n.space;return If(e,i==="svg"?xf:Sf)}function Mf(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};n.childNodes=zf(e.children,n,t);Hf(e,n);return n}function Bf(e,t){const n={nodeName:"#document-fragment",childNodes:[]};n.childNodes=zf(e.children,n,t);Hf(e,n);return n}function Rf(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};Hf(e,t);return t}function Pf(e){const t={nodeName:"#text",value:e.value,parentNode:null};Hf(e,t);return t}function qf(e){const t={nodeName:"#comment",data:e.value,parentNode:null};Hf(e,t);return t}function Uf(e,t){const n=t;let i=n;if(e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"){i=xf}const r=[];let o;if(e.properties){for(o in e.properties){if(o!=="children"&&Lf.call(e.properties,o)){const t=jf(i,o,e.properties[o]);if(t){r.push(t)}}}}const s=i.space;const l={nodeName:e.tagName,tagName:e.tagName,attrs:r,namespaceURI:Of[s],childNodes:[],parentNode:null};l.childNodes=zf(e.children,l,i);Hf(e,l);if(e.tagName==="template"&&e.content){l.content=Bf(e.content,i)}return l}function jf(e,t,n){const i=Af(e,t);if(n===false||n===null||n===undefined||typeof n==="number"&&Number.isNaN(n)||!n&&i.boolean){return}if(Array.isArray(n)){n=i.commaSeparated?Kc(n):Tf(n)}const r={name:i.attribute,value:n===true?"":String(n)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const e=r.name.indexOf(":");if(e<0){r.prefix=""}else{r.name=r.name.slice(e+1);r.prefix=i.attribute.slice(0,e)}r.namespace=Of[i.space]}return r}function zf(e,t,n){let i=-1;const r=[];if(e){while(++i<e.length){const o=If(e[i],n);o.parentNode=t;r.push(o)}}return r}function Hf(e,t){const n=e.position;if(n&&n.start&&n.end){t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset}}}const $f=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];const Vf=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);const Gf="�";var Kf;(function(e){e[e["EOF"]=-1]="EOF";e[e["NULL"]=0]="NULL";e[e["TABULATION"]=9]="TABULATION";e[e["CARRIAGE_RETURN"]=13]="CARRIAGE_RETURN";e[e["LINE_FEED"]=10]="LINE_FEED";e[e["FORM_FEED"]=12]="FORM_FEED";e[e["SPACE"]=32]="SPACE";e[e["EXCLAMATION_MARK"]=33]="EXCLAMATION_MARK";e[e["QUOTATION_MARK"]=34]="QUOTATION_MARK";e[e["AMPERSAND"]=38]="AMPERSAND";e[e["APOSTROPHE"]=39]="APOSTROPHE";e[e["HYPHEN_MINUS"]=45]="HYPHEN_MINUS";e[e["SOLIDUS"]=47]="SOLIDUS";e[e["DIGIT_0"]=48]="DIGIT_0";e[e["DIGIT_9"]=57]="DIGIT_9";e[e["SEMICOLON"]=59]="SEMICOLON";e[e["LESS_THAN_SIGN"]=60]="LESS_THAN_SIGN";e[e["EQUALS_SIGN"]=61]="EQUALS_SIGN";e[e["GREATER_THAN_SIGN"]=62]="GREATER_THAN_SIGN";e[e["QUESTION_MARK"]=63]="QUESTION_MARK";e[e["LATIN_CAPITAL_A"]=65]="LATIN_CAPITAL_A";e[e["LATIN_CAPITAL_Z"]=90]="LATIN_CAPITAL_Z";e[e["RIGHT_SQUARE_BRACKET"]=93]="RIGHT_SQUARE_BRACKET";e[e["GRAVE_ACCENT"]=96]="GRAVE_ACCENT";e[e["LATIN_SMALL_A"]=97]="LATIN_SMALL_A";e[e["LATIN_SMALL_Z"]=122]="LATIN_SMALL_Z"})(Kf||(Kf={}));const Yf={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Wf(e){return e>=55296&&e<=57343}function Xf(e){return e>=56320&&e<=57343}function Qf(e,t){return(e-55296)*1024+9216+t}function Jf(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Zf(e){return e>=64976&&e<=65007||Vf.has(e)}var eh;(function(e){e["controlCharacterInInputStream"]="control-character-in-input-stream";e["noncharacterInInputStream"]="noncharacter-in-input-stream";e["surrogateInInputStream"]="surrogate-in-input-stream";e["nonVoidHtmlElementStartTagWithTrailingSolidus"]="non-void-html-element-start-tag-with-trailing-solidus";e["endTagWithAttributes"]="end-tag-with-attributes";e["endTagWithTrailingSolidus"]="end-tag-with-trailing-solidus";e["unexpectedSolidusInTag"]="unexpected-solidus-in-tag";e["unexpectedNullCharacter"]="unexpected-null-character";e["unexpectedQuestionMarkInsteadOfTagName"]="unexpected-question-mark-instead-of-tag-name";e["invalidFirstCharacterOfTagName"]="invalid-first-character-of-tag-name";e["unexpectedEqualsSignBeforeAttributeName"]="unexpected-equals-sign-before-attribute-name";e["missingEndTagName"]="missing-end-tag-name";e["unexpectedCharacterInAttributeName"]="unexpected-character-in-attribute-name";e["unknownNamedCharacterReference"]="unknown-named-character-reference";e["missingSemicolonAfterCharacterReference"]="missing-semicolon-after-character-reference";e["unexpectedCharacterAfterDoctypeSystemIdentifier"]="unexpected-character-after-doctype-system-identifier";e["unexpectedCharacterInUnquotedAttributeValue"]="unexpected-character-in-unquoted-attribute-value";e["eofBeforeTagName"]="eof-before-tag-name";e["eofInTag"]="eof-in-tag";e["missingAttributeValue"]="missing-attribute-value";e["missingWhitespaceBetweenAttributes"]="missing-whitespace-between-attributes";e["missingWhitespaceAfterDoctypePublicKeyword"]="missing-whitespace-after-doctype-public-keyword";e["missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers"]="missing-whitespace-between-doctype-public-and-system-identifiers";e["missingWhitespaceAfterDoctypeSystemKeyword"]="missing-whitespace-after-doctype-system-keyword";e["missingQuoteBeforeDoctypePublicIdentifier"]="missing-quote-before-doctype-public-identifier";e["missingQuoteBeforeDoctypeSystemIdentifier"]="missing-quote-before-doctype-system-identifier";e["missingDoctypePublicIdentifier"]="missing-doctype-public-identifier";e["missingDoctypeSystemIdentifier"]="missing-doctype-system-identifier";e["abruptDoctypePublicIdentifier"]="abrupt-doctype-public-identifier";e["abruptDoctypeSystemIdentifier"]="abrupt-doctype-system-identifier";e["cdataInHtmlContent"]="cdata-in-html-content";e["incorrectlyOpenedComment"]="incorrectly-opened-comment";e["eofInScriptHtmlCommentLikeText"]="eof-in-script-html-comment-like-text";e["eofInDoctype"]="eof-in-doctype";e["nestedComment"]="nested-comment";e["abruptClosingOfEmptyComment"]="abrupt-closing-of-empty-comment";e["eofInComment"]="eof-in-comment";e["incorrectlyClosedComment"]="incorrectly-closed-comment";e["eofInCdata"]="eof-in-cdata";e["absenceOfDigitsInNumericCharacterReference"]="absence-of-digits-in-numeric-character-reference";e["nullCharacterReference"]="null-character-reference";e["surrogateCharacterReference"]="surrogate-character-reference";e["characterReferenceOutsideUnicodeRange"]="character-reference-outside-unicode-range";e["controlCharacterReference"]="control-character-reference";e["noncharacterCharacterReference"]="noncharacter-character-reference";e["missingWhitespaceBeforeDoctypeName"]="missing-whitespace-before-doctype-name";e["missingDoctypeName"]="missing-doctype-name";e["invalidCharacterSequenceAfterDoctypeName"]="invalid-character-sequence-after-doctype-name";e["duplicateAttribute"]="duplicate-attribute";e["nonConformingDoctype"]="non-conforming-doctype";e["missingDoctype"]="missing-doctype";e["misplacedDoctype"]="misplaced-doctype";e["endTagWithoutMatchingOpenElement"]="end-tag-without-matching-open-element";e["closingOfElementWithOpenChildElements"]="closing-of-element-with-open-child-elements";e["disallowedContentInNoscriptInHead"]="disallowed-content-in-noscript-in-head";e["openElementsLeftAfterEof"]="open-elements-left-after-eof";e["abandonedHeadElementChild"]="abandoned-head-element-child";e["misplacedStartTagForHeadElement"]="misplaced-start-tag-for-head-element";e["nestedNoscriptInHead"]="nested-noscript-in-head";e["eofInElementThatCanContainOnlyText"]="eof-in-element-that-can-contain-only-text"})(eh||(eh={}));const th=1<<16;class nh{constructor(e){this.handler=e;this.html="";this.pos=-1;this.lastGapPos=-2;this.gapStack=[];this.skipNextNewLine=false;this.lastChunkWritten=false;this.endOfChunkHit=false;this.bufferWaterline=th;this.isEol=false;this.lineStartPos=0;this.droppedBufferSize=0;this.line=1;this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:i,offset:r}=this;const o=i+t;const s=r+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(e){if(this.handler.onParseError&&this.lastErrOffset!==this.offset){this.lastErrOffset=this.offset;this.handler.onParseError(this.getError(e,0))}}_addGap(){this.gapStack.push(this.lastGapPos);this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(Xf(t)){this.pos++;this._addGap();return Qf(e,t)}}else if(!this.lastChunkWritten){this.endOfChunkHit=true;return Kf.EOF}this._err(eh.surrogateInInputStream);return e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){if(this.willDropParsedChunk()){this.html=this.html.substring(this.pos);this.lineStartPos-=this.pos;this.droppedBufferSize+=this.pos;this.pos=0;this.lastGapPos=-2;this.gapStack.length=0}}write(e,t){if(this.html.length>0){this.html+=e}else{this.html=e}this.endOfChunkHit=false;this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1);this.endOfChunkHit=false}startsWith(e,t){if(this.pos+e.length>this.html.length){this.endOfChunkHit=!this.lastChunkWritten;return false}if(t){return this.html.startsWith(e,this.pos)}for(let t=0;t<e.length;t++){const n=this.html.charCodeAt(this.pos+t)|32;if(n!==e.charCodeAt(t)){return false}}return true}peek(e){const t=this.pos+e;if(t>=this.html.length){this.endOfChunkHit=!this.lastChunkWritten;return Kf.EOF}const n=this.html.charCodeAt(t);return n===Kf.CARRIAGE_RETURN?Kf.LINE_FEED:n}advance(){this.pos++;if(this.isEol){this.isEol=false;this.line++;this.lineStartPos=this.pos}if(this.pos>=this.html.length){this.endOfChunkHit=!this.lastChunkWritten;return Kf.EOF}let e=this.html.charCodeAt(this.pos);if(e===Kf.CARRIAGE_RETURN){this.isEol=true;this.skipNextNewLine=true;return Kf.LINE_FEED}if(e===Kf.LINE_FEED){this.isEol=true;if(this.skipNextNewLine){this.line--;this.skipNextNewLine=false;this._addGap();return this.advance()}}this.skipNextNewLine=false;if(Wf(e)){e=this._processSurrogate(e)}const t=this.handler.onParseError===null||e>31&&e<127||e===Kf.LINE_FEED||e===Kf.CARRIAGE_RETURN||e>159&&e<64976;if(!t){this._checkForProblematicCharacters(e)}return e}_checkForProblematicCharacters(e){if(Jf(e)){this._err(eh.controlCharacterInInputStream)}else if(Zf(e)){this._err(eh.noncharacterInInputStream)}}retreat(e){this.pos-=e;while(this.pos<this.lastGapPos){this.lastGapPos=this.gapStack.pop();this.pos--}this.isEol=false}}var ih;(function(e){e[e["CHARACTER"]=0]="CHARACTER";e[e["NULL_CHARACTER"]=1]="NULL_CHARACTER";e[e["WHITESPACE_CHARACTER"]=2]="WHITESPACE_CHARACTER";e[e["START_TAG"]=3]="START_TAG";e[e["END_TAG"]=4]="END_TAG";e[e["COMMENT"]=5]="COMMENT";e[e["DOCTYPE"]=6]="DOCTYPE";e[e["EOF"]=7]="EOF";e[e["HIBERNATION"]=8]="HIBERNATION"})(ih||(ih={}));function rh(e,t){for(let n=e.attrs.length-1;n>=0;n--){if(e.attrs[n].name===t){return e.attrs[n].value}}return null}const oh=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0))));const sh=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function lh(e){var t;if(e>=55296&&e<=57343||e>1114111){return 65533}return(t=sh.get(e))!==null&&t!==void 0?t:e}var ah;(function(e){e[e["NUM"]=35]="NUM";e[e["SEMI"]=59]="SEMI";e[e["EQUALS"]=61]="EQUALS";e[e["ZERO"]=48]="ZERO";e[e["NINE"]=57]="NINE";e[e["LOWER_A"]=97]="LOWER_A";e[e["LOWER_F"]=102]="LOWER_F";e[e["LOWER_X"]=120]="LOWER_X";e[e["LOWER_Z"]=122]="LOWER_Z";e[e["UPPER_A"]=65]="UPPER_A";e[e["UPPER_F"]=70]="UPPER_F";e[e["UPPER_Z"]=90]="UPPER_Z"})(ah||(ah={}));const uh=32;var ch;(function(e){e[e["VALUE_LENGTH"]=49152]="VALUE_LENGTH";e[e["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";e[e["JUMP_TABLE"]=127]="JUMP_TABLE"})(ch||(ch={}));function fh(e){return e>=ah.ZERO&&e<=ah.NINE}function hh(e){return e>=ah.UPPER_A&&e<=ah.UPPER_F||e>=ah.LOWER_A&&e<=ah.LOWER_F}function dh(e){return e>=ah.UPPER_A&&e<=ah.UPPER_Z||e>=ah.LOWER_A&&e<=ah.LOWER_Z||fh(e)}function ph(e){return e===ah.EQUALS||dh(e)}var mh;(function(e){e[e["EntityStart"]=0]="EntityStart";e[e["NumericStart"]=1]="NumericStart";e[e["NumericDecimal"]=2]="NumericDecimal";e[e["NumericHex"]=3]="NumericHex";e[e["NamedEntity"]=4]="NamedEntity"})(mh||(mh={}));var gh;(function(e){e[e["Legacy"]=0]="Legacy";e[e["Strict"]=1]="Strict";e[e["Attribute"]=2]="Attribute"})(gh||(gh={}));class bh{constructor(e,t,n){this.decodeTree=e;this.emitCodePoint=t;this.errors=n;this.state=mh.EntityStart;this.consumed=1;this.result=0;this.treeIndex=0;this.excess=1;this.decodeMode=gh.Strict}startEntity(e){this.decodeMode=e;this.state=mh.EntityStart;this.result=0;this.treeIndex=0;this.excess=1;this.consumed=1}write(e,t){switch(this.state){case mh.EntityStart:{if(e.charCodeAt(t)===ah.NUM){this.state=mh.NumericStart;this.consumed+=1;return this.stateNumericStart(e,t+1)}this.state=mh.NamedEntity;return this.stateNamedEntity(e,t)}case mh.NumericStart:{return this.stateNumericStart(e,t)}case mh.NumericDecimal:{return this.stateNumericDecimal(e,t)}case mh.NumericHex:{return this.stateNumericHex(e,t)}case mh.NamedEntity:{return this.stateNamedEntity(e,t)}}}stateNumericStart(e,t){if(t>=e.length){return-1}if((e.charCodeAt(t)|uh)===ah.LOWER_X){this.state=mh.NumericHex;this.consumed+=1;return this.stateNumericHex(e,t+1)}this.state=mh.NumericDecimal;return this.stateNumericDecimal(e,t)}addToNumericResult(e,t,n,i){if(t!==n){const r=n-t;this.result=this.result*Math.pow(i,r)+Number.parseInt(e.substr(t,r),i);this.consumed+=r}}stateNumericHex(e,t){const n=t;while(t<e.length){const i=e.charCodeAt(t);if(fh(i)||hh(i)){t+=1}else{this.addToNumericResult(e,n,t,16);return this.emitNumericEntity(i,3)}}this.addToNumericResult(e,n,t,16);return-1}stateNumericDecimal(e,t){const n=t;while(t<e.length){const i=e.charCodeAt(t);if(fh(i)){t+=1}else{this.addToNumericResult(e,n,t,10);return this.emitNumericEntity(i,2)}}this.addToNumericResult(e,n,t,10);return-1}emitNumericEntity(e,t){var n;if(this.consumed<=t){(n=this.errors)===null||n===void 0?void 0:n.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}if(e===ah.SEMI){this.consumed+=1}else if(this.decodeMode===gh.Strict){return 0}this.emitCodePoint(lh(this.result),this.consumed);if(this.errors){if(e!==ah.SEMI){this.errors.missingSemicolonAfterCharacterReference()}this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let i=n[this.treeIndex];let r=(i&ch.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);this.treeIndex=kh(n,i,this.treeIndex+Math.max(1,r),o);if(this.treeIndex<0){return this.result===0||this.decodeMode===gh.Attribute&&(r===0||ph(o))?0:this.emitNotTerminatedNamedEntity()}i=n[this.treeIndex];r=(i&ch.VALUE_LENGTH)>>14;if(r!==0){if(o===ah.SEMI){return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess)}if(this.decodeMode!==gh.Strict){this.result=this.treeIndex;this.consumed+=this.excess;this.excess=0}}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this;const i=(n[t]&ch.VALUE_LENGTH)>>14;this.emitNamedEntityData(t,i,this.consumed);(e=this.errors)===null||e===void 0?void 0:e.missingSemicolonAfterCharacterReference();return this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;this.emitCodePoint(t===1?i[e]&~ch.VALUE_LENGTH:i[e+1],n);if(t===3){this.emitCodePoint(i[e+2],n)}return n}end(){var e;switch(this.state){case mh.NamedEntity:{return this.result!==0&&(this.decodeMode!==gh.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0}case mh.NumericDecimal:{return this.emitNumericEntity(0,2)}case mh.NumericHex:{return this.emitNumericEntity(0,3)}case mh.NumericStart:{(e=this.errors)===null||e===void 0?void 0:e.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}case mh.EntityStart:{return 0}}}}function kh(e,t,n,i){const r=(t&ch.BRANCH_LENGTH)>>7;const o=t&ch.JUMP_TABLE;if(r===0){return o!==0&&i===o?n:-1}if(o){const t=i-o;return t<0||t>=r?-1:e[n+t]-1}let s=n;let l=s+r-1;while(s<=l){const t=s+l>>>1;const n=e[t];if(n<i){s=t+1}else if(n>i){l=t-1}else{return e[t+r]}}return-1}var yh;(function(e){e["HTML"]="http://www.w3.org/1999/xhtml";e["MATHML"]="http://www.w3.org/1998/Math/MathML";e["SVG"]="http://www.w3.org/2000/svg";e["XLINK"]="http://www.w3.org/1999/xlink";e["XML"]="http://www.w3.org/XML/1998/namespace";e["XMLNS"]="http://www.w3.org/2000/xmlns/"})(yh||(yh={}));var Dh;(function(e){e["TYPE"]="type";e["ACTION"]="action";e["ENCODING"]="encoding";e["PROMPT"]="prompt";e["NAME"]="name";e["COLOR"]="color";e["FACE"]="face";e["SIZE"]="size"})(Dh||(Dh={}));var wh;(function(e){e["NO_QUIRKS"]="no-quirks";e["QUIRKS"]="quirks";e["LIMITED_QUIRKS"]="limited-quirks"})(wh||(wh={}));var Eh;(function(e){e["A"]="a";e["ADDRESS"]="address";e["ANNOTATION_XML"]="annotation-xml";e["APPLET"]="applet";e["AREA"]="area";e["ARTICLE"]="article";e["ASIDE"]="aside";e["B"]="b";e["BASE"]="base";e["BASEFONT"]="basefont";e["BGSOUND"]="bgsound";e["BIG"]="big";e["BLOCKQUOTE"]="blockquote";e["BODY"]="body";e["BR"]="br";e["BUTTON"]="button";e["CAPTION"]="caption";e["CENTER"]="center";e["CODE"]="code";e["COL"]="col";e["COLGROUP"]="colgroup";e["DD"]="dd";e["DESC"]="desc";e["DETAILS"]="details";e["DIALOG"]="dialog";e["DIR"]="dir";e["DIV"]="div";e["DL"]="dl";e["DT"]="dt";e["EM"]="em";e["EMBED"]="embed";e["FIELDSET"]="fieldset";e["FIGCAPTION"]="figcaption";e["FIGURE"]="figure";e["FONT"]="font";e["FOOTER"]="footer";e["FOREIGN_OBJECT"]="foreignObject";e["FORM"]="form";e["FRAME"]="frame";e["FRAMESET"]="frameset";e["H1"]="h1";e["H2"]="h2";e["H3"]="h3";e["H4"]="h4";e["H5"]="h5";e["H6"]="h6";e["HEAD"]="head";e["HEADER"]="header";e["HGROUP"]="hgroup";e["HR"]="hr";e["HTML"]="html";e["I"]="i";e["IMG"]="img";e["IMAGE"]="image";e["INPUT"]="input";e["IFRAME"]="iframe";e["KEYGEN"]="keygen";e["LABEL"]="label";e["LI"]="li";e["LINK"]="link";e["LISTING"]="listing";e["MAIN"]="main";e["MALIGNMARK"]="malignmark";e["MARQUEE"]="marquee";e["MATH"]="math";e["MENU"]="menu";e["META"]="meta";e["MGLYPH"]="mglyph";e["MI"]="mi";e["MO"]="mo";e["MN"]="mn";e["MS"]="ms";e["MTEXT"]="mtext";e["NAV"]="nav";e["NOBR"]="nobr";e["NOFRAMES"]="noframes";e["NOEMBED"]="noembed";e["NOSCRIPT"]="noscript";e["OBJECT"]="object";e["OL"]="ol";e["OPTGROUP"]="optgroup";e["OPTION"]="option";e["P"]="p";e["PARAM"]="param";e["PLAINTEXT"]="plaintext";e["PRE"]="pre";e["RB"]="rb";e["RP"]="rp";e["RT"]="rt";e["RTC"]="rtc";e["RUBY"]="ruby";e["S"]="s";e["SCRIPT"]="script";e["SEARCH"]="search";e["SECTION"]="section";e["SELECT"]="select";e["SOURCE"]="source";e["SMALL"]="small";e["SPAN"]="span";e["STRIKE"]="strike";e["STRONG"]="strong";e["STYLE"]="style";e["SUB"]="sub";e["SUMMARY"]="summary";e["SUP"]="sup";e["TABLE"]="table";e["TBODY"]="tbody";e["TEMPLATE"]="template";e["TEXTAREA"]="textarea";e["TFOOT"]="tfoot";e["TD"]="td";e["TH"]="th";e["THEAD"]="thead";e["TITLE"]="title";e["TR"]="tr";e["TRACK"]="track";e["TT"]="tt";e["U"]="u";e["UL"]="ul";e["SVG"]="svg";e["VAR"]="var";e["WBR"]="wbr";e["XMP"]="xmp"})(Eh||(Eh={}));var vh;(function(e){e[e["UNKNOWN"]=0]="UNKNOWN";e[e["A"]=1]="A";e[e["ADDRESS"]=2]="ADDRESS";e[e["ANNOTATION_XML"]=3]="ANNOTATION_XML";e[e["APPLET"]=4]="APPLET";e[e["AREA"]=5]="AREA";e[e["ARTICLE"]=6]="ARTICLE";e[e["ASIDE"]=7]="ASIDE";e[e["B"]=8]="B";e[e["BASE"]=9]="BASE";e[e["BASEFONT"]=10]="BASEFONT";e[e["BGSOUND"]=11]="BGSOUND";e[e["BIG"]=12]="BIG";e[e["BLOCKQUOTE"]=13]="BLOCKQUOTE";e[e["BODY"]=14]="BODY";e[e["BR"]=15]="BR";e[e["BUTTON"]=16]="BUTTON";e[e["CAPTION"]=17]="CAPTION";e[e["CENTER"]=18]="CENTER";e[e["CODE"]=19]="CODE";e[e["COL"]=20]="COL";e[e["COLGROUP"]=21]="COLGROUP";e[e["DD"]=22]="DD";e[e["DESC"]=23]="DESC";e[e["DETAILS"]=24]="DETAILS";e[e["DIALOG"]=25]="DIALOG";e[e["DIR"]=26]="DIR";e[e["DIV"]=27]="DIV";e[e["DL"]=28]="DL";e[e["DT"]=29]="DT";e[e["EM"]=30]="EM";e[e["EMBED"]=31]="EMBED";e[e["FIELDSET"]=32]="FIELDSET";e[e["FIGCAPTION"]=33]="FIGCAPTION";e[e["FIGURE"]=34]="FIGURE";e[e["FONT"]=35]="FONT";e[e["FOOTER"]=36]="FOOTER";e[e["FOREIGN_OBJECT"]=37]="FOREIGN_OBJECT";e[e["FORM"]=38]="FORM";e[e["FRAME"]=39]="FRAME";e[e["FRAMESET"]=40]="FRAMESET";e[e["H1"]=41]="H1";e[e["H2"]=42]="H2";e[e["H3"]=43]="H3";e[e["H4"]=44]="H4";e[e["H5"]=45]="H5";e[e["H6"]=46]="H6";e[e["HEAD"]=47]="HEAD";e[e["HEADER"]=48]="HEADER";e[e["HGROUP"]=49]="HGROUP";e[e["HR"]=50]="HR";e[e["HTML"]=51]="HTML";e[e["I"]=52]="I";e[e["IMG"]=53]="IMG";e[e["IMAGE"]=54]="IMAGE";e[e["INPUT"]=55]="INPUT";e[e["IFRAME"]=56]="IFRAME";e[e["KEYGEN"]=57]="KEYGEN";e[e["LABEL"]=58]="LABEL";e[e["LI"]=59]="LI";e[e["LINK"]=60]="LINK";e[e["LISTING"]=61]="LISTING";e[e["MAIN"]=62]="MAIN";e[e["MALIGNMARK"]=63]="MALIGNMARK";e[e["MARQUEE"]=64]="MARQUEE";e[e["MATH"]=65]="MATH";e[e["MENU"]=66]="MENU";e[e["META"]=67]="META";e[e["MGLYPH"]=68]="MGLYPH";e[e["MI"]=69]="MI";e[e["MO"]=70]="MO";e[e["MN"]=71]="MN";e[e["MS"]=72]="MS";e[e["MTEXT"]=73]="MTEXT";e[e["NAV"]=74]="NAV";e[e["NOBR"]=75]="NOBR";e[e["NOFRAMES"]=76]="NOFRAMES";e[e["NOEMBED"]=77]="NOEMBED";e[e["NOSCRIPT"]=78]="NOSCRIPT";e[e["OBJECT"]=79]="OBJECT";e[e["OL"]=80]="OL";e[e["OPTGROUP"]=81]="OPTGROUP";e[e["OPTION"]=82]="OPTION";e[e["P"]=83]="P";e[e["PARAM"]=84]="PARAM";e[e["PLAINTEXT"]=85]="PLAINTEXT";e[e["PRE"]=86]="PRE";e[e["RB"]=87]="RB";e[e["RP"]=88]="RP";e[e["RT"]=89]="RT";e[e["RTC"]=90]="RTC";e[e["RUBY"]=91]="RUBY";e[e["S"]=92]="S";e[e["SCRIPT"]=93]="SCRIPT";e[e["SEARCH"]=94]="SEARCH";e[e["SECTION"]=95]="SECTION";e[e["SELECT"]=96]="SELECT";e[e["SOURCE"]=97]="SOURCE";e[e["SMALL"]=98]="SMALL";e[e["SPAN"]=99]="SPAN";e[e["STRIKE"]=100]="STRIKE";e[e["STRONG"]=101]="STRONG";e[e["STYLE"]=102]="STYLE";e[e["SUB"]=103]="SUB";e[e["SUMMARY"]=104]="SUMMARY";e[e["SUP"]=105]="SUP";e[e["TABLE"]=106]="TABLE";e[e["TBODY"]=107]="TBODY";e[e["TEMPLATE"]=108]="TEMPLATE";e[e["TEXTAREA"]=109]="TEXTAREA";e[e["TFOOT"]=110]="TFOOT";e[e["TD"]=111]="TD";e[e["TH"]=112]="TH";e[e["THEAD"]=113]="THEAD";e[e["TITLE"]=114]="TITLE";e[e["TR"]=115]="TR";e[e["TRACK"]=116]="TRACK";e[e["TT"]=117]="TT";e[e["U"]=118]="U";e[e["UL"]=119]="UL";e[e["SVG"]=120]="SVG";e[e["VAR"]=121]="VAR";e[e["WBR"]=122]="WBR";e[e["XMP"]=123]="XMP"})(vh||(vh={}));const Ah=new Map([[Eh.A,vh.A],[Eh.ADDRESS,vh.ADDRESS],[Eh.ANNOTATION_XML,vh.ANNOTATION_XML],[Eh.APPLET,vh.APPLET],[Eh.AREA,vh.AREA],[Eh.ARTICLE,vh.ARTICLE],[Eh.ASIDE,vh.ASIDE],[Eh.B,vh.B],[Eh.BASE,vh.BASE],[Eh.BASEFONT,vh.BASEFONT],[Eh.BGSOUND,vh.BGSOUND],[Eh.BIG,vh.BIG],[Eh.BLOCKQUOTE,vh.BLOCKQUOTE],[Eh.BODY,vh.BODY],[Eh.BR,vh.BR],[Eh.BUTTON,vh.BUTTON],[Eh.CAPTION,vh.CAPTION],[Eh.CENTER,vh.CENTER],[Eh.CODE,vh.CODE],[Eh.COL,vh.COL],[Eh.COLGROUP,vh.COLGROUP],[Eh.DD,vh.DD],[Eh.DESC,vh.DESC],[Eh.DETAILS,vh.DETAILS],[Eh.DIALOG,vh.DIALOG],[Eh.DIR,vh.DIR],[Eh.DIV,vh.DIV],[Eh.DL,vh.DL],[Eh.DT,vh.DT],[Eh.EM,vh.EM],[Eh.EMBED,vh.EMBED],[Eh.FIELDSET,vh.FIELDSET],[Eh.FIGCAPTION,vh.FIGCAPTION],[Eh.FIGURE,vh.FIGURE],[Eh.FONT,vh.FONT],[Eh.FOOTER,vh.FOOTER],[Eh.FOREIGN_OBJECT,vh.FOREIGN_OBJECT],[Eh.FORM,vh.FORM],[Eh.FRAME,vh.FRAME],[Eh.FRAMESET,vh.FRAMESET],[Eh.H1,vh.H1],[Eh.H2,vh.H2],[Eh.H3,vh.H3],[Eh.H4,vh.H4],[Eh.H5,vh.H5],[Eh.H6,vh.H6],[Eh.HEAD,vh.HEAD],[Eh.HEADER,vh.HEADER],[Eh.HGROUP,vh.HGROUP],[Eh.HR,vh.HR],[Eh.HTML,vh.HTML],[Eh.I,vh.I],[Eh.IMG,vh.IMG],[Eh.IMAGE,vh.IMAGE],[Eh.INPUT,vh.INPUT],[Eh.IFRAME,vh.IFRAME],[Eh.KEYGEN,vh.KEYGEN],[Eh.LABEL,vh.LABEL],[Eh.LI,vh.LI],[Eh.LINK,vh.LINK],[Eh.LISTING,vh.LISTING],[Eh.MAIN,vh.MAIN],[Eh.MALIGNMARK,vh.MALIGNMARK],[Eh.MARQUEE,vh.MARQUEE],[Eh.MATH,vh.MATH],[Eh.MENU,vh.MENU],[Eh.META,vh.META],[Eh.MGLYPH,vh.MGLYPH],[Eh.MI,vh.MI],[Eh.MO,vh.MO],[Eh.MN,vh.MN],[Eh.MS,vh.MS],[Eh.MTEXT,vh.MTEXT],[Eh.NAV,vh.NAV],[Eh.NOBR,vh.NOBR],[Eh.NOFRAMES,vh.NOFRAMES],[Eh.NOEMBED,vh.NOEMBED],[Eh.NOSCRIPT,vh.NOSCRIPT],[Eh.OBJECT,vh.OBJECT],[Eh.OL,vh.OL],[Eh.OPTGROUP,vh.OPTGROUP],[Eh.OPTION,vh.OPTION],[Eh.P,vh.P],[Eh.PARAM,vh.PARAM],[Eh.PLAINTEXT,vh.PLAINTEXT],[Eh.PRE,vh.PRE],[Eh.RB,vh.RB],[Eh.RP,vh.RP],[Eh.RT,vh.RT],[Eh.RTC,vh.RTC],[Eh.RUBY,vh.RUBY],[Eh.S,vh.S],[Eh.SCRIPT,vh.SCRIPT],[Eh.SEARCH,vh.SEARCH],[Eh.SECTION,vh.SECTION],[Eh.SELECT,vh.SELECT],[Eh.SOURCE,vh.SOURCE],[Eh.SMALL,vh.SMALL],[Eh.SPAN,vh.SPAN],[Eh.STRIKE,vh.STRIKE],[Eh.STRONG,vh.STRONG],[Eh.STYLE,vh.STYLE],[Eh.SUB,vh.SUB],[Eh.SUMMARY,vh.SUMMARY],[Eh.SUP,vh.SUP],[Eh.TABLE,vh.TABLE],[Eh.TBODY,vh.TBODY],[Eh.TEMPLATE,vh.TEMPLATE],[Eh.TEXTAREA,vh.TEXTAREA],[Eh.TFOOT,vh.TFOOT],[Eh.TD,vh.TD],[Eh.TH,vh.TH],[Eh.THEAD,vh.THEAD],[Eh.TITLE,vh.TITLE],[Eh.TR,vh.TR],[Eh.TRACK,vh.TRACK],[Eh.TT,vh.TT],[Eh.U,vh.U],[Eh.UL,vh.UL],[Eh.SVG,vh.SVG],[Eh.VAR,vh.VAR],[Eh.WBR,vh.WBR],[Eh.XMP,vh.XMP]]);function Ch(e){var t;return(t=Ah.get(e))!==null&&t!==void 0?t:vh.UNKNOWN}const Fh=vh;const Sh={[yh.HTML]:new Set([Fh.ADDRESS,Fh.APPLET,Fh.AREA,Fh.ARTICLE,Fh.ASIDE,Fh.BASE,Fh.BASEFONT,Fh.BGSOUND,Fh.BLOCKQUOTE,Fh.BODY,Fh.BR,Fh.BUTTON,Fh.CAPTION,Fh.CENTER,Fh.COL,Fh.COLGROUP,Fh.DD,Fh.DETAILS,Fh.DIR,Fh.DIV,Fh.DL,Fh.DT,Fh.EMBED,Fh.FIELDSET,Fh.FIGCAPTION,Fh.FIGURE,Fh.FOOTER,Fh.FORM,Fh.FRAME,Fh.FRAMESET,Fh.H1,Fh.H2,Fh.H3,Fh.H4,Fh.H5,Fh.H6,Fh.HEAD,Fh.HEADER,Fh.HGROUP,Fh.HR,Fh.HTML,Fh.IFRAME,Fh.IMG,Fh.INPUT,Fh.LI,Fh.LINK,Fh.LISTING,Fh.MAIN,Fh.MARQUEE,Fh.MENU,Fh.META,Fh.NAV,Fh.NOEMBED,Fh.NOFRAMES,Fh.NOSCRIPT,Fh.OBJECT,Fh.OL,Fh.P,Fh.PARAM,Fh.PLAINTEXT,Fh.PRE,Fh.SCRIPT,Fh.SECTION,Fh.SELECT,Fh.SOURCE,Fh.STYLE,Fh.SUMMARY,Fh.TABLE,Fh.TBODY,Fh.TD,Fh.TEMPLATE,Fh.TEXTAREA,Fh.TFOOT,Fh.TH,Fh.THEAD,Fh.TITLE,Fh.TR,Fh.TRACK,Fh.UL,Fh.WBR,Fh.XMP]),[yh.MATHML]:new Set([Fh.MI,Fh.MO,Fh.MN,Fh.MS,Fh.MTEXT,Fh.ANNOTATION_XML]),[yh.SVG]:new Set([Fh.TITLE,Fh.FOREIGN_OBJECT,Fh.DESC]),[yh.XLINK]:new Set,[yh.XML]:new Set,[yh.XMLNS]:new Set};const xh=new Set([Fh.H1,Fh.H2,Fh.H3,Fh.H4,Fh.H5,Fh.H6]);var Th;(function(e){e[e["DATA"]=0]="DATA";e[e["RCDATA"]=1]="RCDATA";e[e["RAWTEXT"]=2]="RAWTEXT";e[e["SCRIPT_DATA"]=3]="SCRIPT_DATA";e[e["PLAINTEXT"]=4]="PLAINTEXT";e[e["TAG_OPEN"]=5]="TAG_OPEN";e[e["END_TAG_OPEN"]=6]="END_TAG_OPEN";e[e["TAG_NAME"]=7]="TAG_NAME";e[e["RCDATA_LESS_THAN_SIGN"]=8]="RCDATA_LESS_THAN_SIGN";e[e["RCDATA_END_TAG_OPEN"]=9]="RCDATA_END_TAG_OPEN";e[e["RCDATA_END_TAG_NAME"]=10]="RCDATA_END_TAG_NAME";e[e["RAWTEXT_LESS_THAN_SIGN"]=11]="RAWTEXT_LESS_THAN_SIGN";e[e["RAWTEXT_END_TAG_OPEN"]=12]="RAWTEXT_END_TAG_OPEN";e[e["RAWTEXT_END_TAG_NAME"]=13]="RAWTEXT_END_TAG_NAME";e[e["SCRIPT_DATA_LESS_THAN_SIGN"]=14]="SCRIPT_DATA_LESS_THAN_SIGN";e[e["SCRIPT_DATA_END_TAG_OPEN"]=15]="SCRIPT_DATA_END_TAG_OPEN";e[e["SCRIPT_DATA_END_TAG_NAME"]=16]="SCRIPT_DATA_END_TAG_NAME";e[e["SCRIPT_DATA_ESCAPE_START"]=17]="SCRIPT_DATA_ESCAPE_START";e[e["SCRIPT_DATA_ESCAPE_START_DASH"]=18]="SCRIPT_DATA_ESCAPE_START_DASH";e[e["SCRIPT_DATA_ESCAPED"]=19]="SCRIPT_DATA_ESCAPED";e[e["SCRIPT_DATA_ESCAPED_DASH"]=20]="SCRIPT_DATA_ESCAPED_DASH";e[e["SCRIPT_DATA_ESCAPED_DASH_DASH"]=21]="SCRIPT_DATA_ESCAPED_DASH_DASH";e[e["SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN"]=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN";e[e["SCRIPT_DATA_ESCAPED_END_TAG_OPEN"]=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN";e[e["SCRIPT_DATA_ESCAPED_END_TAG_NAME"]=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME";e[e["SCRIPT_DATA_DOUBLE_ESCAPE_START"]=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START";e[e["SCRIPT_DATA_DOUBLE_ESCAPED"]=26]="SCRIPT_DATA_DOUBLE_ESCAPED";e[e["SCRIPT_DATA_DOUBLE_ESCAPED_DASH"]=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH";e[e["SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH"]=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH";e[e["SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN"]=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN";e[e["SCRIPT_DATA_DOUBLE_ESCAPE_END"]=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END";e[e["BEFORE_ATTRIBUTE_NAME"]=31]="BEFORE_ATTRIBUTE_NAME";e[e["ATTRIBUTE_NAME"]=32]="ATTRIBUTE_NAME";e[e["AFTER_ATTRIBUTE_NAME"]=33]="AFTER_ATTRIBUTE_NAME";e[e["BEFORE_ATTRIBUTE_VALUE"]=34]="BEFORE_ATTRIBUTE_VALUE";e[e["ATTRIBUTE_VALUE_DOUBLE_QUOTED"]=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED";e[e["ATTRIBUTE_VALUE_SINGLE_QUOTED"]=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED";e[e["ATTRIBUTE_VALUE_UNQUOTED"]=37]="ATTRIBUTE_VALUE_UNQUOTED";e[e["AFTER_ATTRIBUTE_VALUE_QUOTED"]=38]="AFTER_ATTRIBUTE_VALUE_QUOTED";e[e["SELF_CLOSING_START_TAG"]=39]="SELF_CLOSING_START_TAG";e[e["BOGUS_COMMENT"]=40]="BOGUS_COMMENT";e[e["MARKUP_DECLARATION_OPEN"]=41]="MARKUP_DECLARATION_OPEN";e[e["COMMENT_START"]=42]="COMMENT_START";e[e["COMMENT_START_DASH"]=43]="COMMENT_START_DASH";e[e["COMMENT"]=44]="COMMENT";e[e["COMMENT_LESS_THAN_SIGN"]=45]="COMMENT_LESS_THAN_SIGN";e[e["COMMENT_LESS_THAN_SIGN_BANG"]=46]="COMMENT_LESS_THAN_SIGN_BANG";e[e["COMMENT_LESS_THAN_SIGN_BANG_DASH"]=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH";e[e["COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH"]=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH";e[e["COMMENT_END_DASH"]=49]="COMMENT_END_DASH";e[e["COMMENT_END"]=50]="COMMENT_END";e[e["COMMENT_END_BANG"]=51]="COMMENT_END_BANG";e[e["DOCTYPE"]=52]="DOCTYPE";e[e["BEFORE_DOCTYPE_NAME"]=53]="BEFORE_DOCTYPE_NAME";e[e["DOCTYPE_NAME"]=54]="DOCTYPE_NAME";e[e["AFTER_DOCTYPE_NAME"]=55]="AFTER_DOCTYPE_NAME";e[e["AFTER_DOCTYPE_PUBLIC_KEYWORD"]=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD";e[e["BEFORE_DOCTYPE_PUBLIC_IDENTIFIER"]=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER";e[e["DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED"]=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED";e[e["DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED"]=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED";e[e["AFTER_DOCTYPE_PUBLIC_IDENTIFIER"]=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER";e[e["BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS"]=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS";e[e["AFTER_DOCTYPE_SYSTEM_KEYWORD"]=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD";e[e["BEFORE_DOCTYPE_SYSTEM_IDENTIFIER"]=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER";e[e["DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED"]=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED";e[e["DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED"]=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED";e[e["AFTER_DOCTYPE_SYSTEM_IDENTIFIER"]=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER";e[e["BOGUS_DOCTYPE"]=67]="BOGUS_DOCTYPE";e[e["CDATA_SECTION"]=68]="CDATA_SECTION";e[e["CDATA_SECTION_BRACKET"]=69]="CDATA_SECTION_BRACKET";e[e["CDATA_SECTION_END"]=70]="CDATA_SECTION_END";e[e["CHARACTER_REFERENCE"]=71]="CHARACTER_REFERENCE";e[e["AMBIGUOUS_AMPERSAND"]=72]="AMBIGUOUS_AMPERSAND"})(Th||(Th={}));const Oh={DATA:Th.DATA,RCDATA:Th.RCDATA,RAWTEXT:Th.RAWTEXT,SCRIPT_DATA:Th.SCRIPT_DATA,PLAINTEXT:Th.PLAINTEXT};function Nh(e){return e>=Kf.DIGIT_0&&e<=Kf.DIGIT_9}function Lh(e){return e>=Kf.LATIN_CAPITAL_A&&e<=Kf.LATIN_CAPITAL_Z}function Ih(e){return e>=Kf.LATIN_SMALL_A&&e<=Kf.LATIN_SMALL_Z}function _h(e){return Ih(e)||Lh(e)}function Mh(e){return _h(e)||Nh(e)}function Bh(e){return e+32}function Rh(e){return e===Kf.SPACE||e===Kf.LINE_FEED||e===Kf.TABULATION||e===Kf.FORM_FEED}function Ph(e){return Rh(e)||e===Kf.SOLIDUS||e===Kf.GREATER_THAN_SIGN}function qh(e){if(e===Kf.NULL){return eh.nullCharacterReference}else if(e>1114111){return eh.characterReferenceOutsideUnicodeRange}else if(Wf(e)){return eh.surrogateCharacterReference}else if(Zf(e)){return eh.noncharacterCharacterReference}else if(Jf(e)||e===Kf.CARRIAGE_RETURN){return eh.controlCharacterReference}return null}class Uh{constructor(e,t){this.options=e;this.handler=t;this.paused=false;this.inLoop=false;this.inForeignNode=false;this.lastStartTagName="";this.active=false;this.state=Th.DATA;this.returnState=Th.DATA;this.entityStartPos=0;this.consumedAfterSnapshot=-1;this.currentCharacterToken=null;this.currentToken=null;this.currentAttr={name:"",value:""};this.preprocessor=new nh(t);this.currentLocation=this.getCurrentLocation(-1);this.entityDecoder=new bh(oh,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1;this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(eh.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(eh.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=qh(e);if(t)this._err(t,1)}}:undefined)}_err(e,t=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0?void 0:i.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){if(!this.options.sourceCodeLocationInfo){return null}return{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}}_runParsingLoop(){if(this.inLoop)return;this.inLoop=true;while(this.active&&!this.paused){this.consumedAfterSnapshot=0;const e=this._consume();if(!this._ensureHibernation()){this._callState(e)}}this.inLoop=false}pause(){this.paused=true}resume(e){if(!this.paused){throw new Error("Parser was already resumed")}this.paused=false;if(this.inLoop)return;this._runParsingLoop();if(!this.paused){e===null||e===void 0?void 0:e()}}write(e,t,n){this.active=true;this.preprocessor.write(e,t);this._runParsingLoop();if(!this.paused){n===null||n===void 0?void 0:n()}}insertHtmlAtCurrentPos(e){this.active=true;this.preprocessor.insertHtmlAtCurrentPos(e);this._runParsingLoop()}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){this.preprocessor.retreat(this.consumedAfterSnapshot);this.consumedAfterSnapshot=0;this.active=false;return true}return false}_consume(){this.consumedAfterSnapshot++;return this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++){this.preprocessor.advance()}}_consumeSequenceIfMatch(e,t){if(this.preprocessor.startsWith(e,t)){this._advanceBy(e.length-1);return true}return false}_createStartTagToken(){this.currentToken={type:ih.START_TAG,tagName:"",tagID:vh.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ih.END_TAG,tagName:"",tagID:vh.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:ih.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:ih.DOCTYPE,name:e,forceQuirks:false,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""};this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e;var t;const n=this.currentToken;if(rh(n,this.currentAttr.name)===null){n.attrs.push(this.currentAttr);if(n.location&&this.currentLocation){const i=(e=(t=n.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation;this._leaveAttrValue()}}else{this._err(eh.duplicateAttribute)}}_leaveAttrValue(){if(this.currentLocation){this.currentLocation.endLine=this.preprocessor.line;this.currentLocation.endCol=this.preprocessor.col;this.currentLocation.endOffset=this.preprocessor.offset}}prepareToken(e){this._emitCurrentCharacterToken(e.location);this.currentToken=null;if(e.location){e.location.endLine=this.preprocessor.line;e.location.endCol=this.preprocessor.col+1;e.location.endOffset=this.preprocessor.offset+1}this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e);e.tagID=Ch(e.tagName);if(e.type===ih.START_TAG){this.lastStartTagName=e.tagName;this.handler.onStartTag(e)}else{if(e.attrs.length>0){this._err(eh.endTagWithAttributes)}if(e.selfClosing){this._err(eh.endTagWithTrailingSolidus)}this.handler.onEndTag(e)}this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e);this.handler.onComment(e);this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e);this.handler.onDoctype(e);this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){if(e&&this.currentCharacterToken.location){this.currentCharacterToken.location.endLine=e.startLine;this.currentCharacterToken.location.endCol=e.startCol;this.currentCharacterToken.location.endOffset=e.startOffset}switch(this.currentCharacterToken.type){case ih.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ih.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ih.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);if(e){e.endLine=e.startLine;e.endCol=e.startCol;e.endOffset=e.startOffset}this._emitCurrentCharacterToken(e);this.handler.onEof({type:ih.EOF,location:e});this.active=false}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else{this.currentLocation=this.getCurrentLocation(0);this._emitCurrentCharacterToken(this.currentLocation);this.preprocessor.dropParsedChunk()}}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=Rh(e)?ih.WHITESPACE_CHARACTER:e===Kf.NULL?ih.NULL_CHARACTER:ih.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(ih.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state;this.state=Th.CHARACTER_REFERENCE;this.entityStartPos=this.preprocessor.pos;this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?gh.Attribute:gh.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Th.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Th.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Th.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){if(this._isCharacterReferenceInAttribute()){this.currentAttr.value+=String.fromCodePoint(e)}else{this._emitCodePoint(e)}}_callState(e){switch(this.state){case Th.DATA:{this._stateData(e);break}case Th.RCDATA:{this._stateRcdata(e);break}case Th.RAWTEXT:{this._stateRawtext(e);break}case Th.SCRIPT_DATA:{this._stateScriptData(e);break}case Th.PLAINTEXT:{this._statePlaintext(e);break}case Th.TAG_OPEN:{this._stateTagOpen(e);break}case Th.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case Th.TAG_NAME:{this._stateTagName(e);break}case Th.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case Th.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case Th.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case Th.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case Th.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case Th.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case Th.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case Th.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case Th.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case Th.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case Th.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case Th.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case Th.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case Th.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case Th.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case Th.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case Th.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case Th.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case Th.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case Th.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case Th.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case Th.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case Th.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case Th.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case Th.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case Th.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case Th.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case Th.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case Th.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case Th.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case Th.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case Th.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case Th.BOGUS_COMMENT:{this._stateBogusComment(e);break}case Th.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case Th.COMMENT_START:{this._stateCommentStart(e);break}case Th.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case Th.COMMENT:{this._stateComment(e);break}case Th.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case Th.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case Th.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case Th.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case Th.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case Th.COMMENT_END:{this._stateCommentEnd(e);break}case Th.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case Th.DOCTYPE:{this._stateDoctype(e);break}case Th.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case Th.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case Th.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case Th.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case Th.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case Th.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case Th.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case Th.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case Th.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case Th.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case Th.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case Th.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case Th.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case Th.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case Th.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case Th.CDATA_SECTION:{this._stateCdataSection(e);break}case Th.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case Th.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case Th.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Th.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:{throw new Error("Unknown state")}}}_stateData(e){switch(e){case Kf.LESS_THAN_SIGN:{this.state=Th.TAG_OPEN;break}case Kf.AMPERSAND:{this._startCharacterReference();break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this._emitCodePoint(e);break}case Kf.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRcdata(e){switch(e){case Kf.AMPERSAND:{this._startCharacterReference();break}case Kf.LESS_THAN_SIGN:{this.state=Th.RCDATA_LESS_THAN_SIGN;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this._emitChars(Gf);break}case Kf.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRawtext(e){switch(e){case Kf.LESS_THAN_SIGN:{this.state=Th.RAWTEXT_LESS_THAN_SIGN;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this._emitChars(Gf);break}case Kf.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptData(e){switch(e){case Kf.LESS_THAN_SIGN:{this.state=Th.SCRIPT_DATA_LESS_THAN_SIGN;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this._emitChars(Gf);break}case Kf.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_statePlaintext(e){switch(e){case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this._emitChars(Gf);break}case Kf.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateTagOpen(e){if(_h(e)){this._createStartTagToken();this.state=Th.TAG_NAME;this._stateTagName(e)}else switch(e){case Kf.EXCLAMATION_MARK:{this.state=Th.MARKUP_DECLARATION_OPEN;break}case Kf.SOLIDUS:{this.state=Th.END_TAG_OPEN;break}case Kf.QUESTION_MARK:{this._err(eh.unexpectedQuestionMarkInsteadOfTagName);this._createCommentToken(1);this.state=Th.BOGUS_COMMENT;this._stateBogusComment(e);break}case Kf.EOF:{this._err(eh.eofBeforeTagName);this._emitChars("<");this._emitEOFToken();break}default:{this._err(eh.invalidFirstCharacterOfTagName);this._emitChars("<");this.state=Th.DATA;this._stateData(e)}}}_stateEndTagOpen(e){if(_h(e)){this._createEndTagToken();this.state=Th.TAG_NAME;this._stateTagName(e)}else switch(e){case Kf.GREATER_THAN_SIGN:{this._err(eh.missingEndTagName);this.state=Th.DATA;break}case Kf.EOF:{this._err(eh.eofBeforeTagName);this._emitChars("</");this._emitEOFToken();break}default:{this._err(eh.invalidFirstCharacterOfTagName);this._createCommentToken(2);this.state=Th.BOGUS_COMMENT;this._stateBogusComment(e)}}}_stateTagName(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{this.state=Th.BEFORE_ATTRIBUTE_NAME;break}case Kf.SOLIDUS:{this.state=Th.SELF_CLOSING_START_TAG;break}case Kf.GREATER_THAN_SIGN:{this.state=Th.DATA;this.emitCurrentTagToken();break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);t.tagName+=Gf;break}case Kf.EOF:{this._err(eh.eofInTag);this._emitEOFToken();break}default:{t.tagName+=String.fromCodePoint(Lh(e)?Bh(e):e)}}}_stateRcdataLessThanSign(e){if(e===Kf.SOLIDUS){this.state=Th.RCDATA_END_TAG_OPEN}else{this._emitChars("<");this.state=Th.RCDATA;this._stateRcdata(e)}}_stateRcdataEndTagOpen(e){if(_h(e)){this.state=Th.RCDATA_END_TAG_NAME;this._stateRcdataEndTagName(e)}else{this._emitChars("</");this.state=Th.RCDATA;this._stateRcdata(e)}}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,false)){return!this._ensureHibernation()}this._createEndTagToken();const t=this.currentToken;t.tagName=this.lastStartTagName;const n=this.preprocessor.peek(this.lastStartTagName.length);switch(n){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{this._advanceBy(this.lastStartTagName.length);this.state=Th.BEFORE_ATTRIBUTE_NAME;return false}case Kf.SOLIDUS:{this._advanceBy(this.lastStartTagName.length);this.state=Th.SELF_CLOSING_START_TAG;return false}case Kf.GREATER_THAN_SIGN:{this._advanceBy(this.lastStartTagName.length);this.emitCurrentTagToken();this.state=Th.DATA;return false}default:{return!this._ensureHibernation()}}}_stateRcdataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Th.RCDATA;this._stateRcdata(e)}}_stateRawtextLessThanSign(e){if(e===Kf.SOLIDUS){this.state=Th.RAWTEXT_END_TAG_OPEN}else{this._emitChars("<");this.state=Th.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagOpen(e){if(_h(e)){this.state=Th.RAWTEXT_END_TAG_NAME;this._stateRawtextEndTagName(e)}else{this._emitChars("</");this.state=Th.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Th.RAWTEXT;this._stateRawtext(e)}}_stateScriptDataLessThanSign(e){switch(e){case Kf.SOLIDUS:{this.state=Th.SCRIPT_DATA_END_TAG_OPEN;break}case Kf.EXCLAMATION_MARK:{this.state=Th.SCRIPT_DATA_ESCAPE_START;this._emitChars("<!");break}default:{this._emitChars("<");this.state=Th.SCRIPT_DATA;this._stateScriptData(e)}}}_stateScriptDataEndTagOpen(e){if(_h(e)){this.state=Th.SCRIPT_DATA_END_TAG_NAME;this._stateScriptDataEndTagName(e)}else{this._emitChars("</");this.state=Th.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Th.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStart(e){if(e===Kf.HYPHEN_MINUS){this.state=Th.SCRIPT_DATA_ESCAPE_START_DASH;this._emitChars("-")}else{this.state=Th.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStartDash(e){if(e===Kf.HYPHEN_MINUS){this.state=Th.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-")}else{this.state=Th.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscaped(e){switch(e){case Kf.HYPHEN_MINUS:{this.state=Th.SCRIPT_DATA_ESCAPED_DASH;this._emitChars("-");break}case Kf.LESS_THAN_SIGN:{this.state=Th.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this._emitChars(Gf);break}case Kf.EOF:{this._err(eh.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataEscapedDash(e){switch(e){case Kf.HYPHEN_MINUS:{this.state=Th.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-");break}case Kf.LESS_THAN_SIGN:{this.state=Th.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this.state=Th.SCRIPT_DATA_ESCAPED;this._emitChars(Gf);break}case Kf.EOF:{this._err(eh.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Th.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedDashDash(e){switch(e){case Kf.HYPHEN_MINUS:{this._emitChars("-");break}case Kf.LESS_THAN_SIGN:{this.state=Th.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Kf.GREATER_THAN_SIGN:{this.state=Th.SCRIPT_DATA;this._emitChars(">");break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this.state=Th.SCRIPT_DATA_ESCAPED;this._emitChars(Gf);break}case Kf.EOF:{this._err(eh.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Th.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedLessThanSign(e){if(e===Kf.SOLIDUS){this.state=Th.SCRIPT_DATA_ESCAPED_END_TAG_OPEN}else if(_h(e)){this._emitChars("<");this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPE_START;this._stateScriptDataDoubleEscapeStart(e)}else{this._emitChars("<");this.state=Th.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagOpen(e){if(_h(e)){this.state=Th.SCRIPT_DATA_ESCAPED_END_TAG_NAME;this._stateScriptDataEscapedEndTagName(e)}else{this._emitChars("</");this.state=Th.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Th.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Yf.SCRIPT,false)&&Ph(this.preprocessor.peek(Yf.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<Yf.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED}else if(!this._ensureHibernation()){this.state=Th.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscaped(e){switch(e){case Kf.HYPHEN_MINUS:{this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED_DASH;this._emitChars("-");break}case Kf.LESS_THAN_SIGN:{this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this._emitChars(Gf);break}case Kf.EOF:{this._err(eh.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Kf.HYPHEN_MINUS:{this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH;this._emitChars("-");break}case Kf.LESS_THAN_SIGN:{this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(Gf);break}case Kf.EOF:{this._err(eh.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Kf.HYPHEN_MINUS:{this._emitChars("-");break}case Kf.LESS_THAN_SIGN:{this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case Kf.GREATER_THAN_SIGN:{this.state=Th.SCRIPT_DATA;this._emitChars(">");break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(Gf);break}case Kf.EOF:{this._err(eh.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedLessThanSign(e){if(e===Kf.SOLIDUS){this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPE_END;this._emitChars("/")}else{this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Yf.SCRIPT,false)&&Ph(this.preprocessor.peek(Yf.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<Yf.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=Th.SCRIPT_DATA_ESCAPED}else if(!this._ensureHibernation()){this.state=Th.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateBeforeAttributeName(e){switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{break}case Kf.SOLIDUS:case Kf.GREATER_THAN_SIGN:case Kf.EOF:{this.state=Th.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case Kf.EQUALS_SIGN:{this._err(eh.unexpectedEqualsSignBeforeAttributeName);this._createAttr("=");this.state=Th.ATTRIBUTE_NAME;break}default:{this._createAttr("");this.state=Th.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateAttributeName(e){switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:case Kf.SOLIDUS:case Kf.GREATER_THAN_SIGN:case Kf.EOF:{this._leaveAttrName();this.state=Th.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case Kf.EQUALS_SIGN:{this._leaveAttrName();this.state=Th.BEFORE_ATTRIBUTE_VALUE;break}case Kf.QUOTATION_MARK:case Kf.APOSTROPHE:case Kf.LESS_THAN_SIGN:{this._err(eh.unexpectedCharacterInAttributeName);this.currentAttr.name+=String.fromCodePoint(e);break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this.currentAttr.name+=Gf;break}default:{this.currentAttr.name+=String.fromCodePoint(Lh(e)?Bh(e):e)}}}_stateAfterAttributeName(e){switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{break}case Kf.SOLIDUS:{this.state=Th.SELF_CLOSING_START_TAG;break}case Kf.EQUALS_SIGN:{this.state=Th.BEFORE_ATTRIBUTE_VALUE;break}case Kf.GREATER_THAN_SIGN:{this.state=Th.DATA;this.emitCurrentTagToken();break}case Kf.EOF:{this._err(eh.eofInTag);this._emitEOFToken();break}default:{this._createAttr("");this.state=Th.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateBeforeAttributeValue(e){switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{break}case Kf.QUOTATION_MARK:{this.state=Th.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case Kf.APOSTROPHE:{this.state=Th.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.missingAttributeValue);this.state=Th.DATA;this.emitCurrentTagToken();break}default:{this.state=Th.ATTRIBUTE_VALUE_UNQUOTED;this._stateAttributeValueUnquoted(e)}}}_stateAttributeValueDoubleQuoted(e){switch(e){case Kf.QUOTATION_MARK:{this.state=Th.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Kf.AMPERSAND:{this._startCharacterReference();break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this.currentAttr.value+=Gf;break}case Kf.EOF:{this._err(eh.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueSingleQuoted(e){switch(e){case Kf.APOSTROPHE:{this.state=Th.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Kf.AMPERSAND:{this._startCharacterReference();break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this.currentAttr.value+=Gf;break}case Kf.EOF:{this._err(eh.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueUnquoted(e){switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{this._leaveAttrValue();this.state=Th.BEFORE_ATTRIBUTE_NAME;break}case Kf.AMPERSAND:{this._startCharacterReference();break}case Kf.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=Th.DATA;this.emitCurrentTagToken();break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this.currentAttr.value+=Gf;break}case Kf.QUOTATION_MARK:case Kf.APOSTROPHE:case Kf.LESS_THAN_SIGN:case Kf.EQUALS_SIGN:case Kf.GRAVE_ACCENT:{this._err(eh.unexpectedCharacterInUnquotedAttributeValue);this.currentAttr.value+=String.fromCodePoint(e);break}case Kf.EOF:{this._err(eh.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAfterAttributeValueQuoted(e){switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{this._leaveAttrValue();this.state=Th.BEFORE_ATTRIBUTE_NAME;break}case Kf.SOLIDUS:{this._leaveAttrValue();this.state=Th.SELF_CLOSING_START_TAG;break}case Kf.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=Th.DATA;this.emitCurrentTagToken();break}case Kf.EOF:{this._err(eh.eofInTag);this._emitEOFToken();break}default:{this._err(eh.missingWhitespaceBetweenAttributes);this.state=Th.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateSelfClosingStartTag(e){switch(e){case Kf.GREATER_THAN_SIGN:{const e=this.currentToken;e.selfClosing=true;this.state=Th.DATA;this.emitCurrentTagToken();break}case Kf.EOF:{this._err(eh.eofInTag);this._emitEOFToken();break}default:{this._err(eh.unexpectedSolidusInTag);this.state=Th.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Kf.GREATER_THAN_SIGN:{this.state=Th.DATA;this.emitCurrentComment(t);break}case Kf.EOF:{this.emitCurrentComment(t);this._emitEOFToken();break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);t.data+=Gf;break}default:{t.data+=String.fromCodePoint(e)}}}_stateMarkupDeclarationOpen(e){if(this._consumeSequenceIfMatch(Yf.DASH_DASH,true)){this._createCommentToken(Yf.DASH_DASH.length+1);this.state=Th.COMMENT_START}else if(this._consumeSequenceIfMatch(Yf.DOCTYPE,false)){this.currentLocation=this.getCurrentLocation(Yf.DOCTYPE.length+1);this.state=Th.DOCTYPE}else if(this._consumeSequenceIfMatch(Yf.CDATA_START,true)){if(this.inForeignNode){this.state=Th.CDATA_SECTION}else{this._err(eh.cdataInHtmlContent);this._createCommentToken(Yf.CDATA_START.length+1);this.currentToken.data="[CDATA[";this.state=Th.BOGUS_COMMENT}}else if(!this._ensureHibernation()){this._err(eh.incorrectlyOpenedComment);this._createCommentToken(2);this.state=Th.BOGUS_COMMENT;this._stateBogusComment(e)}}_stateCommentStart(e){switch(e){case Kf.HYPHEN_MINUS:{this.state=Th.COMMENT_START_DASH;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.abruptClosingOfEmptyComment);this.state=Th.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:{this.state=Th.COMMENT;this._stateComment(e)}}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Kf.HYPHEN_MINUS:{this.state=Th.COMMENT_END;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.abruptClosingOfEmptyComment);this.state=Th.DATA;this.emitCurrentComment(t);break}case Kf.EOF:{this._err(eh.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=Th.COMMENT;this._stateComment(e)}}}_stateComment(e){const t=this.currentToken;switch(e){case Kf.HYPHEN_MINUS:{this.state=Th.COMMENT_END_DASH;break}case Kf.LESS_THAN_SIGN:{t.data+="<";this.state=Th.COMMENT_LESS_THAN_SIGN;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);t.data+=Gf;break}case Kf.EOF:{this._err(eh.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+=String.fromCodePoint(e)}}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Kf.EXCLAMATION_MARK:{t.data+="!";this.state=Th.COMMENT_LESS_THAN_SIGN_BANG;break}case Kf.LESS_THAN_SIGN:{t.data+="<";break}default:{this.state=Th.COMMENT;this._stateComment(e)}}}_stateCommentLessThanSignBang(e){if(e===Kf.HYPHEN_MINUS){this.state=Th.COMMENT_LESS_THAN_SIGN_BANG_DASH}else{this.state=Th.COMMENT;this._stateComment(e)}}_stateCommentLessThanSignBangDash(e){if(e===Kf.HYPHEN_MINUS){this.state=Th.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH}else{this.state=Th.COMMENT_END_DASH;this._stateCommentEndDash(e)}}_stateCommentLessThanSignBangDashDash(e){if(e!==Kf.GREATER_THAN_SIGN&&e!==Kf.EOF){this._err(eh.nestedComment)}this.state=Th.COMMENT_END;this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Kf.HYPHEN_MINUS:{this.state=Th.COMMENT_END;break}case Kf.EOF:{this._err(eh.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=Th.COMMENT;this._stateComment(e)}}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Kf.GREATER_THAN_SIGN:{this.state=Th.DATA;this.emitCurrentComment(t);break}case Kf.EXCLAMATION_MARK:{this.state=Th.COMMENT_END_BANG;break}case Kf.HYPHEN_MINUS:{t.data+="-";break}case Kf.EOF:{this._err(eh.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--";this.state=Th.COMMENT;this._stateComment(e)}}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Kf.HYPHEN_MINUS:{t.data+="--!";this.state=Th.COMMENT_END_DASH;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.incorrectlyClosedComment);this.state=Th.DATA;this.emitCurrentComment(t);break}case Kf.EOF:{this._err(eh.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--!";this.state=Th.COMMENT;this._stateComment(e)}}}_stateDoctype(e){switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{this.state=Th.BEFORE_DOCTYPE_NAME;break}case Kf.GREATER_THAN_SIGN:{this.state=Th.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e);break}case Kf.EOF:{this._err(eh.eofInDoctype);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this._emitEOFToken();break}default:{this._err(eh.missingWhitespaceBeforeDoctypeName);this.state=Th.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e)}}}_stateBeforeDoctypeName(e){if(Lh(e)){this._createDoctypeToken(String.fromCharCode(Bh(e)));this.state=Th.DOCTYPE_NAME}else switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);this._createDoctypeToken(Gf);this.state=Th.DOCTYPE_NAME;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.missingDoctypeName);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this.state=Th.DATA;break}case Kf.EOF:{this._err(eh.eofInDoctype);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this._emitEOFToken();break}default:{this._createDoctypeToken(String.fromCodePoint(e));this.state=Th.DOCTYPE_NAME}}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{this.state=Th.AFTER_DOCTYPE_NAME;break}case Kf.GREATER_THAN_SIGN:{this.state=Th.DATA;this.emitCurrentDoctype(t);break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);t.name+=Gf;break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.name+=String.fromCodePoint(Lh(e)?Bh(e):e)}}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{break}case Kf.GREATER_THAN_SIGN:{this.state=Th.DATA;this.emitCurrentDoctype(t);break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{if(this._consumeSequenceIfMatch(Yf.PUBLIC,false)){this.state=Th.AFTER_DOCTYPE_PUBLIC_KEYWORD}else if(this._consumeSequenceIfMatch(Yf.SYSTEM,false)){this.state=Th.AFTER_DOCTYPE_SYSTEM_KEYWORD}else if(!this._ensureHibernation()){this._err(eh.invalidCharacterSequenceAfterDoctypeName);t.forceQuirks=true;this.state=Th.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{this.state=Th.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case Kf.QUOTATION_MARK:{this._err(eh.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=Th.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Kf.APOSTROPHE:{this._err(eh.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=Th.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=Th.DATA;this.emitCurrentDoctype(t);break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(eh.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=Th.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{break}case Kf.QUOTATION_MARK:{t.publicId="";this.state=Th.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Kf.APOSTROPHE:{t.publicId="";this.state=Th.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=Th.DATA;this.emitCurrentDoctype(t);break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(eh.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=Th.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Kf.QUOTATION_MARK:{this.state=Th.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);t.publicId+=Gf;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Th.DATA;break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.publicId+=String.fromCodePoint(e)}}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Kf.APOSTROPHE:{this.state=Th.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);t.publicId+=Gf;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Th.DATA;break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.publicId+=String.fromCodePoint(e)}}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{this.state=Th.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case Kf.GREATER_THAN_SIGN:{this.state=Th.DATA;this.emitCurrentDoctype(t);break}case Kf.QUOTATION_MARK:{this._err(eh.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=Th.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Kf.APOSTROPHE:{this._err(eh.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=Th.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(eh.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Th.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{break}case Kf.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=Th.DATA;break}case Kf.QUOTATION_MARK:{t.systemId="";this.state=Th.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Kf.APOSTROPHE:{t.systemId="";this.state=Th.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(eh.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Th.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{this.state=Th.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case Kf.QUOTATION_MARK:{this._err(eh.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=Th.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Kf.APOSTROPHE:{this._err(eh.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=Th.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Th.DATA;this.emitCurrentDoctype(t);break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(eh.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Th.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{break}case Kf.QUOTATION_MARK:{t.systemId="";this.state=Th.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Kf.APOSTROPHE:{t.systemId="";this.state=Th.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Th.DATA;this.emitCurrentDoctype(t);break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(eh.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Th.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Kf.QUOTATION_MARK:{this.state=Th.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);t.systemId+=Gf;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Th.DATA;break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.systemId+=String.fromCodePoint(e)}}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Kf.APOSTROPHE:{this.state=Th.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);t.systemId+=Gf;break}case Kf.GREATER_THAN_SIGN:{this._err(eh.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Th.DATA;break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.systemId+=String.fromCodePoint(e)}}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Kf.SPACE:case Kf.LINE_FEED:case Kf.TABULATION:case Kf.FORM_FEED:{break}case Kf.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=Th.DATA;break}case Kf.EOF:{this._err(eh.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(eh.unexpectedCharacterAfterDoctypeSystemIdentifier);this.state=Th.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Kf.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=Th.DATA;break}case Kf.NULL:{this._err(eh.unexpectedNullCharacter);break}case Kf.EOF:{this.emitCurrentDoctype(t);this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case Kf.RIGHT_SQUARE_BRACKET:{this.state=Th.CDATA_SECTION_BRACKET;break}case Kf.EOF:{this._err(eh.eofInCdata);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateCdataSectionBracket(e){if(e===Kf.RIGHT_SQUARE_BRACKET){this.state=Th.CDATA_SECTION_END}else{this._emitChars("]");this.state=Th.CDATA_SECTION;this._stateCdataSection(e)}}_stateCdataSectionEnd(e){switch(e){case Kf.GREATER_THAN_SIGN:{this.state=Th.DATA;break}case Kf.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:{this._emitChars("]]");this.state=Th.CDATA_SECTION;this._stateCdataSection(e)}}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(this.preprocessor.lastChunkWritten){e=this.entityDecoder.end()}else{this.active=false;this.preprocessor.pos=this.preprocessor.html.length-1;this.consumedAfterSnapshot=0;this.preprocessor.endOfChunkHit=true;return}}if(e===0){this.preprocessor.pos=this.entityStartPos;this._flushCodePointConsumedAsCharacterReference(Kf.AMPERSAND);this.state=!this._isCharacterReferenceInAttribute()&&Mh(this.preprocessor.peek(1))?Th.AMBIGUOUS_AMPERSAND:this.returnState}else{this.state=this.returnState}}_stateAmbiguousAmpersand(e){if(Mh(e)){this._flushCodePointConsumedAsCharacterReference(e)}else{if(e===Kf.SEMICOLON){this._err(eh.unknownNamedCharacterReference)}this.state=this.returnState;this._callState(e)}}}const jh=new Set([vh.DD,vh.DT,vh.LI,vh.OPTGROUP,vh.OPTION,vh.P,vh.RB,vh.RP,vh.RT,vh.RTC]);const zh=new Set([...jh,vh.CAPTION,vh.COLGROUP,vh.TBODY,vh.TD,vh.TFOOT,vh.TH,vh.THEAD,vh.TR]);const Hh=new Set([vh.APPLET,vh.CAPTION,vh.HTML,vh.MARQUEE,vh.OBJECT,vh.TABLE,vh.TD,vh.TEMPLATE,vh.TH]);const $h=new Set([...Hh,vh.OL,vh.UL]);const Vh=new Set([...Hh,vh.BUTTON]);const Gh=new Set([vh.ANNOTATION_XML,vh.MI,vh.MN,vh.MO,vh.MS,vh.MTEXT]);const Kh=new Set([vh.DESC,vh.FOREIGN_OBJECT,vh.TITLE]);const Yh=new Set([vh.TR,vh.TEMPLATE,vh.HTML]);const Wh=new Set([vh.TBODY,vh.TFOOT,vh.THEAD,vh.TEMPLATE,vh.HTML]);const Xh=new Set([vh.TABLE,vh.TEMPLATE,vh.HTML]);const Qh=new Set([vh.TD,vh.TH]);class Jh{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t;this.handler=n;this.items=[];this.tagIDs=[];this.stackTop=-1;this.tmplCount=0;this.currentTagId=vh.UNKNOWN;this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===vh.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===yh.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop];this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++;this.items[this.stackTop]=e;this.current=e;this.tagIDs[this.stackTop]=t;this.currentTagId=t;if(this._isInTemplate()){this.tmplCount++}this.handler.onItemPush(e,t,true)}pop(){const e=this.current;if(this.tmplCount>0&&this._isInTemplate()){this.tmplCount--}this.stackTop--;this._updateCurrentElement();this.handler.onItemPop(e,true)}replace(e,t){const n=this._indexOf(e);this.items[n]=t;if(n===this.stackTop){this.current=t}}insertAfter(e,t,n){const i=this._indexOf(e)+1;this.items.splice(i,0,t);this.tagIDs.splice(i,0,n);this.stackTop++;if(i===this.stackTop){this._updateCurrentElement()}if(this.current&&this.currentTagId!==undefined){this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==yh.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){while(this.stackTop>=e){const t=this.current;if(this.tmplCount>0&&this._isInTemplate()){this.tmplCount-=1}this.stackTop--;this._updateCurrentElement();this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(xh,yh.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Qh,yh.HTML)}popAllUpToHtmlElement(){this.tmplCount=0;this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--){if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t){return n}}return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Xh,yh.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Wh,yh.HTML)}clearBackToTableRowContext(){this.clearBackTo(Yh,yh.HTML)}remove(e){const t=this._indexOf(e);if(t>=0){if(t===this.stackTop){this.pop()}else{this.items.splice(t,1);this.tagIDs.splice(t,1);this.stackTop--;this._updateCurrentElement();this.handler.onItemPop(e,false)}}}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===vh.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===vh.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case yh.HTML:{if(i===e)return true;if(t.has(i))return false;break}case yh.SVG:{if(Kh.has(i))return false;break}case yh.MATHML:{if(Gh.has(i))return false;break}}}return true}hasInScope(e){return this.hasInDynamicScope(e,Hh)}hasInListItemScope(e){return this.hasInDynamicScope(e,$h)}hasInButtonScope(e){return this.hasInDynamicScope(e,Vh)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case yh.HTML:{if(xh.has(t))return true;if(Hh.has(t))return false;break}case yh.SVG:{if(Kh.has(t))return false;break}case yh.MATHML:{if(Gh.has(t))return false;break}}}return true}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==yh.HTML){continue}switch(this.tagIDs[t]){case e:{return true}case vh.TABLE:case vh.HTML:{return false}}}return true}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){if(this.treeAdapter.getNamespaceURI(this.items[e])!==yh.HTML){continue}switch(this.tagIDs[e]){case vh.TBODY:case vh.THEAD:case vh.TFOOT:{return true}case vh.TABLE:case vh.HTML:{return false}}}return true}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==yh.HTML){continue}switch(this.tagIDs[t]){case e:{return true}case vh.OPTION:case vh.OPTGROUP:{break}default:{return false}}}return true}generateImpliedEndTags(){while(this.currentTagId!==undefined&&jh.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsThoroughly(){while(this.currentTagId!==undefined&&zh.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsWithExclusion(e){while(this.currentTagId!==undefined&&this.currentTagId!==e&&zh.has(this.currentTagId)){this.pop()}}}const Zh=3;var ed;(function(e){e[e["Marker"]=0]="Marker";e[e["Element"]=1]="Element"})(ed||(ed={}));const td={type:ed.Marker};class nd{constructor(e){this.treeAdapter=e;this.entries=[];this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[];const i=t.length;const r=this.treeAdapter.getTagName(e);const o=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===ed.Marker){break}const{element:s}=t;if(this.treeAdapter.getTagName(s)===r&&this.treeAdapter.getNamespaceURI(s)===o){const t=this.treeAdapter.getAttrList(s);if(t.length===i){n.push({idx:e,attrs:t})}}}return n}_ensureNoahArkCondition(e){if(this.entries.length<Zh)return;const t=this.treeAdapter.getAttrList(e);const n=this._getNoahArkConditionCandidates(e,t);if(n.length<Zh)return;const i=new Map(t.map((e=>[e.name,e.value])));let r=0;for(let e=0;e<n.length;e++){const t=n[e];if(t.attrs.every((e=>i.get(e.name)===e.value))){r+=1;if(r>=Zh){this.entries.splice(t.idx,1)}}}}insertMarker(){this.entries.unshift(td)}pushElement(e,t){this._ensureNoahArkCondition(e);this.entries.unshift({type:ed.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ed.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);if(t!==-1){this.entries.splice(t,1)}}clearToLastMarker(){const e=this.entries.indexOf(td);if(e===-1){this.entries.length=0}else{this.entries.splice(0,e+1)}}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===ed.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===ed.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===ed.Element&&t.element===e))}}const id={createDocument(){return{nodeName:"#document",mode:wh.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t);t.parentNode=e},insertBefore(e,t,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t);t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const r=e.childNodes.find((e=>e.nodeName==="#documentType"));if(r){r.name=t;r.publicId=n;r.systemId=i}else{const r={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};id.appendChild(e,r)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1);e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(id.isTextNode(n)){n.value+=t;return}}id.appendChild(e,id.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];if(i&&id.isTextNode(i)){i.value+=t}else{id.insertBefore(e,id.createTextNode(t),n)}},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let i=0;i<t.length;i++){if(!n.has(t[i].name)){e.attrs.push(t[i])}}},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};const rd="html";const od="about:legacy-compat";const sd="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd";const ld=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"];const ad=[...ld,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];const ud=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]);const cd=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"];const fd=[...cd,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function hd(e,t){return t.some((t=>e.startsWith(t)))}function dd(e){return e.name===rd&&e.publicId===null&&(e.systemId===null||e.systemId===od)}function pd(e){if(e.name!==rd){return wh.QUIRKS}const{systemId:t}=e;if(t&&t.toLowerCase()===sd){return wh.QUIRKS}let{publicId:n}=e;if(n!==null){n=n.toLowerCase();if(ud.has(n)){return wh.QUIRKS}let e=t===null?ad:ld;if(hd(n,e)){return wh.QUIRKS}e=t===null?cd:fd;if(hd(n,e)){return wh.LIMITED_QUIRKS}}return wh.NO_QUIRKS}const md={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"};const gd="definitionurl";const bd="definitionURL";const kd=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e])));const yd=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:yh.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:yh.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:yh.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:yh.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:yh.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:yh.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:yh.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:yh.XML}],["xml:space",{prefix:"xml",name:"space",namespace:yh.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:yh.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:yh.XMLNS}]]);const Dd=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e])));const wd=new Set([vh.B,vh.BIG,vh.BLOCKQUOTE,vh.BODY,vh.BR,vh.CENTER,vh.CODE,vh.DD,vh.DIV,vh.DL,vh.DT,vh.EM,vh.EMBED,vh.H1,vh.H2,vh.H3,vh.H4,vh.H5,vh.H6,vh.HEAD,vh.HR,vh.I,vh.IMG,vh.LI,vh.LISTING,vh.MENU,vh.META,vh.NOBR,vh.OL,vh.P,vh.PRE,vh.RUBY,vh.S,vh.SMALL,vh.SPAN,vh.STRONG,vh.STRIKE,vh.SUB,vh.SUP,vh.TABLE,vh.TT,vh.U,vh.UL,vh.VAR]);function Ed(e){const t=e.tagID;const n=t===vh.FONT&&e.attrs.some((({name:e})=>e===Dh.COLOR||e===Dh.SIZE||e===Dh.FACE));return n||wd.has(t)}function vd(e){for(let t=0;t<e.attrs.length;t++){if(e.attrs[t].name===gd){e.attrs[t].name=bd;break}}}function Ad(e){for(let t=0;t<e.attrs.length;t++){const n=kd.get(e.attrs[t].name);if(n!=null){e.attrs[t].name=n}}}function Cd(e){for(let t=0;t<e.attrs.length;t++){const n=yd.get(e.attrs[t].name);if(n){e.attrs[t].prefix=n.prefix;e.attrs[t].name=n.name;e.attrs[t].namespace=n.namespace}}}function Fd(e){const t=Dd.get(e.tagName);if(t!=null){e.tagName=t;e.tagID=Ch(e.tagName)}}function Sd(e,t){return t===yh.MATHML&&(e===vh.MI||e===vh.MO||e===vh.MN||e===vh.MS||e===vh.MTEXT)}function xd(e,t,n){if(t===yh.MATHML&&e===vh.ANNOTATION_XML){for(let e=0;e<n.length;e++){if(n[e].name===Dh.ENCODING){const t=n[e].value.toLowerCase();return t===md.TEXT_HTML||t===md.APPLICATION_XML}}}return t===yh.SVG&&(e===vh.FOREIGN_OBJECT||e===vh.DESC||e===vh.TITLE)}function Td(e,t,n,i){return(!i||i===yh.HTML)&&xd(e,t,n)||(!i||i===yh.MATHML)&&Sd(e,t)}const Od="hidden";const Nd=8;const Ld=3;var Id;(function(e){e[e["INITIAL"]=0]="INITIAL";e[e["BEFORE_HTML"]=1]="BEFORE_HTML";e[e["BEFORE_HEAD"]=2]="BEFORE_HEAD";e[e["IN_HEAD"]=3]="IN_HEAD";e[e["IN_HEAD_NO_SCRIPT"]=4]="IN_HEAD_NO_SCRIPT";e[e["AFTER_HEAD"]=5]="AFTER_HEAD";e[e["IN_BODY"]=6]="IN_BODY";e[e["TEXT"]=7]="TEXT";e[e["IN_TABLE"]=8]="IN_TABLE";e[e["IN_TABLE_TEXT"]=9]="IN_TABLE_TEXT";e[e["IN_CAPTION"]=10]="IN_CAPTION";e[e["IN_COLUMN_GROUP"]=11]="IN_COLUMN_GROUP";e[e["IN_TABLE_BODY"]=12]="IN_TABLE_BODY";e[e["IN_ROW"]=13]="IN_ROW";e[e["IN_CELL"]=14]="IN_CELL";e[e["IN_SELECT"]=15]="IN_SELECT";e[e["IN_SELECT_IN_TABLE"]=16]="IN_SELECT_IN_TABLE";e[e["IN_TEMPLATE"]=17]="IN_TEMPLATE";e[e["AFTER_BODY"]=18]="AFTER_BODY";e[e["IN_FRAMESET"]=19]="IN_FRAMESET";e[e["AFTER_FRAMESET"]=20]="AFTER_FRAMESET";e[e["AFTER_AFTER_BODY"]=21]="AFTER_AFTER_BODY";e[e["AFTER_AFTER_FRAMESET"]=22]="AFTER_AFTER_FRAMESET"})(Id||(Id={}));const _d={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};const Md=new Set([vh.TABLE,vh.TBODY,vh.TFOOT,vh.THEAD,vh.TR]);const Bd={scriptingEnabled:true,sourceCodeLocationInfo:false,treeAdapter:id,onParseError:null};let Rd=class e{constructor(e,t,n=null,i=null){this.fragmentContext=n;this.scriptHandler=i;this.currentToken=null;this.stopped=false;this.insertionMode=Id.INITIAL;this.originalInsertionMode=Id.INITIAL;this.headElement=null;this.formElement=null;this.currentNotInHTML=false;this.tmplInsertionModeStack=[];this.pendingCharacterTokens=[];this.hasNonWhitespacePendingCharacterToken=false;this.framesetOk=true;this.skipNextNewLine=false;this.fosterParentingEnabled=false;this.options={...Bd,...e};this.treeAdapter=this.options.treeAdapter;this.onParseError=this.options.onParseError;if(this.onParseError){this.options.sourceCodeLocationInfo=true}this.document=t!==null&&t!==void 0?t:this.treeAdapter.createDocument();this.tokenizer=new Uh(this.options,this);this.activeFormattingElements=new nd(this.treeAdapter);this.fragmentContextID=n?Ch(this.treeAdapter.getTagName(n)):vh.UNKNOWN;this._setContextModes(n!==null&&n!==void 0?n:this.document,this.fragmentContextID);this.openElements=new Jh(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);n.tokenizer.write(e,true);return n.document}static getFragmentParser(e,t){const n={...Bd,...t};e!==null&&e!==void 0?e:e=n.treeAdapter.createElement(Eh.TEMPLATE,yh.HTML,[]);const i=n.treeAdapter.createElement("documentmock",yh.HTML,[]);const r=new this(n,i,e);if(r.fragmentContextID===vh.TEMPLATE){r.tmplInsertionModeStack.unshift(Id.IN_TEMPLATE)}r._initTokenizerForFragmentParsing();r._insertFakeRootElement();r._resetInsertionMode();r._findFormInFragmentContext();return r}getFragment(){const e=this.treeAdapter.getFirstChild(this.document);const t=this.treeAdapter.createDocumentFragment();this._adoptNodes(e,t);return t}_err(e,t,n){var i;if(!this.onParseError)return;const r=(i=e.location)!==null&&i!==void 0?i:_d;const o={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(o)}onItemPush(e,t,n){var i,r;(r=(i=this.treeAdapter).onItemPush)===null||r===void 0?void 0:r.call(i,e);if(n&&this.openElements.stackTop>0)this._setContextModes(e,t)}onItemPop(e,t){var n,i;if(this.options.sourceCodeLocationInfo){this._setEndLocation(e,this.currentToken)}(i=(n=this.treeAdapter).onItemPop)===null||i===void 0?void 0:i.call(n,e,this.openElements.current);if(t){let e;let t;if(this.openElements.stackTop===0&&this.fragmentContext){e=this.fragmentContext;t=this.fragmentContextID}else{({current:e,currentTagId:t}=this.openElements)}this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===yh.HTML;this.currentNotInHTML=!n;this.tokenizer.inForeignNode=!n&&e!==undefined&&t!==undefined&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,yh.HTML);this.tokenizer.state=t;this.originalInsertionMode=this.insertionMode;this.insertionMode=Id.TEXT}switchToPlaintextParsing(){this.insertionMode=Id.TEXT;this.originalInsertionMode=Id.IN_BODY;this.tokenizer.state=Oh.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;while(e){if(this.treeAdapter.getTagName(e)===Eh.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==yh.HTML){return}switch(this.fragmentContextID){case vh.TITLE:case vh.TEXTAREA:{this.tokenizer.state=Oh.RCDATA;break}case vh.STYLE:case vh.XMP:case vh.IFRAME:case vh.NOEMBED:case vh.NOFRAMES:case vh.NOSCRIPT:{this.tokenizer.state=Oh.RAWTEXT;break}case vh.SCRIPT:{this.tokenizer.state=Oh.SCRIPT_DATA;break}case vh.PLAINTEXT:{this.tokenizer.state=Oh.PLAINTEXT;break}}}_setDocumentType(e){const t=e.name||"";const n=e.publicId||"";const i=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,i);if(e.location){const t=this.treeAdapter.getChildNodes(this.document);const n=t.find((e=>this.treeAdapter.isDocumentTypeNode(e)));if(n){this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion()){this._fosterParentElement(e)}else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t!==null&&t!==void 0?t:this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location);this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,yh.HTML,[]);this._attachElementToTree(n,null);this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,yh.HTML,e.attrs);const n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n);this._attachElementToTree(t,e.location);this.openElements.push(t,e.tagID);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Eh.HTML,yh.HTML,[]);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(e,null);this.treeAdapter.appendChild(this.openElements.current,e);this.openElements.push(e,vh.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n);if(this.options.sourceCodeLocationInfo){this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}}_insertCharacters(e){let t;let n;if(this._shouldFosterParentOnInsertion()){({parent:t,beforeElement:n}=this._findFosterParentingLocation());if(n){this.treeAdapter.insertTextBefore(t,e.chars,n)}else{this.treeAdapter.insertText(t,e.chars)}}else{t=this.openElements.currentTmplContentOrNode;this.treeAdapter.insertText(t,e.chars)}if(!e.location)return;const i=this.treeAdapter.getChildNodes(t);const r=n?i.lastIndexOf(n):i.length;const o=i[r-1];const s=this.treeAdapter.getNodeSourceCodeLocation(o);if(s){const{endLine:t,endCol:n,endOffset:i}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:i})}else if(this.options.sourceCodeLocationInfo){this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e)){this.treeAdapter.detachNode(n);this.treeAdapter.appendChild(t,n)}}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location;const i=this.treeAdapter.getTagName(e);const r=t.type===ih.END_TAG&&i===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,r)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return false;let t;let n;if(this.openElements.stackTop===0&&this.fragmentContext){t=this.fragmentContext;n=this.fragmentContextID}else{({current:t,currentTagId:n}=this.openElements)}if(e.tagID===vh.SVG&&this.treeAdapter.getTagName(t)===Eh.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===yh.MATHML){return false}return this.tokenizer.inForeignNode||(e.tagID===vh.MGLYPH||e.tagID===vh.MALIGNMARK)&&n!==undefined&&!this._isIntegrationPoint(n,t,yh.HTML)}_processToken(e){switch(e.type){case ih.CHARACTER:{this.onCharacter(e);break}case ih.NULL_CHARACTER:{this.onNullCharacter(e);break}case ih.COMMENT:{this.onComment(e);break}case ih.DOCTYPE:{this.onDoctype(e);break}case ih.START_TAG:{this._processStartTag(e);break}case ih.END_TAG:{this.onEndTag(e);break}case ih.EOF:{this.onEof(e);break}case ih.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,n){const i=this.treeAdapter.getNamespaceURI(t);const r=this.treeAdapter.getAttrList(t);return Td(e,i,r,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===ed.Marker||this.openElements.contains(e.element)));const n=t===-1?e-1:t-1;for(let e=n;e>=0;e--){const t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element));t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags();this.openElements.popUntilTableCellPopped();this.activeFormattingElements.clearToLastMarker();this.insertionMode=Id.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(vh.P);this.openElements.popUntilTagNamePopped(vh.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--){switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case vh.TR:{this.insertionMode=Id.IN_ROW;return}case vh.TBODY:case vh.THEAD:case vh.TFOOT:{this.insertionMode=Id.IN_TABLE_BODY;return}case vh.CAPTION:{this.insertionMode=Id.IN_CAPTION;return}case vh.COLGROUP:{this.insertionMode=Id.IN_COLUMN_GROUP;return}case vh.TABLE:{this.insertionMode=Id.IN_TABLE;return}case vh.BODY:{this.insertionMode=Id.IN_BODY;return}case vh.FRAMESET:{this.insertionMode=Id.IN_FRAMESET;return}case vh.SELECT:{this._resetInsertionModeForSelect(e);return}case vh.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case vh.HTML:{this.insertionMode=this.headElement?Id.AFTER_HEAD:Id.BEFORE_HEAD;return}case vh.TD:case vh.TH:{if(e>0){this.insertionMode=Id.IN_CELL;return}break}case vh.HEAD:{if(e>0){this.insertionMode=Id.IN_HEAD;return}break}}}this.insertionMode=Id.IN_BODY}_resetInsertionModeForSelect(e){if(e>0){for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===vh.TEMPLATE){break}else if(e===vh.TABLE){this.insertionMode=Id.IN_SELECT_IN_TABLE;return}}}this.insertionMode=Id.IN_SELECT}_isElementCausesFosterParenting(e){return Md.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==undefined&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case vh.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===yh.HTML){return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null}}break}case vh.TABLE:{const n=this.treeAdapter.getParentNode(t);if(n){return{parent:n,beforeElement:t}}return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();if(t.beforeElement){this.treeAdapter.insertBefore(t.parent,e,t.beforeElement)}else{this.treeAdapter.appendChild(t.parent,e)}}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Sh[n].has(t)}onCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){tg(this,e);return}switch(this.insertionMode){case Id.INITIAL:{Xd(this,e);break}case Id.BEFORE_HTML:{Zd(this,e);break}case Id.BEFORE_HEAD:{np(this,e);break}case Id.IN_HEAD:{sp(this,e);break}case Id.IN_HEAD_NO_SCRIPT:{up(this,e);break}case Id.AFTER_HEAD:{hp(this,e);break}case Id.IN_BODY:case Id.IN_CAPTION:case Id.IN_CELL:case Id.IN_TEMPLATE:{mp(this,e);break}case Id.TEXT:case Id.IN_SELECT:case Id.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case Id.IN_TABLE:case Id.IN_TABLE_BODY:case Id.IN_ROW:{cm(this,e);break}case Id.IN_TABLE_TEXT:{vm(this,e);break}case Id.IN_COLUMN_GROUP:{Om(this,e);break}case Id.AFTER_BODY:{Gm(this,e);break}case Id.AFTER_AFTER_BODY:{Jm(this,e);break}}}onNullCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){eg(this,e);return}switch(this.insertionMode){case Id.INITIAL:{Xd(this,e);break}case Id.BEFORE_HTML:{Zd(this,e);break}case Id.BEFORE_HEAD:{np(this,e);break}case Id.IN_HEAD:{sp(this,e);break}case Id.IN_HEAD_NO_SCRIPT:{up(this,e);break}case Id.AFTER_HEAD:{hp(this,e);break}case Id.TEXT:{this._insertCharacters(e);break}case Id.IN_TABLE:case Id.IN_TABLE_BODY:case Id.IN_ROW:{cm(this,e);break}case Id.IN_COLUMN_GROUP:{Om(this,e);break}case Id.AFTER_BODY:{Gm(this,e);break}case Id.AFTER_AFTER_BODY:{Jm(this,e);break}}}onComment(e){this.skipNextNewLine=false;if(this.currentNotInHTML){Vd(this,e);return}switch(this.insertionMode){case Id.INITIAL:case Id.BEFORE_HTML:case Id.BEFORE_HEAD:case Id.IN_HEAD:case Id.IN_HEAD_NO_SCRIPT:case Id.AFTER_HEAD:case Id.IN_BODY:case Id.IN_TABLE:case Id.IN_CAPTION:case Id.IN_COLUMN_GROUP:case Id.IN_TABLE_BODY:case Id.IN_ROW:case Id.IN_CELL:case Id.IN_SELECT:case Id.IN_SELECT_IN_TABLE:case Id.IN_TEMPLATE:case Id.IN_FRAMESET:case Id.AFTER_FRAMESET:{Vd(this,e);break}case Id.IN_TABLE_TEXT:{Am(this,e);break}case Id.AFTER_BODY:{Gd(this,e);break}case Id.AFTER_AFTER_BODY:case Id.AFTER_AFTER_FRAMESET:{Kd(this,e);break}}}onDoctype(e){this.skipNextNewLine=false;switch(this.insertionMode){case Id.INITIAL:{Wd(this,e);break}case Id.BEFORE_HEAD:case Id.IN_HEAD:case Id.IN_HEAD_NO_SCRIPT:case Id.AFTER_HEAD:{this._err(e,eh.misplacedDoctype);break}case Id.IN_TABLE_TEXT:{Am(this,e);break}}}onStartTag(e){this.skipNextNewLine=false;this.currentToken=e;this._processStartTag(e);if(e.selfClosing&&!e.ackSelfClosing){this._err(e,eh.nonVoidHtmlElementStartTagWithTrailingSolidus)}}_processStartTag(e){if(this.shouldProcessStartTagTokenInForeignContent(e)){ig(this,e)}else{this._startTagOutsideForeignContent(e)}}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Id.INITIAL:{Xd(this,e);break}case Id.BEFORE_HTML:{Qd(this,e);break}case Id.BEFORE_HEAD:{ep(this,e);break}case Id.IN_HEAD:{ip(this,e);break}case Id.IN_HEAD_NO_SCRIPT:{lp(this,e);break}case Id.AFTER_HEAD:{cp(this,e);break}case Id.IN_BODY:{Yp(this,e);break}case Id.IN_TABLE:{ym(this,e);break}case Id.IN_TABLE_TEXT:{Am(this,e);break}case Id.IN_CAPTION:{Fm(this,e);break}case Id.IN_COLUMN_GROUP:{xm(this,e);break}case Id.IN_TABLE_BODY:{Nm(this,e);break}case Id.IN_ROW:{Im(this,e);break}case Id.IN_CELL:{Mm(this,e);break}case Id.IN_SELECT:{Rm(this,e);break}case Id.IN_SELECT_IN_TABLE:{qm(this,e);break}case Id.IN_TEMPLATE:{jm(this,e);break}case Id.AFTER_BODY:{$m(this,e);break}case Id.IN_FRAMESET:{Km(this,e);break}case Id.AFTER_FRAMESET:{Wm(this,e);break}case Id.AFTER_AFTER_BODY:{Qm(this,e);break}case Id.AFTER_AFTER_FRAMESET:{Zm(this,e);break}}}onEndTag(e){this.skipNextNewLine=false;this.currentToken=e;if(this.currentNotInHTML){rg(this,e)}else{this._endTagOutsideForeignContent(e)}}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Id.INITIAL:{Xd(this,e);break}case Id.BEFORE_HTML:{Jd(this,e);break}case Id.BEFORE_HEAD:{tp(this,e);break}case Id.IN_HEAD:{rp(this,e);break}case Id.IN_HEAD_NO_SCRIPT:{ap(this,e);break}case Id.AFTER_HEAD:{fp(this,e);break}case Id.IN_BODY:{sm(this,e);break}case Id.TEXT:{am(this,e);break}case Id.IN_TABLE:{Dm(this,e);break}case Id.IN_TABLE_TEXT:{Am(this,e);break}case Id.IN_CAPTION:{Sm(this,e);break}case Id.IN_COLUMN_GROUP:{Tm(this,e);break}case Id.IN_TABLE_BODY:{Lm(this,e);break}case Id.IN_ROW:{_m(this,e);break}case Id.IN_CELL:{Bm(this,e);break}case Id.IN_SELECT:{Pm(this,e);break}case Id.IN_SELECT_IN_TABLE:{Um(this,e);break}case Id.IN_TEMPLATE:{zm(this,e);break}case Id.AFTER_BODY:{Vm(this,e);break}case Id.IN_FRAMESET:{Ym(this,e);break}case Id.AFTER_FRAMESET:{Xm(this,e);break}case Id.AFTER_AFTER_BODY:{Jm(this,e);break}}}onEof(e){switch(this.insertionMode){case Id.INITIAL:{Xd(this,e);break}case Id.BEFORE_HTML:{Zd(this,e);break}case Id.BEFORE_HEAD:{np(this,e);break}case Id.IN_HEAD:{sp(this,e);break}case Id.IN_HEAD_NO_SCRIPT:{up(this,e);break}case Id.AFTER_HEAD:{hp(this,e);break}case Id.IN_BODY:case Id.IN_TABLE:case Id.IN_CAPTION:case Id.IN_COLUMN_GROUP:case Id.IN_TABLE_BODY:case Id.IN_ROW:case Id.IN_CELL:case Id.IN_SELECT:case Id.IN_SELECT_IN_TABLE:{lm(this,e);break}case Id.TEXT:{um(this,e);break}case Id.IN_TABLE_TEXT:{Am(this,e);break}case Id.IN_TEMPLATE:{Hm(this,e);break}case Id.AFTER_BODY:case Id.IN_FRAMESET:case Id.AFTER_FRAMESET:case Id.AFTER_AFTER_BODY:case Id.AFTER_AFTER_FRAMESET:{Yd(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine){this.skipNextNewLine=false;if(e.chars.charCodeAt(0)===Kf.LINE_FEED){if(e.chars.length===1){return}e.chars=e.chars.substr(1)}}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case Id.IN_HEAD:case Id.IN_HEAD_NO_SCRIPT:case Id.AFTER_HEAD:case Id.TEXT:case Id.IN_COLUMN_GROUP:case Id.IN_SELECT:case Id.IN_SELECT_IN_TABLE:case Id.IN_FRAMESET:case Id.AFTER_FRAMESET:{this._insertCharacters(e);break}case Id.IN_BODY:case Id.IN_CAPTION:case Id.IN_CELL:case Id.IN_TEMPLATE:case Id.AFTER_BODY:case Id.AFTER_AFTER_BODY:case Id.AFTER_AFTER_FRAMESET:{pp(this,e);break}case Id.IN_TABLE:case Id.IN_TABLE_BODY:case Id.IN_ROW:{cm(this,e);break}case Id.IN_TABLE_TEXT:{Em(this,e);break}}}};function Pd(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);if(n){if(!e.openElements.contains(n.element)){e.activeFormattingElements.removeEntry(n);n=null}else if(!e.openElements.hasInScope(t.tagID)){n=null}}else{om(e,t)}return n}function qd(e,t){let n=null;let i=e.openElements.stackTop;for(;i>=0;i--){const r=e.openElements.items[i];if(r===t.element){break}if(e._isSpecialElement(r,e.openElements.tagIDs[i])){n=r}}if(!n){e.openElements.shortenToLength(Math.max(i,0));e.activeFormattingElements.removeEntry(t)}return n}function Ud(e,t,n){let i=t;let r=e.openElements.getCommonAncestor(t);for(let o=0,s=r;s!==n;o++,s=r){r=e.openElements.getCommonAncestor(s);const n=e.activeFormattingElements.getElementEntry(s);const l=n&&o>=Ld;const a=!n||l;if(a){if(l){e.activeFormattingElements.removeEntry(n)}e.openElements.remove(s)}else{s=jd(e,n);if(i===t){e.activeFormattingElements.bookmark=n}e.treeAdapter.detachNode(i);e.treeAdapter.appendChild(s,i);i=s}}return i}function jd(e,t){const n=e.treeAdapter.getNamespaceURI(t.element);const i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);e.openElements.replace(t.element,i);t.element=i;return i}function zd(e,t,n){const i=e.treeAdapter.getTagName(t);const r=Ch(i);if(e._isElementCausesFosterParenting(r)){e._fosterParentElement(n)}else{const i=e.treeAdapter.getNamespaceURI(t);if(r===vh.TEMPLATE&&i===yh.HTML){t=e.treeAdapter.getTemplateContent(t)}e.treeAdapter.appendChild(t,n)}}function Hd(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element);const{token:r}=n;const o=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,o);e.treeAdapter.appendChild(t,o);e.activeFormattingElements.insertElementAfterBookmark(o,r);e.activeFormattingElements.removeEntry(n);e.openElements.remove(n.element);e.openElements.insertAfter(t,o,r.tagID)}function $d(e,t){for(let n=0;n<Nd;n++){const n=Pd(e,t);if(!n){break}const i=qd(e,n);if(!i){break}e.activeFormattingElements.bookmark=n;const r=Ud(e,i,n.element);const o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r);if(o)zd(e,o,r);Hd(e,i,n)}}function Vd(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Gd(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Kd(e,t){e._appendCommentNode(t,e.document)}function Yd(e,t){e.stopped=true;if(t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--){e._setEndLocation(e.openElements.items[i],t)}if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0];const i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag){e._setEndLocation(n,t);if(e.openElements.stackTop>=1){const n=e.openElements.items[1];const i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag){e._setEndLocation(n,t)}}}}}}function Wd(e,t){e._setDocumentType(t);const n=t.forceQuirks?wh.QUIRKS:pd(t);if(!dd(t)){e._err(t,eh.nonConformingDoctype)}e.treeAdapter.setDocumentMode(e.document,n);e.insertionMode=Id.BEFORE_HTML}function Xd(e,t){e._err(t,eh.missingDoctype,true);e.treeAdapter.setDocumentMode(e.document,wh.QUIRKS);e.insertionMode=Id.BEFORE_HTML;e._processToken(t)}function Qd(e,t){if(t.tagID===vh.HTML){e._insertElement(t,yh.HTML);e.insertionMode=Id.BEFORE_HEAD}else{Zd(e,t)}}function Jd(e,t){const n=t.tagID;if(n===vh.HTML||n===vh.HEAD||n===vh.BODY||n===vh.BR){Zd(e,t)}}function Zd(e,t){e._insertFakeRootElement();e.insertionMode=Id.BEFORE_HEAD;e._processToken(t)}function ep(e,t){switch(t.tagID){case vh.HTML:{Yp(e,t);break}case vh.HEAD:{e._insertElement(t,yh.HTML);e.headElement=e.openElements.current;e.insertionMode=Id.IN_HEAD;break}default:{np(e,t)}}}function tp(e,t){const n=t.tagID;if(n===vh.HEAD||n===vh.BODY||n===vh.HTML||n===vh.BR){np(e,t)}else{e._err(t,eh.endTagWithoutMatchingOpenElement)}}function np(e,t){e._insertFakeElement(Eh.HEAD,vh.HEAD);e.headElement=e.openElements.current;e.insertionMode=Id.IN_HEAD;e._processToken(t)}function ip(e,t){switch(t.tagID){case vh.HTML:{Yp(e,t);break}case vh.BASE:case vh.BASEFONT:case vh.BGSOUND:case vh.LINK:case vh.META:{e._appendElement(t,yh.HTML);t.ackSelfClosing=true;break}case vh.TITLE:{e._switchToTextParsing(t,Oh.RCDATA);break}case vh.NOSCRIPT:{if(e.options.scriptingEnabled){e._switchToTextParsing(t,Oh.RAWTEXT)}else{e._insertElement(t,yh.HTML);e.insertionMode=Id.IN_HEAD_NO_SCRIPT}break}case vh.NOFRAMES:case vh.STYLE:{e._switchToTextParsing(t,Oh.RAWTEXT);break}case vh.SCRIPT:{e._switchToTextParsing(t,Oh.SCRIPT_DATA);break}case vh.TEMPLATE:{e._insertTemplate(t);e.activeFormattingElements.insertMarker();e.framesetOk=false;e.insertionMode=Id.IN_TEMPLATE;e.tmplInsertionModeStack.unshift(Id.IN_TEMPLATE);break}case vh.HEAD:{e._err(t,eh.misplacedStartTagForHeadElement);break}default:{sp(e,t)}}}function rp(e,t){switch(t.tagID){case vh.HEAD:{e.openElements.pop();e.insertionMode=Id.AFTER_HEAD;break}case vh.BODY:case vh.BR:case vh.HTML:{sp(e,t);break}case vh.TEMPLATE:{op(e,t);break}default:{e._err(t,eh.endTagWithoutMatchingOpenElement)}}}function op(e,t){if(e.openElements.tmplCount>0){e.openElements.generateImpliedEndTagsThoroughly();if(e.openElements.currentTagId!==vh.TEMPLATE){e._err(t,eh.closingOfElementWithOpenChildElements)}e.openElements.popUntilTagNamePopped(vh.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode()}else{e._err(t,eh.endTagWithoutMatchingOpenElement)}}function sp(e,t){e.openElements.pop();e.insertionMode=Id.AFTER_HEAD;e._processToken(t)}function lp(e,t){switch(t.tagID){case vh.HTML:{Yp(e,t);break}case vh.BASEFONT:case vh.BGSOUND:case vh.HEAD:case vh.LINK:case vh.META:case vh.NOFRAMES:case vh.STYLE:{ip(e,t);break}case vh.NOSCRIPT:{e._err(t,eh.nestedNoscriptInHead);break}default:{up(e,t)}}}function ap(e,t){switch(t.tagID){case vh.NOSCRIPT:{e.openElements.pop();e.insertionMode=Id.IN_HEAD;break}case vh.BR:{up(e,t);break}default:{e._err(t,eh.endTagWithoutMatchingOpenElement)}}}function up(e,t){const n=t.type===ih.EOF?eh.openElementsLeftAfterEof:eh.disallowedContentInNoscriptInHead;e._err(t,n);e.openElements.pop();e.insertionMode=Id.IN_HEAD;e._processToken(t)}function cp(e,t){switch(t.tagID){case vh.HTML:{Yp(e,t);break}case vh.BODY:{e._insertElement(t,yh.HTML);e.framesetOk=false;e.insertionMode=Id.IN_BODY;break}case vh.FRAMESET:{e._insertElement(t,yh.HTML);e.insertionMode=Id.IN_FRAMESET;break}case vh.BASE:case vh.BASEFONT:case vh.BGSOUND:case vh.LINK:case vh.META:case vh.NOFRAMES:case vh.SCRIPT:case vh.STYLE:case vh.TEMPLATE:case vh.TITLE:{e._err(t,eh.abandonedHeadElementChild);e.openElements.push(e.headElement,vh.HEAD);ip(e,t);e.openElements.remove(e.headElement);break}case vh.HEAD:{e._err(t,eh.misplacedStartTagForHeadElement);break}default:{hp(e,t)}}}function fp(e,t){switch(t.tagID){case vh.BODY:case vh.HTML:case vh.BR:{hp(e,t);break}case vh.TEMPLATE:{op(e,t);break}default:{e._err(t,eh.endTagWithoutMatchingOpenElement)}}}function hp(e,t){e._insertFakeElement(Eh.BODY,vh.BODY);e.insertionMode=Id.IN_BODY;dp(e,t)}function dp(e,t){switch(t.type){case ih.CHARACTER:{mp(e,t);break}case ih.WHITESPACE_CHARACTER:{pp(e,t);break}case ih.COMMENT:{Vd(e,t);break}case ih.START_TAG:{Yp(e,t);break}case ih.END_TAG:{sm(e,t);break}case ih.EOF:{lm(e,t);break}}}function pp(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t)}function mp(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t);e.framesetOk=false}function gp(e,t){if(e.openElements.tmplCount===0){e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}}function bp(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n&&e.openElements.tmplCount===0){e.framesetOk=false;e.treeAdapter.adoptAttributes(n,t.attrs)}}function kp(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(e.framesetOk&&n){e.treeAdapter.detachNode(n);e.openElements.popAllUpToHtmlElement();e._insertElement(t,yh.HTML);e.insertionMode=Id.IN_FRAMESET}}function yp(e,t){if(e.openElements.hasInButtonScope(vh.P)){e._closePElement()}e._insertElement(t,yh.HTML)}function Dp(e,t){if(e.openElements.hasInButtonScope(vh.P)){e._closePElement()}if(e.openElements.currentTagId!==undefined&&xh.has(e.openElements.currentTagId)){e.openElements.pop()}e._insertElement(t,yh.HTML)}function wp(e,t){if(e.openElements.hasInButtonScope(vh.P)){e._closePElement()}e._insertElement(t,yh.HTML);e.skipNextNewLine=true;e.framesetOk=false}function Ep(e,t){const n=e.openElements.tmplCount>0;if(!e.formElement||n){if(e.openElements.hasInButtonScope(vh.P)){e._closePElement()}e._insertElement(t,yh.HTML);if(!n){e.formElement=e.openElements.current}}}function vp(e,t){e.framesetOk=false;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const i=e.openElements.tagIDs[t];if(n===vh.LI&&i===vh.LI||(n===vh.DD||n===vh.DT)&&(i===vh.DD||i===vh.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i);e.openElements.popUntilTagNamePopped(i);break}if(i!==vh.ADDRESS&&i!==vh.DIV&&i!==vh.P&&e._isSpecialElement(e.openElements.items[t],i)){break}}if(e.openElements.hasInButtonScope(vh.P)){e._closePElement()}e._insertElement(t,yh.HTML)}function Ap(e,t){if(e.openElements.hasInButtonScope(vh.P)){e._closePElement()}e._insertElement(t,yh.HTML);e.tokenizer.state=Oh.PLAINTEXT}function Cp(e,t){if(e.openElements.hasInScope(vh.BUTTON)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(vh.BUTTON)}e._reconstructActiveFormattingElements();e._insertElement(t,yh.HTML);e.framesetOk=false}function Fp(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Eh.A);if(n){$d(e,t);e.openElements.remove(n.element);e.activeFormattingElements.removeEntry(n)}e._reconstructActiveFormattingElements();e._insertElement(t,yh.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function Sp(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,yh.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function xp(e,t){e._reconstructActiveFormattingElements();if(e.openElements.hasInScope(vh.NOBR)){$d(e,t);e._reconstructActiveFormattingElements()}e._insertElement(t,yh.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function Tp(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,yh.HTML);e.activeFormattingElements.insertMarker();e.framesetOk=false}function Op(e,t){if(e.treeAdapter.getDocumentMode(e.document)!==wh.QUIRKS&&e.openElements.hasInButtonScope(vh.P)){e._closePElement()}e._insertElement(t,yh.HTML);e.framesetOk=false;e.insertionMode=Id.IN_TABLE}function Np(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,yh.HTML);e.framesetOk=false;t.ackSelfClosing=true}function Lp(e){const t=rh(e,Dh.TYPE);return t!=null&&t.toLowerCase()===Od}function Ip(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,yh.HTML);if(!Lp(t)){e.framesetOk=false}t.ackSelfClosing=true}function _p(e,t){e._appendElement(t,yh.HTML);t.ackSelfClosing=true}function Mp(e,t){if(e.openElements.hasInButtonScope(vh.P)){e._closePElement()}e._appendElement(t,yh.HTML);e.framesetOk=false;t.ackSelfClosing=true}function Bp(e,t){t.tagName=Eh.IMG;t.tagID=vh.IMG;Np(e,t)}function Rp(e,t){e._insertElement(t,yh.HTML);e.skipNextNewLine=true;e.tokenizer.state=Oh.RCDATA;e.originalInsertionMode=e.insertionMode;e.framesetOk=false;e.insertionMode=Id.TEXT}function Pp(e,t){if(e.openElements.hasInButtonScope(vh.P)){e._closePElement()}e._reconstructActiveFormattingElements();e.framesetOk=false;e._switchToTextParsing(t,Oh.RAWTEXT)}function qp(e,t){e.framesetOk=false;e._switchToTextParsing(t,Oh.RAWTEXT)}function Up(e,t){e._switchToTextParsing(t,Oh.RAWTEXT)}function jp(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,yh.HTML);e.framesetOk=false;e.insertionMode=e.insertionMode===Id.IN_TABLE||e.insertionMode===Id.IN_CAPTION||e.insertionMode===Id.IN_TABLE_BODY||e.insertionMode===Id.IN_ROW||e.insertionMode===Id.IN_CELL?Id.IN_SELECT_IN_TABLE:Id.IN_SELECT}function zp(e,t){if(e.openElements.currentTagId===vh.OPTION){e.openElements.pop()}e._reconstructActiveFormattingElements();e._insertElement(t,yh.HTML)}function Hp(e,t){if(e.openElements.hasInScope(vh.RUBY)){e.openElements.generateImpliedEndTags()}e._insertElement(t,yh.HTML)}function $p(e,t){if(e.openElements.hasInScope(vh.RUBY)){e.openElements.generateImpliedEndTagsWithExclusion(vh.RTC)}e._insertElement(t,yh.HTML)}function Vp(e,t){e._reconstructActiveFormattingElements();vd(t);Cd(t);if(t.selfClosing){e._appendElement(t,yh.MATHML)}else{e._insertElement(t,yh.MATHML)}t.ackSelfClosing=true}function Gp(e,t){e._reconstructActiveFormattingElements();Ad(t);Cd(t);if(t.selfClosing){e._appendElement(t,yh.SVG)}else{e._insertElement(t,yh.SVG)}t.ackSelfClosing=true}function Kp(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,yh.HTML)}function Yp(e,t){switch(t.tagID){case vh.I:case vh.S:case vh.B:case vh.U:case vh.EM:case vh.TT:case vh.BIG:case vh.CODE:case vh.FONT:case vh.SMALL:case vh.STRIKE:case vh.STRONG:{Sp(e,t);break}case vh.A:{Fp(e,t);break}case vh.H1:case vh.H2:case vh.H3:case vh.H4:case vh.H5:case vh.H6:{Dp(e,t);break}case vh.P:case vh.DL:case vh.OL:case vh.UL:case vh.DIV:case vh.DIR:case vh.NAV:case vh.MAIN:case vh.MENU:case vh.ASIDE:case vh.CENTER:case vh.FIGURE:case vh.FOOTER:case vh.HEADER:case vh.HGROUP:case vh.DIALOG:case vh.DETAILS:case vh.ADDRESS:case vh.ARTICLE:case vh.SEARCH:case vh.SECTION:case vh.SUMMARY:case vh.FIELDSET:case vh.BLOCKQUOTE:case vh.FIGCAPTION:{yp(e,t);break}case vh.LI:case vh.DD:case vh.DT:{vp(e,t);break}case vh.BR:case vh.IMG:case vh.WBR:case vh.AREA:case vh.EMBED:case vh.KEYGEN:{Np(e,t);break}case vh.HR:{Mp(e,t);break}case vh.RB:case vh.RTC:{Hp(e,t);break}case vh.RT:case vh.RP:{$p(e,t);break}case vh.PRE:case vh.LISTING:{wp(e,t);break}case vh.XMP:{Pp(e,t);break}case vh.SVG:{Gp(e,t);break}case vh.HTML:{gp(e,t);break}case vh.BASE:case vh.LINK:case vh.META:case vh.STYLE:case vh.TITLE:case vh.SCRIPT:case vh.BGSOUND:case vh.BASEFONT:case vh.TEMPLATE:{ip(e,t);break}case vh.BODY:{bp(e,t);break}case vh.FORM:{Ep(e,t);break}case vh.NOBR:{xp(e,t);break}case vh.MATH:{Vp(e,t);break}case vh.TABLE:{Op(e,t);break}case vh.INPUT:{Ip(e,t);break}case vh.PARAM:case vh.TRACK:case vh.SOURCE:{_p(e,t);break}case vh.IMAGE:{Bp(e,t);break}case vh.BUTTON:{Cp(e,t);break}case vh.APPLET:case vh.OBJECT:case vh.MARQUEE:{Tp(e,t);break}case vh.IFRAME:{qp(e,t);break}case vh.SELECT:{jp(e,t);break}case vh.OPTION:case vh.OPTGROUP:{zp(e,t);break}case vh.NOEMBED:case vh.NOFRAMES:{Up(e,t);break}case vh.FRAMESET:{kp(e,t);break}case vh.TEXTAREA:{Rp(e,t);break}case vh.NOSCRIPT:{if(e.options.scriptingEnabled){Up(e,t)}else{Kp(e,t)}break}case vh.PLAINTEXT:{Ap(e,t);break}case vh.COL:case vh.TH:case vh.TD:case vh.TR:case vh.HEAD:case vh.FRAME:case vh.TBODY:case vh.TFOOT:case vh.THEAD:case vh.CAPTION:case vh.COLGROUP:{break}default:{Kp(e,t)}}}function Wp(e,t){if(e.openElements.hasInScope(vh.BODY)){e.insertionMode=Id.AFTER_BODY;if(e.options.sourceCodeLocationInfo){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n){e._setEndLocation(n,t)}}}}function Xp(e,t){if(e.openElements.hasInScope(vh.BODY)){e.insertionMode=Id.AFTER_BODY;Vm(e,t)}}function Qp(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n)}}function Jp(e){const t=e.openElements.tmplCount>0;const{formElement:n}=e;if(!t){e.formElement=null}if((n||t)&&e.openElements.hasInScope(vh.FORM)){e.openElements.generateImpliedEndTags();if(t){e.openElements.popUntilTagNamePopped(vh.FORM)}else if(n){e.openElements.remove(n)}}}function Zp(e){if(!e.openElements.hasInButtonScope(vh.P)){e._insertFakeElement(Eh.P,vh.P)}e._closePElement()}function em(e){if(e.openElements.hasInListItemScope(vh.LI)){e.openElements.generateImpliedEndTagsWithExclusion(vh.LI);e.openElements.popUntilTagNamePopped(vh.LI)}}function tm(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTagsWithExclusion(n);e.openElements.popUntilTagNamePopped(n)}}function nm(e){if(e.openElements.hasNumberedHeaderInScope()){e.openElements.generateImpliedEndTags();e.openElements.popUntilNumberedHeaderPopped()}}function im(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker()}}function rm(e){e._reconstructActiveFormattingElements();e._insertFakeElement(Eh.BR,vh.BR);e.openElements.pop();e.framesetOk=false}function om(e,t){const n=t.tagName;const i=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t];const o=e.openElements.tagIDs[t];if(i===o&&(i!==vh.UNKNOWN||e.treeAdapter.getTagName(r)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i);if(e.openElements.stackTop>=t)e.openElements.shortenToLength(t);break}if(e._isSpecialElement(r,o)){break}}}function sm(e,t){switch(t.tagID){case vh.A:case vh.B:case vh.I:case vh.S:case vh.U:case vh.EM:case vh.TT:case vh.BIG:case vh.CODE:case vh.FONT:case vh.NOBR:case vh.SMALL:case vh.STRIKE:case vh.STRONG:{$d(e,t);break}case vh.P:{Zp(e);break}case vh.DL:case vh.UL:case vh.OL:case vh.DIR:case vh.DIV:case vh.NAV:case vh.PRE:case vh.MAIN:case vh.MENU:case vh.ASIDE:case vh.BUTTON:case vh.CENTER:case vh.FIGURE:case vh.FOOTER:case vh.HEADER:case vh.HGROUP:case vh.DIALOG:case vh.ADDRESS:case vh.ARTICLE:case vh.DETAILS:case vh.SEARCH:case vh.SECTION:case vh.SUMMARY:case vh.LISTING:case vh.FIELDSET:case vh.BLOCKQUOTE:case vh.FIGCAPTION:{Qp(e,t);break}case vh.LI:{em(e);break}case vh.DD:case vh.DT:{tm(e,t);break}case vh.H1:case vh.H2:case vh.H3:case vh.H4:case vh.H5:case vh.H6:{nm(e);break}case vh.BR:{rm(e);break}case vh.BODY:{Wp(e,t);break}case vh.HTML:{Xp(e,t);break}case vh.FORM:{Jp(e);break}case vh.APPLET:case vh.OBJECT:case vh.MARQUEE:{im(e,t);break}case vh.TEMPLATE:{op(e,t);break}default:{om(e,t)}}}function lm(e,t){if(e.tmplInsertionModeStack.length>0){Hm(e,t)}else{Yd(e,t)}}function am(e,t){var n;if(t.tagID===vh.SCRIPT){(n=e.scriptHandler)===null||n===void 0?void 0:n.call(e,e.openElements.current)}e.openElements.pop();e.insertionMode=e.originalInsertionMode}function um(e,t){e._err(t,eh.eofInElementThatCanContainOnlyText);e.openElements.pop();e.insertionMode=e.originalInsertionMode;e.onEof(t)}function cm(e,t){if(e.openElements.currentTagId!==undefined&&Md.has(e.openElements.currentTagId)){e.pendingCharacterTokens.length=0;e.hasNonWhitespacePendingCharacterToken=false;e.originalInsertionMode=e.insertionMode;e.insertionMode=Id.IN_TABLE_TEXT;switch(t.type){case ih.CHARACTER:{vm(e,t);break}case ih.WHITESPACE_CHARACTER:{Em(e,t);break}}}else{wm(e,t)}}function fm(e,t){e.openElements.clearBackToTableContext();e.activeFormattingElements.insertMarker();e._insertElement(t,yh.HTML);e.insertionMode=Id.IN_CAPTION}function hm(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,yh.HTML);e.insertionMode=Id.IN_COLUMN_GROUP}function dm(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(Eh.COLGROUP,vh.COLGROUP);e.insertionMode=Id.IN_COLUMN_GROUP;xm(e,t)}function pm(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,yh.HTML);e.insertionMode=Id.IN_TABLE_BODY}function mm(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(Eh.TBODY,vh.TBODY);e.insertionMode=Id.IN_TABLE_BODY;Nm(e,t)}function gm(e,t){if(e.openElements.hasInTableScope(vh.TABLE)){e.openElements.popUntilTagNamePopped(vh.TABLE);e._resetInsertionMode();e._processStartTag(t)}}function bm(e,t){if(Lp(t)){e._appendElement(t,yh.HTML)}else{wm(e,t)}t.ackSelfClosing=true}function km(e,t){if(!e.formElement&&e.openElements.tmplCount===0){e._insertElement(t,yh.HTML);e.formElement=e.openElements.current;e.openElements.pop()}}function ym(e,t){switch(t.tagID){case vh.TD:case vh.TH:case vh.TR:{mm(e,t);break}case vh.STYLE:case vh.SCRIPT:case vh.TEMPLATE:{ip(e,t);break}case vh.COL:{dm(e,t);break}case vh.FORM:{km(e,t);break}case vh.TABLE:{gm(e,t);break}case vh.TBODY:case vh.TFOOT:case vh.THEAD:{pm(e,t);break}case vh.INPUT:{bm(e,t);break}case vh.CAPTION:{fm(e,t);break}case vh.COLGROUP:{hm(e,t);break}default:{wm(e,t)}}}function Dm(e,t){switch(t.tagID){case vh.TABLE:{if(e.openElements.hasInTableScope(vh.TABLE)){e.openElements.popUntilTagNamePopped(vh.TABLE);e._resetInsertionMode()}break}case vh.TEMPLATE:{op(e,t);break}case vh.BODY:case vh.CAPTION:case vh.COL:case vh.COLGROUP:case vh.HTML:case vh.TBODY:case vh.TD:case vh.TFOOT:case vh.TH:case vh.THEAD:case vh.TR:{break}default:{wm(e,t)}}}function wm(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=true;dp(e,t);e.fosterParentingEnabled=n}function Em(e,t){e.pendingCharacterTokens.push(t)}function vm(e,t){e.pendingCharacterTokens.push(t);e.hasNonWhitespacePendingCharacterToken=true}function Am(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken){for(;n<e.pendingCharacterTokens.length;n++){wm(e,e.pendingCharacterTokens[n])}}else{for(;n<e.pendingCharacterTokens.length;n++){e._insertCharacters(e.pendingCharacterTokens[n])}}e.insertionMode=e.originalInsertionMode;e._processToken(t)}const Cm=new Set([vh.CAPTION,vh.COL,vh.COLGROUP,vh.TBODY,vh.TD,vh.TFOOT,vh.TH,vh.THEAD,vh.TR]);function Fm(e,t){const n=t.tagID;if(Cm.has(n)){if(e.openElements.hasInTableScope(vh.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(vh.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=Id.IN_TABLE;ym(e,t)}}else{Yp(e,t)}}function Sm(e,t){const n=t.tagID;switch(n){case vh.CAPTION:case vh.TABLE:{if(e.openElements.hasInTableScope(vh.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(vh.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=Id.IN_TABLE;if(n===vh.TABLE){Dm(e,t)}}break}case vh.BODY:case vh.COL:case vh.COLGROUP:case vh.HTML:case vh.TBODY:case vh.TD:case vh.TFOOT:case vh.TH:case vh.THEAD:case vh.TR:{break}default:{sm(e,t)}}}function xm(e,t){switch(t.tagID){case vh.HTML:{Yp(e,t);break}case vh.COL:{e._appendElement(t,yh.HTML);t.ackSelfClosing=true;break}case vh.TEMPLATE:{ip(e,t);break}default:{Om(e,t)}}}function Tm(e,t){switch(t.tagID){case vh.COLGROUP:{if(e.openElements.currentTagId===vh.COLGROUP){e.openElements.pop();e.insertionMode=Id.IN_TABLE}break}case vh.TEMPLATE:{op(e,t);break}case vh.COL:{break}default:{Om(e,t)}}}function Om(e,t){if(e.openElements.currentTagId===vh.COLGROUP){e.openElements.pop();e.insertionMode=Id.IN_TABLE;e._processToken(t)}}function Nm(e,t){switch(t.tagID){case vh.TR:{e.openElements.clearBackToTableBodyContext();e._insertElement(t,yh.HTML);e.insertionMode=Id.IN_ROW;break}case vh.TH:case vh.TD:{e.openElements.clearBackToTableBodyContext();e._insertFakeElement(Eh.TR,vh.TR);e.insertionMode=Id.IN_ROW;Im(e,t);break}case vh.CAPTION:case vh.COL:case vh.COLGROUP:case vh.TBODY:case vh.TFOOT:case vh.THEAD:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=Id.IN_TABLE;ym(e,t)}break}default:{ym(e,t)}}}function Lm(e,t){const n=t.tagID;switch(t.tagID){case vh.TBODY:case vh.TFOOT:case vh.THEAD:{if(e.openElements.hasInTableScope(n)){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=Id.IN_TABLE}break}case vh.TABLE:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=Id.IN_TABLE;Dm(e,t)}break}case vh.BODY:case vh.CAPTION:case vh.COL:case vh.COLGROUP:case vh.HTML:case vh.TD:case vh.TH:case vh.TR:{break}default:{Dm(e,t)}}}function Im(e,t){switch(t.tagID){case vh.TH:case vh.TD:{e.openElements.clearBackToTableRowContext();e._insertElement(t,yh.HTML);e.insertionMode=Id.IN_CELL;e.activeFormattingElements.insertMarker();break}case vh.CAPTION:case vh.COL:case vh.COLGROUP:case vh.TBODY:case vh.TFOOT:case vh.THEAD:case vh.TR:{if(e.openElements.hasInTableScope(vh.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=Id.IN_TABLE_BODY;Nm(e,t)}break}default:{ym(e,t)}}}function _m(e,t){switch(t.tagID){case vh.TR:{if(e.openElements.hasInTableScope(vh.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=Id.IN_TABLE_BODY}break}case vh.TABLE:{if(e.openElements.hasInTableScope(vh.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=Id.IN_TABLE_BODY;Lm(e,t)}break}case vh.TBODY:case vh.TFOOT:case vh.THEAD:{if(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(vh.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=Id.IN_TABLE_BODY;Lm(e,t)}break}case vh.BODY:case vh.CAPTION:case vh.COL:case vh.COLGROUP:case vh.HTML:case vh.TD:case vh.TH:{break}default:{Dm(e,t)}}}function Mm(e,t){const n=t.tagID;if(Cm.has(n)){if(e.openElements.hasInTableScope(vh.TD)||e.openElements.hasInTableScope(vh.TH)){e._closeTableCell();Im(e,t)}}else{Yp(e,t)}}function Bm(e,t){const n=t.tagID;switch(n){case vh.TD:case vh.TH:{if(e.openElements.hasInTableScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker();e.insertionMode=Id.IN_ROW}break}case vh.TABLE:case vh.TBODY:case vh.TFOOT:case vh.THEAD:case vh.TR:{if(e.openElements.hasInTableScope(n)){e._closeTableCell();_m(e,t)}break}case vh.BODY:case vh.CAPTION:case vh.COL:case vh.COLGROUP:case vh.HTML:{break}default:{sm(e,t)}}}function Rm(e,t){switch(t.tagID){case vh.HTML:{Yp(e,t);break}case vh.OPTION:{if(e.openElements.currentTagId===vh.OPTION){e.openElements.pop()}e._insertElement(t,yh.HTML);break}case vh.OPTGROUP:{if(e.openElements.currentTagId===vh.OPTION){e.openElements.pop()}if(e.openElements.currentTagId===vh.OPTGROUP){e.openElements.pop()}e._insertElement(t,yh.HTML);break}case vh.HR:{if(e.openElements.currentTagId===vh.OPTION){e.openElements.pop()}if(e.openElements.currentTagId===vh.OPTGROUP){e.openElements.pop()}e._appendElement(t,yh.HTML);t.ackSelfClosing=true;break}case vh.INPUT:case vh.KEYGEN:case vh.TEXTAREA:case vh.SELECT:{if(e.openElements.hasInSelectScope(vh.SELECT)){e.openElements.popUntilTagNamePopped(vh.SELECT);e._resetInsertionMode();if(t.tagID!==vh.SELECT){e._processStartTag(t)}}break}case vh.SCRIPT:case vh.TEMPLATE:{ip(e,t);break}}}function Pm(e,t){switch(t.tagID){case vh.OPTGROUP:{if(e.openElements.stackTop>0&&e.openElements.currentTagId===vh.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===vh.OPTGROUP){e.openElements.pop()}if(e.openElements.currentTagId===vh.OPTGROUP){e.openElements.pop()}break}case vh.OPTION:{if(e.openElements.currentTagId===vh.OPTION){e.openElements.pop()}break}case vh.SELECT:{if(e.openElements.hasInSelectScope(vh.SELECT)){e.openElements.popUntilTagNamePopped(vh.SELECT);e._resetInsertionMode()}break}case vh.TEMPLATE:{op(e,t);break}}}function qm(e,t){const n=t.tagID;if(n===vh.CAPTION||n===vh.TABLE||n===vh.TBODY||n===vh.TFOOT||n===vh.THEAD||n===vh.TR||n===vh.TD||n===vh.TH){e.openElements.popUntilTagNamePopped(vh.SELECT);e._resetInsertionMode();e._processStartTag(t)}else{Rm(e,t)}}function Um(e,t){const n=t.tagID;if(n===vh.CAPTION||n===vh.TABLE||n===vh.TBODY||n===vh.TFOOT||n===vh.THEAD||n===vh.TR||n===vh.TD||n===vh.TH){if(e.openElements.hasInTableScope(n)){e.openElements.popUntilTagNamePopped(vh.SELECT);e._resetInsertionMode();e.onEndTag(t)}}else{Pm(e,t)}}function jm(e,t){switch(t.tagID){case vh.BASE:case vh.BASEFONT:case vh.BGSOUND:case vh.LINK:case vh.META:case vh.NOFRAMES:case vh.SCRIPT:case vh.STYLE:case vh.TEMPLATE:case vh.TITLE:{ip(e,t);break}case vh.CAPTION:case vh.COLGROUP:case vh.TBODY:case vh.TFOOT:case vh.THEAD:{e.tmplInsertionModeStack[0]=Id.IN_TABLE;e.insertionMode=Id.IN_TABLE;ym(e,t);break}case vh.COL:{e.tmplInsertionModeStack[0]=Id.IN_COLUMN_GROUP;e.insertionMode=Id.IN_COLUMN_GROUP;xm(e,t);break}case vh.TR:{e.tmplInsertionModeStack[0]=Id.IN_TABLE_BODY;e.insertionMode=Id.IN_TABLE_BODY;Nm(e,t);break}case vh.TD:case vh.TH:{e.tmplInsertionModeStack[0]=Id.IN_ROW;e.insertionMode=Id.IN_ROW;Im(e,t);break}default:{e.tmplInsertionModeStack[0]=Id.IN_BODY;e.insertionMode=Id.IN_BODY;Yp(e,t)}}}function zm(e,t){if(t.tagID===vh.TEMPLATE){op(e,t)}}function Hm(e,t){if(e.openElements.tmplCount>0){e.openElements.popUntilTagNamePopped(vh.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode();e.onEof(t)}else{Yd(e,t)}}function $m(e,t){if(t.tagID===vh.HTML){Yp(e,t)}else{Gm(e,t)}}function Vm(e,t){var n;if(t.tagID===vh.HTML){if(!e.fragmentContext){e.insertionMode=Id.AFTER_AFTER_BODY}if(e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===vh.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];if(i&&!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0?void 0:n.endTag)){e._setEndLocation(i,t)}}}else{Gm(e,t)}}function Gm(e,t){e.insertionMode=Id.IN_BODY;dp(e,t)}function Km(e,t){switch(t.tagID){case vh.HTML:{Yp(e,t);break}case vh.FRAMESET:{e._insertElement(t,yh.HTML);break}case vh.FRAME:{e._appendElement(t,yh.HTML);t.ackSelfClosing=true;break}case vh.NOFRAMES:{ip(e,t);break}}}function Ym(e,t){if(t.tagID===vh.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()){e.openElements.pop();if(!e.fragmentContext&&e.openElements.currentTagId!==vh.FRAMESET){e.insertionMode=Id.AFTER_FRAMESET}}}function Wm(e,t){switch(t.tagID){case vh.HTML:{Yp(e,t);break}case vh.NOFRAMES:{ip(e,t);break}}}function Xm(e,t){if(t.tagID===vh.HTML){e.insertionMode=Id.AFTER_AFTER_FRAMESET}}function Qm(e,t){if(t.tagID===vh.HTML){Yp(e,t)}else{Jm(e,t)}}function Jm(e,t){e.insertionMode=Id.IN_BODY;dp(e,t)}function Zm(e,t){switch(t.tagID){case vh.HTML:{Yp(e,t);break}case vh.NOFRAMES:{ip(e,t);break}}}function eg(e,t){t.chars=Gf;e._insertCharacters(t)}function tg(e,t){e._insertCharacters(t);e.framesetOk=false}function ng(e){while(e.treeAdapter.getNamespaceURI(e.openElements.current)!==yh.HTML&&e.openElements.currentTagId!==undefined&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current)){e.openElements.pop()}}function ig(e,t){if(Ed(t)){ng(e);e._startTagOutsideForeignContent(t)}else{const n=e._getAdjustedCurrentElement();const i=e.treeAdapter.getNamespaceURI(n);if(i===yh.MATHML){vd(t)}else if(i===yh.SVG){Fd(t);Ad(t)}Cd(t);if(t.selfClosing){e._appendElement(t,i)}else{e._insertElement(t,i)}t.ackSelfClosing=true}}function rg(e,t){if(t.tagID===vh.P||t.tagID===vh.BR){ng(e);e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===yh.HTML){e._endTagOutsideForeignContent(t);break}const r=e.treeAdapter.getTagName(i);if(r.toLowerCase()===t.tagName){t.tagName=r;e.openElements.shortenToLength(n);break}}}const og=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi;const sg=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]);const lg={sourceCodeLocationInfo:true,scriptingEnabled:false};function ag(e,t){const n=Eg(e);const i=ms("type",{handlers:{root:cg,element:fg,text:hg,comment:mg,doctype:dg,raw:gg},unknown:bg});const r={parser:n?new Rd(lg):Rd.getFragmentParser(undefined,lg),handle(e){i(e,r)},stitches:false,options:t||{}};i(e,r);kg(r,Ga());const o=n?r.parser.document:r.parser.getFragment();const s=qc(o,{file:r.options.file});if(r.stitches){Is(s,"comment",(function(e,t,n){const i=e;if(i.value.stitch&&n&&t!==undefined){const e=n.children;e[t]=i.value.stitch;return t}}))}if(s.type==="root"&&s.children.length===1&&s.children[0].type===e.type){return s.children[0]}return s}function ug(e,t){let n=-1;if(e){while(++n<e.length){t.handle(e[n])}}}function cg(e,t){ug(e.children,t)}function fg(e,t){Dg(e,t);ug(e.children,t);wg(e,t)}function hg(e,t){if(t.parser.tokenizer.state>4){t.parser.tokenizer.state=0}const n={type:ih.CHARACTER,chars:e.value,location:vg(e)};kg(t,Ga(e));t.parser.currentToken=n;t.parser._processToken(t.parser.currentToken)}function dg(e,t){const n={type:ih.DOCTYPE,name:"html",forceQuirks:false,publicId:"",systemId:"",location:vg(e)};kg(t,Ga(e));t.parser.currentToken=n;t.parser._processToken(t.parser.currentToken)}function pg(e,t){t.stitches=true;const n=Ag(e);if("children"in e&&"children"in n){const i=ag({type:"root",children:e.children},t.options);n.children=i.children}mg({type:"comment",value:{stitch:n}},t)}function mg(e,t){const n=e.value;const i={type:ih.COMMENT,data:n,location:vg(e)};kg(t,Ga(e));t.parser.currentToken=i;t.parser._processToken(t.parser.currentToken)}function gg(e,t){t.parser.tokenizer.preprocessor.html="";t.parser.tokenizer.preprocessor.pos=-1;t.parser.tokenizer.preprocessor.lastGapPos=-2;t.parser.tokenizer.preprocessor.gapStack=[];t.parser.tokenizer.preprocessor.skipNextNewLine=false;t.parser.tokenizer.preprocessor.lastChunkWritten=false;t.parser.tokenizer.preprocessor.endOfChunkHit=false;t.parser.tokenizer.preprocessor.isEol=false;yg(t,Ga(e));t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(og,"&lt;$1$2"):e.value,false);t.parser.tokenizer._runParsingLoop();if(t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=true;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function bg(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type)){pg(n,t)}else{let e="";if(sg.has(n.type)){e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"}throw new Error("Cannot compile `"+n.type+"` node"+e)}}function kg(e,t){yg(e,t);const n=e.parser.tokenizer.currentCharacterToken;if(n&&n.location){n.location.endLine=e.parser.tokenizer.preprocessor.line;n.location.endCol=e.parser.tokenizer.preprocessor.col+1;n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1;e.parser.currentToken=n;e.parser._processToken(e.parser.currentToken)}e.parser.tokenizer.paused=false;e.parser.tokenizer.inLoop=false;e.parser.tokenizer.active=false;e.parser.tokenizer.returnState=Oh.DATA;e.parser.tokenizer.charRefCode=-1;e.parser.tokenizer.consumedAfterSnapshot=-1;e.parser.tokenizer.currentLocation=null;e.parser.tokenizer.currentCharacterToken=null;e.parser.tokenizer.currentToken=null;e.parser.tokenizer.currentAttr={name:"",value:""}}function yg(e,t){if(t&&t.offset!==undefined){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1;e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset;e.parser.tokenizer.preprocessor.line=t.line;e.parser.tokenizer.currentLocation=n}}function Dg(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Oh.PLAINTEXT)return;kg(t,Ga(e));const i=t.parser.openElements.current;let r="namespaceURI"in i?i.namespaceURI:Bc.html;if(r===Bc.html&&n==="svg"){r=Bc.svg}const o=_f({...e,children:[]},{space:r===Bc.svg?"svg":"html"});const s={type:ih.START_TAG,tagName:n,tagID:Ch(n),selfClosing:false,ackSelfClosing:false,attrs:"attrs"in o?o.attrs:[],location:vg(e)};t.parser.currentToken=s;t.parser._processToken(t.parser.currentToken);t.parser.tokenizer.lastStartTagName=n}function wg(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&$f.includes(n)){return}if(t.parser.tokenizer.state===Oh.PLAINTEXT)return;kg(t,Va(e));const i={type:ih.END_TAG,tagName:n,tagID:Ch(n),selfClosing:false,ackSelfClosing:false,attrs:[],location:vg(e)};t.parser.currentToken=i;t.parser._processToken(t.parser.currentToken);if(n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Oh.RCDATA||t.parser.tokenizer.state===Oh.RAWTEXT||t.parser.tokenizer.state===Oh.SCRIPT_DATA)){t.parser.tokenizer.state=Oh.DATA}}function Eg(e){const t=e.type==="root"?e.children[0]:e;return Boolean(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function vg(e){const t=Ga(e)||{line:undefined,column:undefined,offset:undefined};const n=Va(e)||{line:undefined,column:undefined,offset:undefined};const i={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset};return i}function Ag(e){return"children"in e?Fu({...e,children:[]}):Fu(e)}function Cg(e){return function(t,n){const i=ag(t,{...e,file:n});return i}}const Fg=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;const Sg=Object.hasOwnProperty;class xg{constructor(){this.reset()}slug(e,t){const n=this;let i=Tg(e,t===true);const r=i;while(Sg.call(n.occurrences,i)){n.occurrences[r]++;i=r+"-"+n.occurrences[r]}n.occurrences[i]=0;return i}reset(){this.occurrences=Object.create(null)}}function Tg(e,t){if(typeof e!=="string")return"";if(!t)e=e.toLowerCase();return e.replace(Fg,"").replace(/ /g,"-")}function Og(e){const t=e.type==="element"?e.tagName.toLowerCase():"";const n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:undefined}function Ng(e){if("children"in e){return Ig(e)}return"value"in e?e.value:""}function Lg(e){if(e.type==="text"){return e.value}return"children"in e?Ig(e):""}function Ig(e){let t=-1;const n=[];while(++t<e.children.length){n[t]=Lg(e.children[t])}return n.join("")}const _g={};const Mg=new xg;function Bg(e){const t=e||_g;const n=t.prefix||"";return function(e){Mg.reset();Is(e,"element",(function(e){if(Og(e)&&!e.properties.id){e.properties.id=n+Mg.slug(Ng(e))}}))}}let Rg=class e{constructor(e,t,n){this.normal=t;this.property=e;if(n){this.space=n}}};Rg.prototype.normal={};Rg.prototype.property={};Rg.prototype.space=undefined;function Pg(e,t){const n={};const i={};for(const t of e){Object.assign(n,t.property);Object.assign(i,t.normal)}return new Rg(n,i,t)}function qg(e){return e.toLowerCase()}class Ug{constructor(e,t){this.attribute=t;this.property=e}}Ug.prototype.attribute="";Ug.prototype.booleanish=false;Ug.prototype.boolean=false;Ug.prototype.commaOrSpaceSeparated=false;Ug.prototype.commaSeparated=false;Ug.prototype.defined=false;Ug.prototype.mustUseProperty=false;Ug.prototype.number=false;Ug.prototype.overloadedBoolean=false;Ug.prototype.property="";Ug.prototype.spaceSeparated=false;Ug.prototype.space=undefined;let jg=0;const zg=Wg();const Hg=Wg();const $g=Wg();const Vg=Wg();const Gg=Wg();const Kg=Wg();const Yg=Wg();function Wg(){return 2**++jg}var Xg=Object.freeze({__proto__:null,boolean:zg,booleanish:Hg,commaOrSpaceSeparated:Yg,commaSeparated:Kg,number:Vg,overloadedBoolean:$g,spaceSeparated:Gg});const Qg=Object.keys(Xg);class Jg extends Ug{constructor(e,t,n,i){let r=-1;super(e,t);Zg(this,"space",i);if(typeof n==="number"){while(++r<Qg.length){const e=Qg[r];Zg(this,Qg[r],(n&Xg[e])===Xg[e])}}}}Jg.prototype.defined=true;function Zg(e,t,n){if(n){e[t]=n}}function eb(e){const t={};const n={};for(const[i,r]of Object.entries(e.properties)){const o=new Jg(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){o.mustUseProperty=true}t[i]=o;n[qg(i)]=i;n[qg(o.attribute)]=i}return new Rg(t,n,e.space)}const tb=eb({properties:{ariaActiveDescendant:null,ariaAtomic:Hg,ariaAutoComplete:null,ariaBusy:Hg,ariaChecked:Hg,ariaColCount:Vg,ariaColIndex:Vg,ariaColSpan:Vg,ariaControls:Gg,ariaCurrent:null,ariaDescribedBy:Gg,ariaDetails:null,ariaDisabled:Hg,ariaDropEffect:Gg,ariaErrorMessage:null,ariaExpanded:Hg,ariaFlowTo:Gg,ariaGrabbed:Hg,ariaHasPopup:null,ariaHidden:Hg,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Gg,ariaLevel:Vg,ariaLive:null,ariaModal:Hg,ariaMultiLine:Hg,ariaMultiSelectable:Hg,ariaOrientation:null,ariaOwns:Gg,ariaPlaceholder:null,ariaPosInSet:Vg,ariaPressed:Hg,ariaReadOnly:Hg,ariaRelevant:null,ariaRequired:Hg,ariaRoleDescription:Gg,ariaRowCount:Vg,ariaRowIndex:Vg,ariaRowSpan:Vg,ariaSelected:Hg,ariaSetSize:Vg,ariaSort:null,ariaValueMax:Vg,ariaValueMin:Vg,ariaValueNow:Vg,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function nb(e,t){return t in e?e[t]:t}function ib(e,t){return nb(e,t.toLowerCase())}const rb=eb({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kg,acceptCharset:Gg,accessKey:Gg,action:null,allow:null,allowFullScreen:zg,allowPaymentRequest:zg,allowUserMedia:zg,alt:null,as:null,async:zg,autoCapitalize:null,autoComplete:Gg,autoFocus:zg,autoPlay:zg,blocking:Gg,capture:null,charSet:null,checked:zg,cite:null,className:Gg,cols:Vg,colSpan:null,content:null,contentEditable:Hg,controls:zg,controlsList:Gg,coords:Vg|Kg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:zg,defer:zg,dir:null,dirName:null,disabled:zg,download:$g,draggable:Hg,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:zg,formTarget:null,headers:Gg,height:Vg,hidden:$g,high:Vg,href:null,hrefLang:null,htmlFor:Gg,httpEquiv:Gg,id:null,imageSizes:null,imageSrcSet:null,inert:zg,inputMode:null,integrity:null,is:null,isMap:zg,itemId:null,itemProp:Gg,itemRef:Gg,itemScope:zg,itemType:Gg,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:zg,low:Vg,manifest:null,max:null,maxLength:Vg,media:null,method:null,min:null,minLength:Vg,multiple:zg,muted:zg,name:null,nonce:null,noModule:zg,noValidate:zg,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:zg,optimum:Vg,pattern:null,ping:Gg,placeholder:null,playsInline:zg,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:zg,referrerPolicy:null,rel:Gg,required:zg,reversed:zg,rows:Vg,rowSpan:Vg,sandbox:Gg,scope:null,scoped:zg,seamless:zg,selected:zg,shadowRootClonable:zg,shadowRootDelegatesFocus:zg,shadowRootMode:null,shape:null,size:Vg,sizes:null,slot:null,span:Vg,spellCheck:Hg,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Vg,step:null,style:null,tabIndex:Vg,target:null,title:null,translate:null,type:null,typeMustMatch:zg,useMap:null,value:Hg,width:Vg,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Gg,axis:null,background:null,bgColor:null,border:Vg,borderColor:null,bottomMargin:Vg,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:zg,declare:zg,event:null,face:null,frame:null,frameBorder:null,hSpace:Vg,leftMargin:Vg,link:null,longDesc:null,lowSrc:null,marginHeight:Vg,marginWidth:Vg,noResize:zg,noHref:zg,noShade:zg,noWrap:zg,object:null,profile:null,prompt:null,rev:null,rightMargin:Vg,rules:null,scheme:null,scrolling:Hg,standby:null,summary:null,text:null,topMargin:Vg,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Vg,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:zg,disableRemotePlayback:zg,prefix:null,property:null,results:Vg,security:null,unselectable:null},space:"html",transform:ib});const ob=eb({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Yg,accentHeight:Vg,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Vg,amplitude:Vg,arabicForm:null,ascent:Vg,attributeName:null,attributeType:null,azimuth:Vg,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Vg,by:null,calcMode:null,capHeight:Vg,className:Gg,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Vg,diffuseConstant:Vg,direction:null,display:null,dur:null,divisor:Vg,dominantBaseline:null,download:zg,dx:null,dy:null,edgeMode:null,editable:null,elevation:Vg,enableBackground:null,end:null,event:null,exponent:Vg,externalResourcesRequired:null,fill:null,fillOpacity:Vg,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kg,g2:Kg,glyphName:Kg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Vg,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Vg,horizOriginX:Vg,horizOriginY:Vg,id:null,ideographic:Vg,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Vg,k:Vg,k1:Vg,k2:Vg,k3:Vg,k4:Vg,kernelMatrix:Yg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Vg,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Vg,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Vg,overlineThickness:Vg,paintOrder:null,panose1:null,path:null,pathLength:Vg,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Gg,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Vg,pointsAtY:Vg,pointsAtZ:Vg,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Yg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Yg,rev:Yg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Yg,requiredFeatures:Yg,requiredFonts:Yg,requiredFormats:Yg,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Vg,specularExponent:Vg,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Vg,strikethroughThickness:Vg,string:null,stroke:null,strokeDashArray:Yg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Vg,strokeOpacity:Vg,strokeWidth:null,style:null,surfaceScale:Vg,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Yg,tabIndex:Vg,tableValues:null,target:null,targetX:Vg,targetY:Vg,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Yg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Vg,underlineThickness:Vg,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Vg,values:null,vAlphabetic:Vg,vMathematical:Vg,vectorEffect:null,vHanging:Vg,vIdeographic:Vg,version:null,vertAdvY:Vg,vertOriginX:Vg,vertOriginY:Vg,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Vg,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nb});const sb=eb({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});const lb=eb({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ib});const ab=eb({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});const ub=/[A-Z]/g;const cb=/-[a-z]/g;const fb=/^data[-\w.:]+$/i;function hb(e,t){const n=qg(t);let i=t;let r=Ug;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&fb.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(cb,pb);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!cb.test(e)){let n=e.replace(ub,db);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=Jg}return new r(i,t)}function db(e){return"-"+e.toLowerCase()}function pb(e){return e.charAt(1).toUpperCase()}const mb=Pg([tb,rb,sb,lb,ab],"html");const gb=Pg([tb,ob,sb,lb,ab],"svg");const bb=/^>|^->|<!--|-->|--!>|<!-$/g;const kb=[">"];const yb=["<",">"];function Db(e,t,n,i){return i.settings.bogusComments?"<?"+cr(e.value,Object.assign({},i.settings.characterReferences,{subset:kb}))+">":"\x3c!--"+e.value.replace(bb,r)+"--\x3e";function r(e){return cr(e,Object.assign({},i.settings.characterReferences,{subset:yb}))}}function wb(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}function Eb(e,t){const n=t||{};const i=e[e.length-1]===""?[...e,""]:e;return i.join((n.padRight?" ":"")+","+(n.padLeft===false?"":" ")).trim()}function vb(e){return e.join(" ").trim()}const Ab=/[ \t\n\f\r]/g;function Cb(e){return typeof e==="object"?e.type==="text"?Fb(e.value):false:Fb(e)}function Fb(e){return e.replace(Ab,"")===""}const Sb=Ob(1);const xb=Ob(-1);const Tb=[];function Ob(e){return t;function t(t,n,i){const r=t?t.children:Tb;let o=(n||0)+e;let s=r[o];if(!i){while(s&&Cb(s)){o+=e;s=r[o]}}return s}}const Nb={}.hasOwnProperty;function Lb(e){return t;function t(t,n,i){return Nb.call(e,t.tagName)&&e[t.tagName](t,n,i)}}const Ib=Lb({body:Bb,caption:_b,colgroup:_b,dd:Ub,dt:qb,head:_b,html:Mb,li:Pb,optgroup:zb,option:Hb,p:Rb,rp:jb,rt:jb,tbody:Vb,td:Yb,tfoot:Gb,th:Yb,thead:$b,tr:Kb});function _b(e,t,n){const i=Sb(n,t,true);return!i||i.type!=="comment"&&!(i.type==="text"&&Cb(i.value.charAt(0)))}function Mb(e,t,n){const i=Sb(n,t);return!i||i.type!=="comment"}function Bb(e,t,n){const i=Sb(n,t);return!i||i.type!=="comment"}function Rb(e,t,n){const i=Sb(n,t);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Pb(e,t,n){const i=Sb(n,t);return!i||i.type==="element"&&i.tagName==="li"}function qb(e,t,n){const i=Sb(n,t);return Boolean(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function Ub(e,t,n){const i=Sb(n,t);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function jb(e,t,n){const i=Sb(n,t);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function zb(e,t,n){const i=Sb(n,t);return!i||i.type==="element"&&i.tagName==="optgroup"}function Hb(e,t,n){const i=Sb(n,t);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function $b(e,t,n){const i=Sb(n,t);return Boolean(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function Vb(e,t,n){const i=Sb(n,t);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function Gb(e,t,n){return!Sb(n,t)}function Kb(e,t,n){const i=Sb(n,t);return!i||i.type==="element"&&i.tagName==="tr"}function Yb(e,t,n){const i=Sb(n,t);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const Wb=Lb({body:Jb,colgroup:Zb,head:Qb,html:Xb,tbody:ek});function Xb(e){const t=Sb(e,-1);return!t||t.type!=="comment"}function Qb(e){const t=new Set;for(const n of e.children){if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return false;t.add(n.tagName)}}const n=e.children[0];return!n||n.type==="element"}function Jb(e){const t=Sb(e,-1,true);return!t||t.type!=="comment"&&!(t.type==="text"&&Cb(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Zb(e,t,n){const i=xb(n,t);const r=Sb(e,-1,true);if(n&&i&&i.type==="element"&&i.tagName==="colgroup"&&Ib(i,n.children.indexOf(i),n)){return false}return Boolean(r&&r.type==="element"&&r.tagName==="col")}function ek(e,t,n){const i=xb(n,t);const r=Sb(e,-1);if(n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Ib(i,n.children.indexOf(i),n)){return false}return Boolean(r&&r.type==="element"&&r.tagName==="tr")}const tk={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function nk(e,t,n,i){const r=i.schema;const o=r.space==="svg"?false:i.settings.omitOptionalTags;let s=r.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase());const l=[];let a;if(r.space==="html"&&e.tagName==="svg"){i.schema=gb}const u=ik(i,e.properties);const c=i.all(r.space==="html"&&e.tagName==="template"?e.content:e);i.schema=r;if(c)s=false;if(u||!o||!Wb(e,t,n)){l.push("<",e.tagName,u?" "+u:"");if(s&&(r.space==="svg"||i.settings.closeSelfClosing)){a=u.charAt(u.length-1);if(!i.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'"){l.push(" ")}l.push("/")}l.push(">")}l.push(c);if(!s&&(!o||!Ib(e,t,n))){l.push("</"+e.tagName+">")}return l.join("")}function ik(e,t){const n=[];let i=-1;let r;if(t){for(r in t){if(t[r]!==null&&t[r]!==undefined){const i=rk(e,r,t[r]);if(i)n.push(i)}}}while(++i<n.length){const t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):undefined;if(i!==n.length-1&&t!=='"'&&t!=="'"){n[i]+=" "}}return n.join("")}function rk(e,t,n){const i=hb(e.schema,t);const r=e.settings.allowParseErrors&&e.schema.space==="html"?0:1;const o=e.settings.allowDangerousCharacters?0:1;let s=e.quote;let l;if(i.overloadedBoolean&&(n===i.attribute||n==="")){n=true}else if((i.boolean||i.overloadedBoolean)&&(typeof n!=="string"||n===i.attribute||n==="")){n=Boolean(n)}if(n===null||n===undefined||n===false||typeof n==="number"&&Number.isNaN(n)){return""}const a=cr(i.attribute,Object.assign({},e.settings.characterReferences,{subset:tk.name[r][o]}));if(n===true)return a;n=Array.isArray(n)?(i.commaSeparated?Eb:vb)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n);if(e.settings.collapseEmptyAttributes&&!n)return a;if(e.settings.preferUnquoted){l=cr(n,Object.assign({},e.settings.characterReferences,{attribute:true,subset:tk.unquoted[r][o]}))}if(l!==n){if(e.settings.quoteSmart&&Ni(n,s)>Ni(n,e.alternative)){s=e.alternative}l=s+cr(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?tk.single:tk.double)[r][o],attribute:true}))+s}return a+(l?"="+l:l)}const ok=["<","&"];function sk(e,t,n,i){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:cr(e.value,Object.assign({},i.settings.characterReferences,{subset:ok}))}function lk(e,t,n,i){return i.settings.allowDangerousHtml?e.value:sk(e,t,n,i)}function ak(e,t,n,i){return i.all(e)}const uk=ms("type",{invalid:ck,unknown:fk,handlers:{comment:Db,doctype:wb,element:nk,raw:lk,root:ak,text:sk}});function ck(e){throw new Error("Expected node, not `"+e+"`")}function fk(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const hk={};const dk={};const pk=[];function mk(e,t){const n=t||hk;const i=n.quote||'"';const r=i==='"'?"'":'"';if(i!=='"'&&i!=="'"){throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`")}const o={one:gk,all:bk,settings:{omitOptionalTags:n.omitOptionalTags||false,allowParseErrors:n.allowParseErrors||false,allowDangerousCharacters:n.allowDangerousCharacters||false,quoteSmart:n.quoteSmart||false,preferUnquoted:n.preferUnquoted||false,tightAttributes:n.tightAttributes||false,upperDoctype:n.upperDoctype||false,tightDoctype:n.tightDoctype||false,bogusComments:n.bogusComments||false,tightCommaSeparatedLists:n.tightCommaSeparatedLists||false,tightSelfClosing:n.tightSelfClosing||false,collapseEmptyAttributes:n.collapseEmptyAttributes||false,allowDangerousHtml:n.allowDangerousHtml||false,voids:n.voids||$f,characterReferences:n.characterReferences||dk,closeSelfClosing:n.closeSelfClosing||false,closeEmptyElements:n.closeEmptyElements||false},schema:n.space==="svg"?gb:mb,quote:i,alternative:r};return o.one(Array.isArray(e)?{type:"root",children:e}:e,undefined,undefined)}function gk(e,t,n){return uk(e,t,n,this)}function bk(e){const t=[];const n=e&&e.children||pk;let i=-1;while(++i<n.length){t[i]=this.one(n[i],i,e)}return t.join("")}function kk(e){const t=this;const n={...t.data("settings"),...e};t.compiler=i;function i(e){return mk(e,n)}}const yk=Symbol.for("yaml.alias");const Dk=Symbol.for("yaml.document");const wk=Symbol.for("yaml.map");const Ek=Symbol.for("yaml.pair");const vk=Symbol.for("yaml.scalar");const Ak=Symbol.for("yaml.seq");const Ck=Symbol.for("yaml.node.type");const Fk=e=>!!e&&typeof e==="object"&&e[Ck]===yk;const Sk=e=>!!e&&typeof e==="object"&&e[Ck]===Dk;const xk=e=>!!e&&typeof e==="object"&&e[Ck]===wk;const Tk=e=>!!e&&typeof e==="object"&&e[Ck]===Ek;const Ok=e=>!!e&&typeof e==="object"&&e[Ck]===vk;const Nk=e=>!!e&&typeof e==="object"&&e[Ck]===Ak;function Lk(e){if(e&&typeof e==="object")switch(e[Ck]){case wk:case Ak:return true}return false}function Ik(e){if(e&&typeof e==="object")switch(e[Ck]){case yk:case wk:case vk:case Ak:return true}return false}const _k=e=>(Ok(e)||Lk(e))&&!!e.anchor;const Mk=Symbol("break visit");const Bk=Symbol("skip children");const Rk=Symbol("remove node");function Pk(e,t){const n=zk(t);if(Sk(e)){const t=qk(null,e.contents,n,Object.freeze([e]));if(t===Rk)e.contents=null}else qk(null,e,n,Object.freeze([]))}Pk.BREAK=Mk;Pk.SKIP=Bk;Pk.REMOVE=Rk;function qk(e,t,n,i){const r=Hk(e,t,n,i);if(Ik(r)||Tk(r)){$k(e,i,r);return qk(e,r,n,i)}if(typeof r!=="symbol"){if(Lk(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=qk(e,t.items[e],n,i);if(typeof r==="number")e=r-1;else if(r===Mk)return Mk;else if(r===Rk){t.items.splice(e,1);e-=1}}}else if(Tk(t)){i=Object.freeze(i.concat(t));const e=qk("key",t.key,n,i);if(e===Mk)return Mk;else if(e===Rk)t.key=null;const r=qk("value",t.value,n,i);if(r===Mk)return Mk;else if(r===Rk)t.value=null}}return r}async function Uk(e,t){const n=zk(t);if(Sk(e)){const t=await jk(null,e.contents,n,Object.freeze([e]));if(t===Rk)e.contents=null}else await jk(null,e,n,Object.freeze([]))}Uk.BREAK=Mk;Uk.SKIP=Bk;Uk.REMOVE=Rk;async function jk(e,t,n,i){const r=await Hk(e,t,n,i);if(Ik(r)||Tk(r)){$k(e,i,r);return jk(e,r,n,i)}if(typeof r!=="symbol"){if(Lk(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=await jk(e,t.items[e],n,i);if(typeof r==="number")e=r-1;else if(r===Mk)return Mk;else if(r===Rk){t.items.splice(e,1);e-=1}}}else if(Tk(t)){i=Object.freeze(i.concat(t));const e=await jk("key",t.key,n,i);if(e===Mk)return Mk;else if(e===Rk)t.key=null;const r=await jk("value",t.value,n,i);if(r===Mk)return Mk;else if(r===Rk)t.value=null}}return r}function zk(e){if(typeof e==="object"&&(e.Collection||e.Node||e.Value)){return Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e)}return e}function Hk(e,t,n,i){if(typeof n==="function")return n(e,t,i);if(xk(t))return n.Map?.(e,t,i);if(Nk(t))return n.Seq?.(e,t,i);if(Tk(t))return n.Pair?.(e,t,i);if(Ok(t))return n.Scalar?.(e,t,i);if(Fk(t))return n.Alias?.(e,t,i);return undefined}function $k(e,t,n){const i=t[t.length-1];if(Lk(i)){i.items[e]=n}else if(Tk(i)){if(e==="key")i.key=n;else i.value=n}else if(Sk(i)){i.contents=n}else{const e=Fk(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}}const Vk={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const Gk=e=>e.replace(/[!,[\]{}]/g,(e=>Vk[e]));class Kk{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Kk.defaultYaml,e);this.tags=Object.assign({},Kk.defaultTags,t)}clone(){const e=new Kk(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Kk(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Kk.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Kk.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Kk.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Kk.defaultTags);this.atNextDocument=false}const n=e.trim().split(/[ \t]+/);const i=n.shift();switch(i){case"%TAG":{if(n.length!==2){t(0,"%TAG directive should contain exactly two parts");if(n.length<2)return false}const[e,i]=n;this.tags[e]=i;return true}case"%YAML":{this.yaml.explicit=true;if(n.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=n;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const n=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,n);return false}}default:t(0,`Unknown directive ${i}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const n=e.slice(2,-1);if(n==="!"||n==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return n}const[,n,i]=e.match(/^(.*!)([^!]*)$/s);if(!i)t(`The ${e} tag has no suffix`);const r=this.tags[n];if(r){try{return r+decodeURIComponent(i)}catch(e){t(String(e));return null}}if(n==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,n]of Object.entries(this.tags)){if(e.startsWith(n))return t+Gk(e.substring(n.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const n=Object.entries(this.tags);let i;if(e&&n.length>0&&Ik(e.contents)){const t={};Pk(e.contents,((e,n)=>{if(Ik(n)&&n.tag)t[n.tag]=true}));i=Object.keys(t)}else i=[];for(const[r,o]of n){if(r==="!!"&&o==="tag:yaml.org,2002:")continue;if(!e||i.some((e=>e.startsWith(o))))t.push(`%TAG ${r} ${o}`)}return t.join("\n")}}Kk.defaultYaml={explicit:false,version:"1.2"};Kk.defaultTags={"!!":"tag:yaml.org,2002:"};function Yk(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const n=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(n)}return true}function Wk(e){const t=new Set;Pk(e,{Value(e,n){if(n.anchor)t.add(n.anchor)}});return t}function Xk(e,t){for(let n=1;true;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function Qk(e,t){const n=[];const i=new Map;let r=null;return{onAnchor:i=>{n.push(i);r??(r=Wk(e));const o=Xk(t,r);r.add(o);return o},setAnchors:()=>{for(const e of n){const t=i.get(e);if(typeof t==="object"&&t.anchor&&(Ok(t.node)||Lk(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:i}}function Jk(e,t,n,i){if(i&&typeof i==="object"){if(Array.isArray(i)){for(let t=0,n=i.length;t<n;++t){const n=i[t];const r=Jk(e,i,String(t),n);if(r===undefined)delete i[t];else if(r!==n)i[t]=r}}else if(i instanceof Map){for(const t of Array.from(i.keys())){const n=i.get(t);const r=Jk(e,i,t,n);if(r===undefined)i.delete(t);else if(r!==n)i.set(t,r)}}else if(i instanceof Set){for(const t of Array.from(i)){const n=Jk(e,i,t,t);if(n===undefined)i.delete(t);else if(n!==t){i.delete(t);i.add(n)}}}else{for(const[t,n]of Object.entries(i)){const r=Jk(e,i,t,n);if(r===undefined)delete i[t];else if(r!==n)i[t]=r}}}return e.call(t,n,i)}function Zk(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>Zk(e,String(t),n)));if(e&&typeof e.toJSON==="function"){if(!n||!_k(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:undefined};n.anchors.set(e,i);n.onCreate=e=>{i.res=e;delete n.onCreate};const r=e.toJSON(t,n);if(n.onCreate)n.onCreate(r);return r}if(typeof e==="bigint"&&!n?.keep)return Number(e);return e}class ey{constructor(e){Object.defineProperty(this,Ck,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!Sk(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const s=Zk(this,"",o);if(typeof i==="function")for(const{count:e,res:t}of o.anchors.values())i(t,e);return typeof r==="function"?Jk(r,{"":s},"",s):s}}class ty extends ey{constructor(e){super(yk);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let n;if(t?.aliasResolveCache){n=t.aliasResolveCache}else{n=[];Pk(e,{Node:(e,t)=>{if(Fk(t)||_k(t))n.push(t)}});if(t)t.aliasResolveCache=n}let i=undefined;for(const e of n){if(e===this)break;if(e.anchor===this.source)i=e}return i}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:i,maxAliasCount:r}=t;const o=this.resolve(i,t);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let s=n.get(o);if(!s){Zk(o,null,t);s=n.get(o)}if(s?.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(r>=0){s.count+=1;if(s.aliasCount===0)s.aliasCount=ny(i,o,n);if(s.count*s.aliasCount>r){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return s.res}toString(e,t,n){const i=`*${this.source}`;if(e){Yk(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${i} `}return i}}function ny(e,t,n){if(Fk(t)){const i=t.resolve(e);const r=n&&i&&n.get(i);return r?r.count*r.aliasCount:0}else if(Lk(t)){let i=0;for(const r of t.items){const t=ny(e,r,n);if(t>i)i=t}return i}else if(Tk(t)){const i=ny(e,t.key,n);const r=ny(e,t.value,n);return Math.max(i,r)}return 1}const iy=e=>!e||typeof e!=="function"&&typeof e!=="object";class ry extends ey{constructor(e){super(vk);this.value=e}toJSON(e,t){return t?.keep?this.value:Zk(this.value,e,t)}toString(){return String(this.value)}}ry.BLOCK_FOLDED="BLOCK_FOLDED";ry.BLOCK_LITERAL="BLOCK_LITERAL";ry.PLAIN="PLAIN";ry.QUOTE_DOUBLE="QUOTE_DOUBLE";ry.QUOTE_SINGLE="QUOTE_SINGLE";const oy="tag:yaml.org,2002:";function sy(e,t,n){if(t){const e=n.filter((e=>e.tag===t));const i=e.find((e=>!e.format))??e[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find((t=>t.identify?.(e)&&!t.format))}function ly(e,t,n){if(Sk(e))e=e.contents;if(Ik(e))return e;if(Tk(e)){const t=n.schema[wk].createNode?.(n.schema,null,n);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:i,onAnchor:r,onTagObj:o,schema:s,sourceObjects:l}=n;let a=undefined;if(i&&e&&typeof e==="object"){a=l.get(e);if(a){a.anchor??(a.anchor=r(e));return new ty(a.anchor)}else{a={anchor:null,node:null};l.set(e,a)}}if(t?.startsWith("!!"))t=oy+t.slice(2);let u=sy(e,t,s.tags);if(!u){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new ry(e);if(a)a.node=t;return t}u=e instanceof Map?s[wk]:Symbol.iterator in Object(e)?s[Ak]:s[wk]}if(o){o(u);delete n.onTagObj}const c=u?.createNode?u.createNode(n.schema,e,n):typeof u?.nodeClass?.from==="function"?u.nodeClass.from(n.schema,e,n):new ry(e);if(t)c.tag=t;else if(!u.default)c.tag=u.tag;if(a)a.node=c;return c}function ay(e,t,n){let i=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(typeof n==="number"&&Number.isInteger(n)&&n>=0){const e=[];e[n]=i;i=e}else{i=new Map([[n,i]])}}return ly(i,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const uy=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class cy extends ey{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>Ik(t)||Tk(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(uy(e))this.add(t);else{const[n,...i]=e;const r=this.get(n,true);if(Lk(r))r.addIn(i,t);else if(r===undefined&&this.schema)this.set(n,ay(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const i=this.get(t,true);if(Lk(i))return i.deleteIn(n);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...i]=e;const r=this.get(n,true);if(i.length===0)return!t&&Ok(r)?r.value:r;else return Lk(r)?r.getIn(i,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!Tk(t))return false;const n=t.value;return n==null||e&&Ok(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const i=this.get(t,true);return Lk(i)?i.hasIn(n):false}setIn(e,t){const[n,...i]=e;if(i.length===0){this.set(n,t)}else{const e=this.get(n,true);if(Lk(e))e.setIn(i,t);else if(e===undefined&&this.schema)this.set(n,ay(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}}const fy=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function hy(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const dy=(e,t,n)=>e.endsWith("\n")?hy(n,t):n.includes("\n")?"\n"+hy(n,t):(e.endsWith(" ")?"":" ")+n;const py="flow";const my="block";const gy="quoted";function by(e,t,n="flow",{indentAtStart:i,lineWidth:r=80,minContentWidth:o=20,onFold:s,onOverflow:l}={}){if(!r||r<0)return e;if(r<o)o=0;const a=Math.max(1+o,1+r-t.length);if(e.length<=a)return e;const u=[];const c={};let f=r-t.length;if(typeof i==="number"){if(i>r-Math.max(2,o))u.push(0);else f=r-i}let h=undefined;let d=undefined;let p=false;let m=-1;let g=-1;let b=-1;if(n===my){m=ky(e,m,t.length);if(m!==-1)f=m+a}for(let i;i=e[m+=1];){if(n===gy&&i==="\\"){g=m;switch(e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}b=m}if(i==="\n"){if(n===my)m=ky(e,m,t.length);f=m+t.length+a;h=undefined}else{if(i===" "&&d&&d!==" "&&d!=="\n"&&d!=="\t"){const t=e[m+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")h=m}if(m>=f){if(h){u.push(h);f=h+a;h=undefined}else if(n===gy){while(d===" "||d==="\t"){d=i;i=e[m+=1];p=true}const t=m>b+1?m-2:g-1;if(c[t])return e;u.push(t);c[t]=true;f=t+a;h=undefined}else{p=true}}}d=i}if(p&&l)l();if(u.length===0)return e;if(s)s();let k=e.slice(0,u[0]);for(let i=0;i<u.length;++i){const r=u[i];const o=u[i+1]||e.length;if(r===0)k=`\n${t}${e.slice(0,o)}`;else{if(n===gy&&c[r])k+=`${e[r]}\\`;k+=`\n${t}${e.slice(r+1,o)}`}}return k}function ky(e,t,n){let i=t;let r=t+1;let o=e[r];while(o===" "||o==="\t"){if(t<r+n){o=e[++t]}else{do{o=e[++t]}while(o&&o!=="\n");i=t;r=t+1;o=e[r]}}return i}const yy=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const Dy=e=>/^(%|---|\.\.\.)/m.test(e);function wy(e,t,n){if(!t||t<0)return false;const i=t-n;const r=e.length;if(r<=i)return false;for(let t=0,n=0;t<r;++t){if(e[t]==="\n"){if(t-n>i)return true;n=t+1;if(r-n<=i)return false}}return true}function Ey(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t;const r=t.options.doubleQuotedMinMultiLineLength;const o=t.indent||(Dy(e)?" ":"");let s="";let l=0;for(let e=0,t=n[e];t;t=n[++e]){if(t===" "&&n[e+1]==="\\"&&n[e+2]==="n"){s+=n.slice(l,e)+"\\ ";e+=1;l=e;t="\\"}if(t==="\\")switch(n[e+1]){case"u":{s+=n.slice(l,e);const t=n.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:if(t.substr(0,2)==="00")s+="\\x"+t.substr(2);else s+=n.substr(e,6)}e+=5;l=e+1}break;case"n":if(i||n[e+2]==='"'||n.length<r){e+=1}else{s+=n.slice(l,e)+"\n\n";while(n[e+2]==="\\"&&n[e+3]==="n"&&n[e+4]!=='"'){s+="\n";e+=2}s+=o;if(n[e+2]===" ")s+="\\";e+=1;l=e+1}break;default:e+=1}}s=l?s+n.slice(l):n;return i?s:by(s,o,gy,yy(t,false))}function vy(e,t){if(t.options.singleQuote===false||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Ey(e,t);const n=t.indent||(Dy(e)?" ":"");const i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?i:by(i,n,py,yy(t,false))}function Ay(e,t){const{singleQuote:n}=t.options;let i;if(n===false)i=Ey;else{const t=e.includes('"');const r=e.includes("'");if(t&&!r)i=vy;else if(r&&!t)i=Ey;else i=n?vy:Ey}return i(e,t)}let Cy;try{Cy=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{Cy=/\n+(?!\n|$)/g}function Fy({comment:e,type:t,value:n},i,r,o){const{blockQuote:s,commentString:l,lineWidth:a}=i.options;if(!s||/\n[\t ]+$/.test(n)){return Ay(n,i)}const u=i.indent||(i.forceBlockIndent||Dy(n)?" ":"");const c=s==="literal"?true:s==="folded"||t===ry.BLOCK_FOLDED?false:t===ry.BLOCK_LITERAL?true:!wy(n,a,u.length);if(!n)return c?"|\n":">\n";let f;let h;for(h=n.length;h>0;--h){const e=n[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let d=n.substring(h);const p=d.indexOf("\n");if(p===-1){f="-"}else if(n===d||p!==d.length-1){f="+";if(o)o()}else{f=""}if(d){n=n.slice(0,-d.length);if(d[d.length-1]==="\n")d=d.slice(0,-1);d=d.replace(Cy,`$&${u}`)}let m=false;let g;let b=-1;for(g=0;g<n.length;++g){const e=n[g];if(e===" ")m=true;else if(e==="\n")b=g;else break}let k=n.substring(0,b<g?b+1:g);if(k){n=n.substring(k.length);k=k.replace(/\n+/g,`$&${u}`)}const y=u?"2":"1";let D=(m?y:"")+f;if(e){D+=" "+l(e.replace(/ ?[\r\n]+/g," "));if(r)r()}if(!c){const e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);let r=false;const o=yy(i,true);if(s!=="folded"&&t!==ry.BLOCK_FOLDED){o.onOverflow=()=>{r=true}}const l=by(`${k}${e}${d}`,u,my,o);if(!r)return`>${D}\n${u}${l}`}n=n.replace(/\n+/g,`$&${u}`);return`|${D}\n${u}${k}${n}${d}`}function Sy(e,t,n,i){const{type:r,value:o}=e;const{actualString:s,implicitKey:l,indent:a,indentStep:u,inFlow:c}=t;if(l&&o.includes("\n")||c&&/[[\]{},]/.test(o)){return Ay(o,t)}if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return l||c||!o.includes("\n")?Ay(o,t):Fy(e,t,n,i)}if(!l&&!c&&r!==ry.PLAIN&&o.includes("\n")){return Fy(e,t,n,i)}if(Dy(o)){if(a===""){t.forceBlockIndent=true;return Fy(e,t,n,i)}else if(l&&a===u){return Ay(o,t)}}const f=o.replace(/\n+/g,`$&\n${a}`);if(s){const e=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(f);const{compat:n,tags:i}=t.doc.schema;if(i.some(e)||n?.some(e))return Ay(o,t)}return l?f:by(f,a,py,yy(t,false))}function xy(e,t,n,i){const{implicitKey:r,inFlow:o}=t;const s=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;if(l!==ry.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value))l=ry.QUOTE_DOUBLE}const a=e=>{switch(e){case ry.BLOCK_FOLDED:case ry.BLOCK_LITERAL:return r||o?Ay(s.value,t):Fy(s,t,n,i);case ry.QUOTE_DOUBLE:return Ey(s.value,t);case ry.QUOTE_SINGLE:return vy(s.value,t);case ry.PLAIN:return Sy(s,t,n,i);default:return null}};let u=a(l);if(u===null){const{defaultKeyType:e,defaultStringType:n}=t.options;const i=r&&e||n;u=a(i);if(u===null)throw new Error(`Unsupported default string type ${i}`)}return u}function Ty(e,t){const n=Object.assign({blockQuote:true,commentString:fy,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trailingComma:false,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=false;break;case"flow":i=true;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent==="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function Oy(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n=undefined;let i;if(Ok(t)){i=t.value;let r=e.filter((e=>e.identify?.(i)));if(r.length>1){const e=r.filter((e=>e.test));if(e.length>0)r=e}n=r.find((e=>e.format===t.format))??r.find((e=>!e.format))}else{i=t;n=e.find((e=>e.nodeClass&&i instanceof e.nodeClass))}if(!n){const e=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${e} value`)}return n}function Ny(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const r=[];const o=(Ok(e)||Lk(e))&&e.anchor;if(o&&Yk(o)){n.add(o);r.push(`&${o}`)}const s=e.tag??(t.default?null:t.tag);if(s)r.push(i.directives.tagString(s));return r.join(" ")}function Ly(e,t,n,i){if(Tk(e))return e.toString(t,n,i);if(Fk(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let r=undefined;const o=Ik(e)?e:t.doc.createNode(e,{onTagObj:e=>r=e});r??(r=Oy(t.doc.schema.tags,o));const s=Ny(o,r,t);if(s.length>0)t.indentAtStart=(t.indentAtStart??0)+s.length+1;const l=typeof r.stringify==="function"?r.stringify(o,t,n,i):Ok(o)?xy(o,t,n,i):o.toString(t,n,i);if(!s)return l;return Ok(o)||l[0]==="{"||l[0]==="["?`${s} ${l}`:`${s}\n${t.indent}${l}`}function Iy({key:e,value:t},n,i,r){const{allNullValues:o,doc:s,indent:l,indentStep:a,options:{commentString:u,indentSeq:c,simpleKeys:f}}=n;let h=Ik(e)&&e.comment||null;if(f){if(h){throw new Error("With simple keys, key nodes cannot have comments")}if(Lk(e)||!Ik(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let d=!f&&(!e||h&&t==null&&!n.inFlow||Lk(e)||(Ok(e)?e.type===ry.BLOCK_FOLDED||e.type===ry.BLOCK_LITERAL:typeof e==="object"));n=Object.assign({},n,{allNullValues:false,implicitKey:!d&&(f||!o),indent:l+a});let p=false;let m=false;let g=Ly(e,n,(()=>p=true),(()=>m=true));if(!d&&!n.inFlow&&g.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=true}if(n.inFlow){if(o||t==null){if(p&&i)i();return g===""?"?":d?`? ${g}`:g}}else if(o&&!f||t==null&&d){g=`? ${g}`;if(h&&!p){g+=dy(g,n.indent,u(h))}else if(m&&r)r();return g}if(p)h=null;if(d){if(h)g+=dy(g,n.indent,u(h));g=`? ${g}\n${l}:`}else{g=`${g}:`;if(h)g+=dy(g,n.indent,u(h))}let b,k,y;if(Ik(t)){b=!!t.spaceBefore;k=t.commentBefore;y=t.comment}else{b=false;k=null;y=null;if(t&&typeof t==="object")t=s.createNode(t)}n.implicitKey=false;if(!d&&!h&&Ok(t))n.indentAtStart=g.length+1;m=false;if(!c&&a.length>=2&&!n.inFlow&&!d&&Nk(t)&&!t.flow&&!t.tag&&!t.anchor){n.indent=n.indent.substring(2)}let D=false;const w=Ly(t,n,(()=>D=true),(()=>m=true));let E=" ";if(h||b||k){E=b?"\n":"";if(k){const e=u(k);E+=`\n${hy(e,n.indent)}`}if(w===""&&!n.inFlow){if(E==="\n"&&y)E="\n\n"}else{E+=`\n${n.indent}`}}else if(!d&&Lk(t)){const e=w[0];const i=w.indexOf("\n");const r=i!==-1;const o=n.inFlow??t.flow??t.items.length===0;if(r||!o){let t=false;if(r&&(e==="&"||e==="!")){let n=w.indexOf(" ");if(e==="&"&&n!==-1&&n<i&&w[n+1]==="!"){n=w.indexOf(" ",n+1)}if(n===-1||i<n)t=true}if(!t)E=`\n${n.indent}`}}else if(w===""||w[0]==="\n"){E=""}g+=E+w;if(n.inFlow){if(D&&i)i()}else if(y&&!D){g+=dy(g,n.indent,u(y))}else if(m&&r){r()}return g}function _y(e,t){if(e==="debug"||e==="warn"){console.warn(t)}}const My="<<";const By={identify:e=>e===My||typeof e==="symbol"&&e.description===My,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new ry(Symbol(My)),{addToJSMap:Py}),stringify:()=>My};const Ry=(e,t)=>(By.identify(t)||Ok(t)&&(!t.type||t.type===ry.PLAIN)&&By.identify(t.value))&&e?.doc.schema.tags.some((e=>e.tag===By.tag&&e.default));function Py(e,t,n){n=e&&Fk(n)?n.resolve(e.doc):n;if(Nk(n))for(const i of n.items)qy(e,t,i);else if(Array.isArray(n))for(const i of n)qy(e,t,i);else qy(e,t,n)}function qy(e,t,n){const i=e&&Fk(n)?n.resolve(e.doc):n;if(!xk(i))throw new Error("Merge sources must be maps or map aliases");const r=i.toJSON(null,e,Map);for(const[e,n]of r){if(t instanceof Map){if(!t.has(e))t.set(e,n)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:n,writable:true,enumerable:true,configurable:true})}}return t}function Uy(e,t,{key:n,value:i}){if(Ik(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(Ry(e,n))Py(e,t,i);else{const r=Zk(n,"",e);if(t instanceof Map){t.set(r,Zk(i,r,e))}else if(t instanceof Set){t.add(r)}else{const o=jy(n,r,e);const s=Zk(i,o,e);if(o in t)Object.defineProperty(t,o,{value:s,writable:true,enumerable:true,configurable:true});else t[o]=s}}return t}function jy(e,t,n){if(t===null)return"";if(typeof t!=="object")return String(t);if(Ik(e)&&n?.doc){const t=Ty(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const i=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(i);if(e.length>40)e=e.substring(0,36)+'..."';_y(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);n.mapKeyWarned=true}return i}return JSON.stringify(t)}function zy(e,t,n){const i=ly(e,undefined,n);const r=ly(t,undefined,n);return new Hy(i,r)}class Hy{constructor(e,t=null){Object.defineProperty(this,Ck,{value:Ek});this.key=e;this.value=t}clone(e){let{key:t,value:n}=this;if(Ik(t))t=t.clone(e);if(Ik(n))n=n.clone(e);return new Hy(t,n)}toJSON(e,t){const n=t?.mapAsMap?new Map:{};return Uy(t,n,this)}toString(e,t,n){return e?.doc?Iy(this,e,t,n):JSON.stringify(this)}}function $y(e,t,n){const i=t.inFlow??e.flow;const r=i?Gy:Vy;return r(e,t,n)}function Vy({comment:e,items:t},n,{blockItemPrefix:i,flowChars:r,itemIndent:o,onChompKeep:s,onComment:l}){const{indent:a,options:{commentString:u}}=n;const c=Object.assign({},n,{indent:o,type:null});let f=false;const h=[];for(let e=0;e<t.length;++e){const r=t[e];let s=null;if(Ik(r)){if(!f&&r.spaceBefore)h.push("");Ky(n,h,r.commentBefore,f);if(r.comment)s=r.comment}else if(Tk(r)){const e=Ik(r.key)?r.key:null;if(e){if(!f&&e.spaceBefore)h.push("");Ky(n,h,e.commentBefore,f)}}f=false;let l=Ly(r,c,(()=>s=null),(()=>f=true));if(s)l+=dy(l,o,u(s));if(f&&s)f=false;h.push(i+l)}let d;if(h.length===0){d=r.start+r.end}else{d=h[0];for(let e=1;e<h.length;++e){const t=h[e];d+=t?`\n${a}${t}`:"\n"}}if(e){d+="\n"+hy(u(e),a);if(l)l()}else if(f&&s)s();return d}function Gy({items:e},t,{flowChars:n,itemIndent:i}){const{indent:r,indentStep:o,flowCollectionPadding:s,options:{commentString:l}}=t;i+=o;const a=Object.assign({},t,{indent:i,inFlow:true,type:null});let u=false;let c=0;const f=[];for(let n=0;n<e.length;++n){const r=e[n];let o=null;if(Ik(r)){if(r.spaceBefore)f.push("");Ky(t,f,r.commentBefore,false);if(r.comment)o=r.comment}else if(Tk(r)){const e=Ik(r.key)?r.key:null;if(e){if(e.spaceBefore)f.push("");Ky(t,f,e.commentBefore,false);if(e.comment)u=true}const n=Ik(r.value)?r.value:null;if(n){if(n.comment)o=n.comment;if(n.commentBefore)u=true}else if(r.value==null&&e?.comment){o=e.comment}}if(o)u=true;let s=Ly(r,a,(()=>o=null));u||(u=f.length>c||s.includes("\n"));if(n<e.length-1){s+=","}else if(t.options.trailingComma){if(t.options.lineWidth>0){u||(u=f.reduce(((e,t)=>e+t.length+2),2)+(s.length+2)>t.options.lineWidth)}if(u){s+=","}}if(o)s+=dy(s,i,l(o));f.push(s);c=f.length}const{start:h,end:d}=n;if(f.length===0){return h+d}else{if(!u){const e=f.reduce(((e,t)=>e+t.length+2),2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(u){let e=h;for(const t of f)e+=t?`\n${o}${r}${t}`:"\n";return`${e}\n${r}${d}`}else{return`${h}${s}${f.join(" ")}${s}${d}`}}}function Ky({indent:e,options:{commentString:t}},n,i,r){if(i&&r)i=i.replace(/^\n+/,"");if(i){const r=hy(t(i),e);n.push(r.trimStart())}}function Yy(e,t){const n=Ok(t)?t.value:t;for(const i of e){if(Tk(i)){if(i.key===t||i.key===n)return i;if(Ok(i.key)&&i.key.value===n)return i}}return undefined}class Wy extends cy{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(wk,e);this.items=[]}static from(e,t,n){const{keepUndefined:i,replacer:r}=n;const o=new this(e);const s=(e,s)=>{if(typeof r==="function")s=r.call(t,e,s);else if(Array.isArray(r)&&!r.includes(e))return;if(s!==undefined||i)o.items.push(zy(e,s,n))};if(t instanceof Map){for(const[e,n]of t)s(e,n)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))s(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let n;if(Tk(e))n=e;else if(!e||typeof e!=="object"||!("key"in e)){n=new Hy(e,e?.value)}else n=new Hy(e.key,e.value);const i=Yy(this.items,n.key);const r=this.schema?.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);if(Ok(i.value)&&iy(n.value))i.value.value=n.value;else i.value=n.value}else if(r){const e=this.items.findIndex((e=>r(n,e)<0));if(e===-1)this.items.push(n);else this.items.splice(e,0,n)}else{this.items.push(n)}}delete(e){const t=Yy(this.items,e);if(!t)return false;const n=this.items.splice(this.items.indexOf(t),1);return n.length>0}get(e,t){const n=Yy(this.items,e);const i=n?.value;return(!t&&Ok(i)?i.value:i)??undefined}has(e){return!!Yy(this.items,e)}set(e,t){this.add(new Hy(e,t),true)}toJSON(e,t,n){const i=n?new n:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(i);for(const e of this.items)Uy(t,i,e);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items){if(!Tk(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return $y(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const Xy={collection:"map",default:true,nodeClass:Wy,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!xk(e))t("Expected a mapping for this tag");return e},createNode:(e,t,n)=>Wy.from(e,t,n)};class Qy extends cy{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ak,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=Jy(e);if(typeof t!=="number")return false;const n=this.items.splice(t,1);return n.length>0}get(e,t){const n=Jy(e);if(typeof n!=="number")return undefined;const i=this.items[n];return!t&&Ok(i)?i.value:i}has(e){const t=Jy(e);return typeof t==="number"&&t<this.items.length}set(e,t){const n=Jy(e);if(typeof n!=="number")throw new Error(`Expected a valid index, not ${e}.`);const i=this.items[n];if(Ok(i)&&iy(t))i.value=t;else this.items[n]=t}toJSON(e,t){const n=[];if(t?.onCreate)t.onCreate(n);let i=0;for(const e of this.items)n.push(Zk(e,String(i++),t));return n}toString(e,t,n){if(!e)return JSON.stringify(this);return $y(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t})}static from(e,t,n){const{replacer:i}=n;const r=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let o of t){if(typeof i==="function"){const n=t instanceof Set?o:String(e++);o=i.call(t,n,o)}r.items.push(ly(o,undefined,n))}}return r}}function Jy(e){let t=Ok(e)?e.value:e;if(t&&typeof t==="string")t=Number(t);return typeof t==="number"&&Number.isInteger(t)&&t>=0?t:null}const Zy={collection:"seq",default:true,nodeClass:Qy,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!Nk(e))t("Expected a sequence for this tag");return e},createNode:(e,t,n)=>Qy.from(e,t,n)};const eD={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){t=Object.assign({actualString:true},t);return xy(e,t,n,i)}};const tD={identify:e=>e==null,createNode:()=>new ry(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new ry(null),stringify:({source:e},t)=>typeof e==="string"&&tD.test.test(e)?e:t.options.nullStr};const nD={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new ry(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&nD.test.test(e)){const n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?n.options.trueStr:n.options.falseStr}};function iD({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i==="bigint")return String(i);const r=typeof i==="number"?i:Number(i);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=Object.is(i,-0)?"-0":JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let n=t-(o.length-e-1);while(n-- >0)o+="0"}return o}const rD={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:iD};const oD={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():iD(e)}};const sD={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new ry(parseFloat(e));const n=e.indexOf(".");if(n!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-n-1;return t},stringify:iD};const lD=e=>typeof e==="bigint"||Number.isInteger(e);const aD=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function uD(e,t,n){const{value:i}=e;if(lD(i)&&i>=0)return n+i.toString(t);return iD(e)}const cD={identify:e=>lD(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>aD(e,2,8,n),stringify:e=>uD(e,8,"0o")};const fD={identify:lD,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>aD(e,0,10,n),stringify:iD};const hD={identify:e=>lD(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>aD(e,2,16,n),stringify:e=>uD(e,16,"0x")};const dD=[Xy,Zy,eD,tD,nD,cD,fD,hD,rD,oD,sD];function pD(e){return typeof e==="bigint"||Number.isInteger(e)}const mD=({value:e})=>JSON.stringify(e);const gD=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:mD},{identify:e=>e==null,createNode:()=>new ry(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:mD},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:mD},{identify:pD,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>pD(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:mD}];const bD={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const kD=[Xy,Zy].concat(gD,bD);const yD={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else{t("This environment does not support reading binary tags; either Buffer or atob is required");return e}},stringify({comment:e,type:t,value:n},i,r,o){if(!n)return"";const s=n;let l;if(typeof btoa==="function"){let e="";for(let t=0;t<s.length;++t)e+=String.fromCharCode(s[t]);l=btoa(e)}else{throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required")}t??(t=ry.BLOCK_LITERAL);if(t!==ry.QUOTE_DOUBLE){const e=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth);const n=Math.ceil(l.length/e);const r=new Array(n);for(let t=0,i=0;t<n;++t,i+=e){r[t]=l.substr(i,e)}l=r.join(t===ry.BLOCK_LITERAL?"\n":" ")}return xy({comment:e,type:t,value:l},i,r,o)}};function DD(e,t){if(Nk(e)){for(let n=0;n<e.items.length;++n){let i=e.items[n];if(Tk(i))continue;else if(xk(i)){if(i.items.length>1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new Hy(new ry(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[n]=Tk(i)?i:new Hy(i)}}else t("Expected a sequence for this tag");return e}function wD(e,t,n){const{replacer:i}=n;const r=new Qy(e);r.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof i==="function")e=i.call(t,String(o++),e);let s,l;if(Array.isArray(e)){if(e.length===2){s=e[0];l=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){s=t[0];l=e[s]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{s=e}r.items.push(zy(s,l,n))}return r}const ED={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:DD,createNode:wD};class vD extends Qy{constructor(){super();this.add=Wy.prototype.add.bind(this);this.delete=Wy.prototype.delete.bind(this);this.get=Wy.prototype.get.bind(this);this.has=Wy.prototype.has.bind(this);this.set=Wy.prototype.set.bind(this);this.tag=vD.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;if(t?.onCreate)t.onCreate(n);for(const e of this.items){let i,r;if(Tk(e)){i=Zk(e.key,"",t);r=Zk(e.value,i,t)}else{i=Zk(e,"",t)}if(n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,r)}return n}static from(e,t,n){const i=wD(e,t,n);const r=new this;r.items=i.items;return r}}vD.tag="tag:yaml.org,2002:omap";const AD={collection:"seq",identify:e=>e instanceof Map,nodeClass:vD,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=DD(e,t);const i=[];for(const{key:e}of n.items){if(Ok(e)){if(i.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{i.push(e.value)}}}return Object.assign(new vD,n)},createNode:(e,t,n)=>vD.from(e,t,n)};function CD({value:e,source:t},n){const i=e?FD:SD;if(t&&i.test.test(t))return t;return e?n.options.trueStr:n.options.falseStr}const FD={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ry(true),stringify:CD};const SD={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new ry(false),stringify:CD};const xD={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:iD};const TD={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():iD(e)}};const OD={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new ry(parseFloat(e.replace(/_/g,"")));const n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");if(i[i.length-1]==="0")t.minFractionDigits=i.length}return t},stringify:iD};const ND=e=>typeof e==="bigint"||Number.isInteger(e);function LD(e,t,n,{intAsBigInt:i}){const r=e[0];if(r==="-"||r==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return r==="-"?BigInt(-1)*t:t}const o=parseInt(e,n);return r==="-"?-1*o:o}function ID(e,t,n){const{value:i}=e;if(ND(i)){const e=i.toString(t);return i<0?"-"+n+e.substr(1):n+e}return iD(e)}const _D={identify:ND,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>LD(e,2,2,n),stringify:e=>ID(e,2,"0b")};const MD={identify:ND,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>LD(e,1,8,n),stringify:e=>ID(e,8,"0")};const BD={identify:ND,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>LD(e,0,10,n),stringify:iD};const RD={identify:ND,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>LD(e,2,16,n),stringify:e=>ID(e,16,"0x")};class PD extends Wy{constructor(e){super(e);this.tag=PD.tag}add(e){let t;if(Tk(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new Hy(e.key,null);else t=new Hy(e,null);const n=Yy(this.items,t.key);if(!n)this.items.push(t)}get(e,t){const n=Yy(this.items,e);return!t&&Tk(n)?Ok(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=Yy(this.items,e);if(n&&!t){this.items.splice(this.items.indexOf(n),1)}else if(!n&&t){this.items.push(new Hy(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,n);else throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:i}=n;const r=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof i==="function")e=i.call(t,e,e);r.items.push(zy(e,null,n))}return r}}PD.tag="tag:yaml.org,2002:set";const qD={collection:"map",identify:e=>e instanceof Set,nodeClass:PD,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>PD.from(e,t,n),resolve(e,t){if(xk(e)){if(e.hasAllNullValues(true))return Object.assign(new PD,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function UD(e,t){const n=e[0];const i=n==="-"||n==="+"?e.substring(1):e;const r=e=>t?BigInt(e):Number(e);const o=i.replace(/_/g,"").split(":").reduce(((e,t)=>e*r(60)+r(t)),r(0));return n==="-"?r(-1)*o:o}function jD(e){let{value:t}=e;let n=e=>e;if(typeof t==="bigint")n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return iD(e);let i="";if(t<0){i="-";t*=n(-1)}const r=n(60);const o=[t%r];if(t<60){o.unshift(0)}else{t=(t-o[0])/r;o.unshift(t%r);if(t>=60){t=(t-o[0])/r;o.unshift(t)}}return i+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const zD={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>UD(e,n),stringify:jD};const HD={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>UD(e,false),stringify:jD};const $D={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match($D.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,r,o,s,l]=t.map(Number);const a=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(n,i-1,r,o||0,s||0,l||0,a);const c=t[8];if(c&&c!=="Z"){let e=UD(c,false);if(Math.abs(e)<30)e*=60;u-=6e4*e}return new Date(u)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};const VD=[Xy,Zy,eD,tD,FD,SD,_D,MD,BD,RD,xD,TD,OD,yD,By,AD,ED,qD,zD,HD,$D];const GD=new Map([["core",dD],["failsafe",[Xy,Zy,eD]],["json",kD],["yaml11",VD],["yaml-1.1",VD]]);const KD={binary:yD,bool:nD,float:sD,floatExp:oD,floatNaN:rD,floatTime:HD,int:fD,intHex:hD,intOct:cD,intTime:zD,map:Xy,merge:By,null:tD,omap:AD,pairs:ED,seq:Zy,set:qD,timestamp:$D};const YD={"tag:yaml.org,2002:binary":yD,"tag:yaml.org,2002:merge":By,"tag:yaml.org,2002:omap":AD,"tag:yaml.org,2002:pairs":ED,"tag:yaml.org,2002:set":qD,"tag:yaml.org,2002:timestamp":$D};function WD(e,t,n){const i=GD.get(t);if(i&&!e){return n&&!i.includes(By)?i.concat(By):i.slice()}let r=i;if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(GD.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}if(n)r=r.concat(By);return r.reduce(((e,t)=>{const n=typeof t==="string"?KD[t]:t;if(!n){const e=JSON.stringify(t);const n=Object.keys(KD).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${n}`)}if(!e.includes(n))e.push(n);return e}),[])}const XD=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class QD{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:s}){this.compat=Array.isArray(e)?WD(e,"compat"):e?WD(null,e):null;this.name=typeof r==="string"&&r||"core";this.knownTags=i?YD:{};this.tags=WD(t,this.name,n);this.toStringOptions=s??null;Object.defineProperty(this,wk,{value:Xy});Object.defineProperty(this,vk,{value:eD});Object.defineProperty(this,Ak,{value:Zy});this.sortMapEntries=typeof o==="function"?o:o===true?XD:null}clone(){const e=Object.create(QD.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}function JD(e,t){const n=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){n.push(t);i=true}else if(e.directives.docStart)i=true}if(i)n.push("---");const r=Ty(e,t);const{commentString:o}=r.options;if(e.commentBefore){if(n.length!==1)n.unshift("");const t=o(e.commentBefore);n.unshift(hy(t,""))}let s=false;let l=null;if(e.contents){if(Ik(e.contents)){if(e.contents.spaceBefore&&i)n.push("");if(e.contents.commentBefore){const t=o(e.contents.commentBefore);n.push(hy(t,""))}r.forceBlockIndent=!!e.comment;l=e.contents.comment}const t=l?undefined:()=>s=true;let a=Ly(e.contents,r,(()=>l=null),t);if(l)a+=dy(a,"",o(l));if((a[0]==="|"||a[0]===">")&&n[n.length-1]==="---"){n[n.length-1]=`--- ${a}`}else n.push(a)}else{n.push(Ly(e.contents,r))}if(e.directives?.docEnd){if(e.comment){const t=o(e.comment);if(t.includes("\n")){n.push("...");n.push(hy(t,""))}else{n.push(`... ${t}`)}}else{n.push("...")}}else{let t=e.comment;if(t&&s)t=t.replace(/^\n+/,"");if(t){if((!s||l)&&n[n.length-1]!=="")n.push("");n.push(hy(o(t),""))}}return n.join("\n")+"\n"}class ZD{constructor(e,t,n){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,Ck,{value:Dk});let i=null;if(typeof t==="function"||Array.isArray(t)){i=t}else if(n===undefined&&t){n=t;t=undefined}const r=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},n);this.options=r;let{version:o}=r;if(n?._directives){this.directives=n._directives.atDocument();if(this.directives.yaml.explicit)o=this.directives.yaml.version}else this.directives=new Kk({version:o});this.setSchema(o,n);this.contents=e===undefined?null:this.createNode(e,i,n)}clone(){const e=Object.create(ZD.prototype,{[Ck]:{value:Dk}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=Ik(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(ew(this.contents))this.contents.add(e)}addIn(e,t){if(ew(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=Wk(this);e.anchor=!t||n.has(t)?Xk(t||"a",n):t}return new ty(e.anchor)}createNode(e,t,n){let i=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);i=t}else if(Array.isArray(t)){const e=e=>typeof e==="number"||e instanceof String||e instanceof Number;const n=t.filter(e).map(String);if(n.length>0)t=t.concat(n);i=t}else if(n===undefined&&t){n=t;t=undefined}const{aliasDuplicateObjects:r,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:a,tag:u}=n??{};const{onAnchor:c,setAnchors:f,sourceObjects:h}=Qk(this,o||"a");const d={aliasDuplicateObjects:r??true,keepUndefined:l??false,onAnchor:c,onTagObj:a,replacer:i,schema:this.schema,sourceObjects:h};const p=ly(e,u,d);if(s&&Lk(p))p.flow=true;f();return p}createPair(e,t,n={}){const i=this.createNode(e,null,n);const r=this.createNode(t,null,n);return new Hy(i,r)}delete(e){return ew(this.contents)?this.contents.delete(e):false}deleteIn(e){if(uy(e)){if(this.contents==null)return false;this.contents=null;return true}return ew(this.contents)?this.contents.deleteIn(e):false}get(e,t){return Lk(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(uy(e))return!t&&Ok(this.contents)?this.contents.value:this.contents;return Lk(this.contents)?this.contents.getIn(e,t):undefined}has(e){return Lk(this.contents)?this.contents.has(e):false}hasIn(e){if(uy(e))return this.contents!==undefined;return Lk(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=ay(this.schema,[e],t)}else if(ew(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(uy(e)){this.contents=t}else if(this.contents==null){this.contents=ay(this.schema,Array.from(e),t)}else if(ew(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let n;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new Kk({version:"1.1"});n={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new Kk({version:e});n={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new QD(Object.assign(n,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:o}={}){const s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===true,mapKeyWarned:false,maxAliasCount:typeof i==="number"?i:100};const l=Zk(this.contents,t??"",s);if(typeof r==="function")for(const{count:e,res:t}of s.anchors.values())r(t,e);return typeof o==="function"?Jk(o,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return JD(this,e)}}function ew(e){if(Lk(e))return true;throw new Error("Expected a YAML collection as document contents")}class tw extends Error{constructor(e,t,n,i){super();this.name=e;this.code=n;this.message=i;this.pos=t}}class nw extends tw{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class iw extends tw{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const rw=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:i,col:r}=n.linePos[0];n.message+=` at line ${i}, column ${r}`;let o=r-1;let s=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(o>=60&&s.length>80){const e=Math.min(o-39,s.length-79);s="…"+s.substring(e);o-=e-1}if(s.length>80)s=s.substring(0,79)+"…";if(i>1&&/^ *$/.test(s.substring(0,o))){let n=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);if(n.length>80)n=n.substring(0,79)+"…\n";s=n+s}if(/[^ ]/.test(s)){let e=1;const t=n.linePos[1];if(t?.line===i&&t.col>r){e=Math.max(1,Math.min(t.col-r,80-o))}const l=" ".repeat(o)+"^".repeat(e);n.message+=`:\n\n${s}\n${l}\n`}};function ow(e,{flow:t,indicator:n,next:i,offset:r,onError:o,parentIndent:s,startOnNewline:l}){let a=false;let u=l;let c=l;let f="";let h="";let d=false;let p=false;let m=null;let g=null;let b=null;let k=null;let y=null;let D=null;let w=null;for(const r of e){if(p){if(r.type!=="space"&&r.type!=="newline"&&r.type!=="comma")o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");p=false}if(m){if(u&&r.type!=="comment"&&r.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(r.type){case"space":if(!t&&(n!=="doc-start"||i?.type!=="flow-collection")&&r.source.includes("\t")){m=r}c=true;break;case"comment":{if(!c)o(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";if(!f)f=e;else f+=h+e;h="";u=false;break}case"newline":if(u){if(f)f+=r.source;else if(!D||n!=="seq-item-ind")a=true}else h+=r.source;u=true;d=true;if(g||b)k=r;c=true;break;case"anchor":if(g)o(r,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(r.source.endsWith(":"))o(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);g=r;w??(w=r.offset);u=false;c=false;p=true;break;case"tag":{if(b)o(r,"MULTIPLE_TAGS","A node can have at most one tag");b=r;w??(w=r.offset);u=false;c=false;p=true;break}case n:if(g||b)o(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`);if(D)o(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`);D=r;u=n==="seq-item-ind"||n==="explicit-key-ind";c=false;break;case"comma":if(t){if(y)o(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);y=r;u=false;c=false;break}default:o(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`);u=false;c=false}}const E=e[e.length-1];const v=E?E.offset+E.source.length:r;if(p&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")){o(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=s||i?.type==="block-map"||i?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:y,found:D,spaceBefore:a,comment:f,hasNewline:d,anchor:g,tag:b,newlineAfterProp:k,end:v,start:w??v}}function sw(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(sw(t.key)||sw(t.value))return true}return false;default:return true}}function lw(e,t,n){if(t?.type==="flow-collection"){const i=t.end[0];if(i.indent===e&&(i.source==="]"||i.source==="}")&&sw(t)){const e="Flow end indicator should be more indented than parent";n(i,"BAD_INDENT",e,true)}}}function aw(e,t,n){const{uniqueKeys:i}=e.options;if(i===false)return false;const r=typeof i==="function"?i:(e,t)=>e===t||Ok(e)&&Ok(t)&&e.value===t.value;return t.some((e=>r(e.key,n)))}const uw="All mapping items must start at the same column";function cw({composeNode:e,composeEmptyNode:t},n,i,r,o){const s=o?.nodeClass??Wy;const l=new s(n.schema);if(n.atRoot)n.atRoot=false;let a=i.offset;let u=null;for(const o of i.items){const{start:s,key:c,sep:f,value:h}=o;const d=ow(s,{indicator:"explicit-key-ind",next:c??f?.[0],offset:a,onError:r,parentIndent:i.indent,startOnNewline:true});const p=!d.found;if(p){if(c){if(c.type==="block-seq")r(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in c&&c.indent!==i.indent)r(a,"BAD_INDENT",uw)}if(!d.anchor&&!d.tag&&!f){u=d.end;if(d.comment){if(l.comment)l.comment+="\n"+d.comment;else l.comment=d.comment}continue}if(d.newlineAfterProp||sw(c)){r(c??s[s.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(d.found?.indent!==i.indent){r(a,"BAD_INDENT",uw)}n.atKey=true;const m=d.end;const g=c?e(n,c,d,r):t(n,m,s,null,d,r);if(n.schema.compat)lw(i.indent,c,r);n.atKey=false;if(aw(n,l.items,g))r(m,"DUPLICATE_KEY","Map keys must be unique");const b=ow(f??[],{indicator:"map-value-ind",next:h,offset:g.range[2],onError:r,parentIndent:i.indent,startOnNewline:!c||c.type==="block-scalar"});a=b.end;if(b.found){if(p){if(h?.type==="block-map"&&!b.hasNewline)r(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(n.options.strict&&d.start<b.found.offset-1024)r(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}const s=h?e(n,h,b,r):t(n,a,f,null,b,r);if(n.schema.compat)lw(i.indent,h,r);a=s.range[2];const u=new Hy(g,s);if(n.options.keepSourceTokens)u.srcToken=o;l.items.push(u)}else{if(p)r(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(b.comment){if(g.comment)g.comment+="\n"+b.comment;else g.comment=b.comment}const e=new Hy(g);if(n.options.keepSourceTokens)e.srcToken=o;l.items.push(e)}}if(u&&u<a)r(u,"IMPOSSIBLE","Map comment with trailing content");l.range=[i.offset,a,u??a];return l}function fw({composeNode:e,composeEmptyNode:t},n,i,r,o){const s=o?.nodeClass??Qy;const l=new s(n.schema);if(n.atRoot)n.atRoot=false;if(n.atKey)n.atKey=false;let a=i.offset;let u=null;for(const{start:o,value:s}of i.items){const c=ow(o,{indicator:"seq-item-ind",next:s,offset:a,onError:r,parentIndent:i.indent,startOnNewline:true});if(!c.found){if(c.anchor||c.tag||s){if(s?.type==="block-seq")r(c.end,"BAD_INDENT","All sequence items must start at the same column");else r(a,"MISSING_CHAR","Sequence item without - indicator")}else{u=c.end;if(c.comment)l.comment=c.comment;continue}}const f=s?e(n,s,c,r):t(n,c.end,o,null,c,r);if(n.schema.compat)lw(i.indent,s,r);a=f.range[2];l.items.push(f)}l.range=[i.offset,a,u??a];return l}function hw(e,t,n,i){let r="";if(e){let o=false;let s="";for(const l of e){const{source:e,type:a}=l;switch(a){case"space":o=true;break;case"comment":{if(n&&!o)i(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!r)r=t;else r+=s+t;s="";break}case"newline":if(r)s+=e;o=true;break;default:i(l,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:r,offset:t}}const dw="Block collections are not allowed within flow collections";const pw=e=>e&&(e.type==="block-map"||e.type==="block-seq");function mw({composeNode:e,composeEmptyNode:t},n,i,r,o){const s=i.start.source==="{";const l=s?"flow map":"flow sequence";const a=o?.nodeClass??(s?Wy:Qy);const u=new a(n.schema);u.flow=true;const c=n.atRoot;if(c)n.atRoot=false;if(n.atKey)n.atKey=false;let f=i.offset+i.start.source.length;for(let o=0;o<i.items.length;++o){const a=i.items[o];const{start:c,key:h,sep:d,value:p}=a;const m=ow(c,{flow:l,indicator:"explicit-key-ind",next:h??d?.[0],offset:f,onError:r,parentIndent:i.indent,startOnNewline:false});if(!m.found){if(!m.anchor&&!m.tag&&!d&&!p){if(o===0&&m.comma)r(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(o<i.items.length-1)r(m.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`);if(m.comment){if(u.comment)u.comment+="\n"+m.comment;else u.comment=m.comment}f=m.end;continue}if(!s&&n.options.strict&&sw(h))r(h,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(o===0){if(m.comma)r(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`)}else{if(!m.comma)r(m.start,"MISSING_CHAR",`Missing , between ${l} items`);if(m.comment){let e="";e:for(const t of c){switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}}if(e){let t=u.items[u.items.length-1];if(Tk(t))t=t.value??t.key;if(t.comment)t.comment+="\n"+e;else t.comment=e;m.comment=m.comment.substring(e.length+1)}}}if(!s&&!d&&!m.found){const i=p?e(n,p,m,r):t(n,m.end,d,null,m,r);u.items.push(i);f=i.range[2];if(pw(p))r(i.range,"BLOCK_IN_FLOW",dw)}else{n.atKey=true;const o=m.end;const g=h?e(n,h,m,r):t(n,o,c,null,m,r);if(pw(h))r(g.range,"BLOCK_IN_FLOW",dw);n.atKey=false;const b=ow(d??[],{flow:l,indicator:"map-value-ind",next:p,offset:g.range[2],onError:r,parentIndent:i.indent,startOnNewline:false});if(b.found){if(!s&&!m.found&&n.options.strict){if(d)for(const e of d){if(e===b.found)break;if(e.type==="newline"){r(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(m.start<b.found.offset-1024)r(b.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(p){if("source"in p&&p.source?.[0]===":")r(p,"MISSING_CHAR",`Missing space after : in ${l}`);else r(b.start,"MISSING_CHAR",`Missing , or : between ${l} items`)}const k=p?e(n,p,b,r):b.found?t(n,b.end,d,null,b,r):null;if(k){if(pw(p))r(k.range,"BLOCK_IN_FLOW",dw)}else if(b.comment){if(g.comment)g.comment+="\n"+b.comment;else g.comment=b.comment}const y=new Hy(g,k);if(n.options.keepSourceTokens)y.srcToken=a;if(s){const e=u;if(aw(n,e.items,g))r(o,"DUPLICATE_KEY","Map keys must be unique");e.items.push(y)}else{const e=new Wy(n.schema);e.flow=true;e.items.push(y);const t=(k??g).range;e.range=[g.range[0],t[1],t[2]];u.items.push(e)}f=k?k.range[2]:b.end}}const h=s?"}":"]";const[d,...p]=i.end;let m=f;if(d?.source===h)m=d.offset+d.source.length;else{const e=l[0].toUpperCase()+l.substring(1);const t=c?`${e} must end with a ${h}`:`${e} in block collection must be sufficiently indented and end with a ${h}`;r(f,c?"MISSING_CHAR":"BAD_INDENT",t);if(d&&d.source.length!==1)p.unshift(d)}if(p.length>0){const e=hw(p,m,n.options.strict,r);if(e.comment){if(u.comment)u.comment+="\n"+e.comment;else u.comment=e.comment}u.range=[i.offset,m,e.offset]}else{u.range=[i.offset,m,m]}return u}function gw(e,t,n,i,r,o){const s=n.type==="block-map"?cw(e,t,n,i,o):n.type==="block-seq"?fw(e,t,n,i,o):mw(e,t,n,i,o);const l=s.constructor;if(r==="!"||r===l.tagName){s.tag=l.tagName;return s}if(r)s.tag=r;return s}function bw(e,t,n,i,r){const o=i.tag;const s=!o?null:t.directives.tagName(o.source,(e=>r(o,"TAG_RESOLVE_FAILED",e)));if(n.type==="block-seq"){const{anchor:e,newlineAfterProp:t}=i;const n=e&&o?e.offset>o.offset?e:o:e??o;if(n&&(!t||t.offset<n.offset)){const e="Missing newline after block sequence props";r(n,"MISSING_CHAR",e)}}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!o||!s||s==="!"||s===Wy.tagName&&l==="map"||s===Qy.tagName&&l==="seq"){return gw(e,t,n,r,s)}let a=t.schema.tags.find((e=>e.tag===s&&e.collection===l));if(!a){const i=t.schema.knownTags[s];if(i?.collection===l){t.schema.tags.push(Object.assign({},i,{default:false}));a=i}else{if(i){r(o,"BAD_COLLECTION_TYPE",`${i.tag} used for ${l} collection, but expects ${i.collection??"scalar"}`,true)}else{r(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,true)}return gw(e,t,n,r,s)}}const u=gw(e,t,n,r,s,a);const c=a.resolve?.(u,(e=>r(o,"TAG_RESOLVE_FAILED",e)),t.options)??u;const f=Ik(c)?c:new ry(c);f.range=u.range;f.tag=s;if(a?.format)f.format=a.format;return f}function kw(e,t,n){const i=t.offset;const r=yw(t,e.options.strict,n);if(!r)return{value:"",type:null,comment:"",range:[i,i,i]};const o=r.mode===">"?ry.BLOCK_FOLDED:ry.BLOCK_LITERAL;const s=t.source?Dw(t.source):[];let l=s.length;for(let e=s.length-1;e>=0;--e){const t=s[e][1];if(t===""||t==="\r")l=e;else break}if(l===0){const e=r.chomp==="+"&&s.length>0?"\n".repeat(Math.max(1,s.length-1)):"";let n=i+r.length;if(t.source)n+=t.source.length;return{value:e,type:o,comment:r.comment,range:[i,n,n]}}let a=t.indent+r.indent;let u=t.offset+r.length;let c=0;for(let t=0;t<l;++t){const[i,o]=s[t];if(o===""||o==="\r"){if(r.indent===0&&i.length>a)a=i.length}else{if(i.length<a){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(u+i.length,"MISSING_CHAR",e)}if(r.indent===0)a=i.length;c=t;if(a===0&&!e.atRoot){const e="Block scalar values in collections must be indented";n(u,"BAD_INDENT",e)}break}u+=i.length+o.length+1}for(let e=s.length-1;e>=l;--e){if(s[e][0].length>a)l=e+1}let f="";let h="";let d=false;for(let e=0;e<c;++e)f+=s[e][0].slice(a)+"\n";for(let e=c;e<l;++e){let[t,i]=s[e];u+=t.length+i.length+1;const l=i[i.length-1]==="\r";if(l)i=i.slice(0,-1);if(i&&t.length<a){const e=r.indent?"explicit indentation indicator":"first line";const o=`Block scalar lines must not be less indented than their ${e}`;n(u-i.length-(l?2:1),"BAD_INDENT",o);t=""}if(o===ry.BLOCK_LITERAL){f+=h+t.slice(a)+i;h="\n"}else if(t.length>a||i[0]==="\t"){if(h===" ")h="\n";else if(!d&&h==="\n")h="\n\n";f+=h+t.slice(a)+i;h="\n";d=true}else if(i===""){if(h==="\n")f+="\n";else h="\n"}else{f+=h+i;h=" ";d=false}}switch(r.chomp){case"-":break;case"+":for(let e=l;e<s.length;++e)f+="\n"+s[e][0].slice(a);if(f[f.length-1]!=="\n")f+="\n";break;default:f+="\n"}const p=i+r.length+t.source.length;return{value:f,type:o,comment:r.comment,range:[i,p,p]}}function yw({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header"){i(t[0],"IMPOSSIBLE","Block scalar header not found");return null}const{source:r}=t[0];const o=r[0];let s=0;let l="";let a=-1;for(let t=1;t<r.length;++t){const n=r[t];if(!l&&(n==="-"||n==="+"))l=n;else{const i=Number(n);if(!s&&i)s=i;else if(a===-1)a=e+t}}if(a!==-1)i(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let u=false;let c="";let f=r.length;for(let e=1;e<t.length;++e){const r=t[e];switch(r.type){case"space":u=true;case"newline":f+=r.source.length;break;case"comment":if(n&&!u){const e="Comments must be separated from other tokens by white space characters";i(r,"MISSING_CHAR",e)}f+=r.source.length;c=r.source.substring(1);break;case"error":i(r,"UNEXPECTED_TOKEN",r.message);f+=r.source.length;break;default:{const e=`Unexpected token in block scalar header: ${r.type}`;i(r,"UNEXPECTED_TOKEN",e);const t=r.source;if(t&&typeof t==="string")f+=t.length}}}return{mode:o,indent:s,chomp:l,comment:c,length:f}}function Dw(e){const t=e.split(/\n( *)/);const n=t[0];const i=n.match(/^( *)/);const r=i?.[1]?[i[1],n.slice(i[1].length)]:["",n];const o=[r];for(let e=1;e<t.length;e+=2)o.push([t[e],t[e+1]]);return o}function ww(e,t,n){const{offset:i,type:r,source:o,end:s}=e;let l;let a;const u=(e,t,r)=>n(i+e,t,r);switch(r){case"scalar":l=ry.PLAIN;a=Ew(o,u);break;case"single-quoted-scalar":l=ry.QUOTE_SINGLE;a=vw(o,u);break;case"double-quoted-scalar":l=ry.QUOTE_DOUBLE;a=Cw(o,u);break;default:n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`);return{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}const c=i+o.length;const f=hw(s,c,t,n);return{value:a,type:l,comment:f.comment,range:[i,c,f.offset]}}function Ew(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}if(n)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`);return Aw(e)}function vw(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return Aw(e.slice(1,-1)).replace(/''/g,"'")}function Aw(e){let t,n;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy");n=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch{t=/(.*?)[ \t]*\r?\n/sy;n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let r=i[1];let o=" ";let s=t.lastIndex;n.lastIndex=s;while(i=n.exec(e)){if(i[1]===""){if(o==="\n")r+=o;else o="\n"}else{r+=o+i[1];o=" "}s=n.lastIndex}const l=/[ \t]*(.*)/sy;l.lastIndex=s;i=l.exec(e);return r+o+(i?.[1]??"")}function Cw(e,t){let n="";for(let i=1;i<e.length-1;++i){const r=e[i];if(r==="\r"&&e[i+1]==="\n")continue;if(r==="\n"){const{fold:t,offset:r}=Fw(e,i);n+=t;i=r}else if(r==="\\"){let r=e[++i];const o=Sw[r];if(o)n+=o;else if(r==="\n"){r=e[i+1];while(r===" "||r==="\t")r=e[++i+1]}else if(r==="\r"&&e[i+1]==="\n"){r=e[++i+1];while(r===" "||r==="\t")r=e[++i+1]}else if(r==="x"||r==="u"||r==="U"){const o={x:2,u:4,U:8}[r];n+=xw(e,i+1,o,t);i+=o}else{const r=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`);n+=r}}else if(r===" "||r==="\t"){const t=i;let o=e[i+1];while(o===" "||o==="\t")o=e[++i+1];if(o!=="\n"&&!(o==="\r"&&e[i+2]==="\n"))n+=i>t?e.slice(t,i+1):r}else{n+=r}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return n}function Fw(e,t){let n="";let i=e[t+1];while(i===" "||i==="\t"||i==="\n"||i==="\r"){if(i==="\r"&&e[t+2]!=="\n")break;if(i==="\n")n+="\n";t+=1;i=e[t+1]}if(!n)n=" ";return{fold:n,offset:t}}const Sw={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function xw(e,t,n,i){const r=e.substr(t,n);const o=r.length===n&&/^[0-9a-fA-F]+$/.test(r);const s=o?parseInt(r,16):NaN;if(isNaN(s)){const r=e.substr(t-2,n+2);i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`);return r}return String.fromCodePoint(s)}function Tw(e,t,n,i){const{value:r,type:o,comment:s,range:l}=t.type==="block-scalar"?kw(e,t,i):ww(t,e.options.strict,i);const a=n?e.directives.tagName(n.source,(e=>i(n,"TAG_RESOLVE_FAILED",e))):null;let u;if(e.options.stringKeys&&e.atKey){u=e.schema[vk]}else if(a)u=Ow(e.schema,r,a,n,i);else if(t.type==="scalar")u=Nw(e,r,t,i);else u=e.schema[vk];let c;try{const o=u.resolve(r,(e=>i(n??t,"TAG_RESOLVE_FAILED",e)),e.options);c=Ok(o)?o:new ry(o)}catch(e){const o=e instanceof Error?e.message:String(e);i(n??t,"TAG_RESOLVE_FAILED",o);c=new ry(r)}c.range=l;c.source=r;if(o)c.type=o;if(a)c.tag=a;if(u.format)c.format=u.format;if(s)c.comment=s;return c}function Ow(e,t,n,i,r){if(n==="!")return e[vk];const o=[];for(const t of e.tags){if(!t.collection&&t.tag===n){if(t.default&&t.test)o.push(t);else return t}}for(const e of o)if(e.test?.test(t))return e;const s=e.knownTags[n];if(s&&!s.collection){e.tags.push(Object.assign({},s,{default:false,test:undefined}));return s}r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str");return e[vk]}function Nw({atKey:e,directives:t,schema:n},i,r,o){const s=n.tags.find((t=>(t.default===true||e&&t.default==="key")&&t.test?.test(i)))||n[vk];if(n.compat){const e=n.compat.find((e=>e.default&&e.test?.test(i)))??n[vk];if(s.tag!==e.tag){const n=t.tagString(s.tag);const i=t.tagString(e.tag);const l=`Value may be parsed as either ${n} or ${i}`;o(r,"TAG_RESOLVE_FAILED",l,true)}}return s}function Lw(e,t,n){if(t){n??(n=t.length);for(let i=n-1;i>=0;--i){let n=t[i];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}n=t[++i];while(n?.type==="space"){e+=n.source.length;n=t[++i]}break}}return e}const Iw={composeNode:_w,composeEmptyNode:Mw};function _w(e,t,n,i){const r=e.atKey;const{spaceBefore:o,comment:s,anchor:l,tag:a}=n;let u;let c=true;switch(t.type){case"alias":u=Bw(e,t,i);if(l||a)i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=Tw(e,t,a,i);if(l)u.anchor=l.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{u=bw(Iw,e,t,n,i);if(l)u.anchor=l.source.substring(1)}catch(e){const n=e instanceof Error?e.message:String(e);i(t,"RESOURCE_EXHAUSTION",n)}break;default:{const e=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",e);c=false}}u??(u=Mw(e,t.offset,undefined,null,n,i));if(l&&u.anchor==="")i(l,"BAD_ALIAS","Anchor cannot be an empty string");if(r&&e.options.stringKeys&&(!Ok(u)||typeof u.value!=="string"||u.tag&&u.tag!=="tag:yaml.org,2002:str")){const e="With stringKeys, all keys must be strings";i(a??t,"NON_STRING_KEY",e)}if(o)u.spaceBefore=true;if(s){if(t.type==="scalar"&&t.source==="")u.comment=s;else u.commentBefore=s}if(e.options.keepSourceTokens&&c)u.srcToken=t;return u}function Mw(e,t,n,i,{spaceBefore:r,comment:o,anchor:s,tag:l,end:a},u){const c={type:"scalar",offset:Lw(t,n,i),indent:-1,source:""};const f=Tw(e,c,l,u);if(s){f.anchor=s.source.substring(1);if(f.anchor==="")u(s,"BAD_ALIAS","Anchor cannot be an empty string")}if(r)f.spaceBefore=true;if(o){f.comment=o;f.range[2]=a}return f}function Bw({options:e},{offset:t,source:n,end:i},r){const o=new ty(n.substring(1));if(o.source==="")r(t,"BAD_ALIAS","Alias cannot be an empty string");if(o.source.endsWith(":"))r(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const s=t+n.length;const l=hw(i,s,e.strict,r);o.range=[t,s,l.offset];if(l.comment)o.comment=l.comment;return o}function Rw(e,t,{offset:n,start:i,value:r,end:o},s){const l=Object.assign({_directives:t},e);const a=new ZD(undefined,l);const u={atKey:false,atRoot:true,directives:a.directives,options:a.options,schema:a.schema};const c=ow(i,{indicator:"doc-start",next:r??o?.[0],offset:n,onError:s,parentIndent:0,startOnNewline:true});if(c.found){a.directives.docStart=true;if(r&&(r.type==="block-map"||r.type==="block-seq")&&!c.hasNewline)s(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}a.contents=r?_w(u,r,c,s):Mw(u,c.end,i,null,c,s);const f=a.contents.range[2];const h=hw(o,f,false,s);if(h.comment)a.comment=h.comment;a.range=[n,f,h.offset];return a}function Pw(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n==="string"?n.length:1)]}function qw(e){let t="";let n=false;let i=false;for(let r=0;r<e.length;++r){const o=e[r];switch(o[0]){case"#":t+=(t===""?"":i?"\n\n":"\n")+(o.substring(1)||" ");n=true;i=false;break;case"%":if(e[r+1]?.[0]!=="#")r+=1;n=false;break;default:if(!n)i=true;n=false}}return{comment:t,afterEmptyLine:i}}class Uw{constructor(e={}){this.doc=null;this.atDirectives=false;this.prelude=[];this.errors=[];this.warnings=[];this.onError=(e,t,n,i)=>{const r=Pw(e);if(i)this.warnings.push(new iw(r,t,n));else this.errors.push(new nw(r,t,n))};this.directives=new Kk({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:i}=qw(this.prelude);if(n){const r=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${n}`:n}else if(i||e.directives.docStart||!r){e.commentBefore=n}else if(Lk(r)&&!r.flow&&r.items.length>0){let e=r.items[0];if(Tk(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=r.commentBefore;r.commentBefore=e?`${n}\n${e}`:n}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:qw(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,i)=>{const r=Pw(e);r[0]+=t;this.onError(r,"BAD_DIRECTIVE",n,i)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=Rw(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const n=new nw(Pw(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(n);else this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new nw(Pw(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=hw(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new nw(Pw(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const n=new ZD(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");n.range=[0,t,t];this.decorate(n,false);yield n}}}function jw(e,t=true,n){if(e){const i=(e,t,i)=>{const r=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(n)n(r,t,i);else throw new nw([r,r+1],t,i)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return ww(e,t,i);case"block-scalar":return kw({options:{strict:t}},e,i)}}return null}function zw(e,t){const{implicitKey:n=false,indent:i,inFlow:r=false,offset:o=-1,type:s="PLAIN"}=t;const l=xy({type:s,value:e},{implicitKey:n,indent:i>0?" ".repeat(i):"",inFlow:r,options:{blockQuote:true,lineWidth:-1}});const a=t.end??[{type:"newline",offset:-1,indent:i,source:"\n"}];switch(l[0]){case"|":case">":{const e=l.indexOf("\n");const t=l.substring(0,e);const n=l.substring(e+1)+"\n";const r=[{type:"block-scalar-header",offset:o,indent:i,source:t}];if(!Vw(r,a))r.push({type:"newline",offset:-1,indent:i,source:"\n"});return{type:"block-scalar",offset:o,indent:i,props:r,source:n}}case'"':return{type:"double-quoted-scalar",offset:o,indent:i,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:o,indent:i,source:l,end:a};default:return{type:"scalar",offset:o,indent:i,source:l,end:a}}}function Hw(e,t,n={}){let{afterKey:i=false,implicitKey:r=false,inFlow:o=false,type:s}=n;let l="indent"in e?e.indent:null;if(i&&typeof l==="number")l+=2;if(!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const a=xy({type:s,value:t},{implicitKey:r||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(a[0]){case"|":case">":$w(e,a);break;case'"':Gw(e,a,"double-quoted-scalar");break;case"'":Gw(e,a,"single-quoted-scalar");break;default:Gw(e,a,"scalar")}}function $w(e,t){const n=t.indexOf("\n");const i=t.substring(0,n);const r=t.substring(n+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=i;e.source=r}else{const{offset:t}=e;const n="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:n,source:i}];if(!Vw(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:n,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:o,source:r})}}function Vw(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":e.push(n);return true}return false}function Gw(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n;e.source=t;break;case"block-scalar":{const i=e.props.slice(1);let r=t.length;if(e.props[0].type==="block-scalar-header")r-=e.props[0].source.length;for(const e of i)e.offset+=r;delete e.props;Object.assign(e,{type:n,source:t,end:i});break}case"block-map":case"block-seq":{const i=e.offset+t.length;const r={type:"newline",offset:i,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:n,source:t,end:[r]});break}default:{const i="indent"in e?e.indent:-1;const r="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:n,indent:i,source:t,end:r})}}}const Kw=e=>"type"in e?Yw(e):Ww(e);function Yw(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Yw(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Ww(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Ww(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Ww(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function Ww({start:e,key:t,sep:n,value:i}){let r="";for(const t of e)r+=t.source;if(t)r+=Yw(t);if(n)for(const e of n)r+=e.source;if(i)r+=Yw(i);return r}const Xw=Symbol("break visit");const Qw=Symbol("skip children");const Jw=Symbol("remove item");function Zw(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};eE(Object.freeze([]),e,t)}Zw.BREAK=Xw;Zw.SKIP=Qw;Zw.REMOVE=Jw;Zw.itemAtPath=(e,t)=>{let n=e;for(const[e,i]of t){const t=n?.[e];if(t&&"items"in t){n=t.items[i]}else return undefined}return n};Zw.parentCollection=(e,t)=>{const n=Zw.itemAtPath(e,t.slice(0,-1));const i=t[t.length-1][0];const r=n?.[i];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function eE(e,t,n){let i=n(t,e);if(typeof i==="symbol")return i;for(const r of["key","value"]){const o=t[r];if(o&&"items"in o){for(let t=0;t<o.items.length;++t){const i=eE(Object.freeze(e.concat([[r,t]])),o.items[t],n);if(typeof i==="number")t=i-1;else if(i===Xw)return Xw;else if(i===Jw){o.items.splice(t,1);t-=1}}if(typeof i==="function"&&r==="key")i=i(t,e)}}return typeof i==="function"?i(t,e):i}const tE="\ufeff";const nE="";const iE="";const rE="";const oE=e=>!!e&&"items"in e;const sE=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function lE(e){switch(e){case tE:return"<BOM>";case nE:return"<DOC>";case iE:return"<FLOW_END>";case rE:return"<SCALAR>";default:return JSON.stringify(e)}}function aE(e){switch(e){case tE:return"byte-order-mark";case nE:return"doc-mode";case iE:return"flow-error-end";case rE:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}var uE=Object.freeze({__proto__:null,BOM:tE,DOCUMENT:nE,FLOW_END:iE,SCALAR:rE,createScalarToken:zw,isCollection:oE,isScalar:sE,prettyToken:lE,resolveAsScalar:jw,setScalarValue:Hw,stringify:Kw,tokenType:aE,visit:Zw});function cE(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const fE=new Set("0123456789ABCDEFabcdef");const hE=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const dE=new Set(",[]{}");const pE=new Set(" ,[]{}\n\r\t");const mE=e=>!e||pE.has(e);class gE{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";while(n&&(t||this.hasChars(1)))n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;while(t===" ")t=this.buffer[++n+e];if(t==="\r"){const t=this.buffer[n+e+1];if(t==="\n"||!t&&!this.atEnd)return e+n+1}return t==="\n"||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&cE(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&e<this.pos){e=this.buffer.indexOf("\n",this.pos);this.lineEndPos=e}if(e===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[e-1]==="\r")e-=1;return this.buffer.substring(this.pos,e)}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){this.buffer=this.buffer.substring(this.pos);this.pos=0;this.lineEndPos=null;this.next=e;return null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===tE){yield*this.pushCount(1);e=e.substring(1)}if(e[0]==="%"){let t=e.length;let n=e.indexOf("#");while(n!==-1){const i=e[n-1];if(i===" "||i==="\t"){t=n-1;break}else{n=e.indexOf("#",n+1)}}while(true){const n=e[t-1];if(n===" "||n==="\t")t-=1;else break}const i=(yield*this.pushCount(t))+(yield*this.pushSpaces(true));yield*this.pushCount(e.length-i);this.pushNewline();return"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(true);yield*this.pushCount(e.length-t);yield*this.pushNewline();return"stream"}yield nE;return yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if((e==="---"||e==="...")&&cE(this.charAt(3))){yield*this.pushCount(3);this.indentValue=0;this.indentNext=0;return e==="---"?"doc":"stream"}}this.indentValue=yield*this.pushSpaces(false);if(this.indentNext>this.indentValue&&!cE(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&cE(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(mE);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let n=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=n=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const i=this.getLine();if(i===null)return this.setNext("flow");if(n!==-1&&n<this.indentNext&&i[0]!=="#"||n===0&&(i.startsWith("---")||i.startsWith("..."))&&cE(i[3])){const e=n===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}");if(!e){this.flowLevel=0;yield iE;return yield*this.parseLineStart()}}let r=0;while(i[r]===","){r+=(yield*this.pushCount(1));r+=(yield*this.pushSpaces(true));this.flowKey=false}r+=(yield*this.pushIndicators());switch(i[r]){case undefined:return"flow";case"#":yield*this.pushCount(i.length-r);return"flow";case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel+=1;return"flow";case"}":case"]":yield*this.pushCount(1);this.flowKey=true;this.flowLevel-=1;return this.flowLevel?"flow":"doc";case"*":yield*this.pushUntil(mE);return"flow";case'"':case"'":this.flowKey=true;return yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||cE(e)||e===","){this.flowKey=false;yield*this.pushCount(1);yield*this.pushSpaces(true);return"flow"}}default:this.flowKey=false;return yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if(e==="'"){while(t!==-1&&this.buffer[t+1]==="'")t=this.buffer.indexOf("'",t+2)}else{while(t!==-1){let e=0;while(this.buffer[t-1-e]==="\\")e+=1;if(e%2===0)break;t=this.buffer.indexOf('"',t+1)}}const n=this.buffer.substring(0,t);let i=n.indexOf("\n",this.pos);if(i!==-1){while(i!==-1){const e=this.continueScalar(i+1);if(e===-1)break;i=n.indexOf("\n",e)}if(i!==-1){t=i-(n[i-1]==="\r"?2:1)}}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}yield*this.pushToIndex(t+1,false);return this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1;this.blockScalarKeep=false;let e=this.pos;while(true){const t=this.buffer[++e];if(t==="+")this.blockScalarKeep=true;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>cE(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let n;e:for(let i=this.pos;n=this.buffer[i];++i){switch(n){case" ":t+=1;break;case"\n":e=i;t=0;break;case"\r":{const e=this.buffer[i+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let i=e+1;n=this.buffer[i];while(n===" ")n=this.buffer[++i];if(n==="\t"){while(n==="\t"||n===" "||n==="\r"||n==="\n")n=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep){do{let n=e-1;let i=this.buffer[n];if(i==="\r")i=this.buffer[--n];const r=n;while(i===" ")i=this.buffer[--n];if(i==="\n"&&n>=this.pos&&n+1+t>r)e=n;else break}while(true)}yield rE;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let n=this.pos-1;let i;while(i=this.buffer[++n]){if(i===":"){const i=this.buffer[n+1];if(cE(i)||e&&dE.has(i))break;t=n}else if(cE(i)){let r=this.buffer[n+1];if(i==="\r"){if(r==="\n"){n+=1;i="\n";r=this.buffer[n+1]}else t=n}if(r==="#"||e&&dE.has(r))break;if(i==="\n"){const e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&dE.has(i))break;t=n}}if(!i&&!this.atEnd)return this.setNext("plain-scalar");yield rE;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);if(n){yield n;this.pos+=n.length;return n.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(mE))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(cE(t)||e&&dE.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!cE(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(hE.has(t))t=this.buffer[++e];else if(t==="%"&&fE.has(this.buffer[e+1])&&fE.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let n;do{n=this.buffer[++t]}while(n===" "||e&&n==="\t");const i=t-this.pos;if(i>0){yield this.buffer.substr(this.pos,i);this.pos=t}return i}*pushUntil(e){let t=this.pos;let n=this.buffer[t];while(!e(n))n=this.buffer[++t];return yield*this.pushToIndex(t,false)}}class bE{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let n=this.lineStarts.length;while(t<n){const i=t+n>>1;if(this.lineStarts[i]<e)t=i+1;else n=i}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const i=this.lineStarts[t-1];return{line:t,col:e-i+1}}}}function kE(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return true;return false}function yE(e){for(let t=0;t<e.length;++t){switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}}return-1}function DE(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return true;default:return false}}function wE(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function EE(e){if(e.length===0)return[];let t=e.length;e:while(--t>=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function vE(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!kE(t.start,"explicit-key-ind")&&!kE(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(DE(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class AE{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new gE;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);if(!t)yield*this.end()}*next(e){this.source=e;if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=aE(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")vE(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(n.sep){n.value=t}else{Object.assign(n,{key:t,sep:[]});this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{const n=e.items[e.items.length-1];if(n.value)e.items.push({start:[],value:t});else n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];if(!n||n.value)e.items.push({start:[],key:t,sep:[]});else if(n.sep)n.value=t;else Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const n=t.items[t.items.length-1];if(n&&!n.sep&&!n.value&&n.start.length>0&&yE(n.start)===-1&&(t.indent===0||n.start.every((e=>e.type!=="comment"||e.indent<t.indent)))){if(e.type==="document")e.end=n.start;else e.items.push({start:n.start});t.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")e.start.push(this.sourceToken);this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{if(yE(e.start)!==-1){yield*this.pop();yield*this.step()}else e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);if(t)this.stack.push(t);else{yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}}*scalar(e){if(this.type==="map-value-ind"){const t=wE(this.peek(2));const n=EE(t);let i;if(e.end){i=e.end;i.push(this.sourceToken);delete e.end}else i=[this.sourceToken];const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:i}]};this.onKeyLine=true;this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":e.source=this.source;this.atNewLine=true;this.indent=0;if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}yield*this.pop();break;default:yield*this.pop();yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":this.onKeyLine=false;if(t.value){const n="end"in t.value?t.value.end:undefined;const i=Array.isArray(n)?n[n.length-1]:undefined;if(i?.type==="comment")n?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"space":case"comment":if(t.value){e.items.push({start:[this.sourceToken]})}else if(t.sep){t.sep.push(this.sourceToken)}else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2];const i=n?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,t.start);i.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent;const i=n&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let r=[];if(i&&t.sep&&!t.value){const n=[];for(let i=0;i<t.sep.length;++i){const r=t.sep[i];switch(r.type){case"newline":n.push(i);break;case"space":break;case"comment":if(r.indent>e.indent)n.length=0;break;default:n.length=0}}if(n.length>=2)r=t.sep.splice(n[1])}switch(this.type){case"anchor":case"tag":if(i||t.value){r.push(this.sourceToken);e.items.push({start:r});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(i||t.value){r.push(this.sourceToken);e.items.push({start:r,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(kE(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=EE(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(kE(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]})}else if(DE(t.key)&&!kE(t.sep,"newline")){const e=EE(t.start);const n=t.key;const i=t.sep;i.push(this.sourceToken);delete t.key;delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:i}]})}else if(r.length>0){t.sep=t.sep.concat(r,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||i){e.items.push({start:r,key:null,sep:[this.sourceToken]})}else if(kE(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);if(i||t.value){e.items.push({start:r,key:n,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(n)}else{Object.assign(t,{key:n,sep:[]});this.onKeyLine=true}return}default:{const i=this.startBlockValue(e);if(i){if(i.type==="block-seq"){if(!t.explicitKey&&t.sep&&!kE(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(n){e.items.push({start:r})}this.stack.push(i);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:undefined;const i=Array.isArray(n)?n[n.length-1]:undefined;if(i?.type==="comment")n?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2];const i=n?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,t.start);i.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||kE(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:n,sep:[]});else if(t.sep)this.stack.push(n);else Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);if(n)this.stack.push(n);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const n=wE(t);const i=EE(n);vE(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:r}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=wE(e);const n=EE(t);n.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=wE(e);const n=EE(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}function CE(e){const t=e.prettyErrors!==false;const n=e.lineCounter||t&&new bE||null;return{lineCounter:n,prettyErrors:t}}function FE(e,t={}){const{lineCounter:n,prettyErrors:i}=CE(t);const r=new AE(n?.addNewLine);const o=new Uw(t);const s=Array.from(o.compose(r.parse(e)));if(i&&n)for(const t of s){t.errors.forEach(rw(e,n));t.warnings.forEach(rw(e,n))}if(s.length>0)return s;return Object.assign([],{empty:true},o.streamInfo())}function SE(e,t={}){const{lineCounter:n,prettyErrors:i}=CE(t);const r=new AE(n?.addNewLine);const o=new Uw(t);let s=null;for(const t of o.compose(r.parse(e),true,e.length)){if(!s)s=t;else if(s.options.logLevel!=="silent"){s.errors.push(new nw(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(i&&n){s.errors.forEach(rw(e,n));s.warnings.forEach(rw(e,n))}return s}function xE(e,t,n){let i=undefined;if(typeof t==="function"){i=t}else if(n===undefined&&t&&typeof t==="object"){n=t}const r=SE(e,n);if(!r)return null;r.warnings.forEach((e=>_y(r.options.logLevel,e)));if(r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];else r.errors=[]}return r.toJS(Object.assign({reviver:i},n))}function TE(e,t,n){let i=null;if(typeof t==="function"||Array.isArray(t)){i=t}else if(n===undefined&&t){n=t}if(typeof n==="string")n=n.length;if(typeof n==="number"){const e=Math.round(n);n=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=n??t??{};if(!e)return undefined}if(Sk(e)&&!i)return e.toString(n);return new ZD(e,i,n).toString(n)}var OE=Object.freeze({__proto__:null,Alias:ty,CST:uE,Composer:Uw,Document:ZD,Lexer:gE,LineCounter:bE,Pair:Hy,Parser:AE,Scalar:ry,Schema:QD,YAMLError:tw,YAMLMap:Wy,YAMLParseError:nw,YAMLSeq:Qy,YAMLWarning:iw,isAlias:Fk,isCollection:Lk,isDocument:Sk,isMap:xk,isNode:Ik,isPair:Tk,isScalar:Ok,isSeq:Nk,parse:xE,parseAllDocuments:FE,parseDocument:SE,stringify:TE,visit:Pk,visitAsync:Uk});function NE(){return LE}function LE(e,t){Is(e,"yaml",IE(t))}const IE=e=>t=>{e.data.frontmatter=t.value?OE.parse(t.value):undefined};function _E(e){return"children"in e}function ME(e){return e.type==="text"}function BE(e){return e.type==="element"&&"tagName"in e}const RE=new Map([["note","secondary"],["important","info"],["tip","success"],["warning","danger"],["caution","warning"]]);const PE=[...RE.keys()].join("|");const qE=new RegExp(`^(:::(?:${PE}))[^\\S\\n]+(?!\\[)(.+?)[^\\S\\n]*$`,"gm");function UE(e){return e.replace(qE,"$1[$2]")}function jE(){return e=>{Is(e,"containerDirective",(e=>{const t=RE.get(e.name);if(!t){return}const{label:n,children:i}=zE(e);const r=i;e.data={hName:"div",hProperties:{className:["admonition",`admonition-${e.name}`,"alert",`alert--${t}`]}};e.children=[{type:"admonitionHeading",data:{hName:"div",hProperties:{className:["admonition-heading"]}},children:[{type:"admonitionTitle",data:{hName:"h5"},children:[{type:"text",value:n}]}]},{type:"admonitionContent",data:{hName:"div",hProperties:{className:["admonition-content"]}},children:r}]}))}}function zE(e){const t=e.children.find((e=>{var t;return(t=e.data)===null||t===void 0?void 0:t.directiveLabel}));if(!t||!_E(t)){return{label:e.name,children:e.children}}const n=e.children.filter((e=>e!==t));return{label:HE(t)||e.name,children:n}}function HE(e){if(e.type==="text"){return e.value}if(!_E(e)){return""}return e.children.map(HE).join("")}function $E(e,t){const n=i(e,undefined,undefined);return n;function i(e,n,r){const o={...t(e,n,r)};if("children"in e){const t=o;const n=e.children.map((function(t,n){return i(t,n,e)}));t.children=n}return o}}function VE(){return GE}function GE(e){return $E(e,KE)}function KE(e){if(!BE(e)){return e}if(e.tagName!=="code"){return e}const t=YE(e.properties);if(!t){return e}return{...e,type:"element",tagName:"kompendium-code",properties:{language:t}}}function YE(e){const t=e===null||e===void 0?void 0:e.className;if(!Array.isArray(t)){return}const n=t.find((e=>e.startsWith("language-")));if(!n){return}return n.replace("language-","")}function WE(e={}){return XE(e.types)}const XE=(e=[])=>t=>{if(e.length===0){return t}const n=QE(t);return lv(t,ZE(e,n))};function QE(e){const t=new Set;JE(e,t);return t}function JE(e,t){if(!_E(e)){return}if(BE(e)&&e.tagName==="pre"){for(const n of e.children){if(BE(n)&&n.tagName==="code"){t.add(n)}}}for(const n of e.children){JE(n,t)}}const ZE=(e=[],t)=>(n,i,r)=>{if(!ME(n)){return[n]}if(!r||!BE(r)){return[n]}if(r.tagName!=="code"){return[n]}if(t.has(r)){return[n]}return ev(n,e)};function ev(e,t=[]){return rv(e.value).map(tv(t))}const tv=(e=[])=>t=>{if(!e.includes(t)){return nv(t)}return iv(t)};function nv(e){return{type:"text",value:e}}function iv(e){return{type:"element",tagName:"a",properties:{href:`#/type/${e}`},children:[{type:"text",value:e}]}}function rv(e){const t=/(\b\w+\b)+/g;const n=e.match(t);const i=[];if(!n){return[e]}let r=e;n.forEach((e=>{const t=r.indexOf(e);if(t>0){i.push(r.substring(0,t))}i.push(e);r=r.substring(t+e.length)}));if(r.length>0){i.push(r)}return i}function ov(e,t){if(!_E(e)){return}e.children=e.children.flatMap(((n,i)=>sv(n,i,e,t)))}function sv(e,t,n,i){ov(e,i);return i(e,t,n)}function lv(e,t){const n=sv(e,0,null,t);if(n.length!==1){throw new Error(`flatMap: root must map to exactly one node, got ${n.length}`)}return n[0]}async function av(e,t=[]){const n=UE(e);const i=await z().use(ri).use(va).use(Oi).use(NE).use(wo).use(jE).use(qu,{allowDangerousHtml:true}).use(Cg).use(Bg).use(WE,{types:t}).use(VE).use(kk).process(n);return{data:i.data,toString:()=>i.toString()}}const uv='*,*::before,*::after{box-sizing:border-box}ul[class],ol[class]{padding:0}body,h1,h2,h3,h4,p,ul[class],ol[class],li,figure,figcaption,blockquote,dl,dd{margin:0}ul[class],ol[class]{list-style:none}a:not([class]){text-decoration-skip-ink:auto}img{max-width:100%}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion: reduce){*{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}p,a,li{font-size:0.9375rem}h1,h2,h3,h4,h5,h6{margin-bottom:0.5rem;font-weight:normal;font-weight:500}h1{font-size:2rem;line-height:2.25rem;margin-top:1.5rem;letter-spacing:-0.0625rem;font-weight:400}h2{font-size:1.625rem;line-height:1.25rem;margin-top:1.25rem;margin-bottom:1rem}h3{font-size:1.375rem;line-height:1.5rem;margin-top:1rem}h4{font-size:1.25rem;line-height:1.25rem;margin-top:1rem}h5{font-size:1.125rem;line-height:1.125rem;margin-top:0.75rem}h6{font-size:1rem;font-variant:all-small-caps;letter-spacing:0.0625rem}p,blockquote{margin-top:0;margin-bottom:0.5rem}p:only-child,blockquote:only-child{margin-bottom:0}a{transition:color 0.2s ease;color:rgb(var(--kompendium-color-blue-default));text-decoration:none;border-radius:0.125rem}a:hover{color:rgb(var(--kompendium-color-blue-light))}a:focus{outline:none}a:focus-visible{outline:none;box-shadow:var(--kompendium-shadow-depth-8-focused)}ul{list-style:none}ul li{position:relative;margin-left:0.75rem}ul li:before{content:"";position:absolute;left:-0.5rem;top:0.625rem;width:0.25rem;height:0.25rem;border-radius:50%;background-color:rgb(var(--kompendium-contrast-700));display:block}ol{list-style:decimal inside}ol,ul{padding-left:0;margin-top:0}ul ul,ul ol,ol ol,ol ul{margin:0.9375rem 0 0.9375rem 1.875rem;font-size:90%}li{margin-bottom:0.625rem}th,td{padding:0.75rem 1rem;text-align:left;border-bottom:1px solid rgb(var(--kompendium-contrast-600))}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}hr{margin:1.75rem 0 2rem 0;border-width:0;border-top:1px solid rgb(var(--kompendium-contrast-600))}kbd{font-family:var(--kompendium-font-code);font-size:0.875rem;font-weight:600;color:rgb(var(--kompendium-contrast-1000));background-color:rgb(var(--kompendium-contrast-200));white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:normal;padding:0.125rem 0.5rem;margin:0 0.25rem;box-shadow:var(--kompendium-button-shadow-normal), 0 0.03125rem 0.21875rem 0 rgba(var(--kompendium-contrast-100), 0.5) inset;border-radius:0.25rem;border-style:solid;border-color:rgba(var(--kompendium-contrast-600), 0.8);border-width:0 1px 0.125rem 1px}@media (prefers-color-scheme: dark){kbd:not([data-theme=force-light]){background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}}kbd[data-theme=force-dark]{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}@media (prefers-color-scheme: dark){:host(:not([data-theme=force-light])) kbd{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}}:host([data-theme=force-dark]) kbd{background-color:rgb(var(--kompendium-contrast-200));color:rgb(var(--kompendium-contrast-1100));border-color:rgba(var(--kompendium-contrast-500), 0.8)}:host{display:block}pre,code{font-family:var(--kompendium-font-code);border-radius:0.25rem;font-size:0.6875rem}pre a,code a{font-size:0.6875rem}code{background:rgba(var(--kompendium-contrast-1100), 0.05);border:1px solid rgba(var(--kompendium-contrast-1100), 0.1);padding:0.125rem 0.3125rem;margin:0 0.125rem;white-space:pre-wrap;color:rgb(var(--kompendium-contrast-1100))}pre>code{display:block;padding:0.625rem 0.6375rem;white-space:pre-wrap}.value--false code{color:rgb(var(--kompendium-color-code-magenta));border-color:rgba(var(--kompendium-color-code-magenta), 0.2);background-color:rgba(var(--kompendium-color-code-magenta), 0.1)}.value--true code{color:rgb(var(--kompendium-color-code-green-dark));border-color:rgba(var(--kompendium-color-code-green-dark), 0.2);background-color:rgba(var(--kompendium-color-code-green-dark), 0.1)}dl{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:1fr;margin-bottom:2rem;border:1px solid rgb(var(--kompendium-contrast-500));border-radius:0.375rem;background-color:rgb(var(--kompendium-contrast-300))}dl dt,dl dd{padding:0.375rem 0.5rem;font-size:0.875rem}dl dt:nth-of-type(even),dl dd:nth-of-type(even){background-color:rgb(var(--kompendium-contrast-400))}dl dt:first-child{border-top-left-radius:0.375rem}dl dt:last-child{border-bottom-left-radius:0.375rem}dl dd:first-child{border-top-right-radius:0.375rem}dl dd:last-child{border-bottom-right-radius:0.375rem}dl,dt,dd{transition:background-color 0.3s ease 0.05s, border-color 0.3s ease 0.05s}:root[data-theme=system-default]{color-scheme:dark light}:root[data-theme=force-light]{color-scheme:light}:root[data-theme=force-dark]{color-scheme:dark}:root{--kompendium-color-primary:33, 150, 243;--kompendium-color-error:229, 115, 115;--kompendium-color-white:255, 255, 255;--kompendium-color-black:0, 0, 0;--kompendium-contrast-100:255, 255, 255;--kompendium-contrast-200:250, 250, 251;--kompendium-contrast-300:246, 246, 247;--kompendium-contrast-400:241, 241, 243;--kompendium-contrast-500:237, 237, 238;--kompendium-contrast-600:232, 232, 234;--kompendium-contrast-700:209, 209, 213;--kompendium-contrast-800:186, 186, 192;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:117, 117, 128;--kompendium-contrast-1100:94, 94, 108;--kompendium-contrast-1200:71, 71, 86;--kompendium-contrast-1300:48, 48, 66;--kompendium-contrast-1400:39, 39, 57;--kompendium-contrast-1500:35, 35, 53;--kompendium-contrast-1600:25, 25, 44;--kompendium-contrast-1700:20, 20, 37;--kompendium-color-red-light:229, 115, 115;--kompendium-color-red-default:244, 67, 54;--kompendium-color-blue-light:100, 181, 246;--kompendium-color-blue-default:33, 150, 243;--kompendium-color-green-light:129, 199, 132;--kompendium-color-green-default:76, 175, 80;--kompendium-color-amber-light:255, 213, 79;--kompendium-color-amber-default:255, 193, 7;--kompendium-color-orange-light:255, 183, 77;--kompendium-color-orange-default:255, 152, 0}@media (prefers-color-scheme: dark){:root:not([data-theme=force-light]){--kompendium-color-primary:30, 136, 229;--kompendium-color-error:229, 57, 53;--kompendium-contrast-100:20, 20, 37;--kompendium-contrast-200:25, 25, 44;--kompendium-contrast-300:35, 35, 53;--kompendium-contrast-400:39, 39, 57;--kompendium-contrast-500:48, 48, 66;--kompendium-contrast-600:71, 71, 86;--kompendium-contrast-700:94, 94, 108;--kompendium-contrast-800:117, 117, 128;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:186, 186, 192;--kompendium-contrast-1100:209, 209, 213;--kompendium-contrast-1200:232, 232, 234;--kompendium-contrast-1300:237, 237, 238;--kompendium-contrast-1400:241, 241, 243;--kompendium-contrast-1500:246, 246, 247;--kompendium-contrast-1600:250, 250, 251;--kompendium-contrast-1700:255, 255, 255;--kompendium-color-red-light:240, 87, 80;--kompendium-color-red-default:229, 57, 53;--kompendium-color-blue-light:66, 165, 245;--kompendium-color-blue-default:30, 136, 229;--kompendium-color-green-light:102, 187, 106;--kompendium-color-green-default:67, 160, 71;--kompendium-color-amber-light:255, 207, 61;--kompendium-color-amber-default:255, 176, 59;--kompendium-color-orange-light:255, 167, 38;--kompendium-color-orange-default:251, 140, 0}}:root[data-theme=force-dark]{--kompendium-color-primary:30, 136, 229;--kompendium-color-error:229, 57, 53;--kompendium-contrast-100:20, 20, 37;--kompendium-contrast-200:25, 25, 44;--kompendium-contrast-300:35, 35, 53;--kompendium-contrast-400:39, 39, 57;--kompendium-contrast-500:48, 48, 66;--kompendium-contrast-600:71, 71, 86;--kompendium-contrast-700:94, 94, 108;--kompendium-contrast-800:117, 117, 128;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:186, 186, 192;--kompendium-contrast-1100:209, 209, 213;--kompendium-contrast-1200:232, 232, 234;--kompendium-contrast-1300:237, 237, 238;--kompendium-contrast-1400:241, 241, 243;--kompendium-contrast-1500:246, 246, 247;--kompendium-contrast-1600:250, 250, 251;--kompendium-contrast-1700:255, 255, 255;--kompendium-color-red-light:240, 87, 80;--kompendium-color-red-default:229, 57, 53;--kompendium-color-blue-light:66, 165, 245;--kompendium-color-blue-default:30, 136, 229;--kompendium-color-green-light:102, 187, 106;--kompendium-color-green-default:67, 160, 71;--kompendium-color-amber-light:255, 207, 61;--kompendium-color-amber-default:255, 176, 59;--kompendium-color-orange-light:255, 167, 38;--kompendium-color-orange-default:251, 140, 0}@media (prefers-color-scheme: dark){:host(:not([data-theme=force-light])) :root{--kompendium-color-primary:30, 136, 229;--kompendium-color-error:229, 57, 53;--kompendium-contrast-100:20, 20, 37;--kompendium-contrast-200:25, 25, 44;--kompendium-contrast-300:35, 35, 53;--kompendium-contrast-400:39, 39, 57;--kompendium-contrast-500:48, 48, 66;--kompendium-contrast-600:71, 71, 86;--kompendium-contrast-700:94, 94, 108;--kompendium-contrast-800:117, 117, 128;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:186, 186, 192;--kompendium-contrast-1100:209, 209, 213;--kompendium-contrast-1200:232, 232, 234;--kompendium-contrast-1300:237, 237, 238;--kompendium-contrast-1400:241, 241, 243;--kompendium-contrast-1500:246, 246, 247;--kompendium-contrast-1600:250, 250, 251;--kompendium-contrast-1700:255, 255, 255;--kompendium-color-red-light:240, 87, 80;--kompendium-color-red-default:229, 57, 53;--kompendium-color-blue-light:66, 165, 245;--kompendium-color-blue-default:30, 136, 229;--kompendium-color-green-light:102, 187, 106;--kompendium-color-green-default:67, 160, 71;--kompendium-color-amber-light:255, 207, 61;--kompendium-color-amber-default:255, 176, 59;--kompendium-color-orange-light:255, 167, 38;--kompendium-color-orange-default:251, 140, 0}}:host([data-theme=force-dark]) :root{--kompendium-color-primary:30, 136, 229;--kompendium-color-error:229, 57, 53;--kompendium-contrast-100:20, 20, 37;--kompendium-contrast-200:25, 25, 44;--kompendium-contrast-300:35, 35, 53;--kompendium-contrast-400:39, 39, 57;--kompendium-contrast-500:48, 48, 66;--kompendium-contrast-600:71, 71, 86;--kompendium-contrast-700:94, 94, 108;--kompendium-contrast-800:117, 117, 128;--kompendium-contrast-900:140, 140, 150;--kompendium-contrast-1000:186, 186, 192;--kompendium-contrast-1100:209, 209, 213;--kompendium-contrast-1200:232, 232, 234;--kompendium-contrast-1300:237, 237, 238;--kompendium-contrast-1400:241, 241, 243;--kompendium-contrast-1500:246, 246, 247;--kompendium-contrast-1600:250, 250, 251;--kompendium-contrast-1700:255, 255, 255;--kompendium-color-red-light:240, 87, 80;--kompendium-color-red-default:229, 57, 53;--kompendium-color-blue-light:66, 165, 245;--kompendium-color-blue-default:30, 136, 229;--kompendium-color-green-light:102, 187, 106;--kompendium-color-green-default:67, 160, 71;--kompendium-color-amber-light:255, 207, 61;--kompendium-color-amber-default:255, 176, 59;--kompendium-color-orange-light:255, 167, 38;--kompendium-color-orange-default:251, 140, 0}:root{--kompendium-color-code-pink:216, 27, 96;--kompendium-color-code-magenta:156, 22, 87;--kompendium-color-code-blue:33, 150, 243;--kompendium-color-code-orange:245, 124, 0;--kompendium-color-code-yellow:255, 87, 34;--kompendium-color-code-purple:149, 117, 205;--kompendium-color-code-green-light:53, 196, 84;--kompendium-color-code-green-dark:85, 139, 47;--kompendium-color-code-turquoise:0, 151, 167;--kompendium-color-code-gray-lighter:71, 71, 86;--kompendium-color-code-gray-light:var(--kompendium-contrast-1100);--kompendium-color-code-gray-dark:var(--kompendium-contrast-1200);--kompendium-color-code-background:var(--kompendium-contrast-200)}@media (prefers-color-scheme: dark){:root:not([data-theme=force-light]){--kompendium-color-code-pink:226, 119, 122;--kompendium-color-code-magenta:232, 62, 140;--kompendium-color-code-blue:97, 150, 204;--kompendium-color-code-orange:255, 152, 0;--kompendium-color-code-yellow:255, 213, 79;--kompendium-color-code-purple:206, 147, 216;--kompendium-color-code-green-light:174, 213, 129;--kompendium-color-code-green-dark:53, 196, 84;--kompendium-color-code-turquoise:103, 205, 204;--kompendium-color-code-gray-lighter:117, 117, 128}}:root[data-theme=force-dark]{--kompendium-color-code-pink:226, 119, 122;--kompendium-color-code-magenta:232, 62, 140;--kompendium-color-code-blue:97, 150, 204;--kompendium-color-code-orange:255, 152, 0;--kompendium-color-code-yellow:255, 213, 79;--kompendium-color-code-purple:206, 147, 216;--kompendium-color-code-green-light:174, 213, 129;--kompendium-color-code-green-dark:53, 196, 84;--kompendium-color-code-turquoise:103, 205, 204;--kompendium-color-code-gray-lighter:117, 117, 128}@media (prefers-color-scheme: dark){:host(:not([data-theme=force-light])) :root{--kompendium-color-code-pink:226, 119, 122;--kompendium-color-code-magenta:232, 62, 140;--kompendium-color-code-blue:97, 150, 204;--kompendium-color-code-orange:255, 152, 0;--kompendium-color-code-yellow:255, 213, 79;--kompendium-color-code-purple:206, 147, 216;--kompendium-color-code-green-light:174, 213, 129;--kompendium-color-code-green-dark:53, 196, 84;--kompendium-color-code-turquoise:103, 205, 204;--kompendium-color-code-gray-lighter:117, 117, 128}}:host([data-theme=force-dark]) :root{--kompendium-color-code-pink:226, 119, 122;--kompendium-color-code-magenta:232, 62, 140;--kompendium-color-code-blue:97, 150, 204;--kompendium-color-code-orange:255, 152, 0;--kompendium-color-code-yellow:255, 213, 79;--kompendium-color-code-purple:206, 147, 216;--kompendium-color-code-green-light:174, 213, 129;--kompendium-color-code-green-dark:53, 196, 84;--kompendium-color-code-turquoise:103, 205, 204;--kompendium-color-code-gray-lighter:117, 117, 128}.admonition{--size-of-admonition-icon:2.5rem;--border-radius-of-admonition-icon:0.5rem;border-radius:var(--border-radius-of-admonition-icon);background-color:rgb(var(--kompendium-contrast-400));margin:0.75rem 0 1rem 0;padding:0.5rem 0.5rem 0.75rem 0.5rem;position:relative}.admonition:before{content:"";width:var(--size-of-admonition-icon);position:absolute;left:0;top:0;bottom:0;display:block;border-radius:var(--border-radius-of-admonition-icon) 0 0 var(--border-radius-of-admonition-icon);background-position:top center;background-repeat:no-repeat;background-size:contain;background-color:#eaeaea}.admonition-tip:before{background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="1.5" clip-rule="evenodd" viewBox="0 0 400 400"><defs/><path fill="none" d="M0 0h400v400H0z"/><circle cx="200" cy="200" r="140.5" fill="%23ffd54f" fill-opacity=".2"/><circle cx="200" cy="200" r="119.072" fill="%23ffd54f" fill-opacity=".3"/><circle cx="200" cy="200" r="99.5" fill="%23ffd54f"/><path fill="%23fff" fill-rule="nonzero" d="M265.384 201.1c0-38.426-33.52-69.494-72.764-64.589-28.615 3.27-52.325 26.163-57.231 54.778-3.27 21.257 4.088 41.696 17.17 55.595 9.81 9.811 14.716 22.892 14.716 36.791h65.406c0-13.081 4.906-26.98 13.899-35.973 11.446-13.082 18.804-28.616 18.804-46.602z"/><path fill="none" stroke="%23ffd54f" stroke-width="8" d="M213.2 194.58C224 188 238 196 231.751 204.881c-9.583 13.619-57.987 11.566-63.709-1.805-3.689-8.622 8.958-14.076 19.439-8.496C196.151 199.196 200.5 207 200.5 224v4"/><path fill="%23446c80" fill-rule="nonzero" d="M232.681 283.675h-65.406c0 18.532 14.171 32.703 32.703 32.703 18.532 0 32.703-14.171 32.703-32.703z"/></svg>\');background-color:rgba(var(--kompendium-color-code-yellow), 0.2)}.admonition-note:before{background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 400 400"><defs/><path fill="none" d="M0 0h400v400H0z"/><circle cx="200" cy="200" r="119.072" fill="%2381c784" fill-opacity=".3"/><circle cx="200" cy="200" r="99.5" fill="%2381c784"/><path fill="%23fff" d="M200.011 145.221c-5.042 0-9.129 4.136-9.129 9.102v54.834a9.094 9.094 0 009.129 9.103c5.043 0 9.13-4.136 9.13-9.103v-54.834a9.093 9.093 0 00-9.13-9.102zm0 109.558a9.13 9.13 0 009.13-9.13 9.129 9.129 0 00-9.13-9.129 9.129 9.129 0 00-9.129 9.129 9.129 9.129 0 009.129 9.13z"/></svg>\');background-color:rgba(var(--kompendium-color-code-green-dark), 0.1)}.admonition-warning:before{background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 400 400"><defs/><path fill="none" d="M0 0h400v400H0z"/><path fill="%23f44336" d="M187.167 113.32c7.091-11.474 18.606-11.446 25.681 0l87.906 142.221c9.467 15.317 2.571 27.734-15.394 27.734H114.655c-17.97 0-24.892-12.367-15.395-27.734l87.907-142.221z"/><path fill="%23fff" d="M200.011 155.052c-5.042 0-9.129 4.136-9.129 9.103v54.833a9.094 9.094 0 009.129 9.103c5.043 0 9.13-4.136 9.13-9.103v-54.833a9.093 9.093 0 00-9.13-9.103zm0 109.558a9.13 9.13 0 009.13-9.13 9.129 9.129 0 00-9.13-9.129 9.129 9.129 0 00-9.129 9.129 9.129 9.129 0 009.129 9.13z"/></svg>\');background-color:rgba(var(--kompendium-color-code-pink), 0.2)}.admonition-danger:before{background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 400 400"><defs/><path fill="none" d="M0 0h400v400H0z"/><path fill="%23446c80" d="M100.7 233.141c-5.6-12.935-8.7-27.173-8.7-42.122C92 131.954 140.393 84 200 84s108 47.954 108 107.019c0 14.949-3.1 29.187-8.7 42.122-4.582 26.722-21.33 48.534-43.425 57.687v12.728c0 10.357-8.485 18.764-18.935 18.764-9.066 0-16.653-6.327-18.504-14.765-1.962 8.291-9.477 14.47-18.436 14.47-9.012 0-16.562-6.251-18.47-14.615-1.909 8.364-9.459 14.615-18.47 14.615-10.45 0-18.935-8.407-18.935-18.764v-12.433c-22.096-9.154-38.844-30.967-43.425-57.687z"/><path fill="%23fff" fill-opacity=".2" d="M213.322 264.164c-3.328 3.135-23.317 3.135-26.644 0-3.332-3.136-3.332-4.928 0-11.199 2.328-4.703 9.832-17.022 13.322-17.022 3.489 0 10.993 12.319 13.322 17.022 3.331 6.271 3.331 8.063 0 11.199z"/><path fill="%23fff" d="M150.179 213.14c12.03 0 21.797 9.678 21.797 21.599s-9.767 21.599-21.797 21.599c-12.03 0-21.797-9.678-21.797-21.599s9.767-21.599 21.797-21.599zm100.844 12.114l8.678-8.598c2.635-2.612 6.896-2.624 9.557.014 2.644 2.619 2.618 6.891.015 9.47l-8.678 8.599 8.678 8.599a6.637 6.637 0 01-.015 9.47c-2.643 2.619-6.954 2.594-9.557.014l-8.678-8.598-8.677 8.598c-2.635 2.612-6.896 2.624-9.558-.014-2.643-2.619-2.617-6.89-.014-9.47l8.678-8.599-8.678-8.599a6.638 6.638 0 01.014-9.47c2.644-2.619 6.954-2.594 9.558-.014l8.677 8.598z"/></svg>\');background-color:rgba(var(--kompendium-color-code-gray-dark), 0.1)}.admonition-info:before{background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 400 400"><defs/><path fill="none" d="M0 0h400v400H0z"/><path fill="%232196f3" fill-rule="nonzero" d="M229.238 275.304c-.075.025-6.987 2.325-12.987 2.325-3.312 0-4.65-.687-5.075-.987-2.1-1.463-6-4.2.675-17.5l12.5-24.924c7.412-14.8 8.512-29.112 3.062-40.312-4.45-9.162-12.987-15.449-23.999-17.699a59.668 59.668 0 00-11.975-1.213c-23.112 0-38.674 13.5-39.324 14.075a6.262 6.262 0 00-1.275 7.825 6.244 6.244 0 007.438 2.775c.062-.025 6.987-2.338 12.987-2.338 3.287 0 4.612.688 5.025.975 2.112 1.475 6.024 4.25-.638 17.525l-12.499 24.937c-7.425 14.812-8.513 29.124-3.063 40.311 4.45 9.162 12.975 15.449 24.012 17.699 3.925.788 7.95 1.213 11.925 1.213 23.124 0 38.698-13.5 39.348-14.075 2.238-1.962 2.763-5.25 1.275-7.825-1.5-2.562-4.612-3.712-7.412-2.787zm-10.487-175.295c17.247 0 31.249 14.002 31.249 31.249s-14.002 31.249-31.249 31.249-31.249-14.002-31.249-31.249 14.002-31.249 31.249-31.249z"/></svg>\');background-color:rgba(var(--kompendium-color-code-turquoise), 0.2)}.admonition-important:before{background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 400 400"><defs/><path fill="none" d="M0 0h400v400H0z"/><path fill="%23ffd54f" fill-rule="nonzero" d="M254.158 293c-2.499 0-4.941-.558-7.205-1.628a9.33 9.33 0 01-1.16-.569l-45.807-26.132-45.806 26.143c-.39.223-.781.413-1.182.591-5.443 2.543-12.101 1.941-16.964-1.595-5.231-3.792-7.819-10.406-6.536-16.83l10.674-51.773c-4.172-3.793-10.73-9.76-17.868-16.251l-21.135-19.239a8.364 8.364 0 01-.87-.915c-4.183-4.416-5.677-10.818-3.792-16.64 1.929-5.845 6.915-10.172 12.937-11.254.38-.089.748-.156 1.138-.201l52.431-5.811 21.705-48.07a7.66 7.66 0 01.669-1.227A16.72 16.72 0 01199.986 93c6.057 0 11.644 3.324 14.6 8.588.234.402.457.814.669 1.249l21.727 48.093 52.431 5.811c.379.033.759.1 1.16.189 6.012 1.116 10.997 5.421 12.916 11.287 1.896 5.811.39 12.247-3.793 16.663-.267.29-.568.603-.87.87l-39.014 35.512 10.674 51.662c1.26 6.547-1.316 13.139-6.58 16.942a16.602 16.602 0 01-9.748 3.134z"/><circle cx="255.5" cy="127.5" r="14.5" fill="%23ffd54f" fill-opacity=".5"/><circle cx="144.5" cy="127.5" r="14.5" fill="%23ffd54f" fill-opacity=".5"/><circle cx="287.5" cy="229.5" r="14.5" fill="%23ffd54f" fill-opacity=".5"/><circle cx="113.5" cy="229.5" r="14.5" fill="%23ffd54f" fill-opacity=".5"/><circle cx="200" cy="297.5" r="14.5" fill="%23ffd54f" fill-opacity=".5"/></svg>\');background-color:rgba(var(--kompendium-color-code-gray-dark), 0.4)}.admonition-heading{margin-bottom:0.375rem}.admonition-heading h5{color:rgb(var(--kompendium-contrast-1100));margin:0;font-size:0.9375rem;padding:0.125rem 0 0 var(--size-of-admonition-icon)}.admonition-heading h5::first-letter{text-transform:capitalize}.admonition-content{padding-left:var(--size-of-admonition-icon)}.admonition-content p:first-child{margin-top:0}.admonition-content p:only-child{margin-bottom:0}@media (max-width: 600px){.admonition{--size-of-admonition-icon:2rem}}blockquote{border-left-color:rgb(var(--kompendium-contrast-700));border-left-style:solid;border-left-width:0.25rem;color:rgb(var(--kompendium-contrast-1100));padding-left:1rem}';const cv=class{constructor(t){e(this,t);this.renderSeq=0;this.handleHashChange=this.handleHashChange.bind(this)}connectedCallback(){window.addEventListener("hashchange",this.handleHashChange)}disconnectedCallback(){window.removeEventListener("hashchange",this.handleHashChange)}componentDidLoad(){this.renderMarkdown()}componentDidUpdate(){this.renderMarkdown()}handleHashChange(){o(this.host.shadowRoot)}async renderMarkdown(){const e=++this.renderSeq;const t=this.text;const n=r();const i=await av(t,n);if(e!==this.renderSeq||t!==this.text){return}this.host.shadowRoot.querySelector("#root").innerHTML=i===null||i===void 0?void 0:i.toString();o(this.host.shadowRoot)}render(){return t("div",{key:"a234f58eaafe3daab181a26ec522739b62109f1a",id:"root"})}get host(){return n(this)}};cv.style=uv;export{cv as kompendium_markdown};
2
+ //# sourceMappingURL=p-29c23c89.entry.js.map