@kong-ui-public/document-viewer 0.10.21 → 0.10.22

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 (302) hide show
  1. package/dist/document-viewer.es.js +1655 -13
  2. package/dist/document-viewer.umd.js +4 -94
  3. package/package.json +3 -3
  4. package/dist/index-c5fb19c8.js +0 -1661
  5. package/dist/prism-abap.min-5dd8af1f.js +0 -1
  6. package/dist/prism-abnf.min-c3c3a9d9.js +0 -4
  7. package/dist/prism-actionscript.min-bd2d6afb.js +0 -1
  8. package/dist/prism-ada.min-316d6d00.js +0 -1
  9. package/dist/prism-agda.min-a6b4d217.js +0 -3
  10. package/dist/prism-al.min-f12e9359.js +0 -1
  11. package/dist/prism-antlr4.min-850b07d5.js +0 -1
  12. package/dist/prism-apacheconf.min-948db440.js +0 -1
  13. package/dist/prism-apex.min-cb3fec7c.js +0 -12
  14. package/dist/prism-apl.min-98159dbe.js +0 -1
  15. package/dist/prism-applescript.min-feb2957e.js +0 -1
  16. package/dist/prism-aql.min-d24bd57a.js +0 -1
  17. package/dist/prism-arduino.min-497e5615.js +0 -1
  18. package/dist/prism-arff.min-54f15f52.js +0 -1
  19. package/dist/prism-armasm.min-60c6ead7.js +0 -1
  20. package/dist/prism-arturo.min-699e210e.js +0 -6
  21. package/dist/prism-asciidoc.min-f4622897.js +0 -11
  22. package/dist/prism-asm6502.min-d16ec8e7.js +0 -1
  23. package/dist/prism-asmatmel.min-ebb34761.js +0 -1
  24. package/dist/prism-aspnet.min-02de9064.js +0 -1
  25. package/dist/prism-autohotkey.min-58278b6c.js +0 -1
  26. package/dist/prism-autoit.min-bb495ed7.js +0 -1
  27. package/dist/prism-avisynth.min-21dd4dbf.js +0 -11
  28. package/dist/prism-avro-idl.min-37aa0190.js +0 -1
  29. package/dist/prism-awk.min-8362995b.js +0 -1
  30. package/dist/prism-bash.min-3a888b73.js +0 -7
  31. package/dist/prism-basic.min-70837013.js +0 -1
  32. package/dist/prism-batch.min-e22008b6.js +0 -4
  33. package/dist/prism-bbcode.min-1be070b7.js +0 -1
  34. package/dist/prism-bbj.min-c8595d55.js +0 -3
  35. package/dist/prism-bicep.min-b958c50e.js +0 -1
  36. package/dist/prism-birb.min-1790d3b7.js +0 -1
  37. package/dist/prism-bison.min-58efa25c.js +0 -1
  38. package/dist/prism-bnf.min-8a47cccc.js +0 -1
  39. package/dist/prism-bqn.min-7536e012.js +0 -1
  40. package/dist/prism-brainfuck.min-c9364b5e.js +0 -1
  41. package/dist/prism-brightscript.min-d8aa03cd.js +0 -1
  42. package/dist/prism-bro.min-6e2db8a0.js +0 -1
  43. package/dist/prism-bsl.min-6da4b323.js +0 -1
  44. package/dist/prism-c.min-b845f634.js +0 -1
  45. package/dist/prism-cfscript.min-e626d6e7.js +0 -1
  46. package/dist/prism-chaiscript.min-59cf3b38.js +0 -1
  47. package/dist/prism-cil.min-60db77c1.js +0 -1
  48. package/dist/prism-cilkc.min-4c71300b.js +0 -1
  49. package/dist/prism-cilkcpp.min-3963bb02.js +0 -1
  50. package/dist/prism-clike.min-7115c549.js +0 -1
  51. package/dist/prism-clojure.min-8aa86fbd.js +0 -1
  52. package/dist/prism-cmake.min-194d339e.js +0 -1
  53. package/dist/prism-cobol.min-4f11593e.js +0 -1
  54. package/dist/prism-coffeescript.min-c3968b8f.js +0 -4
  55. package/dist/prism-concurnas.min-5073257b.js +0 -1
  56. package/dist/prism-cooklang.min-39421cc9.js +0 -4
  57. package/dist/prism-coq.min-b08d301c.js +0 -9
  58. package/dist/prism-core.min-2ef141a5.js +0 -271
  59. package/dist/prism-cpp.min-ac230d87.js +0 -13
  60. package/dist/prism-crystal.min-13116708.js +0 -3
  61. package/dist/prism-csharp.min-2a7aa1d7.js +0 -35
  62. package/dist/prism-cshtml.min-e0dea03d.js +0 -16
  63. package/dist/prism-csp.min-9632aa13.js +0 -6
  64. package/dist/prism-css-extras.min-b8bed0b9.js +0 -6
  65. package/dist/prism-css.min-e38589a9.js +0 -7
  66. package/dist/prism-csv.min-59c9f7fe.js +0 -1
  67. package/dist/prism-cue.min-a0471d75.js +0 -7
  68. package/dist/prism-cypher.min-c0e5a4ac.js +0 -1
  69. package/dist/prism-d.min-fe73d282.js +0 -1
  70. package/dist/prism-dart.min-79822d61.js +0 -4
  71. package/dist/prism-dataweave.min-ac7788bb.js +0 -3
  72. package/dist/prism-dax.min-10526a78.js +0 -1
  73. package/dist/prism-dhall.min-1d8f852b.js +0 -1
  74. package/dist/prism-diff.min-58a65b3c.js +0 -10
  75. package/dist/prism-django.min-966e5f65.js +0 -13
  76. package/dist/prism-dns-zone-file.min-6884205e.js +0 -1
  77. package/dist/prism-docker.min-2330af65.js +0 -22
  78. package/dist/prism-dot.min-b7040a53.js +0 -13
  79. package/dist/prism-ebnf.min-72a1d666.js +0 -1
  80. package/dist/prism-editorconfig.min-f0a114f7.js +0 -1
  81. package/dist/prism-eiffel.min-49594bdc.js +0 -1
  82. package/dist/prism-ejs.min-a2f2c9ea.js +0 -7
  83. package/dist/prism-elixir.min-ba69265c.js +0 -3
  84. package/dist/prism-elm.min-3290c07f.js +0 -1
  85. package/dist/prism-erb.min-51922f18.js +0 -7
  86. package/dist/prism-erlang.min-1847c6a7.js +0 -1
  87. package/dist/prism-etlua.min-d9358902.js +0 -7
  88. package/dist/prism-excel-formula.min-0e717178.js +0 -1
  89. package/dist/prism-factor.min-0ea41495.js +0 -10
  90. package/dist/prism-false.min-d1e3e399.js +0 -3
  91. package/dist/prism-firestore-security-rules.min-2230fbf2.js +0 -1
  92. package/dist/prism-flow.min-4379ef1a.js +0 -3
  93. package/dist/prism-fortran.min-32dee11f.js +0 -1
  94. package/dist/prism-fsharp.min-e4eccb74.js +0 -1
  95. package/dist/prism-ftl.min-cf603b01.js +0 -20
  96. package/dist/prism-gap.min-3eca85c2.js +0 -1
  97. package/dist/prism-gcode.min-7be81032.js +0 -1
  98. package/dist/prism-gdscript.min-a7d78975.js +0 -1
  99. package/dist/prism-gedcom.min-364aaac3.js +0 -1
  100. package/dist/prism-gettext.min-d6e41f3f.js +0 -1
  101. package/dist/prism-gherkin.min-b8bce925.js +0 -5
  102. package/dist/prism-git.min-d984e2ae.js +0 -1
  103. package/dist/prism-glsl.min-5a4d82d4.js +0 -1
  104. package/dist/prism-gml.min-b91c603d.js +0 -1
  105. package/dist/prism-gn.min-b37dd2cf.js +0 -1
  106. package/dist/prism-go-module.min-e9a704bf.js +0 -1
  107. package/dist/prism-go.min-c7322c64.js +0 -1
  108. package/dist/prism-gradle.min-1a828d06.js +0 -4
  109. package/dist/prism-graphql.min-e5fddf96.js +0 -59
  110. package/dist/prism-groovy.min-6999a453.js +0 -4
  111. package/dist/prism-haml.min-06d636e1.js +0 -10
  112. package/dist/prism-handlebars.min-d59c233b.js +0 -7
  113. package/dist/prism-haskell.min-2d474195.js +0 -1
  114. package/dist/prism-haxe.min-0b47bda7.js +0 -1
  115. package/dist/prism-hcl.min-dd93c4fa.js +0 -1
  116. package/dist/prism-hlsl.min-90bc1513.js +0 -1
  117. package/dist/prism-hoon.min-5ac6535d.js +0 -1
  118. package/dist/prism-hpkp.min-ccf08017.js +0 -1
  119. package/dist/prism-hsts.min-0dd9146f.js +0 -1
  120. package/dist/prism-http.min-10b32777.js +0 -23
  121. package/dist/prism-ichigojam.min-144f1b4b.js +0 -1
  122. package/dist/prism-icon.min-22bb1195.js +0 -1
  123. package/dist/prism-icu-message-format.min-b2ecdff3.js +0 -11
  124. package/dist/prism-idris.min-920ad8df.js +0 -1
  125. package/dist/prism-iecst.min-d5ab1f6c.js +0 -1
  126. package/dist/prism-ignore.min-272b6ccf.js +0 -3
  127. package/dist/prism-inform7.min-22b438d7.js +0 -1
  128. package/dist/prism-ini.min-b9585cc2.js +0 -1
  129. package/dist/prism-io.min-bc03d63b.js +0 -1
  130. package/dist/prism-j.min-2dc34683.js +0 -1
  131. package/dist/prism-java.min-2cfc90de.js +0 -6
  132. package/dist/prism-javadoc.min-12ef12d8.js +0 -6
  133. package/dist/prism-javadoclike.min-e07933fc.js +0 -20
  134. package/dist/prism-javascript.min-03c8bcee.js +0 -8
  135. package/dist/prism-javastacktrace.min-d3186b3e.js +0 -1
  136. package/dist/prism-jexl.min-084d69d8.js +0 -1
  137. package/dist/prism-jolie.min-466d4cf7.js +0 -1
  138. package/dist/prism-jq.min-3daf478a.js +0 -8
  139. package/dist/prism-js-extras.min-a225cee9.js +0 -14
  140. package/dist/prism-js-templates.min-c950373d.js +0 -83
  141. package/dist/prism-jsdoc.min-02975619.js +0 -6
  142. package/dist/prism-json.min-fa2dced5.js +0 -1
  143. package/dist/prism-json5.min-3917dd44.js +0 -4
  144. package/dist/prism-jsonp.min-a0f4106e.js +0 -1
  145. package/dist/prism-jsstacktrace.min-bc3f3759.js +0 -1
  146. package/dist/prism-jsx.min-8af1efbf.js +0 -28
  147. package/dist/prism-julia.min-cc71d15e.js +0 -1
  148. package/dist/prism-keepalived.min-1428eb2f.js +0 -3
  149. package/dist/prism-keyman.min-3b419e70.js +0 -1
  150. package/dist/prism-kotlin.min-ecbf8553.js +0 -5
  151. package/dist/prism-kumir.min-624860b6.js +0 -6
  152. package/dist/prism-kusto.min-67b0f58b.js +0 -1
  153. package/dist/prism-latex.min-af145af5.js +0 -4
  154. package/dist/prism-latte.min-b9a60122.js +0 -9
  155. package/dist/prism-less.min-3a3313ed.js +0 -1
  156. package/dist/prism-lilypond.min-b0ed8db8.js +0 -11
  157. package/dist/prism-linker-script.min-dc3fc5ad.js +0 -1
  158. package/dist/prism-liquid.min-86fa81e6.js +0 -16
  159. package/dist/prism-lisp.min-cae2f73f.js +0 -10
  160. package/dist/prism-livescript.min-b5d9d700.js +0 -1
  161. package/dist/prism-llvm.min-2b4a3e33.js +0 -3
  162. package/dist/prism-log.min-e9ba9fa2.js +0 -1
  163. package/dist/prism-lolcode.min-1d0782a6.js +0 -1
  164. package/dist/prism-lua.min-9c7e1242.js +0 -1
  165. package/dist/prism-magma.min-6b08ba18.js +0 -1
  166. package/dist/prism-makefile.min-10c204c7.js +0 -1
  167. package/dist/prism-markdown.min-2fe85287.js +0 -63
  168. package/dist/prism-markup-templating.min-c55d1b76.js +0 -37
  169. package/dist/prism-markup.min-849389d5.js +0 -14
  170. package/dist/prism-mata.min-1bbaed90.js +0 -4
  171. package/dist/prism-matlab.min-c787c897.js +0 -1
  172. package/dist/prism-maxscript.min-8ff24836.js +0 -4
  173. package/dist/prism-mel.min-e8ff632f.js +0 -1
  174. package/dist/prism-mermaid.min-77fee473.js +0 -1
  175. package/dist/prism-metafont.min-94223e4b.js +0 -1
  176. package/dist/prism-mizar.min-50230be0.js +0 -1
  177. package/dist/prism-mongodb.min-9790bcfd.js +0 -6
  178. package/dist/prism-monkey.min-5a1eb1ff.js +0 -1
  179. package/dist/prism-moonscript.min-ed957c18.js +0 -1
  180. package/dist/prism-n1ql.min-f3780067.js +0 -1
  181. package/dist/prism-n4js.min-d57fb90f.js +0 -1
  182. package/dist/prism-nand2tetris-hdl.min-8228b246.js +0 -1
  183. package/dist/prism-naniscript.min-a2fa6109.js +0 -25
  184. package/dist/prism-nasm.min-09906ffc.js +0 -1
  185. package/dist/prism-neon.min-83c9b2c5.js +0 -1
  186. package/dist/prism-nevod.min-c2d107f2.js +0 -1
  187. package/dist/prism-nginx.min-01df8a32.js +0 -4
  188. package/dist/prism-nim.min-dd447d6c.js +0 -1
  189. package/dist/prism-nix.min-6430b249.js +0 -1
  190. package/dist/prism-nsis.min-dff25bf5.js +0 -1
  191. package/dist/prism-objectivec.min-01ae0d96.js +0 -1
  192. package/dist/prism-ocaml.min-20e838d9.js +0 -1
  193. package/dist/prism-odin.min-b5d9183b.js +0 -4
  194. package/dist/prism-opencl.min-1d85e7cf.js +0 -5
  195. package/dist/prism-openqasm.min-29eb40fe.js +0 -1
  196. package/dist/prism-oz.min-c1f4ebd4.js +0 -1
  197. package/dist/prism-parigp.min-8bff0612.js +0 -6
  198. package/dist/prism-parser.min-7722395f.js +0 -4
  199. package/dist/prism-pascal.min-ccf26fed.js +0 -1
  200. package/dist/prism-pascaligo.min-3aecb02c.js +0 -16
  201. package/dist/prism-pcaxis.min-c5e7a871.js +0 -1
  202. package/dist/prism-peoplecode.min-7c8ed2ef.js +0 -1
  203. package/dist/prism-perl.min-108f825c.js +0 -4
  204. package/dist/prism-php-extras.min-4b649f6b.js +0 -1
  205. package/dist/prism-php.min-b4bebbdb.js +0 -10
  206. package/dist/prism-phpdoc.min-71857b79.js +0 -4
  207. package/dist/prism-plant-uml.min-91d8fdec.js +0 -4
  208. package/dist/prism-plsql.min-8b0dd1ce.js +0 -1
  209. package/dist/prism-powerquery.min-de7eda80.js +0 -1
  210. package/dist/prism-powershell.min-13582006.js +0 -4
  211. package/dist/prism-processing.min-ddf61715.js +0 -1
  212. package/dist/prism-prolog.min-be61447f.js +0 -1
  213. package/dist/prism-promql.min-b94dbbcb.js +0 -4
  214. package/dist/prism-properties.min-4b65aff4.js +0 -1
  215. package/dist/prism-protobuf.min-c7dd99a8.js +0 -4
  216. package/dist/prism-psl.min-3cb6ca77.js +0 -1
  217. package/dist/prism-pug.min-84ed48ec.js +0 -13
  218. package/dist/prism-puppet.min-c02bdf50.js +0 -5
  219. package/dist/prism-pure.min-7b5eae7a.js +0 -9
  220. package/dist/prism-purebasic.min-a62b63be.js +0 -1
  221. package/dist/prism-purescript.min-d7c49bf2.js +0 -1
  222. package/dist/prism-python.min-89935d5e.js +0 -1
  223. package/dist/prism-q.min-96d8fb1b.js +0 -1
  224. package/dist/prism-qml.min-eb7c0dfc.js +0 -17
  225. package/dist/prism-qore.min-ed8ddb5e.js +0 -1
  226. package/dist/prism-qsharp.min-fb960bab.js +0 -20
  227. package/dist/prism-r.min-9fe1f3ed.js +0 -1
  228. package/dist/prism-racket.min-e90ec309.js +0 -1
  229. package/dist/prism-reason.min-63d1fa8a.js +0 -1
  230. package/dist/prism-regex.min-96d0bc4f.js +0 -4
  231. package/dist/prism-rego.min-281a02c1.js +0 -1
  232. package/dist/prism-renpy.min-2bef2655.js +0 -1
  233. package/dist/prism-rescript.min-2a3bda12.js +0 -1
  234. package/dist/prism-rest.min-09260b93.js +0 -1
  235. package/dist/prism-rip.min-c89fc679.js +0 -1
  236. package/dist/prism-roboconf.min-362299cf.js +0 -1
  237. package/dist/prism-robotframework.min-901bf739.js +0 -14
  238. package/dist/prism-ruby.min-6e459016.js +0 -9
  239. package/dist/prism-rust.min-820420d0.js +0 -9
  240. package/dist/prism-sas.min-920eaa09.js +0 -16
  241. package/dist/prism-sass.min-4dc53bc5.js +0 -5
  242. package/dist/prism-scala.min-83738843.js +0 -1
  243. package/dist/prism-scheme.min-1358e051.js +0 -9
  244. package/dist/prism-scss.min-92aea743.js +0 -1
  245. package/dist/prism-shell-session.min-2977ab53.js +0 -10
  246. package/dist/prism-smali.min-e768ca38.js +0 -1
  247. package/dist/prism-smalltalk.min-139c1ee1.js +0 -1
  248. package/dist/prism-smarty.min-f8debf97.js +0 -14
  249. package/dist/prism-sml.min-0c679316.js +0 -12
  250. package/dist/prism-solidity.min-83eb4a29.js +0 -1
  251. package/dist/prism-solution-file.min-52546f1c.js +0 -4
  252. package/dist/prism-soy.min-d2b3294e.js +0 -11
  253. package/dist/prism-sparql.min-b55f57a3.js +0 -1
  254. package/dist/prism-splunk-spl.min-bd51901e.js +0 -1
  255. package/dist/prism-sqf.min-7796abe2.js +0 -1
  256. package/dist/prism-sql.min-583eab97.js +0 -1
  257. package/dist/prism-squirrel.min-6210cc27.js +0 -1
  258. package/dist/prism-stan.min-0219161d.js +0 -4
  259. package/dist/prism-stata.min-e8468e92.js +0 -1
  260. package/dist/prism-stylus.min-b4211725.js +0 -4
  261. package/dist/prism-supercollider.min-a1e102ff.js +0 -1
  262. package/dist/prism-swift.min-962aa7ba.js +0 -7
  263. package/dist/prism-systemd.min-6d49f69b.js +0 -9
  264. package/dist/prism-t4-cs.min-258a46d3.js +0 -1
  265. package/dist/prism-t4-templating.min-740d429f.js +0 -9
  266. package/dist/prism-t4-vb.min-c3ca6021.js +0 -1
  267. package/dist/prism-tap.min-2d582f1c.js +0 -1
  268. package/dist/prism-tcl.min-3d421e58.js +0 -1
  269. package/dist/prism-textile.min-bea9a185.js +0 -20
  270. package/dist/prism-toml.min-ba409a46.js +0 -10
  271. package/dist/prism-tremor.min-cf11bafd.js +0 -9
  272. package/dist/prism-tsx.min-90ee8eaa.js +0 -6
  273. package/dist/prism-tt2.min-c7317371.js +0 -7
  274. package/dist/prism-turtle.min-d3f6c908.js +0 -1
  275. package/dist/prism-twig.min-06667cf3.js +0 -5
  276. package/dist/prism-typescript.min-da950f4e.js +0 -5
  277. package/dist/prism-typoscript.min-92ab2527.js +0 -4
  278. package/dist/prism-unrealscript.min-524c9821.js +0 -1
  279. package/dist/prism-uorazor.min-8445afde.js +0 -1
  280. package/dist/prism-uri.min-8d153620.js +0 -1
  281. package/dist/prism-v.min-f5dfa62f.js +0 -4
  282. package/dist/prism-vala.min-8099e50d.js +0 -1
  283. package/dist/prism-vbnet.min-c684e95c.js +0 -1
  284. package/dist/prism-velocity.min-ce8230ae.js +0 -5
  285. package/dist/prism-verilog.min-49879cf6.js +0 -1
  286. package/dist/prism-vhdl.min-9c469192.js +0 -1
  287. package/dist/prism-vim.min-753cf120.js +0 -1
  288. package/dist/prism-visual-basic.min-03026ad9.js +0 -1
  289. package/dist/prism-warpscript.min-69ba95e0.js +0 -1
  290. package/dist/prism-wasm.min-a8aa80a7.js +0 -1
  291. package/dist/prism-web-idl.min-502d10ad.js +0 -6
  292. package/dist/prism-wgsl.min-674a5833.js +0 -1
  293. package/dist/prism-wiki.min-6aa23d83.js +0 -1
  294. package/dist/prism-wolfram.min-5edca627.js +0 -1
  295. package/dist/prism-wren.min-87e34869.js +0 -1
  296. package/dist/prism-xeora.min-39184a91.js +0 -3
  297. package/dist/prism-xml-doc.min-cd59a0d2.js +0 -7
  298. package/dist/prism-xojo.min-7d27c927.js +0 -1
  299. package/dist/prism-xquery.min-aebd2f79.js +0 -18
  300. package/dist/prism-yaml.min-971ccff8.js +0 -28
  301. package/dist/prism-yang.min-39f14179.js +0 -1
  302. package/dist/prism-zig.min-e777c275.js +0 -11
