@kong-ui-public/document-viewer 2.0.16-pr.1027.e2f9bddd.0 → 2.0.16-pr.1032.5c10e477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-viewer.es.js +587 -577
- package/dist/document-viewer.umd.js +41 -4
- package/dist/prism-bash.min-vAvTx02J.js +7 -0
- package/dist/prism-css.min-T5ysc1kX.js +7 -0
- package/dist/prism-docker.min-8pzECyO2.js +22 -0
- package/dist/prism-go.min-uppVtd_Y.js +1 -0
- package/dist/prism-http.min-yMXrS1l9.js +23 -0
- package/dist/prism-javascript.min-hvuJDaiR.js +8 -0
- package/dist/prism-jq.min-EXJzRhH-.js +8 -0
- package/dist/prism-json.min-1zfY9gEI.js +1 -0
- package/dist/prism-log.min-c8dXT1vB.js +1 -0
- package/dist/prism-lua.min-GpAHgnCN.js +1 -0
- package/dist/prism-makefile.min-XKfdqVzq.js +1 -0
- package/dist/prism-markdown.min-hV2SE6LK.js +63 -0
- package/dist/prism-python.min-5aoERcK6.js +1 -0
- package/dist/prism-regex.min-Ej1kQav2.js +4 -0
- package/dist/prism-rest.min-kotzRXWB.js +1 -0
- package/dist/prism-rust.min-I56KUKDO.js +9 -0
- package/dist/prism-scss.min-Als0FLXB.js +1 -0
- package/dist/prism-sql.min-pOHT8XZf.js +1 -0
- package/dist/prism-typescript.min-c31ffb60.js +5 -0
- package/dist/prism-xml-doc.min-g6asX3wp.js +7 -0
- package/dist/prism-yaml.min-qeUGcluq.js +28 -0
- package/dist/style.css +1 -1
- package/dist/types/components/nodes/CodeBlock.vue.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,48 +1,43 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { createI18n as
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
return (
|
|
1
|
+
import { openBlock as _, createElementBlock as $, renderSlot as S, defineComponent as T, ref as ge, computed as ne, watch as xe, resolveComponent as ke, createBlock as q, resolveDynamicComponent as U, unref as H, withCtx as j, createElementVNode as we, normalizeClass as fe, Fragment as Fe, createTextVNode as $e, toDisplayString as pe, createCommentVNode as le, createVNode as ee, mergeProps as te } from "vue";
|
|
2
|
+
import { createI18n as Ae, Translation as Se } from "@kong-ui-public/i18n";
|
|
3
|
+
var O = /* @__PURE__ */ ((t) => (t.header = "header", t.body = "body", t.footer = "footer", t))(O || {}), K = /* @__PURE__ */ ((t) => (t.left = "left", t.center = "center", t.right = "right", t))(K || {});
|
|
4
|
+
function Ee(t) {
|
|
5
|
+
return (t == null ? void 0 : t.type) === "table_header";
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
return (
|
|
7
|
+
function Te(t) {
|
|
8
|
+
return (t == null ? void 0 : t.type) === "text";
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return (
|
|
10
|
+
function Ie(t) {
|
|
11
|
+
return (t == null ? void 0 : t.type) === "heading";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return (
|
|
13
|
+
function Ce(t) {
|
|
14
|
+
return (t == null ? void 0 : t.type) === "list";
|
|
15
15
|
}
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
for (const [
|
|
19
|
-
|
|
20
|
-
return
|
|
16
|
+
const A = (t, u) => {
|
|
17
|
+
const n = t.__vccOpts || t;
|
|
18
|
+
for (const [l, g] of u)
|
|
19
|
+
n[l] = g;
|
|
20
|
+
return n;
|
|
21
21
|
}, Le = {};
|
|
22
|
-
function
|
|
23
|
-
return
|
|
24
|
-
|
|
22
|
+
function Be(t, u) {
|
|
23
|
+
return _(), $("blockquote", null, [
|
|
24
|
+
S(t.$slots, "default", {}, void 0, !0)
|
|
25
25
|
]);
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
function
|
|
29
|
-
return
|
|
30
|
-
|
|
27
|
+
const Pe = /* @__PURE__ */ A(Le, [["render", Be], ["__scopeId", "data-v-afdbfde6"]]), De = {};
|
|
28
|
+
function Oe(t, u) {
|
|
29
|
+
return _(), $("code", null, [
|
|
30
|
+
S(t.$slots, "default", {}, void 0, !0)
|
|
31
31
|
]);
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const qe = /* @__PURE__ */ A(De, [["render", Oe], ["__scopeId", "data-v-cbde41ab"]]);
|
|
34
34
|
var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function Me(t) {
|
|
36
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
(function(
|
|
40
|
-
var s = { core: { meta: { path: "components/prism-core.js", option: "mandatory" }, core: "Core" }, themes: { meta: { path: "themes/{id}.css", link: "index.html?theme={id}", exclusive: !0 }, prism: { title: "Default", option: "default" }, "prism-dark": "Dark", "prism-funky": "Funky", "prism-okaidia": { title: "Okaidia", owner: "ocodia" }, "prism-twilight": { title: "Twilight", owner: "remybach" }, "prism-coy": { title: "Coy", owner: "tshedor" }, "prism-solarizedlight": { title: "Solarized Light", owner: "hectormatos2011 " }, "prism-tomorrow": { title: "Tomorrow Night", owner: "Rosey" } }, languages: { meta: { path: "components/prism-{id}", noCSS: !0, examplesPath: "examples/prism-{id}", addCheckAll: !0 }, markup: { title: "Markup", alias: ["html", "xml", "svg", "mathml", "ssml", "atom", "rss"], aliasTitles: { html: "HTML", xml: "XML", svg: "SVG", mathml: "MathML", ssml: "SSML", atom: "Atom", rss: "RSS" }, option: "default" }, css: { title: "CSS", option: "default", modify: "markup" }, clike: { title: "C-like", option: "default" }, javascript: { title: "JavaScript", require: "clike", modify: "markup", optional: "regex", alias: "js", option: "default" }, abap: { title: "ABAP", owner: "dellagustin" }, abnf: { title: "ABNF", owner: "RunDevelopment" }, actionscript: { title: "ActionScript", require: "javascript", modify: "markup", owner: "Golmote" }, ada: { title: "Ada", owner: "Lucretia" }, agda: { title: "Agda", owner: "xy-ren" }, al: { title: "AL", owner: "RunDevelopment" }, antlr4: { title: "ANTLR4", alias: "g4", owner: "RunDevelopment" }, apacheconf: { title: "Apache Configuration", owner: "GuiTeK" }, apex: { title: "Apex", require: ["clike", "sql"], owner: "RunDevelopment" }, apl: { title: "APL", owner: "ngn" }, applescript: { title: "AppleScript", owner: "Golmote" }, aql: { title: "AQL", owner: "RunDevelopment" }, arduino: { title: "Arduino", require: "cpp", alias: "ino", owner: "dkern" }, arff: { title: "ARFF", owner: "Golmote" }, armasm: { title: "ARM Assembly", alias: "arm-asm", owner: "RunDevelopment" }, arturo: { title: "Arturo", alias: "art", optional: ["bash", "css", "javascript", "markup", "markdown", "sql"], owner: "drkameleon" }, asciidoc: { alias: "adoc", title: "AsciiDoc", owner: "Golmote" }, aspnet: { title: "ASP.NET (C#)", require: ["markup", "csharp"], owner: "nauzilus" }, asm6502: { title: "6502 Assembly", owner: "kzurawel" }, asmatmel: { title: "Atmel AVR Assembly", owner: "cerkit" }, autohotkey: { title: "AutoHotkey", owner: "aviaryan" }, autoit: { title: "AutoIt", owner: "Golmote" }, avisynth: { title: "AviSynth", alias: "avs", owner: "Zinfidel" }, "avro-idl": { title: "Avro IDL", alias: "avdl", owner: "RunDevelopment" }, awk: { title: "AWK", alias: "gawk", aliasTitles: { gawk: "GAWK" }, owner: "RunDevelopment" }, bash: { title: "Bash", alias: ["sh", "shell"], aliasTitles: { sh: "Shell", shell: "Shell" }, owner: "zeitgeist87" }, basic: { title: "BASIC", owner: "Golmote" }, batch: { title: "Batch", owner: "Golmote" }, bbcode: { title: "BBcode", alias: "shortcode", aliasTitles: { shortcode: "Shortcode" }, owner: "RunDevelopment" }, bbj: { title: "BBj", owner: "hyyan" }, bicep: { title: "Bicep", owner: "johnnyreilly" }, birb: { title: "Birb", require: "clike", owner: "Calamity210" }, bison: { title: "Bison", require: "c", owner: "Golmote" }, bnf: { title: "BNF", alias: "rbnf", aliasTitles: { rbnf: "RBNF" }, owner: "RunDevelopment" }, bqn: { title: "BQN", owner: "yewscion" }, brainfuck: { title: "Brainfuck", owner: "Golmote" }, brightscript: { title: "BrightScript", owner: "RunDevelopment" }, bro: { title: "Bro", owner: "wayward710" }, bsl: { title: "BSL (1C:Enterprise)", alias: "oscript", aliasTitles: { oscript: "OneScript" }, owner: "Diversus23" }, c: { title: "C", require: "clike", owner: "zeitgeist87" }, csharp: { title: "C#", require: "clike", alias: ["cs", "dotnet"], owner: "mvalipour" }, cpp: { title: "C++", require: "c", owner: "zeitgeist87" }, cfscript: { title: "CFScript", require: "clike", alias: "cfc", owner: "mjclemente" }, chaiscript: { title: "ChaiScript", require: ["clike", "cpp"], owner: "RunDevelopment" }, cil: { title: "CIL", owner: "sbrl" }, cilkc: { title: "Cilk/C", require: "c", alias: "cilk-c", owner: "OpenCilk" }, cilkcpp: { title: "Cilk/C++", require: "cpp", alias: ["cilk-cpp", "cilk"], owner: "OpenCilk" }, clojure: { title: "Clojure", owner: "troglotit" }, cmake: { title: "CMake", owner: "mjrogozinski" }, cobol: { title: "COBOL", owner: "RunDevelopment" }, coffeescript: { title: "CoffeeScript", require: "javascript", alias: "coffee", owner: "R-osey" }, concurnas: { title: "Concurnas", alias: "conc", owner: "jasontatton" }, csp: { title: "Content-Security-Policy", owner: "ScottHelme" }, cooklang: { title: "Cooklang", owner: "ahue" }, coq: { title: "Coq", owner: "RunDevelopment" }, crystal: { title: "Crystal", require: "ruby", owner: "MakeNowJust" }, "css-extras": { title: "CSS Extras", require: "css", modify: "css", owner: "milesj" }, csv: { title: "CSV", owner: "RunDevelopment" }, cue: { title: "CUE", owner: "RunDevelopment" }, cypher: { title: "Cypher", owner: "RunDevelopment" }, d: { title: "D", require: "clike", owner: "Golmote" }, dart: { title: "Dart", require: "clike", owner: "Golmote" }, dataweave: { title: "DataWeave", owner: "machaval" }, dax: { title: "DAX", owner: "peterbud" }, dhall: { title: "Dhall", owner: "RunDevelopment" }, diff: { title: "Diff", owner: "uranusjr" }, django: { title: "Django/Jinja2", require: "markup-templating", alias: "jinja2", owner: "romanvm" }, "dns-zone-file": { title: "DNS zone file", owner: "RunDevelopment", alias: "dns-zone" }, docker: { title: "Docker", alias: "dockerfile", owner: "JustinBeckwith" }, dot: { title: "DOT (Graphviz)", alias: "gv", optional: "markup", owner: "RunDevelopment" }, ebnf: { title: "EBNF", owner: "RunDevelopment" }, editorconfig: { title: "EditorConfig", owner: "osipxd" }, eiffel: { title: "Eiffel", owner: "Conaclos" }, ejs: { title: "EJS", require: ["javascript", "markup-templating"], owner: "RunDevelopment", alias: "eta", aliasTitles: { eta: "Eta" } }, elixir: { title: "Elixir", owner: "Golmote" }, elm: { title: "Elm", owner: "zwilias" }, etlua: { title: "Embedded Lua templating", require: ["lua", "markup-templating"], owner: "RunDevelopment" }, erb: { title: "ERB", require: ["ruby", "markup-templating"], owner: "Golmote" }, erlang: { title: "Erlang", owner: "Golmote" }, "excel-formula": { title: "Excel Formula", alias: ["xlsx", "xls"], owner: "RunDevelopment" }, fsharp: { title: "F#", require: "clike", owner: "simonreynolds7" }, factor: { title: "Factor", owner: "catb0t" }, false: { title: "False", owner: "edukisto" }, "firestore-security-rules": { title: "Firestore security rules", require: "clike", owner: "RunDevelopment" }, flow: { title: "Flow", require: "javascript", owner: "Golmote" }, fortran: { title: "Fortran", owner: "Golmote" }, ftl: { title: "FreeMarker Template Language", require: "markup-templating", owner: "RunDevelopment" }, gml: { title: "GameMaker Language", alias: "gamemakerlanguage", require: "clike", owner: "LiarOnce" }, gap: { title: "GAP (CAS)", owner: "RunDevelopment" }, gcode: { title: "G-code", owner: "RunDevelopment" }, gdscript: { title: "GDScript", owner: "RunDevelopment" }, gedcom: { title: "GEDCOM", owner: "Golmote" }, gettext: { title: "gettext", alias: "po", owner: "RunDevelopment" }, gherkin: { title: "Gherkin", owner: "hason" }, git: { title: "Git", owner: "lgiraudel" }, glsl: { title: "GLSL", require: "c", owner: "Golmote" }, gn: { title: "GN", alias: "gni", owner: "RunDevelopment" }, "linker-script": { title: "GNU Linker Script", alias: "ld", owner: "RunDevelopment" }, go: { title: "Go", require: "clike", owner: "arnehormann" }, "go-module": { title: "Go module", alias: "go-mod", owner: "RunDevelopment" }, gradle: { title: "Gradle", require: "clike", owner: "zeabdelkhalek-badido18" }, graphql: { title: "GraphQL", optional: "markdown", owner: "Golmote" }, groovy: { title: "Groovy", require: "clike", owner: "robfletcher" }, haml: { title: "Haml", require: "ruby", optional: ["css", "css-extras", "coffeescript", "erb", "javascript", "less", "markdown", "scss", "textile"], owner: "Golmote" }, handlebars: { title: "Handlebars", require: "markup-templating", alias: ["hbs", "mustache"], aliasTitles: { mustache: "Mustache" }, owner: "Golmote" }, haskell: { title: "Haskell", alias: "hs", owner: "bholst" }, haxe: { title: "Haxe", require: "clike", optional: "regex", owner: "Golmote" }, hcl: { title: "HCL", owner: "outsideris" }, hlsl: { title: "HLSL", require: "c", owner: "RunDevelopment" }, hoon: { title: "Hoon", owner: "matildepark" }, http: { title: "HTTP", optional: ["csp", "css", "hpkp", "hsts", "javascript", "json", "markup", "uri"], owner: "danielgtaylor" }, hpkp: { title: "HTTP Public-Key-Pins", owner: "ScottHelme" }, hsts: { title: "HTTP Strict-Transport-Security", owner: "ScottHelme" }, ichigojam: { title: "IchigoJam", owner: "BlueCocoa" }, icon: { title: "Icon", owner: "Golmote" }, "icu-message-format": { title: "ICU Message Format", owner: "RunDevelopment" }, idris: { title: "Idris", alias: "idr", owner: "KeenS", require: "haskell" }, ignore: { title: ".ignore", owner: "osipxd", alias: ["gitignore", "hgignore", "npmignore"], aliasTitles: { gitignore: ".gitignore", hgignore: ".hgignore", npmignore: ".npmignore" } }, inform7: { title: "Inform 7", owner: "Golmote" }, ini: { title: "Ini", owner: "aviaryan" }, io: { title: "Io", owner: "AlesTsurko" }, j: { title: "J", owner: "Golmote" }, java: { title: "Java", require: "clike", owner: "sherblot" }, javadoc: { title: "JavaDoc", require: ["markup", "java", "javadoclike"], modify: "java", optional: "scala", owner: "RunDevelopment" }, javadoclike: { title: "JavaDoc-like", modify: ["java", "javascript", "php"], owner: "RunDevelopment" }, javastacktrace: { title: "Java stack trace", owner: "RunDevelopment" }, jexl: { title: "Jexl", owner: "czosel" }, jolie: { title: "Jolie", require: "clike", owner: "thesave" }, jq: { title: "JQ", owner: "RunDevelopment" }, jsdoc: { title: "JSDoc", require: ["javascript", "javadoclike", "typescript"], modify: "javascript", optional: ["actionscript", "coffeescript"], owner: "RunDevelopment" }, "js-extras": { title: "JS Extras", require: "javascript", modify: "javascript", optional: ["actionscript", "coffeescript", "flow", "n4js", "typescript"], owner: "RunDevelopment" }, json: { title: "JSON", alias: "webmanifest", aliasTitles: { webmanifest: "Web App Manifest" }, owner: "CupOfTea696" }, json5: { title: "JSON5", require: "json", owner: "RunDevelopment" }, jsonp: { title: "JSONP", require: "json", owner: "RunDevelopment" }, jsstacktrace: { title: "JS stack trace", owner: "sbrl" }, "js-templates": { title: "JS Templates", require: "javascript", modify: "javascript", optional: ["css", "css-extras", "graphql", "markdown", "markup", "sql"], owner: "RunDevelopment" }, julia: { title: "Julia", owner: "cdagnino" }, keepalived: { title: "Keepalived Configure", owner: "dev-itsheng" }, keyman: { title: "Keyman", owner: "mcdurdin" }, kotlin: { title: "Kotlin", alias: ["kt", "kts"], aliasTitles: { kts: "Kotlin Script" }, require: "clike", owner: "Golmote" }, kumir: { title: "KuMir (КуМир)", alias: "kum", owner: "edukisto" }, kusto: { title: "Kusto", owner: "RunDevelopment" }, latex: { title: "LaTeX", alias: ["tex", "context"], aliasTitles: { tex: "TeX", context: "ConTeXt" }, owner: "japborst" }, latte: { title: "Latte", require: ["clike", "markup-templating", "php"], owner: "nette" }, less: { title: "Less", require: "css", optional: "css-extras", owner: "Golmote" }, lilypond: { title: "LilyPond", require: "scheme", alias: "ly", owner: "RunDevelopment" }, liquid: { title: "Liquid", require: "markup-templating", owner: "cinhtau" }, lisp: { title: "Lisp", alias: ["emacs", "elisp", "emacs-lisp"], owner: "JuanCaicedo" }, livescript: { title: "LiveScript", owner: "Golmote" }, llvm: { title: "LLVM IR", owner: "porglezomp" }, log: { title: "Log file", optional: "javastacktrace", owner: "RunDevelopment" }, lolcode: { title: "LOLCODE", owner: "Golmote" }, lua: { title: "Lua", owner: "Golmote" }, magma: { title: "Magma (CAS)", owner: "RunDevelopment" }, makefile: { title: "Makefile", owner: "Golmote" }, markdown: { title: "Markdown", require: "markup", optional: "yaml", alias: "md", owner: "Golmote" }, "markup-templating": { title: "Markup templating", require: "markup", owner: "Golmote" }, mata: { title: "Mata", owner: "RunDevelopment" }, matlab: { title: "MATLAB", owner: "Golmote" }, maxscript: { title: "MAXScript", owner: "RunDevelopment" }, mel: { title: "MEL", owner: "Golmote" }, mermaid: { title: "Mermaid", owner: "RunDevelopment" }, metafont: { title: "METAFONT", owner: "LaeriExNihilo" }, mizar: { title: "Mizar", owner: "Golmote" }, mongodb: { title: "MongoDB", owner: "airs0urce", require: "javascript" }, monkey: { title: "Monkey", owner: "Golmote" }, moonscript: { title: "MoonScript", alias: "moon", owner: "RunDevelopment" }, n1ql: { title: "N1QL", owner: "TMWilds" }, n4js: { title: "N4JS", require: "javascript", optional: "jsdoc", alias: "n4jsd", owner: "bsmith-n4" }, "nand2tetris-hdl": { title: "Nand To Tetris HDL", owner: "stephanmax" }, naniscript: { title: "Naninovel Script", owner: "Elringus", alias: "nani" }, nasm: { title: "NASM", owner: "rbmj" }, neon: { title: "NEON", owner: "nette" }, nevod: { title: "Nevod", owner: "nezaboodka" }, nginx: { title: "nginx", owner: "volado" }, nim: { title: "Nim", owner: "Golmote" }, nix: { title: "Nix", owner: "Golmote" }, nsis: { title: "NSIS", owner: "idleberg" }, objectivec: { title: "Objective-C", require: "c", alias: "objc", owner: "uranusjr" }, ocaml: { title: "OCaml", owner: "Golmote" }, odin: { title: "Odin", owner: "edukisto" }, opencl: { title: "OpenCL", require: "c", modify: ["c", "cpp"], owner: "Milania1" }, openqasm: { title: "OpenQasm", alias: "qasm", owner: "RunDevelopment" }, oz: { title: "Oz", owner: "Golmote" }, parigp: { title: "PARI/GP", owner: "Golmote" }, parser: { title: "Parser", require: "markup", owner: "Golmote" }, pascal: { title: "Pascal", alias: "objectpascal", aliasTitles: { objectpascal: "Object Pascal" }, owner: "Golmote" }, pascaligo: { title: "Pascaligo", owner: "DefinitelyNotAGoat" }, psl: { title: "PATROL Scripting Language", owner: "bertysentry" }, pcaxis: { title: "PC-Axis", alias: "px", owner: "RunDevelopment" }, peoplecode: { title: "PeopleCode", alias: "pcode", owner: "RunDevelopment" }, perl: { title: "Perl", owner: "Golmote" }, php: { title: "PHP", require: "markup-templating", owner: "milesj" }, phpdoc: { title: "PHPDoc", require: ["php", "javadoclike"], modify: "php", owner: "RunDevelopment" }, "php-extras": { title: "PHP Extras", require: "php", modify: "php", owner: "milesj" }, "plant-uml": { title: "PlantUML", alias: "plantuml", owner: "RunDevelopment" }, plsql: { title: "PL/SQL", require: "sql", owner: "Golmote" }, powerquery: { title: "PowerQuery", alias: ["pq", "mscript"], owner: "peterbud" }, powershell: { title: "PowerShell", owner: "nauzilus" }, processing: { title: "Processing", require: "clike", owner: "Golmote" }, prolog: { title: "Prolog", owner: "Golmote" }, promql: { title: "PromQL", owner: "arendjr" }, properties: { title: ".properties", owner: "Golmote" }, protobuf: { title: "Protocol Buffers", require: "clike", owner: "just-boris" }, pug: { title: "Pug", require: ["markup", "javascript"], optional: ["coffeescript", "ejs", "handlebars", "less", "livescript", "markdown", "scss", "stylus", "twig"], owner: "Golmote" }, puppet: { title: "Puppet", owner: "Golmote" }, pure: { title: "Pure", optional: ["c", "cpp", "fortran"], owner: "Golmote" }, purebasic: { title: "PureBasic", require: "clike", alias: "pbfasm", owner: "HeX0R101" }, purescript: { title: "PureScript", require: "haskell", alias: "purs", owner: "sriharshachilakapati" }, python: { title: "Python", alias: "py", owner: "multipetros" }, qsharp: { title: "Q#", require: "clike", alias: "qs", owner: "fedonman" }, q: { title: "Q (kdb+ database)", owner: "Golmote" }, qml: { title: "QML", require: "javascript", owner: "RunDevelopment" }, qore: { title: "Qore", require: "clike", owner: "temnroegg" }, r: { title: "R", owner: "Golmote" }, racket: { title: "Racket", require: "scheme", alias: "rkt", owner: "RunDevelopment" }, cshtml: { title: "Razor C#", alias: "razor", require: ["markup", "csharp"], optional: ["css", "css-extras", "javascript", "js-extras"], owner: "RunDevelopment" }, jsx: { title: "React JSX", require: ["markup", "javascript"], optional: ["jsdoc", "js-extras", "js-templates"], owner: "vkbansal" }, tsx: { title: "React TSX", require: ["jsx", "typescript"] }, reason: { title: "Reason", require: "clike", owner: "Golmote" }, regex: { title: "Regex", owner: "RunDevelopment" }, rego: { title: "Rego", owner: "JordanSh" }, renpy: { title: "Ren'py", alias: "rpy", owner: "HyuchiaDiego" }, rescript: { title: "ReScript", alias: "res", owner: "vmarcosp" }, rest: { title: "reST (reStructuredText)", owner: "Golmote" }, rip: { title: "Rip", owner: "ravinggenius" }, roboconf: { title: "Roboconf", owner: "Golmote" }, robotframework: { title: "Robot Framework", alias: "robot", owner: "RunDevelopment" }, ruby: { title: "Ruby", require: "clike", alias: "rb", owner: "samflores" }, rust: { title: "Rust", owner: "Golmote" }, sas: { title: "SAS", optional: ["groovy", "lua", "sql"], owner: "Golmote" }, sass: { title: "Sass (Sass)", require: "css", optional: "css-extras", owner: "Golmote" }, scss: { title: "Sass (SCSS)", require: "css", optional: "css-extras", owner: "MoOx" }, scala: { title: "Scala", require: "java", owner: "jozic" }, scheme: { title: "Scheme", owner: "bacchus123" }, "shell-session": { title: "Shell session", require: "bash", alias: ["sh-session", "shellsession"], owner: "RunDevelopment" }, smali: { title: "Smali", owner: "RunDevelopment" }, smalltalk: { title: "Smalltalk", owner: "Golmote" }, smarty: { title: "Smarty", require: "markup-templating", optional: "php", owner: "Golmote" }, sml: { title: "SML", alias: "smlnj", aliasTitles: { smlnj: "SML/NJ" }, owner: "RunDevelopment" }, solidity: { title: "Solidity (Ethereum)", alias: "sol", require: "clike", owner: "glachaud" }, "solution-file": { title: "Solution file", alias: "sln", owner: "RunDevelopment" }, soy: { title: "Soy (Closure Template)", require: "markup-templating", owner: "Golmote" }, sparql: { title: "SPARQL", require: "turtle", owner: "Triply-Dev", alias: "rq" }, "splunk-spl": { title: "Splunk SPL", owner: "RunDevelopment" }, sqf: { title: "SQF: Status Quo Function (Arma 3)", require: "clike", owner: "RunDevelopment" }, sql: { title: "SQL", owner: "multipetros" }, squirrel: { title: "Squirrel", require: "clike", owner: "RunDevelopment" }, stan: { title: "Stan", owner: "RunDevelopment" }, stata: { title: "Stata Ado", require: ["mata", "java", "python"], owner: "RunDevelopment" }, iecst: { title: "Structured Text (IEC 61131-3)", owner: "serhioromano" }, stylus: { title: "Stylus", owner: "vkbansal" }, supercollider: { title: "SuperCollider", alias: "sclang", owner: "RunDevelopment" }, swift: { title: "Swift", owner: "chrischares" }, systemd: { title: "Systemd configuration file", owner: "RunDevelopment" }, "t4-templating": { title: "T4 templating", owner: "RunDevelopment" }, "t4-cs": { title: "T4 Text Templates (C#)", require: ["t4-templating", "csharp"], alias: "t4", owner: "RunDevelopment" }, "t4-vb": { title: "T4 Text Templates (VB)", require: ["t4-templating", "vbnet"], owner: "RunDevelopment" }, tap: { title: "TAP", owner: "isaacs", require: "yaml" }, tcl: { title: "Tcl", owner: "PeterChaplin" }, tt2: { title: "Template Toolkit 2", require: ["clike", "markup-templating"], owner: "gflohr" }, textile: { title: "Textile", require: "markup", optional: "css", owner: "Golmote" }, toml: { title: "TOML", owner: "RunDevelopment" }, tremor: { title: "Tremor", alias: ["trickle", "troy"], owner: "darach", aliasTitles: { trickle: "trickle", troy: "troy" } }, turtle: { title: "Turtle", alias: "trig", aliasTitles: { trig: "TriG" }, owner: "jakubklimek" }, twig: { title: "Twig", require: "markup-templating", owner: "brandonkelly" }, typescript: { title: "TypeScript", require: "javascript", optional: "js-templates", alias: "ts", owner: "vkbansal" }, typoscript: { title: "TypoScript", alias: "tsconfig", aliasTitles: { tsconfig: "TSConfig" }, owner: "dkern" }, unrealscript: { title: "UnrealScript", alias: ["uscript", "uc"], owner: "RunDevelopment" }, uorazor: { title: "UO Razor Script", owner: "jaseowns" }, uri: { title: "URI", alias: "url", aliasTitles: { url: "URL" }, owner: "RunDevelopment" }, v: { title: "V", require: "clike", owner: "taggon" }, vala: { title: "Vala", require: "clike", optional: "regex", owner: "TemplarVolk" }, vbnet: { title: "VB.Net", require: "basic", owner: "Bigsby" }, velocity: { title: "Velocity", require: "markup", owner: "Golmote" }, verilog: { title: "Verilog", owner: "a-rey" }, vhdl: { title: "VHDL", owner: "a-rey" }, vim: { title: "vim", owner: "westonganger" }, "visual-basic": { title: "Visual Basic", alias: ["vb", "vba"], aliasTitles: { vba: "VBA" }, owner: "Golmote" }, warpscript: { title: "WarpScript", owner: "RunDevelopment" }, wasm: { title: "WebAssembly", owner: "Golmote" }, "web-idl": { title: "Web IDL", alias: "webidl", owner: "RunDevelopment" }, wgsl: { title: "WGSL", owner: "Dr4gonthree" }, wiki: { title: "Wiki markup", require: "markup", owner: "Golmote" }, wolfram: { title: "Wolfram language", alias: ["mathematica", "nb", "wl"], aliasTitles: { mathematica: "Mathematica", nb: "Mathematica Notebook" }, owner: "msollami" }, wren: { title: "Wren", owner: "clsource" }, xeora: { title: "Xeora", require: "markup", alias: "xeoracube", aliasTitles: { xeoracube: "XeoraCube" }, owner: "freakmaxi" }, "xml-doc": { title: "XML doc (.net)", require: "markup", modify: ["csharp", "fsharp", "vbnet"], owner: "RunDevelopment" }, xojo: { title: "Xojo (REALbasic)", owner: "Golmote" }, xquery: { title: "XQuery", require: "markup", owner: "Golmote" }, yaml: { title: "YAML", alias: "yml", owner: "hason" }, yang: { title: "YANG", owner: "RunDevelopment" }, zig: { title: "Zig", owner: "RunDevelopment" } }, plugins: { meta: { path: "plugins/{id}/prism-{id}", link: "plugins/{id}/" }, "line-highlight": { title: "Line Highlight", description: "Highlights specific lines and/or line ranges." }, "line-numbers": { title: "Line Numbers", description: "Line number at the beginning of code lines.", owner: "kuba-kubula" }, "show-invisibles": { title: "Show Invisibles", description: "Show hidden characters such as tabs and line breaks.", optional: ["autolinker", "data-uri-highlight"] }, autolinker: { title: "Autolinker", description: "Converts URLs and emails in code to clickable links. Parses Markdown links in comments." }, wpd: { title: "WebPlatform Docs", description: 'Makes tokens link to <a href="https://webplatform.github.io/docs/">WebPlatform.org documentation</a>. The links open in a new tab.' }, "custom-class": { title: "Custom Class", description: "This plugin allows you to prefix Prism's default classes (<code>.comment</code> can become <code>.namespace--comment</code>) or replace them with your defined ones (like <code>.editor__comment</code>). You can even add new classes.", owner: "dvkndn", noCSS: !0 }, "file-highlight": { title: "File Highlight", description: "Fetch external files and highlight them with Prism. Used on the Prism website itself.", noCSS: !0 }, "show-language": { title: "Show Language", description: "Display the highlighted language in code blocks (inline code does not show the label).", owner: "nauzilus", noCSS: !0, require: "toolbar" }, "jsonp-highlight": { title: "JSONP Highlight", description: "Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).", noCSS: !0, owner: "nauzilus" }, "highlight-keywords": { title: "Highlight Keywords", description: "Adds special CSS classes for each keyword for fine-grained highlighting.", owner: "vkbansal", noCSS: !0 }, "remove-initial-line-feed": { title: "Remove initial line feed", description: "Removes the initial line feed in code blocks.", owner: "Golmote", noCSS: !0 }, "inline-color": { title: "Inline color", description: "Adds a small inline preview for colors in style sheets.", require: "css-extras", owner: "RunDevelopment" }, previewers: { title: "Previewers", description: "Previewers for angles, colors, gradients, easing and time.", require: "css-extras", owner: "Golmote" }, autoloader: { title: "Autoloader", description: "Automatically loads the needed languages to highlight the code blocks.", owner: "Golmote", noCSS: !0 }, "keep-markup": { title: "Keep Markup", description: "Prevents custom markup from being dropped out during highlighting.", owner: "Golmote", optional: "normalize-whitespace", noCSS: !0 }, "command-line": { title: "Command Line", description: "Display a command line with a prompt and, optionally, the output/response from the commands.", owner: "chriswells0" }, "unescaped-markup": { title: "Unescaped Markup", description: "Write markup without having to escape anything." }, "normalize-whitespace": { title: "Normalize Whitespace", description: "Supports multiple operations to normalize whitespace in code blocks.", owner: "zeitgeist87", optional: "unescaped-markup", noCSS: !0 }, "data-uri-highlight": { title: "Data-URI Highlight", description: "Highlights data-URI contents.", owner: "Golmote", noCSS: !0 }, toolbar: { title: "Toolbar", description: "Attach a toolbar for plugins to easily register buttons on the top of a code block.", owner: "mAAdhaTTah" }, "copy-to-clipboard": { title: "Copy to Clipboard Button", description: "Add a button that copies the code block to the clipboard when clicked.", owner: "mAAdhaTTah", require: "toolbar", noCSS: !0 }, "download-button": { title: "Download Button", description: "A button in the toolbar of a code block adding a convenient way to download a code file.", owner: "Golmote", require: "toolbar", noCSS: !0 }, "match-braces": { title: "Match braces", description: "Highlights matching braces.", owner: "RunDevelopment" }, "diff-highlight": { title: "Diff Highlight", description: "Highlights the code inside diff blocks.", owner: "RunDevelopment", require: "diff" }, "filter-highlight-all": { title: "Filter highlightAll", description: "Filters the elements the <code>highlightAll</code> and <code>highlightAllUnder</code> methods actually highlight.", owner: "RunDevelopment", noCSS: !0 }, treeview: { title: "Treeview", description: "A language with special styles to highlight file system tree structures.", owner: "Golmote" } } };
|
|
41
|
-
e.exports && (e.exports = s);
|
|
42
|
-
})(fe);
|
|
43
|
-
var ce = fe.exports, we = { exports: {} };
|
|
44
|
-
(function(e) {
|
|
45
|
-
var s = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
38
|
+
var he = { exports: {} };
|
|
39
|
+
(function(t) {
|
|
40
|
+
var u = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
46
41
|
/**
|
|
47
42
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
48
43
|
*
|
|
@@ -51,8 +46,8 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
51
46
|
* @namespace
|
|
52
47
|
* @public
|
|
53
48
|
*/
|
|
54
|
-
var
|
|
55
|
-
var
|
|
49
|
+
var n = function(l) {
|
|
50
|
+
var g = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, f = 0, v = {}, r = {
|
|
56
51
|
/**
|
|
57
52
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
58
53
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
@@ -74,7 +69,7 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
74
69
|
* @memberof Prism
|
|
75
70
|
* @public
|
|
76
71
|
*/
|
|
77
|
-
manual:
|
|
72
|
+
manual: l.Prism && l.Prism.manual,
|
|
78
73
|
/**
|
|
79
74
|
* By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
|
|
80
75
|
* `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
|
|
@@ -96,7 +91,7 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
96
91
|
* @memberof Prism
|
|
97
92
|
* @public
|
|
98
93
|
*/
|
|
99
|
-
disableWorkerMessageHandler:
|
|
94
|
+
disableWorkerMessageHandler: l.Prism && l.Prism.disableWorkerMessageHandler,
|
|
100
95
|
/**
|
|
101
96
|
* A namespace for utility methods.
|
|
102
97
|
*
|
|
@@ -107,8 +102,8 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
107
102
|
* @memberof Prism
|
|
108
103
|
*/
|
|
109
104
|
util: {
|
|
110
|
-
encode: function
|
|
111
|
-
return
|
|
105
|
+
encode: function a(e) {
|
|
106
|
+
return e instanceof h ? new h(e.type, a(e.content), e.alias) : Array.isArray(e) ? e.map(a) : e.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
112
107
|
},
|
|
113
108
|
/**
|
|
114
109
|
* Returns the name of the type of the given value.
|
|
@@ -126,8 +121,8 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
126
121
|
* type(String) === 'Function'
|
|
127
122
|
* type(/abc+/) === 'RegExp'
|
|
128
123
|
*/
|
|
129
|
-
type: function(
|
|
130
|
-
return Object.prototype.toString.call(
|
|
124
|
+
type: function(a) {
|
|
125
|
+
return Object.prototype.toString.call(a).slice(8, -1);
|
|
131
126
|
},
|
|
132
127
|
/**
|
|
133
128
|
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
@@ -135,8 +130,8 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
135
130
|
* @param {Object} obj
|
|
136
131
|
* @returns {number}
|
|
137
132
|
*/
|
|
138
|
-
objId: function(
|
|
139
|
-
return
|
|
133
|
+
objId: function(a) {
|
|
134
|
+
return a.__id || Object.defineProperty(a, "__id", { value: ++f }), a.__id;
|
|
140
135
|
},
|
|
141
136
|
/**
|
|
142
137
|
* Creates a deep clone of the given object.
|
|
@@ -148,30 +143,30 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
148
143
|
* @returns {T}
|
|
149
144
|
* @template T
|
|
150
145
|
*/
|
|
151
|
-
clone: function
|
|
152
|
-
|
|
153
|
-
var
|
|
154
|
-
switch (
|
|
146
|
+
clone: function a(e, s) {
|
|
147
|
+
s = s || {};
|
|
148
|
+
var i, o;
|
|
149
|
+
switch (r.util.type(e)) {
|
|
155
150
|
case "Object":
|
|
156
|
-
if (o =
|
|
157
|
-
return
|
|
158
|
-
|
|
159
|
-
{},
|
|
160
|
-
for (var d in
|
|
161
|
-
|
|
151
|
+
if (o = r.util.objId(e), s[o])
|
|
152
|
+
return s[o];
|
|
153
|
+
i = /** @type {Record<string, any>} */
|
|
154
|
+
{}, s[o] = i;
|
|
155
|
+
for (var d in e)
|
|
156
|
+
e.hasOwnProperty(d) && (i[d] = a(e[d], s));
|
|
162
157
|
return (
|
|
163
158
|
/** @type {any} */
|
|
164
|
-
|
|
159
|
+
i
|
|
165
160
|
);
|
|
166
161
|
case "Array":
|
|
167
|
-
return o =
|
|
162
|
+
return o = r.util.objId(e), s[o] ? s[o] : (i = [], s[o] = i, /** @type {Array} */
|
|
168
163
|
/** @type {any} */
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
e.forEach(function(p, c) {
|
|
165
|
+
i[c] = a(p, s);
|
|
171
166
|
}), /** @type {any} */
|
|
172
|
-
|
|
167
|
+
i);
|
|
173
168
|
default:
|
|
174
|
-
return
|
|
169
|
+
return e;
|
|
175
170
|
}
|
|
176
171
|
},
|
|
177
172
|
/**
|
|
@@ -182,12 +177,12 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
182
177
|
* @param {Element} element
|
|
183
178
|
* @returns {string}
|
|
184
179
|
*/
|
|
185
|
-
getLanguage: function(
|
|
186
|
-
for (;
|
|
187
|
-
var
|
|
188
|
-
if (
|
|
189
|
-
return
|
|
190
|
-
|
|
180
|
+
getLanguage: function(a) {
|
|
181
|
+
for (; a; ) {
|
|
182
|
+
var e = g.exec(a.className);
|
|
183
|
+
if (e)
|
|
184
|
+
return e[1].toLowerCase();
|
|
185
|
+
a = a.parentElement;
|
|
191
186
|
}
|
|
192
187
|
return "none";
|
|
193
188
|
},
|
|
@@ -198,8 +193,8 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
198
193
|
* @param {string} language
|
|
199
194
|
* @returns {void}
|
|
200
195
|
*/
|
|
201
|
-
setLanguage: function(
|
|
202
|
-
|
|
196
|
+
setLanguage: function(a, e) {
|
|
197
|
+
a.className = a.className.replace(RegExp(g, "gi"), ""), a.classList.add("language-" + e);
|
|
203
198
|
},
|
|
204
199
|
/**
|
|
205
200
|
* Returns the script element that is currently executing.
|
|
@@ -218,13 +213,13 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
218
213
|
);
|
|
219
214
|
try {
|
|
220
215
|
throw new Error();
|
|
221
|
-
} catch (
|
|
222
|
-
var
|
|
223
|
-
if (
|
|
224
|
-
var
|
|
225
|
-
for (var
|
|
226
|
-
if (
|
|
227
|
-
return
|
|
216
|
+
} catch (i) {
|
|
217
|
+
var a = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack) || [])[1];
|
|
218
|
+
if (a) {
|
|
219
|
+
var e = document.getElementsByTagName("script");
|
|
220
|
+
for (var s in e)
|
|
221
|
+
if (e[s].src == a)
|
|
222
|
+
return e[s];
|
|
228
223
|
}
|
|
229
224
|
return null;
|
|
230
225
|
}
|
|
@@ -248,16 +243,16 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
248
243
|
* @param {boolean} [defaultActivation=false]
|
|
249
244
|
* @returns {boolean}
|
|
250
245
|
*/
|
|
251
|
-
isActive: function(
|
|
252
|
-
for (var
|
|
253
|
-
var o =
|
|
254
|
-
if (o.contains(
|
|
246
|
+
isActive: function(a, e, s) {
|
|
247
|
+
for (var i = "no-" + e; a; ) {
|
|
248
|
+
var o = a.classList;
|
|
249
|
+
if (o.contains(e))
|
|
255
250
|
return !0;
|
|
256
|
-
if (o.contains(
|
|
251
|
+
if (o.contains(i))
|
|
257
252
|
return !1;
|
|
258
|
-
|
|
253
|
+
a = a.parentElement;
|
|
259
254
|
}
|
|
260
|
-
return !!
|
|
255
|
+
return !!s;
|
|
261
256
|
}
|
|
262
257
|
},
|
|
263
258
|
/**
|
|
@@ -271,10 +266,10 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
271
266
|
/**
|
|
272
267
|
* The grammar for plain, unformatted text.
|
|
273
268
|
*/
|
|
274
|
-
plain:
|
|
275
|
-
plaintext:
|
|
276
|
-
text:
|
|
277
|
-
txt:
|
|
269
|
+
plain: v,
|
|
270
|
+
plaintext: v,
|
|
271
|
+
text: v,
|
|
272
|
+
txt: v,
|
|
278
273
|
/**
|
|
279
274
|
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
280
275
|
*
|
|
@@ -303,11 +298,11 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
303
298
|
* 'color': /\b(?:red|green|blue)\b/
|
|
304
299
|
* });
|
|
305
300
|
*/
|
|
306
|
-
extend: function(
|
|
307
|
-
var
|
|
308
|
-
for (var
|
|
309
|
-
i
|
|
310
|
-
return
|
|
301
|
+
extend: function(a, e) {
|
|
302
|
+
var s = r.util.clone(r.languages[a]);
|
|
303
|
+
for (var i in e)
|
|
304
|
+
s[i] = e[i];
|
|
305
|
+
return s;
|
|
311
306
|
},
|
|
312
307
|
/**
|
|
313
308
|
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
@@ -384,31 +379,31 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
384
379
|
* @returns {Grammar} The new grammar object.
|
|
385
380
|
* @public
|
|
386
381
|
*/
|
|
387
|
-
insertBefore: function(
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
var o = a
|
|
391
|
-
for (var
|
|
392
|
-
if (o.hasOwnProperty(
|
|
393
|
-
if (
|
|
394
|
-
for (var c in
|
|
395
|
-
|
|
396
|
-
|
|
382
|
+
insertBefore: function(a, e, s, i) {
|
|
383
|
+
i = i || /** @type {any} */
|
|
384
|
+
r.languages;
|
|
385
|
+
var o = i[a], d = {};
|
|
386
|
+
for (var p in o)
|
|
387
|
+
if (o.hasOwnProperty(p)) {
|
|
388
|
+
if (p == e)
|
|
389
|
+
for (var c in s)
|
|
390
|
+
s.hasOwnProperty(c) && (d[c] = s[c]);
|
|
391
|
+
s.hasOwnProperty(p) || (d[p] = o[p]);
|
|
397
392
|
}
|
|
398
|
-
var
|
|
399
|
-
return a
|
|
400
|
-
|
|
393
|
+
var y = i[a];
|
|
394
|
+
return i[a] = d, r.languages.DFS(r.languages, function(w, P) {
|
|
395
|
+
P === y && w != a && (this[w] = d);
|
|
401
396
|
}), d;
|
|
402
397
|
},
|
|
403
398
|
// Traverse a language definition with Depth First Search
|
|
404
|
-
DFS: function
|
|
399
|
+
DFS: function a(e, s, i, o) {
|
|
405
400
|
o = o || {};
|
|
406
|
-
var d =
|
|
407
|
-
for (var
|
|
408
|
-
if (
|
|
409
|
-
|
|
410
|
-
var c =
|
|
411
|
-
|
|
401
|
+
var d = r.util.objId;
|
|
402
|
+
for (var p in e)
|
|
403
|
+
if (e.hasOwnProperty(p)) {
|
|
404
|
+
s.call(e, p, e[p], i || p);
|
|
405
|
+
var c = e[p], y = r.util.type(c);
|
|
406
|
+
y === "Object" && !o[d(c)] ? (o[d(c)] = !0, a(c, s, null, o)) : y === "Array" && !o[d(c)] && (o[d(c)] = !0, a(c, s, p, o));
|
|
412
407
|
}
|
|
413
408
|
}
|
|
414
409
|
},
|
|
@@ -425,8 +420,8 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
425
420
|
* @memberof Prism
|
|
426
421
|
* @public
|
|
427
422
|
*/
|
|
428
|
-
highlightAll: function(
|
|
429
|
-
|
|
423
|
+
highlightAll: function(a, e) {
|
|
424
|
+
r.highlightAllUnder(document, a, e);
|
|
430
425
|
},
|
|
431
426
|
/**
|
|
432
427
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -443,15 +438,15 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
443
438
|
* @memberof Prism
|
|
444
439
|
* @public
|
|
445
440
|
*/
|
|
446
|
-
highlightAllUnder: function(
|
|
447
|
-
var
|
|
448
|
-
callback:
|
|
449
|
-
container:
|
|
441
|
+
highlightAllUnder: function(a, e, s) {
|
|
442
|
+
var i = {
|
|
443
|
+
callback: s,
|
|
444
|
+
container: a,
|
|
450
445
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
451
446
|
};
|
|
452
|
-
|
|
453
|
-
for (var o = 0, d; d =
|
|
454
|
-
|
|
447
|
+
r.hooks.run("before-highlightall", i), i.elements = Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)), r.hooks.run("before-all-elements-highlight", i);
|
|
448
|
+
for (var o = 0, d; d = i.elements[o++]; )
|
|
449
|
+
r.highlightElement(d, e === !0, i.callback);
|
|
455
450
|
},
|
|
456
451
|
/**
|
|
457
452
|
* Highlights the code inside a single element.
|
|
@@ -481,39 +476,39 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
481
476
|
* @memberof Prism
|
|
482
477
|
* @public
|
|
483
478
|
*/
|
|
484
|
-
highlightElement: function(
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
var d =
|
|
488
|
-
d && d.nodeName.toLowerCase() === "pre" &&
|
|
489
|
-
var
|
|
490
|
-
element:
|
|
491
|
-
language:
|
|
479
|
+
highlightElement: function(a, e, s) {
|
|
480
|
+
var i = r.util.getLanguage(a), o = r.languages[i];
|
|
481
|
+
r.util.setLanguage(a, i);
|
|
482
|
+
var d = a.parentElement;
|
|
483
|
+
d && d.nodeName.toLowerCase() === "pre" && r.util.setLanguage(d, i);
|
|
484
|
+
var p = a.textContent, c = {
|
|
485
|
+
element: a,
|
|
486
|
+
language: i,
|
|
492
487
|
grammar: o,
|
|
493
|
-
code:
|
|
488
|
+
code: p
|
|
494
489
|
};
|
|
495
|
-
function
|
|
496
|
-
c.highlightedCode =
|
|
490
|
+
function y(P) {
|
|
491
|
+
c.highlightedCode = P, r.hooks.run("before-insert", c), c.element.innerHTML = c.highlightedCode, r.hooks.run("after-highlight", c), r.hooks.run("complete", c), s && s.call(c.element);
|
|
497
492
|
}
|
|
498
|
-
if (
|
|
499
|
-
|
|
493
|
+
if (r.hooks.run("before-sanity-check", c), d = c.element.parentElement, d && d.nodeName.toLowerCase() === "pre" && !d.hasAttribute("tabindex") && d.setAttribute("tabindex", "0"), !c.code) {
|
|
494
|
+
r.hooks.run("complete", c), s && s.call(c.element);
|
|
500
495
|
return;
|
|
501
496
|
}
|
|
502
|
-
if (
|
|
503
|
-
|
|
497
|
+
if (r.hooks.run("before-highlight", c), !c.grammar) {
|
|
498
|
+
y(r.util.encode(c.code));
|
|
504
499
|
return;
|
|
505
500
|
}
|
|
506
|
-
if (
|
|
507
|
-
var
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
},
|
|
501
|
+
if (e && l.Worker) {
|
|
502
|
+
var w = new Worker(r.filename);
|
|
503
|
+
w.onmessage = function(P) {
|
|
504
|
+
y(P.data);
|
|
505
|
+
}, w.postMessage(JSON.stringify({
|
|
511
506
|
language: c.language,
|
|
512
507
|
code: c.code,
|
|
513
508
|
immediateClose: !0
|
|
514
509
|
}));
|
|
515
510
|
} else
|
|
516
|
-
|
|
511
|
+
y(r.highlight(c.code, c.grammar, c.language));
|
|
517
512
|
},
|
|
518
513
|
/**
|
|
519
514
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -535,15 +530,15 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
535
530
|
* @example
|
|
536
531
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
537
532
|
*/
|
|
538
|
-
highlight: function(
|
|
539
|
-
var
|
|
540
|
-
code:
|
|
541
|
-
grammar:
|
|
542
|
-
language:
|
|
533
|
+
highlight: function(a, e, s) {
|
|
534
|
+
var i = {
|
|
535
|
+
code: a,
|
|
536
|
+
grammar: e,
|
|
537
|
+
language: s
|
|
543
538
|
};
|
|
544
|
-
if (
|
|
545
|
-
throw new Error('The language "' +
|
|
546
|
-
return
|
|
539
|
+
if (r.hooks.run("before-tokenize", i), !i.grammar)
|
|
540
|
+
throw new Error('The language "' + i.language + '" has no grammar.');
|
|
541
|
+
return i.tokens = r.tokenize(i.code, i.grammar), r.hooks.run("after-tokenize", i), h.stringify(r.util.encode(i.tokens), i.language);
|
|
547
542
|
},
|
|
548
543
|
/**
|
|
549
544
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -569,15 +564,15 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
569
564
|
* }
|
|
570
565
|
* });
|
|
571
566
|
*/
|
|
572
|
-
tokenize: function(
|
|
573
|
-
var
|
|
574
|
-
if (
|
|
575
|
-
for (var
|
|
576
|
-
|
|
577
|
-
delete
|
|
567
|
+
tokenize: function(a, e) {
|
|
568
|
+
var s = e.rest;
|
|
569
|
+
if (s) {
|
|
570
|
+
for (var i in s)
|
|
571
|
+
e[i] = s[i];
|
|
572
|
+
delete e.rest;
|
|
578
573
|
}
|
|
579
|
-
var o = new
|
|
580
|
-
return
|
|
574
|
+
var o = new L();
|
|
575
|
+
return B(o, o.head, a), C(a, o, e, o.head, 0), z(o);
|
|
581
576
|
},
|
|
582
577
|
/**
|
|
583
578
|
* @namespace
|
|
@@ -598,9 +593,9 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
598
593
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
599
594
|
* @public
|
|
600
595
|
*/
|
|
601
|
-
add: function(
|
|
602
|
-
var
|
|
603
|
-
|
|
596
|
+
add: function(a, e) {
|
|
597
|
+
var s = r.hooks.all;
|
|
598
|
+
s[a] = s[a] || [], s[a].push(e);
|
|
604
599
|
},
|
|
605
600
|
/**
|
|
606
601
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -611,135 +606,135 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
611
606
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
612
607
|
* @public
|
|
613
608
|
*/
|
|
614
|
-
run: function(
|
|
615
|
-
var
|
|
616
|
-
if (!(!
|
|
617
|
-
for (var
|
|
618
|
-
o(
|
|
609
|
+
run: function(a, e) {
|
|
610
|
+
var s = r.hooks.all[a];
|
|
611
|
+
if (!(!s || !s.length))
|
|
612
|
+
for (var i = 0, o; o = s[i++]; )
|
|
613
|
+
o(e);
|
|
619
614
|
}
|
|
620
615
|
},
|
|
621
|
-
Token:
|
|
616
|
+
Token: h
|
|
622
617
|
};
|
|
623
|
-
|
|
624
|
-
function
|
|
625
|
-
this.type =
|
|
618
|
+
l.Prism = r;
|
|
619
|
+
function h(a, e, s, i) {
|
|
620
|
+
this.type = a, this.content = e, this.alias = s, this.length = (i || "").length | 0;
|
|
626
621
|
}
|
|
627
|
-
|
|
628
|
-
if (typeof
|
|
629
|
-
return
|
|
630
|
-
if (Array.isArray(
|
|
631
|
-
var
|
|
632
|
-
return
|
|
633
|
-
|
|
634
|
-
}),
|
|
622
|
+
h.stringify = function a(e, s) {
|
|
623
|
+
if (typeof e == "string")
|
|
624
|
+
return e;
|
|
625
|
+
if (Array.isArray(e)) {
|
|
626
|
+
var i = "";
|
|
627
|
+
return e.forEach(function(y) {
|
|
628
|
+
i += a(y, s);
|
|
629
|
+
}), i;
|
|
635
630
|
}
|
|
636
631
|
var o = {
|
|
637
|
-
type:
|
|
638
|
-
content:
|
|
632
|
+
type: e.type,
|
|
633
|
+
content: a(e.content, s),
|
|
639
634
|
tag: "span",
|
|
640
|
-
classes: ["token",
|
|
635
|
+
classes: ["token", e.type],
|
|
641
636
|
attributes: {},
|
|
642
|
-
language:
|
|
643
|
-
}, d =
|
|
644
|
-
d && (Array.isArray(d) ? Array.prototype.push.apply(o.classes, d) : o.classes.push(d)),
|
|
645
|
-
var
|
|
637
|
+
language: s
|
|
638
|
+
}, d = e.alias;
|
|
639
|
+
d && (Array.isArray(d) ? Array.prototype.push.apply(o.classes, d) : o.classes.push(d)), r.hooks.run("wrap", o);
|
|
640
|
+
var p = "";
|
|
646
641
|
for (var c in o.attributes)
|
|
647
|
-
|
|
648
|
-
return "<" + o.tag + ' class="' + o.classes.join(" ") + '"' +
|
|
642
|
+
p += " " + c + '="' + (o.attributes[c] || "").replace(/"/g, """) + '"';
|
|
643
|
+
return "<" + o.tag + ' class="' + o.classes.join(" ") + '"' + p + ">" + o.content + "</" + o.tag + ">";
|
|
649
644
|
};
|
|
650
|
-
function
|
|
651
|
-
|
|
652
|
-
var o =
|
|
653
|
-
if (o &&
|
|
645
|
+
function k(a, e, s, i) {
|
|
646
|
+
a.lastIndex = e;
|
|
647
|
+
var o = a.exec(s);
|
|
648
|
+
if (o && i && o[1]) {
|
|
654
649
|
var d = o[1].length;
|
|
655
650
|
o.index += d, o[0] = o[0].slice(d);
|
|
656
651
|
}
|
|
657
652
|
return o;
|
|
658
653
|
}
|
|
659
|
-
function
|
|
660
|
-
for (var
|
|
661
|
-
if (!(!
|
|
662
|
-
var c =
|
|
654
|
+
function C(a, e, s, i, o, d) {
|
|
655
|
+
for (var p in s)
|
|
656
|
+
if (!(!s.hasOwnProperty(p) || !s[p])) {
|
|
657
|
+
var c = s[p];
|
|
663
658
|
c = Array.isArray(c) ? c : [c];
|
|
664
|
-
for (var
|
|
665
|
-
if (d && d.cause ==
|
|
659
|
+
for (var y = 0; y < c.length; ++y) {
|
|
660
|
+
if (d && d.cause == p + "," + y)
|
|
666
661
|
return;
|
|
667
|
-
var
|
|
668
|
-
if (
|
|
669
|
-
var
|
|
670
|
-
|
|
662
|
+
var w = c[y], P = w.inside, re = !!w.lookbehind, se = !!w.greedy, ve = w.alias;
|
|
663
|
+
if (se && !w.pattern.global) {
|
|
664
|
+
var _e = w.pattern.toString().match(/[imsuy]*$/)[0];
|
|
665
|
+
w.pattern = RegExp(w.pattern.source, _e + "g");
|
|
671
666
|
}
|
|
672
|
-
for (var
|
|
673
|
-
var
|
|
674
|
-
if (
|
|
667
|
+
for (var ie = w.pattern || w, F = i.next, I = o; F !== e.tail && !(d && I >= d.reach); I += F.value.length, F = F.next) {
|
|
668
|
+
var R = F.value;
|
|
669
|
+
if (e.length > a.length)
|
|
675
670
|
return;
|
|
676
|
-
if (!(
|
|
677
|
-
var
|
|
678
|
-
if (
|
|
679
|
-
if (
|
|
671
|
+
if (!(R instanceof h)) {
|
|
672
|
+
var G = 1, E;
|
|
673
|
+
if (se) {
|
|
674
|
+
if (E = k(ie, I, a, re), !E || E.index >= a.length)
|
|
680
675
|
break;
|
|
681
|
-
var
|
|
682
|
-
for (
|
|
683
|
-
|
|
684
|
-
if (
|
|
676
|
+
var V = E.index, ye = E.index + E[0].length, D = I;
|
|
677
|
+
for (D += F.value.length; V >= D; )
|
|
678
|
+
F = F.next, D += F.value.length;
|
|
679
|
+
if (D -= F.value.length, I = D, F.value instanceof h)
|
|
685
680
|
continue;
|
|
686
|
-
for (var
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
} else if (
|
|
681
|
+
for (var N = F; N !== e.tail && (D < ye || typeof N.value == "string"); N = N.next)
|
|
682
|
+
G++, D += N.value.length;
|
|
683
|
+
G--, R = a.slice(I, D), E.index -= I;
|
|
684
|
+
} else if (E = k(ie, 0, R, re), !E)
|
|
690
685
|
continue;
|
|
691
|
-
var
|
|
692
|
-
d &&
|
|
693
|
-
var W =
|
|
694
|
-
|
|
695
|
-
var
|
|
696
|
-
if (
|
|
697
|
-
var
|
|
698
|
-
cause:
|
|
699
|
-
reach:
|
|
686
|
+
var V = E.index, Z = E[0], X = R.slice(0, V), oe = R.slice(V + Z.length), Y = I + R.length;
|
|
687
|
+
d && Y > d.reach && (d.reach = Y);
|
|
688
|
+
var W = F.prev;
|
|
689
|
+
X && (W = B(e, W, X), I += X.length), M(e, W, G);
|
|
690
|
+
var be = new h(p, P ? r.tokenize(Z, P) : Z, ve, Z);
|
|
691
|
+
if (F = B(e, W, be), oe && B(e, F, oe), G > 1) {
|
|
692
|
+
var Q = {
|
|
693
|
+
cause: p + "," + y,
|
|
694
|
+
reach: Y
|
|
700
695
|
};
|
|
701
|
-
|
|
696
|
+
C(a, e, s, F.prev, I, Q), d && Q.reach > d.reach && (d.reach = Q.reach);
|
|
702
697
|
}
|
|
703
698
|
}
|
|
704
699
|
}
|
|
705
700
|
}
|
|
706
701
|
}
|
|
707
702
|
}
|
|
708
|
-
function
|
|
709
|
-
var
|
|
710
|
-
|
|
703
|
+
function L() {
|
|
704
|
+
var a = { value: null, prev: null, next: null }, e = { value: null, prev: a, next: null };
|
|
705
|
+
a.next = e, this.head = a, this.tail = e, this.length = 0;
|
|
711
706
|
}
|
|
712
|
-
function
|
|
713
|
-
var
|
|
714
|
-
return
|
|
707
|
+
function B(a, e, s) {
|
|
708
|
+
var i = e.next, o = { value: s, prev: e, next: i };
|
|
709
|
+
return e.next = o, i.prev = o, a.length++, o;
|
|
715
710
|
}
|
|
716
|
-
function M(
|
|
717
|
-
for (var
|
|
718
|
-
|
|
719
|
-
|
|
711
|
+
function M(a, e, s) {
|
|
712
|
+
for (var i = e.next, o = 0; o < s && i !== a.tail; o++)
|
|
713
|
+
i = i.next;
|
|
714
|
+
e.next = i, i.prev = e, a.length -= o;
|
|
720
715
|
}
|
|
721
|
-
function
|
|
722
|
-
for (var
|
|
723
|
-
|
|
724
|
-
return
|
|
716
|
+
function z(a) {
|
|
717
|
+
for (var e = [], s = a.head.next; s !== a.tail; )
|
|
718
|
+
e.push(s.value), s = s.next;
|
|
719
|
+
return e;
|
|
725
720
|
}
|
|
726
|
-
if (!
|
|
727
|
-
return
|
|
728
|
-
var
|
|
729
|
-
|
|
730
|
-
}, !1)),
|
|
731
|
-
var
|
|
732
|
-
|
|
733
|
-
function
|
|
734
|
-
|
|
721
|
+
if (!l.document)
|
|
722
|
+
return l.addEventListener && (r.disableWorkerMessageHandler || l.addEventListener("message", function(a) {
|
|
723
|
+
var e = JSON.parse(a.data), s = e.language, i = e.code, o = e.immediateClose;
|
|
724
|
+
l.postMessage(r.highlight(i, r.languages[s], s)), o && l.close();
|
|
725
|
+
}, !1)), r;
|
|
726
|
+
var b = r.util.currentScript();
|
|
727
|
+
b && (r.filename = b.src, b.hasAttribute("data-manual") && (r.manual = !0));
|
|
728
|
+
function m() {
|
|
729
|
+
r.manual || r.highlightAll();
|
|
735
730
|
}
|
|
736
|
-
if (!
|
|
731
|
+
if (!r.manual) {
|
|
737
732
|
var x = document.readyState;
|
|
738
|
-
x === "loading" || x === "interactive" &&
|
|
733
|
+
x === "loading" || x === "interactive" && b && b.defer ? document.addEventListener("DOMContentLoaded", m) : window.requestAnimationFrame ? window.requestAnimationFrame(m) : window.setTimeout(m, 16);
|
|
739
734
|
}
|
|
740
|
-
return
|
|
741
|
-
}(
|
|
742
|
-
|
|
735
|
+
return r;
|
|
736
|
+
}(u);
|
|
737
|
+
t.exports && (t.exports = n), typeof ue < "u" && (ue.Prism = n), n.languages.markup = {
|
|
743
738
|
comment: {
|
|
744
739
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
745
740
|
greedy: !0
|
|
@@ -816,9 +811,9 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
816
811
|
},
|
|
817
812
|
/&#x?[\da-f]{1,8};/i
|
|
818
813
|
]
|
|
819
|
-
},
|
|
820
|
-
|
|
821
|
-
}), Object.defineProperty(
|
|
814
|
+
}, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(l) {
|
|
815
|
+
l.type === "entity" && (l.attributes.title = l.content.replace(/&/, "&"));
|
|
816
|
+
}), Object.defineProperty(n.languages.markup.tag, "addInlined", {
|
|
822
817
|
/**
|
|
823
818
|
* Adds an inlined language to markup.
|
|
824
819
|
*
|
|
@@ -830,34 +825,34 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
830
825
|
* @example
|
|
831
826
|
* addInlined('style', 'css');
|
|
832
827
|
*/
|
|
833
|
-
value: function(
|
|
834
|
-
var
|
|
835
|
-
|
|
828
|
+
value: function(g, f) {
|
|
829
|
+
var v = {};
|
|
830
|
+
v["language-" + f] = {
|
|
836
831
|
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
837
832
|
lookbehind: !0,
|
|
838
|
-
inside:
|
|
839
|
-
},
|
|
840
|
-
var
|
|
833
|
+
inside: n.languages[f]
|
|
834
|
+
}, v.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
835
|
+
var r = {
|
|
841
836
|
"included-cdata": {
|
|
842
837
|
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
843
|
-
inside:
|
|
838
|
+
inside: v
|
|
844
839
|
}
|
|
845
840
|
};
|
|
846
|
-
|
|
841
|
+
r["language-" + f] = {
|
|
847
842
|
pattern: /[\s\S]+/,
|
|
848
|
-
inside:
|
|
843
|
+
inside: n.languages[f]
|
|
849
844
|
};
|
|
850
|
-
var
|
|
851
|
-
|
|
845
|
+
var h = {};
|
|
846
|
+
h[g] = {
|
|
852
847
|
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
853
|
-
return
|
|
848
|
+
return g;
|
|
854
849
|
}), "i"),
|
|
855
850
|
lookbehind: !0,
|
|
856
851
|
greedy: !0,
|
|
857
|
-
inside:
|
|
858
|
-
},
|
|
852
|
+
inside: r
|
|
853
|
+
}, n.languages.insertBefore("markup", "cdata", h);
|
|
859
854
|
}
|
|
860
|
-
}), Object.defineProperty(
|
|
855
|
+
}), Object.defineProperty(n.languages.markup.tag, "addAttribute", {
|
|
861
856
|
/**
|
|
862
857
|
* Adds an pattern to highlight languages embedded in HTML attributes.
|
|
863
858
|
*
|
|
@@ -869,10 +864,10 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
869
864
|
* @example
|
|
870
865
|
* addAttribute('style', 'css');
|
|
871
866
|
*/
|
|
872
|
-
value: function(
|
|
873
|
-
|
|
867
|
+
value: function(l, g) {
|
|
868
|
+
n.languages.markup.tag.inside["special-attr"].push({
|
|
874
869
|
pattern: RegExp(
|
|
875
|
-
/(^|["'\s])/.source + "(?:" +
|
|
870
|
+
/(^|["'\s])/.source + "(?:" + l + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
876
871
|
"i"
|
|
877
872
|
),
|
|
878
873
|
lookbehind: !0,
|
|
@@ -884,8 +879,8 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
884
879
|
value: {
|
|
885
880
|
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
886
881
|
lookbehind: !0,
|
|
887
|
-
alias: [
|
|
888
|
-
inside:
|
|
882
|
+
alias: [g, "language-" + g],
|
|
883
|
+
inside: n.languages[g]
|
|
889
884
|
},
|
|
890
885
|
punctuation: [
|
|
891
886
|
{
|
|
@@ -899,12 +894,12 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
899
894
|
}
|
|
900
895
|
});
|
|
901
896
|
}
|
|
902
|
-
}),
|
|
903
|
-
var
|
|
904
|
-
|
|
897
|
+
}), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, function(l) {
|
|
898
|
+
var g = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
899
|
+
l.languages.css = {
|
|
905
900
|
comment: /\/\*[\s\S]*?\*\//,
|
|
906
901
|
atrule: {
|
|
907
|
-
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" +
|
|
902
|
+
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + g.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
908
903
|
inside: {
|
|
909
904
|
rule: /^@[\w-]+/,
|
|
910
905
|
"selector-function-argument": {
|
|
@@ -921,23 +916,23 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
921
916
|
},
|
|
922
917
|
url: {
|
|
923
918
|
// https://drafts.csswg.org/css-values-3/#urls
|
|
924
|
-
pattern: RegExp("\\burl\\((?:" +
|
|
919
|
+
pattern: RegExp("\\burl\\((?:" + g.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
|
|
925
920
|
greedy: !0,
|
|
926
921
|
inside: {
|
|
927
922
|
function: /^url/i,
|
|
928
923
|
punctuation: /^\(|\)$/,
|
|
929
924
|
string: {
|
|
930
|
-
pattern: RegExp("^" +
|
|
925
|
+
pattern: RegExp("^" + g.source + "$"),
|
|
931
926
|
alias: "url"
|
|
932
927
|
}
|
|
933
928
|
}
|
|
934
929
|
},
|
|
935
930
|
selector: {
|
|
936
|
-
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` +
|
|
931
|
+
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + g.source + ")*(?=\\s*\\{)"),
|
|
937
932
|
lookbehind: !0
|
|
938
933
|
},
|
|
939
934
|
string: {
|
|
940
|
-
pattern:
|
|
935
|
+
pattern: g,
|
|
941
936
|
greedy: !0
|
|
942
937
|
},
|
|
943
938
|
property: {
|
|
@@ -950,10 +945,10 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
950
945
|
lookbehind: !0
|
|
951
946
|
},
|
|
952
947
|
punctuation: /[(){};:,]/
|
|
953
|
-
},
|
|
954
|
-
var
|
|
955
|
-
|
|
956
|
-
}(
|
|
948
|
+
}, l.languages.css.atrule.inside.rest = l.languages.css;
|
|
949
|
+
var f = l.languages.markup;
|
|
950
|
+
f && (f.tag.addInlined("style", "css"), f.tag.addAttribute("style", "css"));
|
|
951
|
+
}(n), n.languages.clike = {
|
|
957
952
|
comment: [
|
|
958
953
|
{
|
|
959
954
|
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
@@ -983,9 +978,9 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
983
978
|
number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
|
|
984
979
|
operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
|
985
980
|
punctuation: /[{}[\];(),.:]/
|
|
986
|
-
},
|
|
981
|
+
}, n.languages.javascript = n.languages.extend("clike", {
|
|
987
982
|
"class-name": [
|
|
988
|
-
|
|
983
|
+
n.languages.clike["class-name"],
|
|
989
984
|
{
|
|
990
985
|
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
|
991
986
|
lookbehind: !0
|
|
@@ -1016,7 +1011,7 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
1016
1011
|
lookbehind: !0
|
|
1017
1012
|
},
|
|
1018
1013
|
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
|
1019
|
-
}),
|
|
1014
|
+
}), n.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, n.languages.insertBefore("javascript", "keyword", {
|
|
1020
1015
|
regex: {
|
|
1021
1016
|
pattern: RegExp(
|
|
1022
1017
|
// lookbehind
|
|
@@ -1036,7 +1031,7 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
1036
1031
|
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
|
1037
1032
|
lookbehind: !0,
|
|
1038
1033
|
alias: "language-regex",
|
|
1039
|
-
inside:
|
|
1034
|
+
inside: n.languages.regex
|
|
1040
1035
|
},
|
|
1041
1036
|
"regex-delimiter": /^\/|\/$/,
|
|
1042
1037
|
"regex-flags": /^[a-z]+$/
|
|
@@ -1051,26 +1046,26 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
1051
1046
|
{
|
|
1052
1047
|
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
|
1053
1048
|
lookbehind: !0,
|
|
1054
|
-
inside:
|
|
1049
|
+
inside: n.languages.javascript
|
|
1055
1050
|
},
|
|
1056
1051
|
{
|
|
1057
1052
|
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
|
1058
1053
|
lookbehind: !0,
|
|
1059
|
-
inside:
|
|
1054
|
+
inside: n.languages.javascript
|
|
1060
1055
|
},
|
|
1061
1056
|
{
|
|
1062
1057
|
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
|
1063
1058
|
lookbehind: !0,
|
|
1064
|
-
inside:
|
|
1059
|
+
inside: n.languages.javascript
|
|
1065
1060
|
},
|
|
1066
1061
|
{
|
|
1067
1062
|
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*\{)/,
|
|
1068
1063
|
lookbehind: !0,
|
|
1069
|
-
inside:
|
|
1064
|
+
inside: n.languages.javascript
|
|
1070
1065
|
}
|
|
1071
1066
|
],
|
|
1072
1067
|
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
|
1073
|
-
}),
|
|
1068
|
+
}), n.languages.insertBefore("javascript", "string", {
|
|
1074
1069
|
hashbang: {
|
|
1075
1070
|
pattern: /^#!.*/,
|
|
1076
1071
|
greedy: !0,
|
|
@@ -1092,7 +1087,7 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
1092
1087
|
pattern: /^\$\{|\}$/,
|
|
1093
1088
|
alias: "punctuation"
|
|
1094
1089
|
},
|
|
1095
|
-
rest:
|
|
1090
|
+
rest: n.languages.javascript
|
|
1096
1091
|
}
|
|
1097
1092
|
},
|
|
1098
1093
|
string: /[\s\S]+/
|
|
@@ -1104,22 +1099,22 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
1104
1099
|
greedy: !0,
|
|
1105
1100
|
alias: "property"
|
|
1106
1101
|
}
|
|
1107
|
-
}),
|
|
1102
|
+
}), n.languages.insertBefore("javascript", "operator", {
|
|
1108
1103
|
"literal-property": {
|
|
1109
1104
|
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
|
1110
1105
|
lookbehind: !0,
|
|
1111
1106
|
alias: "property"
|
|
1112
1107
|
}
|
|
1113
|
-
}),
|
|
1108
|
+
}), n.languages.markup && (n.languages.markup.tag.addInlined("script", "javascript"), n.languages.markup.tag.addAttribute(
|
|
1114
1109
|
/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,
|
|
1115
1110
|
"javascript"
|
|
1116
|
-
)),
|
|
1117
|
-
if (typeof
|
|
1111
|
+
)), n.languages.js = n.languages.javascript, function() {
|
|
1112
|
+
if (typeof n > "u" || typeof document > "u")
|
|
1118
1113
|
return;
|
|
1119
1114
|
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
1120
|
-
var
|
|
1121
|
-
return "✖ Error " +
|
|
1122
|
-
},
|
|
1115
|
+
var l = "Loading…", g = function(b, m) {
|
|
1116
|
+
return "✖ Error " + b + " while fetching file: " + m;
|
|
1117
|
+
}, f = "✖ Error: File does not exist or is empty", v = {
|
|
1123
1118
|
js: "javascript",
|
|
1124
1119
|
py: "python",
|
|
1125
1120
|
rb: "ruby",
|
|
@@ -1129,56 +1124,56 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
1129
1124
|
bat: "batch",
|
|
1130
1125
|
h: "c",
|
|
1131
1126
|
tex: "latex"
|
|
1132
|
-
},
|
|
1133
|
-
function
|
|
1134
|
-
var
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
},
|
|
1127
|
+
}, r = "data-src-status", h = "loading", k = "loaded", C = "failed", L = "pre[data-src]:not([" + r + '="' + k + '"]):not([' + r + '="' + h + '"])';
|
|
1128
|
+
function B(b, m, x) {
|
|
1129
|
+
var a = new XMLHttpRequest();
|
|
1130
|
+
a.open("GET", b, !0), a.onreadystatechange = function() {
|
|
1131
|
+
a.readyState == 4 && (a.status < 400 && a.responseText ? m(a.responseText) : a.status >= 400 ? x(g(a.status, a.statusText)) : x(f));
|
|
1132
|
+
}, a.send(null);
|
|
1138
1133
|
}
|
|
1139
|
-
function M(
|
|
1140
|
-
var
|
|
1141
|
-
if (
|
|
1142
|
-
var x = Number(
|
|
1143
|
-
return
|
|
1134
|
+
function M(b) {
|
|
1135
|
+
var m = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b || "");
|
|
1136
|
+
if (m) {
|
|
1137
|
+
var x = Number(m[1]), a = m[2], e = m[3];
|
|
1138
|
+
return a ? e ? [x, Number(e)] : [x, void 0] : [x, x];
|
|
1144
1139
|
}
|
|
1145
1140
|
}
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
}),
|
|
1149
|
-
var
|
|
1141
|
+
n.hooks.add("before-highlightall", function(b) {
|
|
1142
|
+
b.selector += ", " + L;
|
|
1143
|
+
}), n.hooks.add("before-sanity-check", function(b) {
|
|
1144
|
+
var m = (
|
|
1150
1145
|
/** @type {HTMLPreElement} */
|
|
1151
|
-
|
|
1146
|
+
b.element
|
|
1152
1147
|
);
|
|
1153
|
-
if (
|
|
1154
|
-
|
|
1155
|
-
var x =
|
|
1156
|
-
x.textContent =
|
|
1157
|
-
var
|
|
1158
|
-
if (
|
|
1159
|
-
var
|
|
1160
|
-
|
|
1148
|
+
if (m.matches(L)) {
|
|
1149
|
+
b.code = "", m.setAttribute(r, h);
|
|
1150
|
+
var x = m.appendChild(document.createElement("CODE"));
|
|
1151
|
+
x.textContent = l;
|
|
1152
|
+
var a = m.getAttribute("data-src"), e = b.language;
|
|
1153
|
+
if (e === "none") {
|
|
1154
|
+
var s = (/\.(\w+)$/.exec(a) || [, "none"])[1];
|
|
1155
|
+
e = v[s] || s;
|
|
1161
1156
|
}
|
|
1162
|
-
|
|
1163
|
-
var
|
|
1164
|
-
|
|
1165
|
-
|
|
1157
|
+
n.util.setLanguage(x, e), n.util.setLanguage(m, e);
|
|
1158
|
+
var i = n.plugins.autoloader;
|
|
1159
|
+
i && i.loadLanguages(e), B(
|
|
1160
|
+
a,
|
|
1166
1161
|
function(o) {
|
|
1167
|
-
|
|
1168
|
-
var d = M(
|
|
1162
|
+
m.setAttribute(r, k);
|
|
1163
|
+
var d = M(m.getAttribute("data-range"));
|
|
1169
1164
|
if (d) {
|
|
1170
|
-
var
|
|
1171
|
-
c < 0 && (c +=
|
|
1172
|
-
`),
|
|
1165
|
+
var p = o.split(/\r\n?|\n/g), c = d[0], y = d[1] == null ? p.length : d[1];
|
|
1166
|
+
c < 0 && (c += p.length), c = Math.max(0, Math.min(c - 1, p.length)), y < 0 && (y += p.length), y = Math.max(0, Math.min(y, p.length)), o = p.slice(c, y).join(`
|
|
1167
|
+
`), m.hasAttribute("data-start") || m.setAttribute("data-start", String(c + 1));
|
|
1173
1168
|
}
|
|
1174
|
-
x.textContent = o,
|
|
1169
|
+
x.textContent = o, n.highlightElement(x);
|
|
1175
1170
|
},
|
|
1176
1171
|
function(o) {
|
|
1177
|
-
|
|
1172
|
+
m.setAttribute(r, C), x.textContent = o;
|
|
1178
1173
|
}
|
|
1179
1174
|
);
|
|
1180
1175
|
}
|
|
1181
|
-
}),
|
|
1176
|
+
}), n.plugins.fileHighlight = {
|
|
1182
1177
|
/**
|
|
1183
1178
|
* Executes the File Highlight plugin for all matching `pre` elements under the given container.
|
|
1184
1179
|
*
|
|
@@ -1186,19 +1181,19 @@ var ce = fe.exports, we = { exports: {} };
|
|
|
1186
1181
|
*
|
|
1187
1182
|
* @param {ParentNode} [container=document]
|
|
1188
1183
|
*/
|
|
1189
|
-
highlight: function(
|
|
1190
|
-
for (var x = (
|
|
1191
|
-
|
|
1184
|
+
highlight: function(m) {
|
|
1185
|
+
for (var x = (m || document).querySelectorAll(L), a = 0, e; e = x[a++]; )
|
|
1186
|
+
n.highlightElement(e);
|
|
1192
1187
|
}
|
|
1193
1188
|
};
|
|
1194
|
-
var
|
|
1195
|
-
|
|
1196
|
-
|
|
1189
|
+
var z = !1;
|
|
1190
|
+
n.fileHighlight = function() {
|
|
1191
|
+
z || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), z = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
1197
1192
|
};
|
|
1198
1193
|
}();
|
|
1199
|
-
})(
|
|
1200
|
-
var
|
|
1201
|
-
const
|
|
1194
|
+
})(he);
|
|
1195
|
+
var ze = he.exports;
|
|
1196
|
+
const J = /* @__PURE__ */ Me(ze), Re = /* @__PURE__ */ T({
|
|
1202
1197
|
__name: "CodeBlock",
|
|
1203
1198
|
props: {
|
|
1204
1199
|
codeBlockIndex: {
|
|
@@ -1218,79 +1213,94 @@ const Q = /* @__PURE__ */ Be(Oe), ze = /* @__PURE__ */ T({
|
|
|
1218
1213
|
default: !1
|
|
1219
1214
|
}
|
|
1220
1215
|
},
|
|
1221
|
-
setup(
|
|
1222
|
-
|
|
1223
|
-
const
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
}, []).sort();
|
|
1227
|
-
function m(p) {
|
|
1228
|
-
r.value = !0, Q.languages[p.language] || console.warn(`Prism: the language “${p.language}” isn’t enabled.`), p.preElement.classList.contains(`language-${p.language}`) || p.preElement.classList.add(`language-${p.language}`), p.codeElement.innerHTML = g(p.code), Q.highlightElement(p.codeElement), r.value = !1;
|
|
1216
|
+
setup(t) {
|
|
1217
|
+
J.manual = !0;
|
|
1218
|
+
const u = t, n = ge(!1);
|
|
1219
|
+
function l(r) {
|
|
1220
|
+
n.value = !0, J.languages[r.language] || console.warn(`Prism: the language “${r.language}” isn’t enabled.`), r.preElement.classList.contains(`language-${r.language}`) || r.preElement.classList.add(`language-${r.language}`), r.codeElement.innerHTML = g(r.code), J.highlightElement(r.codeElement), n.value = !1;
|
|
1229
1221
|
}
|
|
1230
|
-
const g = (
|
|
1231
|
-
var
|
|
1232
|
-
const
|
|
1233
|
-
return
|
|
1234
|
-
`) && !
|
|
1222
|
+
const g = (r) => r.replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'"), f = ne(() => `document-code-block-${u.codeBlockIndex}`), v = ne(() => {
|
|
1223
|
+
var h, k;
|
|
1224
|
+
const r = ((k = (h = u.lines) == null ? void 0 : h.flatMap((C) => C.text)) == null ? void 0 : k.join("")) || "";
|
|
1225
|
+
return r.endsWith(`
|
|
1226
|
+
`) && !u.isSingleLine ? r.slice(0, -1) : r;
|
|
1235
1227
|
});
|
|
1236
|
-
return
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
)
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1228
|
+
return xe(() => u.lang, async () => {
|
|
1229
|
+
try {
|
|
1230
|
+
await Promise.all([
|
|
1231
|
+
import("./prism-bash.min-vAvTx02J.js"),
|
|
1232
|
+
import("./prism-css.min-T5ysc1kX.js"),
|
|
1233
|
+
import("./prism-docker.min-8pzECyO2.js"),
|
|
1234
|
+
import("./prism-go.min-uppVtd_Y.js"),
|
|
1235
|
+
import("./prism-http.min-yMXrS1l9.js"),
|
|
1236
|
+
import("./prism-javascript.min-hvuJDaiR.js"),
|
|
1237
|
+
import("./prism-jq.min-EXJzRhH-.js"),
|
|
1238
|
+
import("./prism-json.min-1zfY9gEI.js"),
|
|
1239
|
+
import("./prism-log.min-c8dXT1vB.js"),
|
|
1240
|
+
import("./prism-lua.min-GpAHgnCN.js"),
|
|
1241
|
+
import("./prism-makefile.min-XKfdqVzq.js"),
|
|
1242
|
+
import("./prism-markdown.min-hV2SE6LK.js"),
|
|
1243
|
+
import("./prism-python.min-5aoERcK6.js"),
|
|
1244
|
+
import("./prism-regex.min-Ej1kQav2.js"),
|
|
1245
|
+
import("./prism-rust.min-I56KUKDO.js"),
|
|
1246
|
+
import("./prism-rest.min-kotzRXWB.js"),
|
|
1247
|
+
import("./prism-scss.min-Als0FLXB.js"),
|
|
1248
|
+
import("./prism-sql.min-pOHT8XZf.js"),
|
|
1249
|
+
import("./prism-typescript.min-c31ffb60.js"),
|
|
1250
|
+
import("./prism-yaml.min-qeUGcluq.js"),
|
|
1251
|
+
import("./prism-xml-doc.min-g6asX3wp.js")
|
|
1252
|
+
]);
|
|
1253
|
+
} catch {
|
|
1254
|
+
console.warn("Could not import PrismJS language file.");
|
|
1255
|
+
}
|
|
1256
|
+
J.highlightAll();
|
|
1257
|
+
}, { immediate: !0 }), (r, h) => {
|
|
1258
|
+
const k = ke("KCodeBlock");
|
|
1259
|
+
return _(), q(k, {
|
|
1260
|
+
id: f.value,
|
|
1251
1261
|
class: "document-code-block",
|
|
1252
|
-
code:
|
|
1253
|
-
"is-processing":
|
|
1254
|
-
"is-single-line":
|
|
1255
|
-
language:
|
|
1262
|
+
code: v.value,
|
|
1263
|
+
"is-processing": n.value,
|
|
1264
|
+
"is-single-line": t.isSingleLine,
|
|
1265
|
+
language: t.lang,
|
|
1256
1266
|
theme: "light",
|
|
1257
|
-
onCodeBlockRender:
|
|
1267
|
+
onCodeBlockRender: l
|
|
1258
1268
|
}, null, 8, ["id", "code", "is-processing", "is-single-line", "language"]);
|
|
1259
1269
|
};
|
|
1260
1270
|
}
|
|
1261
|
-
}),
|
|
1271
|
+
}), He = /* @__PURE__ */ A(Re, [["__scopeId", "data-v-b2f66a85"]]), Ne = /* @__PURE__ */ T({
|
|
1262
1272
|
__name: "Emphasis",
|
|
1263
1273
|
props: {
|
|
1264
1274
|
level: {
|
|
1265
1275
|
type: Number,
|
|
1266
1276
|
default: 1,
|
|
1267
|
-
validator(
|
|
1268
|
-
if (!Number.isInteger(
|
|
1277
|
+
validator(t) {
|
|
1278
|
+
if (!Number.isInteger(t))
|
|
1269
1279
|
return !1;
|
|
1270
|
-
const
|
|
1271
|
-
return
|
|
1280
|
+
const u = t;
|
|
1281
|
+
return u > 0 && u < 3;
|
|
1272
1282
|
}
|
|
1273
1283
|
}
|
|
1274
1284
|
},
|
|
1275
|
-
setup(
|
|
1276
|
-
const
|
|
1277
|
-
return (
|
|
1278
|
-
default:
|
|
1279
|
-
|
|
1285
|
+
setup(t) {
|
|
1286
|
+
const n = t.level === 1 ? "em" : "strong";
|
|
1287
|
+
return (l, g) => (_(), q(U(H(n)), null, {
|
|
1288
|
+
default: j(() => [
|
|
1289
|
+
S(l.$slots, "default")
|
|
1280
1290
|
]),
|
|
1281
1291
|
_: 3
|
|
1282
1292
|
}));
|
|
1283
1293
|
}
|
|
1284
|
-
}),
|
|
1294
|
+
}), Ue = /* @__PURE__ */ T({
|
|
1285
1295
|
__name: "Heading",
|
|
1286
1296
|
props: {
|
|
1287
1297
|
level: {
|
|
1288
1298
|
type: Number,
|
|
1289
|
-
validator(
|
|
1290
|
-
if (!Number.isInteger(
|
|
1299
|
+
validator(t) {
|
|
1300
|
+
if (!Number.isInteger(t))
|
|
1291
1301
|
return !1;
|
|
1292
|
-
const
|
|
1293
|
-
return
|
|
1302
|
+
const u = t;
|
|
1303
|
+
return u > 0 && u < 7;
|
|
1294
1304
|
},
|
|
1295
1305
|
default: 1
|
|
1296
1306
|
},
|
|
@@ -1299,16 +1309,16 @@ const Q = /* @__PURE__ */ Be(Oe), ze = /* @__PURE__ */ T({
|
|
|
1299
1309
|
default: ""
|
|
1300
1310
|
}
|
|
1301
1311
|
},
|
|
1302
|
-
setup(
|
|
1303
|
-
const
|
|
1304
|
-
return (
|
|
1305
|
-
default:
|
|
1306
|
-
|
|
1312
|
+
setup(t) {
|
|
1313
|
+
const u = t, n = `${u.slug}`, l = `h${u.level}`;
|
|
1314
|
+
return (g, f) => (_(), q(U(l), { id: n }, {
|
|
1315
|
+
default: j(() => [
|
|
1316
|
+
S(g.$slots, "default", {}, void 0, !0)
|
|
1307
1317
|
]),
|
|
1308
1318
|
_: 3
|
|
1309
1319
|
}));
|
|
1310
1320
|
}
|
|
1311
|
-
}),
|
|
1321
|
+
}), je = /* @__PURE__ */ A(Ue, [["__scopeId", "data-v-9ef4ad64"]]), Ge = ["alt", "src", "title"], Ve = /* @__PURE__ */ T({
|
|
1312
1322
|
__name: "Image",
|
|
1313
1323
|
props: {
|
|
1314
1324
|
url: {
|
|
@@ -1324,91 +1334,91 @@ const Q = /* @__PURE__ */ Be(Oe), ze = /* @__PURE__ */ T({
|
|
|
1324
1334
|
default: ""
|
|
1325
1335
|
}
|
|
1326
1336
|
},
|
|
1327
|
-
setup(
|
|
1328
|
-
return (
|
|
1329
|
-
alt:
|
|
1330
|
-
src:
|
|
1331
|
-
title:
|
|
1332
|
-
}, null, 8,
|
|
1337
|
+
setup(t) {
|
|
1338
|
+
return (u, n) => (_(), $("img", {
|
|
1339
|
+
alt: t.alt,
|
|
1340
|
+
src: t.url,
|
|
1341
|
+
title: t.title
|
|
1342
|
+
}, null, 8, Ge));
|
|
1333
1343
|
}
|
|
1334
|
-
}),
|
|
1335
|
-
function
|
|
1336
|
-
return
|
|
1344
|
+
}), Ze = /* @__PURE__ */ A(Ve, [["__scopeId", "data-v-13314abe"]]), We = {};
|
|
1345
|
+
function Je(t, u) {
|
|
1346
|
+
return _(), $("hr");
|
|
1337
1347
|
}
|
|
1338
|
-
const
|
|
1339
|
-
function
|
|
1340
|
-
return
|
|
1341
|
-
|
|
1348
|
+
const Ke = /* @__PURE__ */ A(We, [["render", Je], ["__scopeId", "data-v-b6e25b56"]]), Xe = {};
|
|
1349
|
+
function Ye(t, u) {
|
|
1350
|
+
return _(), $("s", null, [
|
|
1351
|
+
S(t.$slots, "default")
|
|
1342
1352
|
]);
|
|
1343
1353
|
}
|
|
1344
|
-
const
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1347
|
-
|
|
1354
|
+
const Qe = /* @__PURE__ */ A(Xe, [["render", Ye]]), et = {};
|
|
1355
|
+
function tt(t, u) {
|
|
1356
|
+
return _(), $("table", null, [
|
|
1357
|
+
S(t.$slots, "default", {}, void 0, !0)
|
|
1348
1358
|
]);
|
|
1349
1359
|
}
|
|
1350
|
-
const
|
|
1360
|
+
const nt = /* @__PURE__ */ A(et, [["render", tt], ["__scopeId", "data-v-c2502730"]]), at = /* @__PURE__ */ T({
|
|
1351
1361
|
__name: "TableRow",
|
|
1352
1362
|
props: {
|
|
1353
1363
|
section: {
|
|
1354
1364
|
type: String,
|
|
1355
|
-
default:
|
|
1365
|
+
default: O.body
|
|
1356
1366
|
}
|
|
1357
1367
|
},
|
|
1358
|
-
setup(
|
|
1359
|
-
const
|
|
1360
|
-
let
|
|
1361
|
-
return
|
|
1362
|
-
default:
|
|
1363
|
-
|
|
1364
|
-
|
|
1368
|
+
setup(t) {
|
|
1369
|
+
const u = t;
|
|
1370
|
+
let n;
|
|
1371
|
+
return u.section === O.header ? n = "thead" : u.section === O.body ? n = "tbody" : u.section === O.footer && (n = "tfoot"), (l, g) => (_(), q(U(H(n)), null, {
|
|
1372
|
+
default: j(() => [
|
|
1373
|
+
we("tr", null, [
|
|
1374
|
+
S(l.$slots, "default", {}, void 0, !0)
|
|
1365
1375
|
])
|
|
1366
1376
|
]),
|
|
1367
1377
|
_: 3
|
|
1368
1378
|
}));
|
|
1369
1379
|
}
|
|
1370
|
-
}),
|
|
1380
|
+
}), ce = /* @__PURE__ */ A(at, [["__scopeId", "data-v-90ab3ded"]]), rt = /* @__PURE__ */ T({
|
|
1371
1381
|
__name: "TableCell",
|
|
1372
1382
|
props: {
|
|
1373
1383
|
alignment: {
|
|
1374
1384
|
type: String,
|
|
1375
|
-
default:
|
|
1385
|
+
default: K.left
|
|
1376
1386
|
},
|
|
1377
1387
|
parent: {
|
|
1378
1388
|
type: Object,
|
|
1379
1389
|
required: !0
|
|
1380
1390
|
}
|
|
1381
1391
|
},
|
|
1382
|
-
setup(
|
|
1383
|
-
var
|
|
1384
|
-
const
|
|
1385
|
-
let
|
|
1386
|
-
return
|
|
1387
|
-
class:
|
|
1392
|
+
setup(t) {
|
|
1393
|
+
var g;
|
|
1394
|
+
const u = t, n = ((g = u.parent) == null ? void 0 : g.section) === O.header ? "th" : "td";
|
|
1395
|
+
let l;
|
|
1396
|
+
return u.alignment === K.center ? l = "align-center" : u.alignment === K.right && (l = "align-right"), (f, v) => (_(), q(U(H(n)), {
|
|
1397
|
+
class: fe(H(l))
|
|
1388
1398
|
}, {
|
|
1389
|
-
default:
|
|
1390
|
-
|
|
1399
|
+
default: j(() => [
|
|
1400
|
+
S(f.$slots, "default", {}, void 0, !0)
|
|
1391
1401
|
]),
|
|
1392
1402
|
_: 3
|
|
1393
1403
|
}, 8, ["class"]));
|
|
1394
1404
|
}
|
|
1395
|
-
}),
|
|
1405
|
+
}), st = /* @__PURE__ */ A(rt, [["__scopeId", "data-v-6fde1a24"]]), it = ["checked"], ot = /* @__PURE__ */ T({
|
|
1396
1406
|
__name: "TaskCheckbox",
|
|
1397
1407
|
props: {
|
|
1398
1408
|
checked: { type: Boolean }
|
|
1399
1409
|
},
|
|
1400
|
-
setup(
|
|
1401
|
-
const
|
|
1402
|
-
return (
|
|
1410
|
+
setup(t) {
|
|
1411
|
+
const n = ge(t.checked);
|
|
1412
|
+
return (l, g) => (_(), $("input", {
|
|
1403
1413
|
"aria-label": "Display-only checkbox for task",
|
|
1404
|
-
checked:
|
|
1414
|
+
checked: n.value,
|
|
1405
1415
|
type: "checkbox"
|
|
1406
|
-
}, null, 8,
|
|
1416
|
+
}, null, 8, it));
|
|
1407
1417
|
}
|
|
1408
|
-
}),
|
|
1418
|
+
}), lt = { key: 0 }, ut = { key: 1 }, ct = {
|
|
1409
1419
|
inheritAttrs: !1
|
|
1410
|
-
},
|
|
1411
|
-
...
|
|
1420
|
+
}, dt = /* @__PURE__ */ T({
|
|
1421
|
+
...ct,
|
|
1412
1422
|
__name: "Text",
|
|
1413
1423
|
props: {
|
|
1414
1424
|
text: {
|
|
@@ -1424,26 +1434,26 @@ const it = /* @__PURE__ */ q(rt, [["render", nt], ["__scopeId", "data-v-c2502730
|
|
|
1424
1434
|
default: !1
|
|
1425
1435
|
}
|
|
1426
1436
|
},
|
|
1427
|
-
setup(
|
|
1428
|
-
return (
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1437
|
+
setup(t) {
|
|
1438
|
+
return (u, n) => (_(), $(Fe, null, [
|
|
1439
|
+
$e(pe(t.text), 1),
|
|
1440
|
+
t.appendSpace ? (_(), $("span", lt, " ")) : le("", !0),
|
|
1441
|
+
t.hardBreak ? (_(), $("br", ut)) : le("", !0)
|
|
1432
1442
|
], 64));
|
|
1433
1443
|
}
|
|
1434
1444
|
}), gt = {};
|
|
1435
|
-
function
|
|
1436
|
-
return
|
|
1437
|
-
|
|
1445
|
+
function ft(t, u) {
|
|
1446
|
+
return _(), $("span", null, [
|
|
1447
|
+
S(t.$slots, "default")
|
|
1438
1448
|
]);
|
|
1439
1449
|
}
|
|
1440
|
-
const
|
|
1441
|
-
function
|
|
1442
|
-
return
|
|
1443
|
-
|
|
1450
|
+
const pt = /* @__PURE__ */ A(gt, [["render", ft]]), ht = {};
|
|
1451
|
+
function mt(t, u) {
|
|
1452
|
+
return _(), $("p", null, [
|
|
1453
|
+
S(t.$slots, "default", {}, void 0, !0)
|
|
1444
1454
|
]);
|
|
1445
1455
|
}
|
|
1446
|
-
const
|
|
1456
|
+
const vt = /* @__PURE__ */ A(ht, [["render", mt], ["__scopeId", "data-v-7b54f530"]]), _t = /* @__PURE__ */ T({
|
|
1447
1457
|
__name: "List",
|
|
1448
1458
|
props: {
|
|
1449
1459
|
isOrdered: {
|
|
@@ -1455,24 +1465,24 @@ const kt = /* @__PURE__ */ q(wt, [["render", vt], ["__scopeId", "data-v-7b54f530
|
|
|
1455
1465
|
default: !1
|
|
1456
1466
|
}
|
|
1457
1467
|
},
|
|
1458
|
-
setup(
|
|
1459
|
-
const
|
|
1460
|
-
return (
|
|
1461
|
-
class:
|
|
1468
|
+
setup(t) {
|
|
1469
|
+
const n = t.isOrdered ? "ol" : "ul";
|
|
1470
|
+
return (l, g) => (_(), q(U(H(n)), {
|
|
1471
|
+
class: fe({ "has-task-items": t.hasTaskItems })
|
|
1462
1472
|
}, {
|
|
1463
|
-
default:
|
|
1464
|
-
|
|
1473
|
+
default: j(() => [
|
|
1474
|
+
S(l.$slots, "default", {}, void 0, !0)
|
|
1465
1475
|
]),
|
|
1466
1476
|
_: 3
|
|
1467
1477
|
}, 8, ["class"]));
|
|
1468
1478
|
}
|
|
1469
|
-
}), yt = /* @__PURE__ */
|
|
1470
|
-
function
|
|
1471
|
-
return
|
|
1472
|
-
|
|
1479
|
+
}), yt = /* @__PURE__ */ A(_t, [["__scopeId", "data-v-7555911f"]]), bt = {};
|
|
1480
|
+
function xt(t, u) {
|
|
1481
|
+
return _(), $("li", null, [
|
|
1482
|
+
S(t.$slots, "default", {}, void 0, !0)
|
|
1473
1483
|
]);
|
|
1474
1484
|
}
|
|
1475
|
-
const
|
|
1485
|
+
const kt = /* @__PURE__ */ A(bt, [["render", xt], ["__scopeId", "data-v-cf238e78"]]), wt = ["href", "title"], Ft = /* @__PURE__ */ T({
|
|
1476
1486
|
__name: "Link",
|
|
1477
1487
|
props: {
|
|
1478
1488
|
href: {
|
|
@@ -1484,132 +1494,132 @@ const _t = /* @__PURE__ */ q(xt, [["render", St], ["__scopeId", "data-v-cf238e78
|
|
|
1484
1494
|
default: ""
|
|
1485
1495
|
}
|
|
1486
1496
|
},
|
|
1487
|
-
setup(
|
|
1488
|
-
return (
|
|
1489
|
-
href:
|
|
1497
|
+
setup(t) {
|
|
1498
|
+
return (u, n) => (_(), $("a", {
|
|
1499
|
+
href: t.href,
|
|
1490
1500
|
rel: "noreferrer noopener nofollow",
|
|
1491
|
-
title:
|
|
1501
|
+
title: t.title
|
|
1492
1502
|
}, [
|
|
1493
|
-
|
|
1494
|
-
], 8,
|
|
1503
|
+
S(u.$slots, "default", {}, void 0, !0)
|
|
1504
|
+
], 8, wt));
|
|
1495
1505
|
}
|
|
1496
|
-
}),
|
|
1497
|
-
blockquote:
|
|
1498
|
-
code:
|
|
1499
|
-
code_block:
|
|
1500
|
-
emphasis:
|
|
1501
|
-
heading:
|
|
1502
|
-
image:
|
|
1503
|
-
break:
|
|
1504
|
-
link:
|
|
1506
|
+
}), $t = /* @__PURE__ */ A(Ft, [["__scopeId", "data-v-0f033d16"]]), At = {
|
|
1507
|
+
blockquote: Pe,
|
|
1508
|
+
code: qe,
|
|
1509
|
+
code_block: He,
|
|
1510
|
+
emphasis: Ne,
|
|
1511
|
+
heading: je,
|
|
1512
|
+
image: Ze,
|
|
1513
|
+
break: Ke,
|
|
1514
|
+
link: $t,
|
|
1505
1515
|
list: yt,
|
|
1506
|
-
list_item:
|
|
1507
|
-
paragraph:
|
|
1508
|
-
strikethrough:
|
|
1509
|
-
table:
|
|
1510
|
-
table_header:
|
|
1511
|
-
table_row:
|
|
1512
|
-
table_cell:
|
|
1513
|
-
task_checkbox:
|
|
1514
|
-
text:
|
|
1515
|
-
text_block:
|
|
1516
|
+
list_item: kt,
|
|
1517
|
+
paragraph: vt,
|
|
1518
|
+
strikethrough: Qe,
|
|
1519
|
+
table: nt,
|
|
1520
|
+
table_header: ce,
|
|
1521
|
+
table_row: ce,
|
|
1522
|
+
table_cell: st,
|
|
1523
|
+
task_checkbox: ot,
|
|
1524
|
+
text: dt,
|
|
1525
|
+
text_block: pt
|
|
1516
1526
|
}, de = [];
|
|
1517
|
-
function
|
|
1518
|
-
de.indexOf(
|
|
1527
|
+
function St(t) {
|
|
1528
|
+
de.indexOf(t) === -1 && (de.push(t), console.warn(`[DocumentViewer] Unable to render an unknown node type "${t}"`));
|
|
1519
1529
|
}
|
|
1520
|
-
function
|
|
1521
|
-
return
|
|
1522
|
-
var
|
|
1523
|
-
if (!
|
|
1530
|
+
function ae(t, u) {
|
|
1531
|
+
return t.map((n, l) => {
|
|
1532
|
+
var h;
|
|
1533
|
+
if (!n)
|
|
1524
1534
|
return null;
|
|
1525
1535
|
const {
|
|
1526
|
-
type:
|
|
1527
|
-
children:
|
|
1528
|
-
...
|
|
1529
|
-
} =
|
|
1530
|
-
if (!
|
|
1531
|
-
return
|
|
1532
|
-
if (
|
|
1533
|
-
const
|
|
1534
|
-
var
|
|
1535
|
-
return (
|
|
1536
|
+
type: g,
|
|
1537
|
+
children: f,
|
|
1538
|
+
...v
|
|
1539
|
+
} = n, r = At[n.type];
|
|
1540
|
+
if (!r)
|
|
1541
|
+
return St(g), null;
|
|
1542
|
+
if (Ee(n) && (n.section = O.header), Ce(n)) {
|
|
1543
|
+
const k = (h = n.children) == null ? void 0 : h.some((C) => {
|
|
1544
|
+
var L;
|
|
1545
|
+
return (L = C.children) == null ? void 0 : L.some((B) => {
|
|
1536
1546
|
var M;
|
|
1537
|
-
return (M =
|
|
1547
|
+
return (M = B.children) == null ? void 0 : M.some((z) => z.type === "task_checkbox");
|
|
1538
1548
|
});
|
|
1539
1549
|
});
|
|
1540
|
-
return ee(
|
|
1541
|
-
hasTaskItems:
|
|
1542
|
-
},
|
|
1543
|
-
parent:
|
|
1550
|
+
return ee(r, te({
|
|
1551
|
+
hasTaskItems: k
|
|
1552
|
+
}, v, {
|
|
1553
|
+
parent: u
|
|
1544
1554
|
}), {
|
|
1545
|
-
default: () =>
|
|
1555
|
+
default: () => f && ae(f, n)
|
|
1546
1556
|
});
|
|
1547
1557
|
}
|
|
1548
|
-
return (
|
|
1549
|
-
lines:
|
|
1550
|
-
isSingleLine: (
|
|
1551
|
-
codeBlockIndex:
|
|
1552
|
-
}), null) : ee(
|
|
1553
|
-
parent:
|
|
1558
|
+
return (n == null ? void 0 : n.type) === "code_block" ? ee(r, te(v, {
|
|
1559
|
+
lines: f,
|
|
1560
|
+
isSingleLine: (f == null ? void 0 : f.length) && f.length === 1,
|
|
1561
|
+
codeBlockIndex: l
|
|
1562
|
+
}), null) : ee(r, te(v, {
|
|
1563
|
+
parent: u
|
|
1554
1564
|
}), {
|
|
1555
|
-
default: () =>
|
|
1565
|
+
default: () => f && ae(f, n)
|
|
1556
1566
|
});
|
|
1557
1567
|
});
|
|
1558
1568
|
}
|
|
1559
|
-
const
|
|
1569
|
+
const Et = {
|
|
1560
1570
|
error: "Error: Markdown content missing"
|
|
1561
|
-
},
|
|
1562
|
-
documentViewer:
|
|
1571
|
+
}, Tt = {
|
|
1572
|
+
documentViewer: Et
|
|
1563
1573
|
};
|
|
1564
|
-
function
|
|
1574
|
+
function It() {
|
|
1565
1575
|
return {
|
|
1566
|
-
i18n:
|
|
1567
|
-
i18nT:
|
|
1576
|
+
i18n: Ae("en-us", Tt),
|
|
1577
|
+
i18nT: Se
|
|
1568
1578
|
// Translation component <i18n-t>
|
|
1569
1579
|
};
|
|
1570
1580
|
}
|
|
1571
|
-
function
|
|
1581
|
+
function Ct() {
|
|
1572
1582
|
return {
|
|
1573
|
-
hasRequiredProps: (
|
|
1574
|
-
let
|
|
1575
|
-
return
|
|
1576
|
-
|
|
1577
|
-
|
|
1583
|
+
hasRequiredProps: (u, n) => {
|
|
1584
|
+
let l = !0;
|
|
1585
|
+
return u.forEach((g) => {
|
|
1586
|
+
n.forEach((f) => {
|
|
1587
|
+
g[f] || (l = !1);
|
|
1578
1588
|
});
|
|
1579
|
-
}),
|
|
1589
|
+
}), l;
|
|
1580
1590
|
}
|
|
1581
1591
|
};
|
|
1582
1592
|
}
|
|
1583
1593
|
const Lt = {
|
|
1584
|
-
useI18n:
|
|
1585
|
-
useUtilities:
|
|
1594
|
+
useI18n: It,
|
|
1595
|
+
useUtilities: Ct
|
|
1586
1596
|
};
|
|
1587
|
-
function
|
|
1588
|
-
return
|
|
1597
|
+
function Bt(t, u = "") {
|
|
1598
|
+
return t.toLowerCase().trim().replace(/ /g, "-").replace(/[^\w-]+/g, "") + u;
|
|
1589
1599
|
}
|
|
1590
|
-
function
|
|
1591
|
-
if (!
|
|
1592
|
-
return
|
|
1593
|
-
const
|
|
1594
|
-
return
|
|
1600
|
+
function me(t, u = /* @__PURE__ */ new Map()) {
|
|
1601
|
+
if (!t)
|
|
1602
|
+
return t;
|
|
1603
|
+
const n = u || /* @__PURE__ */ new Map();
|
|
1604
|
+
return t.map((l) => Ie(l) ? Pt(l, u) : (l.children && (l.children = me(l.children, n)), l));
|
|
1595
1605
|
}
|
|
1596
|
-
function
|
|
1597
|
-
var
|
|
1598
|
-
const
|
|
1599
|
-
|
|
1600
|
-
const
|
|
1606
|
+
function Pt(t, u, n = "doc-heading-") {
|
|
1607
|
+
var k;
|
|
1608
|
+
const l = (k = t.children) == null ? void 0 : k[0], g = `level-${t.level}`, f = Te(l) && l.text || g, v = u.get(f);
|
|
1609
|
+
u.set(f, (v || 0) + 1);
|
|
1610
|
+
const r = v && v > 1 ? `-${v}` : "", h = n + Bt(f, r);
|
|
1601
1611
|
return {
|
|
1602
|
-
...
|
|
1603
|
-
slug:
|
|
1612
|
+
...t,
|
|
1613
|
+
slug: h
|
|
1604
1614
|
};
|
|
1605
1615
|
}
|
|
1606
|
-
const
|
|
1616
|
+
const Dt = {
|
|
1607
1617
|
class: "document-viewer",
|
|
1608
1618
|
"data-testid": "document-viewer"
|
|
1609
|
-
},
|
|
1619
|
+
}, Ot = {
|
|
1610
1620
|
key: 1,
|
|
1611
1621
|
"data-testid": "document-viewer-error"
|
|
1612
|
-
},
|
|
1622
|
+
}, qt = /* @__PURE__ */ T({
|
|
1613
1623
|
__name: "DocumentViewer",
|
|
1614
1624
|
props: {
|
|
1615
1625
|
document: {
|
|
@@ -1617,26 +1627,26 @@ const Pt = {
|
|
|
1617
1627
|
required: !0
|
|
1618
1628
|
}
|
|
1619
1629
|
},
|
|
1620
|
-
setup(
|
|
1621
|
-
var
|
|
1622
|
-
const
|
|
1623
|
-
var
|
|
1624
|
-
return (
|
|
1630
|
+
setup(t) {
|
|
1631
|
+
var r;
|
|
1632
|
+
const u = t, { i18n: n } = Lt.useI18n(), l = (h) => !h || Object.keys(h).length === 0 && h.constructor === Object, g = ne(() => !l(u.document)), f = me((r = u.document) == null ? void 0 : r.children), v = () => {
|
|
1633
|
+
var h;
|
|
1634
|
+
return (h = u.document) != null && h.children ? ae(f) : null;
|
|
1625
1635
|
};
|
|
1626
|
-
return (
|
|
1627
|
-
|
|
1636
|
+
return (h, k) => (_(), $("div", Dt, [
|
|
1637
|
+
g.value ? (_(), q(v, { key: 0 })) : (_(), $("div", Ot, pe(H(n).t("documentViewer.error")), 1))
|
|
1628
1638
|
]));
|
|
1629
1639
|
}
|
|
1630
|
-
}),
|
|
1640
|
+
}), Rt = /* @__PURE__ */ A(qt, [["__scopeId", "data-v-1ab71c85"]]);
|
|
1631
1641
|
export {
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
+
K as TableCellAlign,
|
|
1643
|
+
O as TableRowSection,
|
|
1644
|
+
Pt as addSlug,
|
|
1645
|
+
me as addUniqueHeadingSlugs,
|
|
1646
|
+
Rt as default,
|
|
1647
|
+
Ie as isHeadingNode,
|
|
1648
|
+
Ce as isListNode,
|
|
1649
|
+
Ee as isTableHeaderNode,
|
|
1650
|
+
Te as isTextNode,
|
|
1651
|
+
Bt as toSlug
|
|
1642
1652
|
};
|