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