@@ -1,15 +1,1657 @@
1
- import { a as i, T as o, h as l, f as t, D as g, d as n, e as r, i as u, b as T, t as b } from "./index-c5fb19c8.js";
2
- import "vue";
3
- import "@kong-ui-public/i18n";
1
+ import { openBlock as v, createElementBlock as A, renderSlot as R, defineComponent as T, ref as me, computed as ne, watch as xe, resolveComponent as Se, createBlock as P, resolveDynamicComponent as N, unref as O, withCtx as H, createElementVNode as Ae, normalizeClass as ge, Fragment as qe, createTextVNode as De, toDisplayString as he, createCommentVNode as se, createVNode as ee, mergeProps as te } from "vue";
2
+ import { createI18n as Re, Translation as Fe } from "@kong-ui-public/i18n";
3
+ var E = /* @__PURE__ */ ((e) => (e.header = "header", e.body = "body", e.footer = "footer", e))(E || {}), X = /* @__PURE__ */ ((e) => (e.left = "left", e.center = "center", e.right = "right", e))(X || {});
4
+ function Te(e) {
5
+ return (e == null ? void 0 : e.type) === "table_header";
6
+ }
7
+ function Ce(e) {
8
+ return (e == null ? void 0 : e.type) === "text";
9
+ }
10
+ function je(e) {
11
+ return (e == null ? void 0 : e.type) === "heading";
12
+ }
13
+ function Ge(e) {
14
+ return (e == null ? void 0 : e.type) === "list";
15
+ }
16
+ const q = (e, s) => {
17
+ const n = e.__vccOpts || e;
18
+ for (const [u, m] of s)
19
+ n[u] = m;
20
+ return n;
21
+ }, Le = {};
22
+ function $e(e, s) {
23
+ return v(), A("blockquote", null, [
24
+ R(e.$slots, "default", {}, void 0, !0)
25
+ ]);
26
+ }
27
+ const Ee = /* @__PURE__ */ q(Le, [["render", $e], ["__scopeId", "data-v-afdbfde6"]]);
28
+ const Pe = {};
29
+ function Ie(e, s) {
30
+ return v(), A("code", null, [
31
+ R(e.$slots, "default", {}, void 0, !0)
32
+ ]);
33
+ }
34
+ const Me = /* @__PURE__ */ q(Pe, [["render", Ie], ["__scopeId", "data-v-cbde41ab"]]);
35
+ var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
36
+ function Be(e) {
37
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
38
+ }
39
+ var fe = { exports: {} };
40
+ (function(e) {
41
+ var s = { core: { meta: { path: "components/prism-core.js", option: "mandatory" }, core: "Core" }, themes: { meta: { path: "themes/{id}.css", link: "index.html?theme={id}", exclusive: !0 }, prism: { title: "Default", option: "default" }, "prism-dark": "Dark", "prism-funky": "Funky", "prism-okaidia": { title: "Okaidia", owner: "ocodia" }, "prism-twilight": { title: "Twilight", owner: "remybach" }, "prism-coy": { title: "Coy", owner: "tshedor" }, "prism-solarizedlight": { title: "Solarized Light", owner: "hectormatos2011 " }, "prism-tomorrow": { title: "Tomorrow Night", owner: "Rosey" } }, languages: { meta: { path: "components/prism-{id}", noCSS: !0, examplesPath: "examples/prism-{id}", addCheckAll: !0 }, markup: { title: "Markup", alias: ["html", "xml", "svg", "mathml", "ssml", "atom", "rss"], aliasTitles: { html: "HTML", xml: "XML", svg: "SVG", mathml: "MathML", ssml: "SSML", atom: "Atom", rss: "RSS" }, option: "default" }, css: { title: "CSS", option: "default", modify: "markup" }, clike: { title: "C-like", option: "default" }, javascript: { title: "JavaScript", require: "clike", modify: "markup", optional: "regex", alias: "js", option: "default" }, abap: { title: "ABAP", owner: "dellagustin" }, abnf: { title: "ABNF", owner: "RunDevelopment" }, actionscript: { title: "ActionScript", require: "javascript", modify: "markup", owner: "Golmote" }, ada: { title: "Ada", owner: "Lucretia" }, agda: { title: "Agda", owner: "xy-ren" }, al: { title: "AL", owner: "RunDevelopment" }, antlr4: { title: "ANTLR4", alias: "g4", owner: "RunDevelopment" }, apacheconf: { title: "Apache Configuration", owner: "GuiTeK" }, apex: { title: "Apex", require: ["clike", "sql"], owner: "RunDevelopment" }, apl: { title: "APL", owner: "ngn" }, applescript: { title: "AppleScript", owner: "Golmote" }, aql: { title: "AQL", owner: "RunDevelopment" }, arduino: { title: "Arduino", require: "cpp", alias: "ino", owner: "dkern" }, arff: { title: "ARFF", owner: "Golmote" }, armasm: { title: "ARM Assembly", alias: "arm-asm", owner: "RunDevelopment" }, arturo: { title: "Arturo", alias: "art", optional: ["bash", "css", "javascript", "markup", "markdown", "sql"], owner: "drkameleon" }, asciidoc: { alias: "adoc", title: "AsciiDoc", owner: "Golmote" }, aspnet: { title: "ASP.NET (C#)", require: ["markup", "csharp"], owner: "nauzilus" }, asm6502: { title: "6502 Assembly", owner: "kzurawel" }, asmatmel: { title: "Atmel AVR Assembly", owner: "cerkit" }, autohotkey: { title: "AutoHotkey", owner: "aviaryan" }, autoit: { title: "AutoIt", owner: "Golmote" }, avisynth: { title: "AviSynth", alias: "avs", owner: "Zinfidel" }, "avro-idl": { title: "Avro IDL", alias: "avdl", owner: "RunDevelopment" }, awk: { title: "AWK", alias: "gawk", aliasTitles: { gawk: "GAWK" }, owner: "RunDevelopment" }, bash: { title: "Bash", alias: ["sh", "shell"], aliasTitles: { sh: "Shell", shell: "Shell" }, owner: "zeitgeist87" }, basic: { title: "BASIC", owner: "Golmote" }, batch: { title: "Batch", owner: "Golmote" }, bbcode: { title: "BBcode", alias: "shortcode", aliasTitles: { shortcode: "Shortcode" }, owner: "RunDevelopment" }, bbj: { title: "BBj", owner: "hyyan" }, bicep: { title: "Bicep", owner: "johnnyreilly" }, birb: { title: "Birb", require: "clike", owner: "Calamity210" }, bison: { title: "Bison", require: "c", owner: "Golmote" }, bnf: { title: "BNF", alias: "rbnf", aliasTitles: { rbnf: "RBNF" }, owner: "RunDevelopment" }, bqn: { title: "BQN", owner: "yewscion" }, brainfuck: { title: "Brainfuck", owner: "Golmote" }, brightscript: { title: "BrightScript", owner: "RunDevelopment" }, bro: { title: "Bro", owner: "wayward710" }, bsl: { title: "BSL (1C:Enterprise)", alias: "oscript", aliasTitles: { oscript: "OneScript" }, owner: "Diversus23" }, c: { title: "C", require: "clike", owner: "zeitgeist87" }, csharp: { title: "C#", require: "clike", alias: ["cs", "dotnet"], owner: "mvalipour" }, cpp: { title: "C++", require: "c", owner: "zeitgeist87" }, cfscript: { title: "CFScript", require: "clike", alias: "cfc", owner: "mjclemente" }, chaiscript: { title: "ChaiScript", require: ["clike", "cpp"], owner: "RunDevelopment" }, cil: { title: "CIL", owner: "sbrl" }, cilkc: { title: "Cilk/C", require: "c", alias: "cilk-c", owner: "OpenCilk" }, cilkcpp: { title: "Cilk/C++", require: "cpp", alias: ["cilk-cpp", "cilk"], owner: "OpenCilk" }, clojure: { title: "Clojure", owner: "troglotit" }, cmake: { title: "CMake", owner: "mjrogozinski" }, cobol: { title: "COBOL", owner: "RunDevelopment" }, coffeescript: { title: "CoffeeScript", require: "javascript", alias: "coffee", owner: "R-osey" }, concurnas: { title: "Concurnas", alias: "conc", owner: "jasontatton" }, csp: { title: "Content-Security-Policy", owner: "ScottHelme" }, cooklang: { title: "Cooklang", owner: "ahue" }, coq: { title: "Coq", owner: "RunDevelopment" }, crystal: { title: "Crystal", require: "ruby", owner: "MakeNowJust" }, "css-extras": { title: "CSS Extras", require: "css", modify: "css", owner: "milesj" }, csv: { title: "CSV", owner: "RunDevelopment" }, cue: { title: "CUE", owner: "RunDevelopment" }, cypher: { title: "Cypher", owner: "RunDevelopment" }, d: { title: "D", require: "clike", owner: "Golmote" }, dart: { title: "Dart", require: "clike", owner: "Golmote" }, dataweave: { title: "DataWeave", owner: "machaval" }, dax: { title: "DAX", owner: "peterbud" }, dhall: { title: "Dhall", owner: "RunDevelopment" }, diff: { title: "Diff", owner: "uranusjr" }, django: { title: "Django/Jinja2", require: "markup-templating", alias: "jinja2", owner: "romanvm" }, "dns-zone-file": { title: "DNS zone file", owner: "RunDevelopment", alias: "dns-zone" }, docker: { title: "Docker", alias: "dockerfile", owner: "JustinBeckwith" }, dot: { title: "DOT (Graphviz)", alias: "gv", optional: "markup", owner: "RunDevelopment" }, ebnf: { title: "EBNF", owner: "RunDevelopment" }, editorconfig: { title: "EditorConfig", owner: "osipxd" }, eiffel: { title: "Eiffel", owner: "Conaclos" }, ejs: { title: "EJS", require: ["javascript", "markup-templating"], owner: "RunDevelopment", alias: "eta", aliasTitles: { eta: "Eta" } }, elixir: { title: "Elixir", owner: "Golmote" }, elm: { title: "Elm", owner: "zwilias" }, etlua: { title: "Embedded Lua templating", require: ["lua", "markup-templating"], owner: "RunDevelopment" }, erb: { title: "ERB", require: ["ruby", "markup-templating"], owner: "Golmote" }, erlang: { title: "Erlang", owner: "Golmote" }, "excel-formula": { title: "Excel Formula", alias: ["xlsx", "xls"], owner: "RunDevelopment" }, fsharp: { title: "F#", require: "clike", owner: "simonreynolds7" }, factor: { title: "Factor", owner: "catb0t" }, false: { title: "False", owner: "edukisto" }, "firestore-security-rules": { title: "Firestore security rules", require: "clike", owner: "RunDevelopment" }, flow: { title: "Flow", require: "javascript", owner: "Golmote" }, fortran: { title: "Fortran", owner: "Golmote" }, ftl: { title: "FreeMarker Template Language", require: "markup-templating", owner: "RunDevelopment" }, gml: { title: "GameMaker Language", alias: "gamemakerlanguage", require: "clike", owner: "LiarOnce" }, gap: { title: "GAP (CAS)", owner: "RunDevelopment" }, gcode: { title: "G-code", owner: "RunDevelopment" }, gdscript: { title: "GDScript", owner: "RunDevelopment" }, gedcom: { title: "GEDCOM", owner: "Golmote" }, gettext: { title: "gettext", alias: "po", owner: "RunDevelopment" }, gherkin: { title: "Gherkin", owner: "hason" }, git: { title: "Git", owner: "lgiraudel" }, glsl: { title: "GLSL", require: "c", owner: "Golmote" }, gn: { title: "GN", alias: "gni", owner: "RunDevelopment" }, "linker-script": { title: "GNU Linker Script", alias: "ld", owner: "RunDevelopment" }, go: { title: "Go", require: "clike", owner: "arnehormann" }, "go-module": { title: "Go module", alias: "go-mod", owner: "RunDevelopment" }, gradle: { title: "Gradle", require: "clike", owner: "zeabdelkhalek-badido18" }, graphql: { title: "GraphQL", optional: "markdown", owner: "Golmote" }, groovy: { title: "Groovy", require: "clike", owner: "robfletcher" }, haml: { title: "Haml", require: "ruby", optional: ["css", "css-extras", "coffeescript", "erb", "javascript", "less", "markdown", "scss", "textile"], owner: "Golmote" }, handlebars: { title: "Handlebars", require: "markup-templating", alias: ["hbs", "mustache"], aliasTitles: { mustache: "Mustache" }, owner: "Golmote" }, haskell: { title: "Haskell", alias: "hs", owner: "bholst" }, haxe: { title: "Haxe", require: "clike", optional: "regex", owner: "Golmote" }, hcl: { title: "HCL", owner: "outsideris" }, hlsl: { title: "HLSL", require: "c", owner: "RunDevelopment" }, hoon: { title: "Hoon", owner: "matildepark" }, http: { title: "HTTP", optional: ["csp", "css", "hpkp", "hsts", "javascript", "json", "markup", "uri"], owner: "danielgtaylor" }, hpkp: { title: "HTTP Public-Key-Pins", owner: "ScottHelme" }, hsts: { title: "HTTP Strict-Transport-Security", owner: "ScottHelme" }, ichigojam: { title: "IchigoJam", owner: "BlueCocoa" }, icon: { title: "Icon", owner: "Golmote" }, "icu-message-format": { title: "ICU Message Format", owner: "RunDevelopment" }, idris: { title: "Idris", alias: "idr", owner: "KeenS", require: "haskell" }, ignore: { title: ".ignore", owner: "osipxd", alias: ["gitignore", "hgignore", "npmignore"], aliasTitles: { gitignore: ".gitignore", hgignore: ".hgignore", npmignore: ".npmignore" } }, inform7: { title: "Inform 7", owner: "Golmote" }, ini: { title: "Ini", owner: "aviaryan" }, io: { title: "Io", owner: "AlesTsurko" }, j: { title: "J", owner: "Golmote" }, java: { title: "Java", require: "clike", owner: "sherblot" }, javadoc: { title: "JavaDoc", require: ["markup", "java", "javadoclike"], modify: "java", optional: "scala", owner: "RunDevelopment" }, javadoclike: { title: "JavaDoc-like", modify: ["java", "javascript", "php"], owner: "RunDevelopment" }, javastacktrace: { title: "Java stack trace", owner: "RunDevelopment" }, jexl: { title: "Jexl", owner: "czosel" }, jolie: { title: "Jolie", require: "clike", owner: "thesave" }, jq: { title: "JQ", owner: "RunDevelopment" }, jsdoc: { title: "JSDoc", require: ["javascript", "javadoclike", "typescript"], modify: "javascript", optional: ["actionscript", "coffeescript"], owner: "RunDevelopment" }, "js-extras": { title: "JS Extras", require: "javascript", modify: "javascript", optional: ["actionscript", "coffeescript", "flow", "n4js", "typescript"], owner: "RunDevelopment" }, json: { title: "JSON", alias: "webmanifest", aliasTitles: { webmanifest: "Web App Manifest" }, owner: "CupOfTea696" }, json5: { title: "JSON5", require: "json", owner: "RunDevelopment" }, jsonp: { title: "JSONP", require: "json", owner: "RunDevelopment" }, jsstacktrace: { title: "JS stack trace", owner: "sbrl" }, "js-templates": { title: "JS Templates", require: "javascript", modify: "javascript", optional: ["css", "css-extras", "graphql", "markdown", "markup", "sql"], owner: "RunDevelopment" }, julia: { title: "Julia", owner: "cdagnino" }, keepalived: { title: "Keepalived Configure", owner: "dev-itsheng" }, keyman: { title: "Keyman", owner: "mcdurdin" }, kotlin: { title: "Kotlin", alias: ["kt", "kts"], aliasTitles: { kts: "Kotlin Script" }, require: "clike", owner: "Golmote" }, kumir: { title: "KuMir (КуМир)", alias: "kum", owner: "edukisto" }, kusto: { title: "Kusto", owner: "RunDevelopment" }, latex: { title: "LaTeX", alias: ["tex", "context"], aliasTitles: { tex: "TeX", context: "ConTeXt" }, owner: "japborst" }, latte: { title: "Latte", require: ["clike", "markup-templating", "php"], owner: "nette" }, less: { title: "Less", require: "css", optional: "css-extras", owner: "Golmote" }, lilypond: { title: "LilyPond", require: "scheme", alias: "ly", owner: "RunDevelopment" }, liquid: { title: "Liquid", require: "markup-templating", owner: "cinhtau" }, lisp: { title: "Lisp", alias: ["emacs", "elisp", "emacs-lisp"], owner: "JuanCaicedo" }, livescript: { title: "LiveScript", owner: "Golmote" }, llvm: { title: "LLVM IR", owner: "porglezomp" }, log: { title: "Log file", optional: "javastacktrace", owner: "RunDevelopment" }, lolcode: { title: "LOLCODE", owner: "Golmote" }, lua: { title: "Lua", owner: "Golmote" }, magma: { title: "Magma (CAS)", owner: "RunDevelopment" }, makefile: { title: "Makefile", owner: "Golmote" }, markdown: { title: "Markdown", require: "markup", optional: "yaml", alias: "md", owner: "Golmote" }, "markup-templating": { title: "Markup templating", require: "markup", owner: "Golmote" }, mata: { title: "Mata", owner: "RunDevelopment" }, matlab: { title: "MATLAB", owner: "Golmote" }, maxscript: { title: "MAXScript", owner: "RunDevelopment" }, mel: { title: "MEL", owner: "Golmote" }, mermaid: { title: "Mermaid", owner: "RunDevelopment" }, metafont: { title: "METAFONT", owner: "LaeriExNihilo" }, mizar: { title: "Mizar", owner: "Golmote" }, mongodb: { title: "MongoDB", owner: "airs0urce", require: "javascript" }, monkey: { title: "Monkey", owner: "Golmote" }, moonscript: { title: "MoonScript", alias: "moon", owner: "RunDevelopment" }, n1ql: { title: "N1QL", owner: "TMWilds" }, n4js: { title: "N4JS", require: "javascript", optional: "jsdoc", alias: "n4jsd", owner: "bsmith-n4" }, "nand2tetris-hdl": { title: "Nand To Tetris HDL", owner: "stephanmax" }, naniscript: { title: "Naninovel Script", owner: "Elringus", alias: "nani" }, nasm: { title: "NASM", owner: "rbmj" }, neon: { title: "NEON", owner: "nette" }, nevod: { title: "Nevod", owner: "nezaboodka" }, nginx: { title: "nginx", owner: "volado" }, nim: { title: "Nim", owner: "Golmote" }, nix: { title: "Nix", owner: "Golmote" }, nsis: { title: "NSIS", owner: "idleberg" }, objectivec: { title: "Objective-C", require: "c", alias: "objc", owner: "uranusjr" }, ocaml: { title: "OCaml", owner: "Golmote" }, odin: { title: "Odin", owner: "edukisto" }, opencl: { title: "OpenCL", require: "c", modify: ["c", "cpp"], owner: "Milania1" }, openqasm: { title: "OpenQasm", alias: "qasm", owner: "RunDevelopment" }, oz: { title: "Oz", owner: "Golmote" }, parigp: { title: "PARI/GP", owner: "Golmote" }, parser: { title: "Parser", require: "markup", owner: "Golmote" }, pascal: { title: "Pascal", alias: "objectpascal", aliasTitles: { objectpascal: "Object Pascal" }, owner: "Golmote" }, pascaligo: { title: "Pascaligo", owner: "DefinitelyNotAGoat" }, psl: { title: "PATROL Scripting Language", owner: "bertysentry" }, pcaxis: { title: "PC-Axis", alias: "px", owner: "RunDevelopment" }, peoplecode: { title: "PeopleCode", alias: "pcode", owner: "RunDevelopment" }, perl: { title: "Perl", owner: "Golmote" }, php: { title: "PHP", require: "markup-templating", owner: "milesj" }, phpdoc: { title: "PHPDoc", require: ["php", "javadoclike"], modify: "php", owner: "RunDevelopment" }, "php-extras": { title: "PHP Extras", require: "php", modify: "php", owner: "milesj" }, "plant-uml": { title: "PlantUML", alias: "plantuml", owner: "RunDevelopment" }, plsql: { title: "PL/SQL", require: "sql", owner: "Golmote" }, powerquery: { title: "PowerQuery", alias: ["pq", "mscript"], owner: "peterbud" }, powershell: { title: "PowerShell", owner: "nauzilus" }, processing: { title: "Processing", require: "clike", owner: "Golmote" }, prolog: { title: "Prolog", owner: "Golmote" }, promql: { title: "PromQL", owner: "arendjr" }, properties: { title: ".properties", owner: "Golmote" }, protobuf: { title: "Protocol Buffers", require: "clike", owner: "just-boris" }, pug: { title: "Pug", require: ["markup", "javascript"], optional: ["coffeescript", "ejs", "handlebars", "less", "livescript", "markdown", "scss", "stylus", "twig"], owner: "Golmote" }, puppet: { title: "Puppet", owner: "Golmote" }, pure: { title: "Pure", optional: ["c", "cpp", "fortran"], owner: "Golmote" }, purebasic: { title: "PureBasic", require: "clike", alias: "pbfasm", owner: "HeX0R101" }, purescript: { title: "PureScript", require: "haskell", alias: "purs", owner: "sriharshachilakapati" }, python: { title: "Python", alias: "py", owner: "multipetros" }, qsharp: { title: "Q#", require: "clike", alias: "qs", owner: "fedonman" }, q: { title: "Q (kdb+ database)", owner: "Golmote" }, qml: { title: "QML", require: "javascript", owner: "RunDevelopment" }, qore: { title: "Qore", require: "clike", owner: "temnroegg" }, r: { title: "R", owner: "Golmote" }, racket: { title: "Racket", require: "scheme", alias: "rkt", owner: "RunDevelopment" }, cshtml: { title: "Razor C#", alias: "razor", require: ["markup", "csharp"], optional: ["css", "css-extras", "javascript", "js-extras"], owner: "RunDevelopment" }, jsx: { title: "React JSX", require: ["markup", "javascript"], optional: ["jsdoc", "js-extras", "js-templates"], owner: "vkbansal" }, tsx: { title: "React TSX", require: ["jsx", "typescript"] }, reason: { title: "Reason", require: "clike", owner: "Golmote" }, regex: { title: "Regex", owner: "RunDevelopment" }, rego: { title: "Rego", owner: "JordanSh" }, renpy: { title: "Ren'py", alias: "rpy", owner: "HyuchiaDiego" }, rescript: { title: "ReScript", alias: "res", owner: "vmarcosp" }, rest: { title: "reST (reStructuredText)", owner: "Golmote" }, rip: { title: "Rip", owner: "ravinggenius" }, roboconf: { title: "Roboconf", owner: "Golmote" }, robotframework: { title: "Robot Framework", alias: "robot", owner: "RunDevelopment" }, ruby: { title: "Ruby", require: "clike", alias: "rb", owner: "samflores" }, rust: { title: "Rust", owner: "Golmote" }, sas: { title: "SAS", optional: ["groovy", "lua", "sql"], owner: "Golmote" }, sass: { title: "Sass (Sass)", require: "css", optional: "css-extras", owner: "Golmote" }, scss: { title: "Sass (SCSS)", require: "css", optional: "css-extras", owner: "MoOx" }, scala: { title: "Scala", require: "java", owner: "jozic" }, scheme: { title: "Scheme", owner: "bacchus123" }, "shell-session": { title: "Shell session", require: "bash", alias: ["sh-session", "shellsession"], owner: "RunDevelopment" }, smali: { title: "Smali", owner: "RunDevelopment" }, smalltalk: { title: "Smalltalk", owner: "Golmote" }, smarty: { title: "Smarty", require: "markup-templating", optional: "php", owner: "Golmote" }, sml: { title: "SML", alias: "smlnj", aliasTitles: { smlnj: "SML/NJ" }, owner: "RunDevelopment" }, solidity: { title: "Solidity (Ethereum)", alias: "sol", require: "clike", owner: "glachaud" }, "solution-file": { title: "Solution file", alias: "sln", owner: "RunDevelopment" }, soy: { title: "Soy (Closure Template)", require: "markup-templating", owner: "Golmote" }, sparql: { title: "SPARQL", require: "turtle", owner: "Triply-Dev", alias: "rq" }, "splunk-spl": { title: "Splunk SPL", owner: "RunDevelopment" }, sqf: { title: "SQF: Status Quo Function (Arma 3)", require: "clike", owner: "RunDevelopment" }, sql: { title: "SQL", owner: "multipetros" }, squirrel: { title: "Squirrel", require: "clike", owner: "RunDevelopment" }, stan: { title: "Stan", owner: "RunDevelopment" }, stata: { title: "Stata Ado", require: ["mata", "java", "python"], owner: "RunDevelopment" }, iecst: { title: "Structured Text (IEC 61131-3)", owner: "serhioromano" }, stylus: { title: "Stylus", owner: "vkbansal" }, supercollider: { title: "SuperCollider", alias: "sclang", owner: "RunDevelopment" }, swift: { title: "Swift", owner: "chrischares" }, systemd: { title: "Systemd configuration file", owner: "RunDevelopment" }, "t4-templating": { title: "T4 templating", owner: "RunDevelopment" }, "t4-cs": { title: "T4 Text Templates (C#)", require: ["t4-templating", "csharp"], alias: "t4", owner: "RunDevelopment" }, "t4-vb": { title: "T4 Text Templates (VB)", require: ["t4-templating", "vbnet"], owner: "RunDevelopment" }, tap: { title: "TAP", owner: "isaacs", require: "yaml" }, tcl: { title: "Tcl", owner: "PeterChaplin" }, tt2: { title: "Template Toolkit 2", require: ["clike", "markup-templating"], owner: "gflohr" }, textile: { title: "Textile", require: "markup", optional: "css", owner: "Golmote" }, toml: { title: "TOML", owner: "RunDevelopment" }, tremor: { title: "Tremor", alias: ["trickle", "troy"], owner: "darach", aliasTitles: { trickle: "trickle", troy: "troy" } }, turtle: { title: "Turtle", alias: "trig", aliasTitles: { trig: "TriG" }, owner: "jakubklimek" }, twig: { title: "Twig", require: "markup-templating", owner: "brandonkelly" }, typescript: { title: "TypeScript", require: "javascript", optional: "js-templates", alias: "ts", owner: "vkbansal" }, typoscript: { title: "TypoScript", alias: "tsconfig", aliasTitles: { tsconfig: "TSConfig" }, owner: "dkern" }, unrealscript: { title: "UnrealScript", alias: ["uscript", "uc"], owner: "RunDevelopment" }, uorazor: { title: "UO Razor Script", owner: "jaseowns" }, uri: { title: "URI", alias: "url", aliasTitles: { url: "URL" }, owner: "RunDevelopment" }, v: { title: "V", require: "clike", owner: "taggon" }, vala: { title: "Vala", require: "clike", optional: "regex", owner: "TemplarVolk" }, vbnet: { title: "VB.Net", require: "basic", owner: "Bigsby" }, velocity: { title: "Velocity", require: "markup", owner: "Golmote" }, verilog: { title: "Verilog", owner: "a-rey" }, vhdl: { title: "VHDL", owner: "a-rey" }, vim: { title: "vim", owner: "westonganger" }, "visual-basic": { title: "Visual Basic", alias: ["vb", "vba"], aliasTitles: { vba: "VBA" }, owner: "Golmote" }, warpscript: { title: "WarpScript", owner: "RunDevelopment" }, wasm: { title: "WebAssembly", owner: "Golmote" }, "web-idl": { title: "Web IDL", alias: "webidl", owner: "RunDevelopment" }, wgsl: { title: "WGSL", owner: "Dr4gonthree" }, wiki: { title: "Wiki markup", require: "markup", owner: "Golmote" }, wolfram: { title: "Wolfram language", alias: ["mathematica", "nb", "wl"], aliasTitles: { mathematica: "Mathematica", nb: "Mathematica Notebook" }, owner: "msollami" }, wren: { title: "Wren", owner: "clsource" }, xeora: { title: "Xeora", require: "markup", alias: "xeoracube", aliasTitles: { xeoracube: "XeoraCube" }, owner: "freakmaxi" }, "xml-doc": { title: "XML doc (.net)", require: "markup", modify: ["csharp", "fsharp", "vbnet"], owner: "RunDevelopment" }, xojo: { title: "Xojo (REALbasic)", owner: "Golmote" }, xquery: { title: "XQuery", require: "markup", owner: "Golmote" }, yaml: { title: "YAML", alias: "yml", owner: "hason" }, yang: { title: "YANG", owner: "RunDevelopment" }, zig: { title: "Zig", owner: "RunDevelopment" } }, plugins: { meta: { path: "plugins/{id}/prism-{id}", link: "plugins/{id}/" }, "line-highlight": { title: "Line Highlight", description: "Highlights specific lines and/or line ranges." }, "line-numbers": { title: "Line Numbers", description: "Line number at the beginning of code lines.", owner: "kuba-kubula" }, "show-invisibles": { title: "Show Invisibles", description: "Show hidden characters such as tabs and line breaks.", optional: ["autolinker", "data-uri-highlight"] }, autolinker: { title: "Autolinker", description: "Converts URLs and emails in code to clickable links. Parses Markdown links in comments." }, wpd: { title: "WebPlatform Docs", description: 'Makes tokens link to <a href="https://webplatform.github.io/docs/">WebPlatform.org documentation</a>. The links open in a new tab.' }, "custom-class": { title: "Custom Class", description: "This plugin allows you to prefix Prism's default classes (<code>.comment</code> can become <code>.namespace--comment</code>) or replace them with your defined ones (like <code>.editor__comment</code>). You can even add new classes.", owner: "dvkndn", noCSS: !0 }, "file-highlight": { title: "File Highlight", description: "Fetch external files and highlight them with Prism. Used on the Prism website itself.", noCSS: !0 }, "show-language": { title: "Show Language", description: "Display the highlighted language in code blocks (inline code does not show the label).", owner: "nauzilus", noCSS: !0, require: "toolbar" }, "jsonp-highlight": { title: "JSONP Highlight", description: "Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).", noCSS: !0, owner: "nauzilus" }, "highlight-keywords": { title: "Highlight Keywords", description: "Adds special CSS classes for each keyword for fine-grained highlighting.", owner: "vkbansal", noCSS: !0 }, "remove-initial-line-feed": { title: "Remove initial line feed", description: "Removes the initial line feed in code blocks.", owner: "Golmote", noCSS: !0 }, "inline-color": { title: "Inline color", description: "Adds a small inline preview for colors in style sheets.", require: "css-extras", owner: "RunDevelopment" }, previewers: { title: "Previewers", description: "Previewers for angles, colors, gradients, easing and time.", require: "css-extras", owner: "Golmote" }, autoloader: { title: "Autoloader", description: "Automatically loads the needed languages to highlight the code blocks.", owner: "Golmote", noCSS: !0 }, "keep-markup": { title: "Keep Markup", description: "Prevents custom markup from being dropped out during highlighting.", owner: "Golmote", optional: "normalize-whitespace", noCSS: !0 }, "command-line": { title: "Command Line", description: "Display a command line with a prompt and, optionally, the output/response from the commands.", owner: "chriswells0" }, "unescaped-markup": { title: "Unescaped Markup", description: "Write markup without having to escape anything." }, "normalize-whitespace": { title: "Normalize Whitespace", description: "Supports multiple operations to normalize whitespace in code blocks.", owner: "zeitgeist87", optional: "unescaped-markup", noCSS: !0 }, "data-uri-highlight": { title: "Data-URI Highlight", description: "Highlights data-URI contents.", owner: "Golmote", noCSS: !0 }, toolbar: { title: "Toolbar", description: "Attach a toolbar for plugins to easily register buttons on the top of a code block.", owner: "mAAdhaTTah" }, "copy-to-clipboard": { title: "Copy to Clipboard Button", description: "Add a button that copies the code block to the clipboard when clicked.", owner: "mAAdhaTTah", require: "toolbar", noCSS: !0 }, "download-button": { title: "Download Button", description: "A button in the toolbar of a code block adding a convenient way to download a code file.", owner: "Golmote", require: "toolbar", noCSS: !0 }, "match-braces": { title: "Match braces", description: "Highlights matching braces.", owner: "RunDevelopment" }, "diff-highlight": { title: "Diff Highlight", description: "Highlights the code inside diff blocks.", owner: "RunDevelopment", require: "diff" }, "filter-highlight-all": { title: "Filter highlightAll", description: "Filters the elements the <code>highlightAll</code> and <code>highlightAllUnder</code> methods actually highlight.", owner: "RunDevelopment", noCSS: !0 }, treeview: { title: "Treeview", description: "A language with special styles to highlight file system tree structures.", owner: "Golmote" } } };
42
+ e.exports && (e.exports = s);
43
+ })(fe);
44
+ var ce = fe.exports, we = { exports: {} };
45
+ (function(e) {
46
+ var s = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
47
+ /**
48
+ * Prism: Lightweight, robust, elegant syntax highlighting
49
+ *
50
+ * @license MIT <https://opensource.org/licenses/MIT>
51
+ * @author Lea Verou <https://lea.verou.me>
52
+ * @namespace
53
+ * @public
54
+ */
55
+ var n = function(u) {
56
+ var m = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, g = 0, w = {}, l = {
57
+ /**
58
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
59
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
60
+ * additional languages or plugins yourself.
61
+ *
62
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
63
+ *
64
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
65
+ * empty Prism object into the global scope before loading the Prism script like this:
66
+ *
67
+ * ```js
68
+ * window.Prism = window.Prism || {};
69
+ * Prism.manual = true;
70
+ * // add a new <script> to load Prism's script
71
+ * ```
72
+ *
73
+ * @default false
74
+ * @type {boolean}
75
+ * @memberof Prism
76
+ * @public
77
+ */
78
+ manual: u.Prism && u.Prism.manual,
79
+ /**
80
+ * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
81
+ * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
82
+ * own worker, you don't want it to do this.
83
+ *
84
+ * By setting this value to `true`, Prism will not add its own listeners to the worker.
85
+ *
86
+ * You obviously have to change this value before Prism executes. To do this, you can add an
87
+ * empty Prism object into the global scope before loading the Prism script like this:
88
+ *
89
+ * ```js
90
+ * window.Prism = window.Prism || {};
91
+ * Prism.disableWorkerMessageHandler = true;
92
+ * // Load Prism's script
93
+ * ```
94
+ *
95
+ * @default false
96
+ * @type {boolean}
97
+ * @memberof Prism
98
+ * @public
99
+ */
100
+ disableWorkerMessageHandler: u.Prism && u.Prism.disableWorkerMessageHandler,
101
+ /**
102
+ * A namespace for utility methods.
103
+ *
104
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
105
+ * change or disappear at any time.
106
+ *
107
+ * @namespace
108
+ * @memberof Prism
109
+ */
110
+ util: {
111
+ encode: function r(t) {
112
+ return t instanceof p ? new p(t.type, r(t.content), t.alias) : Array.isArray(t) ? t.map(r) : t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
113
+ },
114
+ /**
115
+ * Returns the name of the type of the given value.
116
+ *
117
+ * @param {any} o
118
+ * @returns {string}
119
+ * @example
120
+ * type(null) === 'Null'
121
+ * type(undefined) === 'Undefined'
122
+ * type(123) === 'Number'
123
+ * type('foo') === 'String'
124
+ * type(true) === 'Boolean'
125
+ * type([1, 2]) === 'Array'
126
+ * type({}) === 'Object'
127
+ * type(String) === 'Function'
128
+ * type(/abc+/) === 'RegExp'
129
+ */
130
+ type: function(r) {
131
+ return Object.prototype.toString.call(r).slice(8, -1);
132
+ },
133
+ /**
134
+ * Returns a unique number for the given object. Later calls will still return the same number.
135
+ *
136
+ * @param {Object} obj
137
+ * @returns {number}
138
+ */
139
+ objId: function(r) {
140
+ return r.__id || Object.defineProperty(r, "__id", { value: ++g }), r.__id;
141
+ },
142
+ /**
143
+ * Creates a deep clone of the given object.
144
+ *
145
+ * The main intended use of this function is to clone language definitions.
146
+ *
147
+ * @param {T} o
148
+ * @param {Record<number, any>} [visited]
149
+ * @returns {T}
150
+ * @template T
151
+ */
152
+ clone: function r(t, i) {
153
+ i = i || {};
154
+ var a, o;
155
+ switch (l.util.type(t)) {
156
+ case "Object":
157
+ if (o = l.util.objId(t), i[o])
158
+ return i[o];
159
+ a = /** @type {Record<string, any>} */
160
+ {}, i[o] = a;
161
+ for (var d in t)
162
+ t.hasOwnProperty(d) && (a[d] = r(t[d], i));
163
+ return (
164
+ /** @type {any} */
165
+ a
166
+ );
167
+ case "Array":
168
+ return o = l.util.objId(t), i[o] ? i[o] : (a = [], i[o] = a, /** @type {Array} */
169
+ /** @type {any} */
170
+ t.forEach(function(h, c) {
171
+ a[c] = r(h, i);
172
+ }), /** @type {any} */
173
+ a);
174
+ default:
175
+ return t;
176
+ }
177
+ },
178
+ /**
179
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
180
+ *
181
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
182
+ *
183
+ * @param {Element} element
184
+ * @returns {string}
185
+ */
186
+ getLanguage: function(r) {
187
+ for (; r; ) {
188
+ var t = m.exec(r.className);
189
+ if (t)
190
+ return t[1].toLowerCase();
191
+ r = r.parentElement;
192
+ }
193
+ return "none";
194
+ },
195
+ /**
196
+ * Sets the Prism `language-xxxx` class of the given element.
197
+ *
198
+ * @param {Element} element
199
+ * @param {string} language
200
+ * @returns {void}
201
+ */
202
+ setLanguage: function(r, t) {
203
+ r.className = r.className.replace(RegExp(m, "gi"), ""), r.classList.add("language-" + t);
204
+ },
205
+ /**
206
+ * Returns the script element that is currently executing.
207
+ *
208
+ * This does __not__ work for line script element.
209
+ *
210
+ * @returns {HTMLScriptElement | null}
211
+ */
212
+ currentScript: function() {
213
+ if (typeof document > "u")
214
+ return null;
215
+ if ("currentScript" in document && 1 < 2)
216
+ return (
217
+ /** @type {any} */
218
+ document.currentScript
219
+ );
220
+ try {
221
+ throw new Error();
222
+ } catch (a) {
223
+ var r = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack) || [])[1];
224
+ if (r) {
225
+ var t = document.getElementsByTagName("script");
226
+ for (var i in t)
227
+ if (t[i].src == r)
228
+ return t[i];
229
+ }
230
+ return null;
231
+ }
232
+ },
233
+ /**
234
+ * Returns whether a given class is active for `element`.
235
+ *
236
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
237
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
238
+ * given class is just the given class with a `no-` prefix.
239
+ *
240
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
241
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
242
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
243
+ *
244
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
245
+ * version of it, the class is considered active.
246
+ *
247
+ * @param {Element} element
248
+ * @param {string} className
249
+ * @param {boolean} [defaultActivation=false]
250
+ * @returns {boolean}
251
+ */
252
+ isActive: function(r, t, i) {
253
+ for (var a = "no-" + t; r; ) {
254
+ var o = r.classList;
255
+ if (o.contains(t))
256
+ return !0;
257
+ if (o.contains(a))
258
+ return !1;
259
+ r = r.parentElement;
260
+ }
261
+ return !!i;
262
+ }
263
+ },
264
+ /**
265
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
266
+ *
267
+ * @namespace
268
+ * @memberof Prism
269
+ * @public
270
+ */
271
+ languages: {
272
+ /**
273
+ * The grammar for plain, unformatted text.
274
+ */
275
+ plain: w,
276
+ plaintext: w,
277
+ text: w,
278
+ txt: w,
279
+ /**
280
+ * Creates a deep copy of the language with the given id and appends the given tokens.
281
+ *
282
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
283
+ * will be overwritten at its original position.
284
+ *
285
+ * ## Best practices
286
+ *
287
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
288
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
289
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
290
+ *
291
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
292
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
293
+ *
294
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
295
+ * @param {Grammar} redef The new tokens to append.
296
+ * @returns {Grammar} The new language created.
297
+ * @public
298
+ * @example
299
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
300
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
301
+ * // at its original position
302
+ * 'comment': { ... },
303
+ * // CSS doesn't have a 'color' token, so this token will be appended
304
+ * 'color': /\b(?:red|green|blue)\b/
305
+ * });
306
+ */
307
+ extend: function(r, t) {
308
+ var i = l.util.clone(l.languages[r]);
309
+ for (var a in t)
310
+ i[a] = t[a];
311
+ return i;
312
+ },
313
+ /**
314
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
315
+ *
316
+ * ## Usage
317
+ *
318
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
319
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
320
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
321
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
322
+ * this:
323
+ *
324
+ * ```js
325
+ * Prism.languages.markup.style = {
326
+ * // token
327
+ * };
328
+ * ```
329
+ *
330
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
331
+ * before existing tokens. For the CSS example above, you would use it like this:
332
+ *
333
+ * ```js
334
+ * Prism.languages.insertBefore('markup', 'cdata', {
335
+ * 'style': {
336
+ * // token
337
+ * }
338
+ * });
339
+ * ```
340
+ *
341
+ * ## Special cases
342
+ *
343
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
344
+ * will be ignored.
345
+ *
346
+ * This behavior can be used to insert tokens after `before`:
347
+ *
348
+ * ```js
349
+ * Prism.languages.insertBefore('markup', 'comment', {
350
+ * 'comment': Prism.languages.markup.comment,
351
+ * // tokens after 'comment'
352
+ * });
353
+ * ```
354
+ *
355
+ * ## Limitations
356
+ *
357
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
358
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
359
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
360
+ * deleting properties which is necessary to insert at arbitrary positions.
361
+ *
362
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
363
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
364
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
365
+ *
366
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
367
+ * you hold the target object in a variable, then the value of the variable will not change.
368
+ *
369
+ * ```js
370
+ * var oldMarkup = Prism.languages.markup;
371
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
372
+ *
373
+ * assert(oldMarkup !== Prism.languages.markup);
374
+ * assert(newMarkup === Prism.languages.markup);
375
+ * ```
376
+ *
377
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
378
+ * object to be modified.
379
+ * @param {string} before The key to insert before.
380
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
381
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
382
+ * object to be modified.
383
+ *
384
+ * Defaults to `Prism.languages`.
385
+ * @returns {Grammar} The new grammar object.
386
+ * @public
387
+ */
388
+ insertBefore: function(r, t, i, a) {
389
+ a = a || /** @type {any} */
390
+ l.languages;
391
+ var o = a[r], d = {};
392
+ for (var h in o)
393
+ if (o.hasOwnProperty(h)) {
394
+ if (h == t)
395
+ for (var c in i)
396
+ i.hasOwnProperty(c) && (d[c] = i[c]);
397
+ i.hasOwnProperty(h) || (d[h] = o[h]);
398
+ }
399
+ var k = a[r];
400
+ return a[r] = d, l.languages.DFS(l.languages, function(x, L) {
401
+ L === k && x != r && (this[x] = d);
402
+ }), d;
403
+ },
404
+ // Traverse a language definition with Depth First Search
405
+ DFS: function r(t, i, a, o) {
406
+ o = o || {};
407
+ var d = l.util.objId;
408
+ for (var h in t)
409
+ if (t.hasOwnProperty(h)) {
410
+ i.call(t, h, t[h], a || h);
411
+ var c = t[h], k = l.util.type(c);
412
+ k === "Object" && !o[d(c)] ? (o[d(c)] = !0, r(c, i, null, o)) : k === "Array" && !o[d(c)] && (o[d(c)] = !0, r(c, i, h, o));
413
+ }
414
+ }
415
+ },
416
+ plugins: {},
417
+ /**
418
+ * This is the most high-level function in Prism’s API.
419
+ * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
420
+ * each one of them.
421
+ *
422
+ * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
423
+ *
424
+ * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
425
+ * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
426
+ * @memberof Prism
427
+ * @public
428
+ */
429
+ highlightAll: function(r, t) {
430
+ l.highlightAllUnder(document, r, t);
431
+ },
432
+ /**
433
+ * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
434
+ * {@link Prism.highlightElement} on each one of them.
435
+ *
436
+ * The following hooks will be run:
437
+ * 1. `before-highlightall`
438
+ * 2. `before-all-elements-highlight`
439
+ * 3. All hooks of {@link Prism.highlightElement} for each element.
440
+ *
441
+ * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
442
+ * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
443
+ * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
444
+ * @memberof Prism
445
+ * @public
446
+ */
447
+ highlightAllUnder: function(r, t, i) {
448
+ var a = {
449
+ callback: i,
450
+ container: r,
451
+ selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
452
+ };
453
+ l.hooks.run("before-highlightall", a), a.elements = Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)), l.hooks.run("before-all-elements-highlight", a);
454
+ for (var o = 0, d; d = a.elements[o++]; )
455
+ l.highlightElement(d, t === !0, a.callback);
456
+ },
457
+ /**
458
+ * Highlights the code inside a single element.
459
+ *
460
+ * The following hooks will be run:
461
+ * 1. `before-sanity-check`
462
+ * 2. `before-highlight`
463
+ * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
464
+ * 4. `before-insert`
465
+ * 5. `after-highlight`
466
+ * 6. `complete`
467
+ *
468
+ * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
469
+ * the element's language.
470
+ *
471
+ * @param {Element} element The element containing the code.
472
+ * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
473
+ * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
474
+ * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
475
+ * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
476
+ *
477
+ * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
478
+ * asynchronous highlighting to work. You can build your own bundle on the
479
+ * [Download page](https://prismjs.com/download.html).
480
+ * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
481
+ * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
482
+ * @memberof Prism
483
+ * @public
484
+ */
485
+ highlightElement: function(r, t, i) {
486
+ var a = l.util.getLanguage(r), o = l.languages[a];
487
+ l.util.setLanguage(r, a);
488
+ var d = r.parentElement;
489
+ d && d.nodeName.toLowerCase() === "pre" && l.util.setLanguage(d, a);
490
+ var h = r.textContent, c = {
491
+ element: r,
492
+ language: a,
493
+ grammar: o,
494
+ code: h
495
+ };
496
+ function k(L) {
497
+ c.highlightedCode = L, l.hooks.run("before-insert", c), c.element.innerHTML = c.highlightedCode, l.hooks.run("after-highlight", c), l.hooks.run("complete", c), i && i.call(c.element);
498
+ }
499
+ if (l.hooks.run("before-sanity-check", c), d = c.element.parentElement, d && d.nodeName.toLowerCase() === "pre" && !d.hasAttribute("tabindex") && d.setAttribute("tabindex", "0"), !c.code) {
500
+ l.hooks.run("complete", c), i && i.call(c.element);
501
+ return;
502
+ }
503
+ if (l.hooks.run("before-highlight", c), !c.grammar) {
504
+ k(l.util.encode(c.code));
505
+ return;
506
+ }
507
+ if (t && u.Worker) {
508
+ var x = new Worker(l.filename);
509
+ x.onmessage = function(L) {
510
+ k(L.data);
511
+ }, x.postMessage(JSON.stringify({
512
+ language: c.language,
513
+ code: c.code,
514
+ immediateClose: !0
515
+ }));
516
+ } else
517
+ k(l.highlight(c.code, c.grammar, c.language));
518
+ },
519
+ /**
520
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
521
+ * and the language definitions to use, and returns a string with the HTML produced.
522
+ *
523
+ * The following hooks will be run:
524
+ * 1. `before-tokenize`
525
+ * 2. `after-tokenize`
526
+ * 3. `wrap`: On each {@link Token}.
527
+ *
528
+ * @param {string} text A string with the code to be highlighted.
529
+ * @param {Grammar} grammar An object containing the tokens to use.
530
+ *
531
+ * Usually a language definition like `Prism.languages.markup`.
532
+ * @param {string} language The name of the language definition passed to `grammar`.
533
+ * @returns {string} The highlighted HTML.
534
+ * @memberof Prism
535
+ * @public
536
+ * @example
537
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
538
+ */
539
+ highlight: function(r, t, i) {
540
+ var a = {
541
+ code: r,
542
+ grammar: t,
543
+ language: i
544
+ };
545
+ if (l.hooks.run("before-tokenize", a), !a.grammar)
546
+ throw new Error('The language "' + a.language + '" has no grammar.');
547
+ return a.tokens = l.tokenize(a.code, a.grammar), l.hooks.run("after-tokenize", a), p.stringify(l.util.encode(a.tokens), a.language);
548
+ },
549
+ /**
550
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
551
+ * and the language definitions to use, and returns an array with the tokenized code.
552
+ *
553
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
554
+ *
555
+ * This method could be useful in other contexts as well, as a very crude parser.
556
+ *
557
+ * @param {string} text A string with the code to be highlighted.
558
+ * @param {Grammar} grammar An object containing the tokens to use.
559
+ *
560
+ * Usually a language definition like `Prism.languages.markup`.
561
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
562
+ * @memberof Prism
563
+ * @public
564
+ * @example
565
+ * let code = `var foo = 0;`;
566
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
567
+ * tokens.forEach(token => {
568
+ * if (token instanceof Prism.Token && token.type === 'number') {
569
+ * console.log(`Found numeric literal: ${token.content}`);
570
+ * }
571
+ * });
572
+ */
573
+ tokenize: function(r, t) {
574
+ var i = t.rest;
575
+ if (i) {
576
+ for (var a in i)
577
+ t[a] = i[a];
578
+ delete t.rest;
579
+ }
580
+ var o = new C();
581
+ return G(o, o.head, r), D(r, o, t, o.head, 0), M(o);
582
+ },
583
+ /**
584
+ * @namespace
585
+ * @memberof Prism
586
+ * @public
587
+ */
588
+ hooks: {
589
+ all: {},
590
+ /**
591
+ * Adds the given callback to the list of callbacks for the given hook.
592
+ *
593
+ * The callback will be invoked when the hook it is registered for is run.
594
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
595
+ *
596
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
597
+ *
598
+ * @param {string} name The name of the hook.
599
+ * @param {HookCallback} callback The callback function which is given environment variables.
600
+ * @public
601
+ */
602
+ add: function(r, t) {
603
+ var i = l.hooks.all;
604
+ i[r] = i[r] || [], i[r].push(t);
605
+ },
606
+ /**
607
+ * Runs a hook invoking all registered callbacks with the given environment variables.
608
+ *
609
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
610
+ *
611
+ * @param {string} name The name of the hook.
612
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
613
+ * @public
614
+ */
615
+ run: function(r, t) {
616
+ var i = l.hooks.all[r];
617
+ if (!(!i || !i.length))
618
+ for (var a = 0, o; o = i[a++]; )
619
+ o(t);
620
+ }
621
+ },
622
+ Token: p
623
+ };
624
+ u.Prism = l;
625
+ function p(r, t, i, a) {
626
+ this.type = r, this.content = t, this.alias = i, this.length = (a || "").length | 0;
627
+ }
628
+ p.stringify = function r(t, i) {
629
+ if (typeof t == "string")
630
+ return t;
631
+ if (Array.isArray(t)) {
632
+ var a = "";
633
+ return t.forEach(function(k) {
634
+ a += r(k, i);
635
+ }), a;
636
+ }
637
+ var o = {
638
+ type: t.type,
639
+ content: r(t.content, i),
640
+ tag: "span",
641
+ classes: ["token", t.type],
642
+ attributes: {},
643
+ language: i
644
+ }, d = t.alias;
645
+ d && (Array.isArray(d) ? Array.prototype.push.apply(o.classes, d) : o.classes.push(d)), l.hooks.run("wrap", o);
646
+ var h = "";
647
+ for (var c in o.attributes)
648
+ h += " " + c + '="' + (o.attributes[c] || "").replace(/"/g, "&quot;") + '"';
649
+ return "<" + o.tag + ' class="' + o.classes.join(" ") + '"' + h + ">" + o.content + "</" + o.tag + ">";
650
+ };
651
+ function y(r, t, i, a) {
652
+ r.lastIndex = t;
653
+ var o = r.exec(i);
654
+ if (o && a && o[1]) {
655
+ var d = o[1].length;
656
+ o.index += d, o[0] = o[0].slice(d);
657
+ }
658
+ return o;
659
+ }
660
+ function D(r, t, i, a, o, d) {
661
+ for (var h in i)
662
+ if (!(!i.hasOwnProperty(h) || !i[h])) {
663
+ var c = i[h];
664
+ c = Array.isArray(c) ? c : [c];
665
+ for (var k = 0; k < c.length; ++k) {
666
+ if (d && d.cause == h + "," + k)
667
+ return;
668
+ var x = c[k], L = x.inside, ie = !!x.lookbehind, ae = !!x.greedy, ke = x.alias;
669
+ if (ae && !x.pattern.global) {
670
+ var ye = x.pattern.toString().match(/[imsuy]*$/)[0];
671
+ x.pattern = RegExp(x.pattern.source, ye + "g");
672
+ }
673
+ for (var oe = x.pattern || x, S = a.next, j = o; S !== t.tail && !(d && j >= d.reach); j += S.value.length, S = S.next) {
674
+ var B = S.value;
675
+ if (t.length > r.length)
676
+ return;
677
+ if (!(B instanceof p)) {
678
+ var J = 1, F;
679
+ if (ae) {
680
+ if (F = y(oe, j, r, ie), !F || F.index >= r.length)
681
+ break;
682
+ var U = F.index, be = F.index + F[0].length, $ = j;
683
+ for ($ += S.value.length; U >= $; )
684
+ S = S.next, $ += S.value.length;
685
+ if ($ -= S.value.length, j = $, S.value instanceof p)
686
+ continue;
687
+ for (var z = S; z !== t.tail && ($ < be || typeof z.value == "string"); z = z.next)
688
+ J++, $ += z.value.length;
689
+ J--, B = r.slice(j, $), F.index -= j;
690
+ } else if (F = y(oe, 0, B, ie), !F)
691
+ continue;
692
+ var U = F.index, V = F[0], K = B.slice(0, U), le = B.slice(U + V.length), Z = j + B.length;
693
+ d && Z > d.reach && (d.reach = Z);
694
+ var W = S.prev;
695
+ K && (W = G(t, W, K), j += K.length), I(t, W, J);
696
+ var _e = new p(h, L ? l.tokenize(V, L) : V, ke, V);
697
+ if (S = G(t, W, _e), le && G(t, S, le), J > 1) {
698
+ var Y = {
699
+ cause: h + "," + k,
700
+ reach: Z
701
+ };
702
+ D(r, t, i, S.prev, j, Y), d && Y.reach > d.reach && (d.reach = Y.reach);
703
+ }
704
+ }
705
+ }
706
+ }
707
+ }
708
+ }
709
+ function C() {
710
+ var r = { value: null, prev: null, next: null }, t = { value: null, prev: r, next: null };
711
+ r.next = t, this.head = r, this.tail = t, this.length = 0;
712
+ }
713
+ function G(r, t, i) {
714
+ var a = t.next, o = { value: i, prev: t, next: a };
715
+ return t.next = o, a.prev = o, r.length++, o;
716
+ }
717
+ function I(r, t, i) {
718
+ for (var a = t.next, o = 0; o < i && a !== r.tail; o++)
719
+ a = a.next;
720
+ t.next = a, a.prev = t, r.length -= o;
721
+ }
722
+ function M(r) {
723
+ for (var t = [], i = r.head.next; i !== r.tail; )
724
+ t.push(i.value), i = i.next;
725
+ return t;
726
+ }
727
+ if (!u.document)
728
+ return u.addEventListener && (l.disableWorkerMessageHandler || u.addEventListener("message", function(r) {
729
+ var t = JSON.parse(r.data), i = t.language, a = t.code, o = t.immediateClose;
730
+ u.postMessage(l.highlight(a, l.languages[i], i)), o && u.close();
731
+ }, !1)), l;
732
+ var b = l.util.currentScript();
733
+ b && (l.filename = b.src, b.hasAttribute("data-manual") && (l.manual = !0));
734
+ function f() {
735
+ l.manual || l.highlightAll();
736
+ }
737
+ if (!l.manual) {
738
+ var _ = document.readyState;
739
+ _ === "loading" || _ === "interactive" && b && b.defer ? document.addEventListener("DOMContentLoaded", f) : window.requestAnimationFrame ? window.requestAnimationFrame(f) : window.setTimeout(f, 16);
740
+ }
741
+ return l;
742
+ }(s);
743
+ e.exports && (e.exports = n), typeof ue < "u" && (ue.Prism = n), n.languages.markup = {
744
+ comment: {
745
+ pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
746
+ greedy: !0
747
+ },
748
+ prolog: {
749
+ pattern: /<\?[\s\S]+?\?>/,
750
+ greedy: !0
751
+ },
752
+ doctype: {
753
+ // https://www.w3.org/TR/xml/#NT-doctypedecl
754
+ pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
755
+ greedy: !0,
756
+ inside: {
757
+ "internal-subset": {
758
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
759
+ lookbehind: !0,
760
+ greedy: !0,
761
+ inside: null
762
+ // see below
763
+ },
764
+ string: {
765
+ pattern: /"[^"]*"|'[^']*'/,
766
+ greedy: !0
767
+ },
768
+ punctuation: /^<!|>$|[[\]]/,
769
+ "doctype-tag": /^DOCTYPE/i,
770
+ name: /[^\s<>'"]+/
771
+ }
772
+ },
773
+ cdata: {
774
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
775
+ greedy: !0
776
+ },
777
+ tag: {
778
+ pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
779
+ greedy: !0,
780
+ inside: {
781
+ tag: {
782
+ pattern: /^<\/?[^\s>\/]+/,
783
+ inside: {
784
+ punctuation: /^<\/?/,
785
+ namespace: /^[^\s>\/:]+:/
786
+ }
787
+ },
788
+ "special-attr": [],
789
+ "attr-value": {
790
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
791
+ inside: {
792
+ punctuation: [
793
+ {
794
+ pattern: /^=/,
795
+ alias: "attr-equals"
796
+ },
797
+ {
798
+ pattern: /^(\s*)["']|["']$/,
799
+ lookbehind: !0
800
+ }
801
+ ]
802
+ }
803
+ },
804
+ punctuation: /\/?>/,
805
+ "attr-name": {
806
+ pattern: /[^\s>\/]+/,
807
+ inside: {
808
+ namespace: /^[^\s>\/:]+:/
809
+ }
810
+ }
811
+ }
812
+ },
813
+ entity: [
814
+ {
815
+ pattern: /&[\da-z]{1,8};/i,
816
+ alias: "named-entity"
817
+ },
818
+ /&#x?[\da-f]{1,8};/i
819
+ ]
820
+ }, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(u) {
821
+ u.type === "entity" && (u.attributes.title = u.content.replace(/&amp;/, "&"));
822
+ }), Object.defineProperty(n.languages.markup.tag, "addInlined", {
823
+ /**
824
+ * Adds an inlined language to markup.
825
+ *
826
+ * An example of an inlined language is CSS with `<style>` tags.
827
+ *
828
+ * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
829
+ * case insensitive.
830
+ * @param {string} lang The language key.
831
+ * @example
832
+ * addInlined('style', 'css');
833
+ */
834
+ value: function(m, g) {
835
+ var w = {};
836
+ w["language-" + g] = {
837
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
838
+ lookbehind: !0,
839
+ inside: n.languages[g]
840
+ }, w.cdata = /^<!\[CDATA\[|\]\]>$/i;
841
+ var l = {
842
+ "included-cdata": {
843
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
844
+ inside: w
845
+ }
846
+ };
847
+ l["language-" + g] = {
848
+ pattern: /[\s\S]+/,
849
+ inside: n.languages[g]
850
+ };
851
+ var p = {};
852
+ p[m] = {
853
+ pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
854
+ return m;
855
+ }), "i"),
856
+ lookbehind: !0,
857
+ greedy: !0,
858
+ inside: l
859
+ }, n.languages.insertBefore("markup", "cdata", p);
860
+ }
861
+ }), Object.defineProperty(n.languages.markup.tag, "addAttribute", {
862
+ /**
863
+ * Adds an pattern to highlight languages embedded in HTML attributes.
864
+ *
865
+ * An example of an inlined language is CSS with `style` attributes.
866
+ *
867
+ * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
868
+ * case insensitive.
869
+ * @param {string} lang The language key.
870
+ * @example
871
+ * addAttribute('style', 'css');
872
+ */
873
+ value: function(u, m) {
874
+ n.languages.markup.tag.inside["special-attr"].push({
875
+ pattern: RegExp(
876
+ /(^|["'\s])/.source + "(?:" + u + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
877
+ "i"
878
+ ),
879
+ lookbehind: !0,
880
+ inside: {
881
+ "attr-name": /^[^\s=]+/,
882
+ "attr-value": {
883
+ pattern: /=[\s\S]+/,
884
+ inside: {
885
+ value: {
886
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
887
+ lookbehind: !0,
888
+ alias: [m, "language-" + m],
889
+ inside: n.languages[m]
890
+ },
891
+ punctuation: [
892
+ {
893
+ pattern: /^=/,
894
+ alias: "attr-equals"
895
+ },
896
+ /"|'/
897
+ ]
898
+ }
899
+ }
900
+ }
901
+ });
902
+ }
903
+ }), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, function(u) {
904
+ var m = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
905
+ u.languages.css = {
906
+ comment: /\/\*[\s\S]*?\*\//,
907
+ atrule: {
908
+ pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + m.source + ")*?" + /(?:;|(?=\s*\{))/.source),
909
+ inside: {
910
+ rule: /^@[\w-]+/,
911
+ "selector-function-argument": {
912
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
913
+ lookbehind: !0,
914
+ alias: "selector"
915
+ },
916
+ keyword: {
917
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
918
+ lookbehind: !0
919
+ }
920
+ // See rest below
921
+ }
922
+ },
923
+ url: {
924
+ // https://drafts.csswg.org/css-values-3/#urls
925
+ pattern: RegExp("\\burl\\((?:" + m.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
926
+ greedy: !0,
927
+ inside: {
928
+ function: /^url/i,
929
+ punctuation: /^\(|\)$/,
930
+ string: {
931
+ pattern: RegExp("^" + m.source + "$"),
932
+ alias: "url"
933
+ }
934
+ }
935
+ },
936
+ selector: {
937
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + m.source + ")*(?=\\s*\\{)"),
938
+ lookbehind: !0
939
+ },
940
+ string: {
941
+ pattern: m,
942
+ greedy: !0
943
+ },
944
+ property: {
945
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
946
+ lookbehind: !0
947
+ },
948
+ important: /!important\b/i,
949
+ function: {
950
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
951
+ lookbehind: !0
952
+ },
953
+ punctuation: /[(){};:,]/
954
+ }, u.languages.css.atrule.inside.rest = u.languages.css;
955
+ var g = u.languages.markup;
956
+ g && (g.tag.addInlined("style", "css"), g.tag.addAttribute("style", "css"));
957
+ }(n), n.languages.clike = {
958
+ comment: [
959
+ {
960
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
961
+ lookbehind: !0,
962
+ greedy: !0
963
+ },
964
+ {
965
+ pattern: /(^|[^\\:])\/\/.*/,
966
+ lookbehind: !0,
967
+ greedy: !0
968
+ }
969
+ ],
970
+ string: {
971
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
972
+ greedy: !0
973
+ },
974
+ "class-name": {
975
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
976
+ lookbehind: !0,
977
+ inside: {
978
+ punctuation: /[.\\]/
979
+ }
980
+ },
981
+ keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
982
+ boolean: /\b(?:false|true)\b/,
983
+ function: /\b\w+(?=\()/,
984
+ number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
985
+ operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
986
+ punctuation: /[{}[\];(),.:]/
987
+ }, n.languages.javascript = n.languages.extend("clike", {
988
+ "class-name": [
989
+ n.languages.clike["class-name"],
990
+ {
991
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
992
+ lookbehind: !0
993
+ }
994
+ ],
995
+ keyword: [
996
+ {
997
+ pattern: /((?:^|\})\s*)catch\b/,
998
+ lookbehind: !0
999
+ },
1000
+ {
1001
+ pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
1002
+ lookbehind: !0
1003
+ }
1004
+ ],
1005
+ // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
1006
+ function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
1007
+ number: {
1008
+ pattern: RegExp(
1009
+ /(^|[^\w$])/.source + "(?:" + // constant
1010
+ (/NaN|Infinity/.source + "|" + // binary integer
1011
+ /0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
1012
+ /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
1013
+ /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
1014
+ /\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
1015
+ /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
1016
+ ),
1017
+ lookbehind: !0
1018
+ },
1019
+ operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
1020
+ }), n.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, n.languages.insertBefore("javascript", "keyword", {
1021
+ regex: {
1022
+ pattern: RegExp(
1023
+ // lookbehind
1024
+ // eslint-disable-next-line regexp/no-dupe-characters-character-class
1025
+ /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + // Regex pattern:
1026
+ // There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
1027
+ // classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
1028
+ // with the only syntax, so we have to define 2 different regex patterns.
1029
+ /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + // `v` flag syntax. This supports 3 levels of nested character classes.
1030
+ /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + // lookahead
1031
+ /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
1032
+ ),
1033
+ lookbehind: !0,
1034
+ greedy: !0,
1035
+ inside: {
1036
+ "regex-source": {
1037
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
1038
+ lookbehind: !0,
1039
+ alias: "language-regex",
1040
+ inside: n.languages.regex
1041
+ },
1042
+ "regex-delimiter": /^\/|\/$/,
1043
+ "regex-flags": /^[a-z]+$/
1044
+ }
1045
+ },
1046
+ // This must be declared before keyword because we use "function" inside the look-forward
1047
+ "function-variable": {
1048
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
1049
+ alias: "function"
1050
+ },
1051
+ parameter: [
1052
+ {
1053
+ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
1054
+ lookbehind: !0,
1055
+ inside: n.languages.javascript
1056
+ },
1057
+ {
1058
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
1059
+ lookbehind: !0,
1060
+ inside: n.languages.javascript
1061
+ },
1062
+ {
1063
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
1064
+ lookbehind: !0,
1065
+ inside: n.languages.javascript
1066
+ },
1067
+ {
1068
+ pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
1069
+ lookbehind: !0,
1070
+ inside: n.languages.javascript
1071
+ }
1072
+ ],
1073
+ constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
1074
+ }), n.languages.insertBefore("javascript", "string", {
1075
+ hashbang: {
1076
+ pattern: /^#!.*/,
1077
+ greedy: !0,
1078
+ alias: "comment"
1079
+ },
1080
+ "template-string": {
1081
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
1082
+ greedy: !0,
1083
+ inside: {
1084
+ "template-punctuation": {
1085
+ pattern: /^`|`$/,
1086
+ alias: "string"
1087
+ },
1088
+ interpolation: {
1089
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
1090
+ lookbehind: !0,
1091
+ inside: {
1092
+ "interpolation-punctuation": {
1093
+ pattern: /^\$\{|\}$/,
1094
+ alias: "punctuation"
1095
+ },
1096
+ rest: n.languages.javascript
1097
+ }
1098
+ },
1099
+ string: /[\s\S]+/
1100
+ }
1101
+ },
1102
+ "string-property": {
1103
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
1104
+ lookbehind: !0,
1105
+ greedy: !0,
1106
+ alias: "property"
1107
+ }
1108
+ }), n.languages.insertBefore("javascript", "operator", {
1109
+ "literal-property": {
1110
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
1111
+ lookbehind: !0,
1112
+ alias: "property"
1113
+ }
1114
+ }), n.languages.markup && (n.languages.markup.tag.addInlined("script", "javascript"), n.languages.markup.tag.addAttribute(
1115
+ /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
1116
+ "javascript"
1117
+ )), n.languages.js = n.languages.javascript, function() {
1118
+ if (typeof n > "u" || typeof document > "u")
1119
+ return;
1120
+ Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
1121
+ var u = "Loading…", m = function(b, f) {
1122
+ return "✖ Error " + b + " while fetching file: " + f;
1123
+ }, g = "✖ Error: File does not exist or is empty", w = {
1124
+ js: "javascript",
1125
+ py: "python",
1126
+ rb: "ruby",
1127
+ ps1: "powershell",
1128
+ psm1: "powershell",
1129
+ sh: "bash",
1130
+ bat: "batch",
1131
+ h: "c",
1132
+ tex: "latex"
1133
+ }, l = "data-src-status", p = "loading", y = "loaded", D = "failed", C = "pre[data-src]:not([" + l + '="' + y + '"]):not([' + l + '="' + p + '"])';
1134
+ function G(b, f, _) {
1135
+ var r = new XMLHttpRequest();
1136
+ r.open("GET", b, !0), r.onreadystatechange = function() {
1137
+ r.readyState == 4 && (r.status < 400 && r.responseText ? f(r.responseText) : r.status >= 400 ? _(m(r.status, r.statusText)) : _(g));
1138
+ }, r.send(null);
1139
+ }
1140
+ function I(b) {
1141
+ var f = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b || "");
1142
+ if (f) {
1143
+ var _ = Number(f[1]), r = f[2], t = f[3];
1144
+ return r ? t ? [_, Number(t)] : [_, void 0] : [_, _];
1145
+ }
1146
+ }
1147
+ n.hooks.add("before-highlightall", function(b) {
1148
+ b.selector += ", " + C;
1149
+ }), n.hooks.add("before-sanity-check", function(b) {
1150
+ var f = (
1151
+ /** @type {HTMLPreElement} */
1152
+ b.element
1153
+ );
1154
+ if (f.matches(C)) {
1155
+ b.code = "", f.setAttribute(l, p);
1156
+ var _ = f.appendChild(document.createElement("CODE"));
1157
+ _.textContent = u;
1158
+ var r = f.getAttribute("data-src"), t = b.language;
1159
+ if (t === "none") {
1160
+ var i = (/\.(\w+)$/.exec(r) || [, "none"])[1];
1161
+ t = w[i] || i;
1162
+ }
1163
+ n.util.setLanguage(_, t), n.util.setLanguage(f, t);
1164
+ var a = n.plugins.autoloader;
1165
+ a && a.loadLanguages(t), G(
1166
+ r,
1167
+ function(o) {
1168
+ f.setAttribute(l, y);
1169
+ var d = I(f.getAttribute("data-range"));
1170
+ if (d) {
1171
+ var h = o.split(/\r\n?|\n/g), c = d[0], k = d[1] == null ? h.length : d[1];
1172
+ c < 0 && (c += h.length), c = Math.max(0, Math.min(c - 1, h.length)), k < 0 && (k += h.length), k = Math.max(0, Math.min(k, h.length)), o = h.slice(c, k).join(`
1173
+ `), f.hasAttribute("data-start") || f.setAttribute("data-start", String(c + 1));
1174
+ }
1175
+ _.textContent = o, n.highlightElement(_);
1176
+ },
1177
+ function(o) {
1178
+ f.setAttribute(l, D), _.textContent = o;
1179
+ }
1180
+ );
1181
+ }
1182
+ }), n.plugins.fileHighlight = {
1183
+ /**
1184
+ * Executes the File Highlight plugin for all matching `pre` elements under the given container.
1185
+ *
1186
+ * Note: Elements which are already loaded or currently loading will not be touched by this method.
1187
+ *
1188
+ * @param {ParentNode} [container=document]
1189
+ */
1190
+ highlight: function(f) {
1191
+ for (var _ = (f || document).querySelectorAll(C), r = 0, t; t = _[r++]; )
1192
+ n.highlightElement(t);
1193
+ }
1194
+ };
1195
+ var M = !1;
1196
+ n.fileHighlight = function() {
1197
+ M || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), M = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
1198
+ };
1199
+ }();
1200
+ })(we);
1201
+ var Oe = we.exports;
1202
+ const Q = /* @__PURE__ */ Be(Oe);
1203
+ const ze = /* @__PURE__ */ T({
1204
+ __name: "CodeBlock",
1205
+ props: {
1206
+ codeBlockIndex: {
1207
+ type: Number,
1208
+ default: 1
1209
+ },
1210
+ lines: {
1211
+ type: Array,
1212
+ required: !0
1213
+ },
1214
+ lang: {
1215
+ type: String,
1216
+ default: "plaintext"
1217
+ },
1218
+ isSingleLine: {
1219
+ type: Boolean,
1220
+ default: !1
1221
+ }
1222
+ },
1223
+ setup(e) {
1224
+ const s = e;
1225
+ Q.manual = !0;
1226
+ const n = me(!1), u = Object.keys(ce.languages).reduce((p, y) => {
1227
+ const D = ce.languages[y].alias || [];
1228
+ return [...p, y, ...Array.isArray(D) ? D : [D]];
1229
+ }, []).sort();
1230
+ function m(p) {
1231
+ n.value = !0, Q.languages[p.language] || console.warn(`Prism: the language “${p.language}” isn’t enabled.`), p.preElement.classList.contains(`language-${p.language}`) || p.preElement.classList.add(`language-${p.language}`), p.codeElement.innerHTML = g(p.code), Q.highlightElement(p.codeElement), n.value = !1;
1232
+ }
1233
+ const g = (p) => p.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#039;"), w = ne(() => `document-code-block-${s.codeBlockIndex}`), l = ne(() => {
1234
+ var y, D;
1235
+ const p = ((D = (y = s.lines) == null ? void 0 : y.flatMap((C) => C.text)) == null ? void 0 : D.join("")) || "";
1236
+ return p.endsWith(`
1237
+ `) && !s.isSingleLine ? p.slice(0, -1) : p;
1238
+ });
1239
+ return xe(() => s.lang, async (p) => {
1240
+ if (u.includes(p))
1241
+ try {
1242
+ await import(
1243
+ /* @vite-ignore */
1244
+ `../../../node_modules/prismjs/components/prism-${p}.min.js`
1245
+ );
1246
+ } catch {
1247
+ console.warn(`Prism does not have a language file for '${p}'`);
1248
+ }
1249
+ Q.highlightAll();
1250
+ }, { immediate: !0 }), (p, y) => {
1251
+ const D = Se("KCodeBlock");
1252
+ return v(), P(D, {
1253
+ id: w.value,
1254
+ class: "document-code-block",
1255
+ code: l.value,
1256
+ "is-processing": n.value,
1257
+ "is-single-line": e.isSingleLine,
1258
+ language: e.lang,
1259
+ theme: "light",
1260
+ onCodeBlockRender: m
1261
+ }, null, 8, ["id", "code", "is-processing", "is-single-line", "language"]);
1262
+ };
1263
+ }
1264
+ });
1265
+ const Ne = /* @__PURE__ */ q(ze, [["__scopeId", "data-v-5e3488f0"]]), He = /* @__PURE__ */ T({
1266
+ __name: "Emphasis",
1267
+ props: {
1268
+ level: {
1269
+ type: Number,
1270
+ default: 1,
1271
+ validator(e) {
1272
+ if (!Number.isInteger(e))
1273
+ return !1;
1274
+ const s = e;
1275
+ return s > 0 && s < 3;
1276
+ }
1277
+ }
1278
+ },
1279
+ setup(e) {
1280
+ const n = e.level === 1 ? "em" : "strong";
1281
+ return (u, m) => (v(), P(N(O(n)), null, {
1282
+ default: H(() => [
1283
+ R(u.$slots, "default")
1284
+ ]),
1285
+ _: 3
1286
+ }));
1287
+ }
1288
+ }), Je = /* @__PURE__ */ T({
1289
+ __name: "Heading",
1290
+ props: {
1291
+ level: {
1292
+ type: Number,
1293
+ validator(e) {
1294
+ if (!Number.isInteger(e))
1295
+ return !1;
1296
+ const s = e;
1297
+ return s > 0 && s < 7;
1298
+ },
1299
+ default: 1
1300
+ },
1301
+ slug: {
1302
+ type: String,
1303
+ default: ""
1304
+ }
1305
+ },
1306
+ setup(e) {
1307
+ const s = e, n = `${s.slug}`, u = `h${s.level}`;
1308
+ return (m, g) => (v(), P(N(u), { id: n }, {
1309
+ default: H(() => [
1310
+ R(m.$slots, "default", {}, void 0, !0)
1311
+ ]),
1312
+ _: 3
1313
+ }));
1314
+ }
1315
+ });
1316
+ const Ue = /* @__PURE__ */ q(Je, [["__scopeId", "data-v-9ef4ad64"]]), Ve = ["alt", "src", "title"], We = /* @__PURE__ */ T({
1317
+ __name: "Image",
1318
+ props: {
1319
+ url: {
1320
+ type: String,
1321
+ required: !0
1322
+ },
1323
+ alt: {
1324
+ type: String,
1325
+ default: ""
1326
+ },
1327
+ title: {
1328
+ type: String,
1329
+ default: ""
1330
+ }
1331
+ },
1332
+ setup(e) {
1333
+ return (s, n) => (v(), A("img", {
1334
+ alt: e.alt,
1335
+ src: e.url,
1336
+ title: e.title
1337
+ }, null, 8, Ve));
1338
+ }
1339
+ });
1340
+ const Qe = /* @__PURE__ */ q(We, [["__scopeId", "data-v-13314abe"]]);
1341
+ const Xe = {};
1342
+ function Ke(e, s) {
1343
+ return v(), A("hr");
1344
+ }
1345
+ const Ze = /* @__PURE__ */ q(Xe, [["render", Ke], ["__scopeId", "data-v-b6e25b56"]]), Ye = {};
1346
+ function et(e, s) {
1347
+ return v(), A("s", null, [
1348
+ R(e.$slots, "default")
1349
+ ]);
1350
+ }
1351
+ const tt = /* @__PURE__ */ q(Ye, [["render", et]]);
1352
+ const nt = {};
1353
+ function rt(e, s) {
1354
+ return v(), A("table", null, [
1355
+ R(e.$slots, "default", {}, void 0, !0)
1356
+ ]);
1357
+ }
1358
+ const it = /* @__PURE__ */ q(nt, [["render", rt], ["__scopeId", "data-v-c2502730"]]), at = /* @__PURE__ */ T({
1359
+ __name: "TableRow",
1360
+ props: {
1361
+ section: {
1362
+ type: String,
1363
+ default: E.body
1364
+ }
1365
+ },
1366
+ setup(e) {
1367
+ const s = e;
1368
+ let n;
1369
+ return s.section === E.header ? n = "thead" : s.section === E.body ? n = "tbody" : s.section === E.footer && (n = "tfoot"), (u, m) => (v(), P(N(O(n)), null, {
1370
+ default: H(() => [
1371
+ Ae("tr", null, [
1372
+ R(u.$slots, "default", {}, void 0, !0)
1373
+ ])
1374
+ ]),
1375
+ _: 3
1376
+ }));
1377
+ }
1378
+ });
1379
+ const pe = /* @__PURE__ */ q(at, [["__scopeId", "data-v-49d97adb"]]), ot = /* @__PURE__ */ T({
1380
+ __name: "TableCell",
1381
+ props: {
1382
+ alignment: {
1383
+ type: String,
1384
+ default: X.left
1385
+ },
1386
+ parent: {
1387
+ type: Object,
1388
+ required: !0
1389
+ }
1390
+ },
1391
+ setup(e) {
1392
+ var m;
1393
+ const s = e, n = ((m = s.parent) == null ? void 0 : m.section) === E.header ? "th" : "td";
1394
+ let u;
1395
+ return s.alignment === X.center ? u = "align-center" : s.alignment === X.right && (u = "align-right"), (g, w) => (v(), P(N(O(n)), {
1396
+ class: ge(O(u))
1397
+ }, {
1398
+ default: H(() => [
1399
+ R(g.$slots, "default", {}, void 0, !0)
1400
+ ]),
1401
+ _: 3
1402
+ }, 8, ["class"]));
1403
+ }
1404
+ });
1405
+ const lt = /* @__PURE__ */ q(ot, [["__scopeId", "data-v-6c8bb91d"]]), st = ["checked"], ut = /* @__PURE__ */ T({
1406
+ __name: "TaskCheckbox",
1407
+ props: {
1408
+ checked: { type: Boolean }
1409
+ },
1410
+ setup(e) {
1411
+ const n = me(e.checked);
1412
+ return (u, m) => (v(), A("input", {
1413
+ "aria-label": "Display-only checkbox for task",
1414
+ checked: n.value,
1415
+ type: "checkbox"
1416
+ }, null, 8, st));
1417
+ }
1418
+ }), ct = { key: 0 }, pt = { key: 1 }, dt = {
1419
+ inheritAttrs: !1
1420
+ }, mt = /* @__PURE__ */ T({
1421
+ ...dt,
1422
+ __name: "Text",
1423
+ props: {
1424
+ text: {
1425
+ type: String,
1426
+ required: !0
1427
+ },
1428
+ appendSpace: {
1429
+ type: Boolean,
1430
+ default: !1
1431
+ },
1432
+ hardBreak: {
1433
+ type: Boolean,
1434
+ default: !1
1435
+ }
1436
+ },
1437
+ setup(e) {
1438
+ return (s, n) => (v(), A(qe, null, [
1439
+ De(he(e.text), 1),
1440
+ e.appendSpace ? (v(), A("span", ct, " ")) : se("", !0),
1441
+ e.hardBreak ? (v(), A("br", pt)) : se("", !0)
1442
+ ], 64));
1443
+ }
1444
+ }), gt = {};
1445
+ function ht(e, s) {
1446
+ return v(), A("span", null, [
1447
+ R(e.$slots, "default")
1448
+ ]);
1449
+ }
1450
+ const ft = /* @__PURE__ */ q(gt, [["render", ht]]);
1451
+ const wt = {};
1452
+ function vt(e, s) {
1453
+ return v(), A("p", null, [
1454
+ R(e.$slots, "default", {}, void 0, !0)
1455
+ ]);
1456
+ }
1457
+ const kt = /* @__PURE__ */ q(wt, [["render", vt], ["__scopeId", "data-v-7b54f530"]]), yt = /* @__PURE__ */ T({
1458
+ __name: "List",
1459
+ props: {
1460
+ isOrdered: {
1461
+ type: Boolean,
1462
+ default: !1
1463
+ },
1464
+ hasTaskItems: {
1465
+ type: Boolean,
1466
+ default: !1
1467
+ }
1468
+ },
1469
+ setup(e) {
1470
+ const n = e.isOrdered ? "ol" : "ul";
1471
+ return (u, m) => (v(), P(N(O(n)), {
1472
+ class: ge({ "has-task-items": e.hasTaskItems })
1473
+ }, {
1474
+ default: H(() => [
1475
+ R(u.$slots, "default", {}, void 0, !0)
1476
+ ]),
1477
+ _: 3
1478
+ }, 8, ["class"]));
1479
+ }
1480
+ });
1481
+ const bt = /* @__PURE__ */ q(yt, [["__scopeId", "data-v-7555911f"]]);
1482
+ const _t = {};
1483
+ function xt(e, s) {
1484
+ return v(), A("li", null, [
1485
+ R(e.$slots, "default", {}, void 0, !0)
1486
+ ]);
1487
+ }
1488
+ const St = /* @__PURE__ */ q(_t, [["render", xt], ["__scopeId", "data-v-cf238e78"]]), At = ["href", "title"], qt = /* @__PURE__ */ T({
1489
+ __name: "Link",
1490
+ props: {
1491
+ href: {
1492
+ type: String,
1493
+ required: !0
1494
+ },
1495
+ title: {
1496
+ type: String,
1497
+ default: ""
1498
+ }
1499
+ },
1500
+ setup(e) {
1501
+ return (s, n) => (v(), A("a", {
1502
+ href: e.href,
1503
+ rel: "noreferrer noopener nofollow",
1504
+ title: e.title
1505
+ }, [
1506
+ R(s.$slots, "default", {}, void 0, !0)
1507
+ ], 8, At));
1508
+ }
1509
+ });
1510
+ const Dt = /* @__PURE__ */ q(qt, [["__scopeId", "data-v-0f033d16"]]), Rt = {
1511
+ blockquote: Ee,
1512
+ code: Me,
1513
+ code_block: Ne,
1514
+ emphasis: He,
1515
+ heading: Ue,
1516
+ image: Qe,
1517
+ break: Ze,
1518
+ link: Dt,
1519
+ list: bt,
1520
+ list_item: St,
1521
+ paragraph: kt,
1522
+ strikethrough: tt,
1523
+ table: it,
1524
+ table_header: pe,
1525
+ table_row: pe,
1526
+ table_cell: lt,
1527
+ task_checkbox: ut,
1528
+ text: mt,
1529
+ text_block: ft
1530
+ }, de = [];
1531
+ function Ft(e) {
1532
+ de.indexOf(e) === -1 && (de.push(e), console.warn(`[DocumentViewer] Unable to render an unknown node type "${e}"`));
1533
+ }
1534
+ function re(e, s) {
1535
+ return e.map((n, u) => {
1536
+ var p;
1537
+ if (!n)
1538
+ return null;
1539
+ const {
1540
+ type: m,
1541
+ children: g,
1542
+ ...w
1543
+ } = n, l = Rt[n.type];
1544
+ if (!l)
1545
+ return Ft(m), null;
1546
+ if (Te(n) && (n.section = E.header), Ge(n)) {
1547
+ const y = (p = n.children) == null ? void 0 : p.some((D) => {
1548
+ var C;
1549
+ return (C = D.children) == null ? void 0 : C.some((G) => {
1550
+ var I;
1551
+ return (I = G.children) == null ? void 0 : I.some((M) => M.type === "task_checkbox");
1552
+ });
1553
+ });
1554
+ return ee(l, te({
1555
+ hasTaskItems: y
1556
+ }, w, {
1557
+ parent: s
1558
+ }), {
1559
+ default: () => g && re(g, n)
1560
+ });
1561
+ }
1562
+ return (n == null ? void 0 : n.type) === "code_block" ? ee(l, te(w, {
1563
+ lines: g,
1564
+ isSingleLine: (g == null ? void 0 : g.length) && g.length === 1,
1565
+ codeBlockIndex: u
1566
+ }), null) : ee(l, te(w, {
1567
+ parent: s
1568
+ }), {
1569
+ default: () => g && re(g, n)
1570
+ });
1571
+ });
1572
+ }
1573
+ const Tt = {
1574
+ error: "Error: Markdown content missing"
1575
+ }, Ct = {
1576
+ documentViewer: Tt
1577
+ };
1578
+ function jt() {
1579
+ return {
1580
+ i18n: Re("en-us", Ct),
1581
+ i18nT: Fe
1582
+ // Translation component <i18n-t>
1583
+ };
1584
+ }
1585
+ function Gt() {
1586
+ return {
1587
+ hasRequiredProps: (s, n) => {
1588
+ let u = !0;
1589
+ return s.forEach((m) => {
1590
+ n.forEach((g) => {
1591
+ m[g] || (u = !1);
1592
+ });
1593
+ }), u;
1594
+ }
1595
+ };
1596
+ }
1597
+ const Lt = {
1598
+ useI18n: jt,
1599
+ useUtilities: Gt
1600
+ };
1601
+ function $t(e, s = "") {
1602
+ return e.toLowerCase().trim().replace(/ /g, "-").replace(/[^\w-]+/g, "") + s;
1603
+ }
1604
+ function ve(e, s = /* @__PURE__ */ new Map()) {
1605
+ if (!e)
1606
+ return e;
1607
+ const n = s || /* @__PURE__ */ new Map();
1608
+ return e.map((u) => je(u) ? Et(u, s) : (u.children && (u.children = ve(u.children, n)), u));
1609
+ }
1610
+ function Et(e, s, n = "doc-heading-") {
1611
+ var y;
1612
+ const u = (y = e.children) == null ? void 0 : y[0], m = `level-${e.level}`, g = Ce(u) && u.text || m, w = s.get(g);
1613
+ s.set(g, (w || 0) + 1);
1614
+ const l = w && w > 1 ? `-${w}` : "", p = n + $t(g, l);
1615
+ return {
1616
+ ...e,
1617
+ slug: p
1618
+ };
1619
+ }
1620
+ const Pt = {
1621
+ class: "document-viewer",
1622
+ "data-testid": "document-viewer"
1623
+ }, It = {
1624
+ key: 1,
1625
+ "data-testid": "document-viewer-error"
1626
+ }, Mt = /* @__PURE__ */ T({
1627
+ __name: "DocumentViewer",
1628
+ props: {
1629
+ document: {
1630
+ type: Object,
1631
+ required: !0
1632
+ }
1633
+ },
1634
+ setup(e) {
1635
+ var l;
1636
+ const s = e, { i18n: n } = Lt.useI18n(), u = (p) => !p || Object.keys(p).length === 0 && p.constructor === Object, m = ne(() => !u(s.document)), g = ve((l = s.document) == null ? void 0 : l.children), w = () => {
1637
+ var p;
1638
+ return (p = s.document) != null && p.children ? re(g) : null;
1639
+ };
1640
+ return (p, y) => (v(), A("div", Pt, [
1641
+ m.value ? (v(), P(w, { key: 0 })) : (v(), A("div", It, he(O(n).t("documentViewer.error")), 1))
1642
+ ]));
1643
+ }
1644
+ });
1645
+ const zt = /* @__PURE__ */ q(Mt, [["__scopeId", "data-v-1ab71c85"]]);
4
1646
  export {
5
- i as TableCellAlign,
6
- o as TableRowSection,
7
- l as addSlug,
8
- t as addUniqueHeadingSlugs,
9
- g as default,
10
- n as isHeadingNode,
11
- r as isListNode,
12
- u as isTableHeaderNode,
13
- T as isTextNode,
14
- b as toSlug
1647
+ X as TableCellAlign,
1648
+ E as TableRowSection,
1649
+ Et as addSlug,
1650
+ ve as addUniqueHeadingSlugs,
1651
+ zt as default,
1652
+ je as isHeadingNode,
1653
+ Ge as isListNode,
1654
+ Te as isTableHeaderNode,
1655
+ Ce as isTextNode,
1656
+ $t as toSlug
15
1657
  };