@kong-ui-public/documentation 0.1.21 → 0.1.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/documentation.es.js +937 -927
- package/dist/documentation.umd.js +44 -7
- package/dist/prism-bash.min-vAvTx02J-aOB98otF.js +7 -0
- package/dist/prism-css.min-T5ysc1kX-T5ysc1kX.js +7 -0
- package/dist/prism-docker.min-8pzECyO2-W1QkyWCu.js +22 -0
- package/dist/prism-go.min-uppVtd_Y-uppVtd_Y.js +1 -0
- package/dist/prism-http.min-yMXrS1l9-r_ESJlxs.js +23 -0
- package/dist/prism-javascript.min-hvuJDaiR-hvuJDaiR.js +8 -0
- package/dist/prism-jq.min-EXJzRhH--EXJzRhH-.js +8 -0
- package/dist/prism-json.min-1zfY9gEI-1zfY9gEI.js +1 -0
- package/dist/prism-log.min-c8dXT1vB-c8dXT1vB.js +1 -0
- package/dist/prism-lua.min-GpAHgnCN-GpAHgnCN.js +1 -0
- package/dist/prism-makefile.min-XKfdqVzq-XKfdqVzq.js +1 -0
- package/dist/prism-markdown.min-hV2SE6LK-pvVrJovK.js +63 -0
- package/dist/prism-python.min-5aoERcK6-5aoERcK6.js +1 -0
- package/dist/prism-regex.min-Ej1kQav2-Ej1kQav2.js +4 -0
- package/dist/prism-rest.min-kotzRXWB-kotzRXWB.js +1 -0
- package/dist/prism-rust.min-I56KUKDO-I56KUKDO.js +9 -0
- package/dist/prism-scss.min-Als0FLXB-Als0FLXB.js +1 -0
- package/dist/prism-sql.min-pOHT8XZf-pOHT8XZf.js +1 -0
- package/dist/prism-typescript.min-c31ffb60-c31ffb60.js +5 -0
- package/dist/prism-xml-doc.min-g6asX3wp-28aswIqY.js +7 -0
- package/dist/prism-yaml.min-qeUGcluq-ewW8gbw6.js +28 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/documentation.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createI18n as
|
|
1
|
+
import { defineComponent as q, openBlock as v, createBlock as I, resolveDynamicComponent as Q, unref as _, withCtx as F, createElementVNode as O, renderSlot as V, normalizeClass as Se, computed as j, createElementBlock as $, toDisplayString as P, createVNode as T, mergeProps as ke, ref as Z, Fragment as Xe, createTextVNode as M, createCommentVNode as U, watch as ge, resolveComponent as B, pushScopeId as fe, popScopeId as he, normalizeStyle as Be, reactive as Qe, onMounted as et, Teleport as tt, createSlots as Ce } from "vue";
|
|
2
|
+
import { createI18n as qe, Translation as Me } from "@kong-ui-public/i18n";
|
|
3
3
|
import "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
const
|
|
6
|
+
const nt = {
|
|
7
7
|
common: {
|
|
8
8
|
published: "Published",
|
|
9
9
|
unpublished: "Unpublished"
|
|
@@ -46,60 +46,55 @@ const at = {
|
|
|
46
46
|
ctaText: "New Page"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
},
|
|
50
|
-
documentation:
|
|
49
|
+
}, at = {
|
|
50
|
+
documentation: nt
|
|
51
51
|
};
|
|
52
|
-
function
|
|
52
|
+
function rt() {
|
|
53
53
|
return {
|
|
54
|
-
i18n:
|
|
54
|
+
i18n: qe("en-us", at),
|
|
55
55
|
i18nT: Me
|
|
56
56
|
// Translation component <i18n-t>
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
const Ae = {
|
|
60
|
-
useI18n:
|
|
60
|
+
useI18n: rt
|
|
61
61
|
};
|
|
62
|
-
var
|
|
63
|
-
function
|
|
62
|
+
var X = /* @__PURE__ */ ((e) => (e.header = "header", e.body = "body", e.footer = "footer", e))(X || {}), pe = /* @__PURE__ */ ((e) => (e.left = "left", e.center = "center", e.right = "right", e))(pe || {});
|
|
63
|
+
function ot(e) {
|
|
64
64
|
return (e == null ? void 0 : e.type) === "table_header";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function it(e) {
|
|
67
67
|
return (e == null ? void 0 : e.type) === "text";
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function lt(e) {
|
|
70
70
|
return (e == null ? void 0 : e.type) === "heading";
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function st(e) {
|
|
73
73
|
return (e == null ? void 0 : e.type) === "list";
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const K = (e, n) => {
|
|
76
76
|
const t = e.__vccOpts || e;
|
|
77
|
-
for (const [
|
|
78
|
-
t[
|
|
77
|
+
for (const [r, a] of n)
|
|
78
|
+
t[r] = a;
|
|
79
79
|
return t;
|
|
80
|
-
},
|
|
81
|
-
function
|
|
82
|
-
return v(),
|
|
83
|
-
|
|
80
|
+
}, ut = {};
|
|
81
|
+
function ct(e, n) {
|
|
82
|
+
return v(), $("blockquote", null, [
|
|
83
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
84
84
|
]);
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
88
|
-
return v(),
|
|
89
|
-
|
|
86
|
+
const dt = /* @__PURE__ */ K(ut, [["render", ct], ["__scopeId", "data-v-afdbfde6"]]), pt = {};
|
|
87
|
+
function mt(e, n) {
|
|
88
|
+
return v(), $("code", null, [
|
|
89
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
90
90
|
]);
|
|
91
91
|
}
|
|
92
|
-
const
|
|
93
|
-
var
|
|
94
|
-
function
|
|
92
|
+
const gt = /* @__PURE__ */ K(pt, [["render", mt], ["__scopeId", "data-v-cbde41ab"]]);
|
|
93
|
+
var Ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
94
|
+
function ft(e) {
|
|
95
95
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
96
96
|
}
|
|
97
|
-
var
|
|
98
|
-
(function(e) {
|
|
99
|
-
var n = { 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" } } };
|
|
100
|
-
e.exports && (e.exports = n);
|
|
101
|
-
})(Be);
|
|
102
|
-
var Re = Be.exports, ze = { exports: {} };
|
|
97
|
+
var ze = { exports: {} };
|
|
103
98
|
(function(e) {
|
|
104
99
|
var n = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
105
100
|
/**
|
|
@@ -110,8 +105,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
110
105
|
* @namespace
|
|
111
106
|
* @public
|
|
112
107
|
*/
|
|
113
|
-
var t = function(
|
|
114
|
-
var
|
|
108
|
+
var t = function(r) {
|
|
109
|
+
var a = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, c = 0, s = {}, o = {
|
|
115
110
|
/**
|
|
116
111
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
117
112
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
@@ -133,7 +128,7 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
133
128
|
* @memberof Prism
|
|
134
129
|
* @public
|
|
135
130
|
*/
|
|
136
|
-
manual:
|
|
131
|
+
manual: r.Prism && r.Prism.manual,
|
|
137
132
|
/**
|
|
138
133
|
* By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
|
|
139
134
|
* `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
|
|
@@ -155,7 +150,7 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
155
150
|
* @memberof Prism
|
|
156
151
|
* @public
|
|
157
152
|
*/
|
|
158
|
-
disableWorkerMessageHandler:
|
|
153
|
+
disableWorkerMessageHandler: r.Prism && r.Prism.disableWorkerMessageHandler,
|
|
159
154
|
/**
|
|
160
155
|
* A namespace for utility methods.
|
|
161
156
|
*
|
|
@@ -166,8 +161,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
166
161
|
* @memberof Prism
|
|
167
162
|
*/
|
|
168
163
|
util: {
|
|
169
|
-
encode: function i(
|
|
170
|
-
return
|
|
164
|
+
encode: function i(l) {
|
|
165
|
+
return l instanceof h ? new h(l.type, i(l.content), l.alias) : Array.isArray(l) ? l.map(i) : l.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
171
166
|
},
|
|
172
167
|
/**
|
|
173
168
|
* Returns the name of the type of the given value.
|
|
@@ -207,30 +202,30 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
207
202
|
* @returns {T}
|
|
208
203
|
* @template T
|
|
209
204
|
*/
|
|
210
|
-
clone: function i(
|
|
205
|
+
clone: function i(l, u) {
|
|
211
206
|
u = u || {};
|
|
212
207
|
var d, p;
|
|
213
|
-
switch (
|
|
208
|
+
switch (o.util.type(l)) {
|
|
214
209
|
case "Object":
|
|
215
|
-
if (p =
|
|
210
|
+
if (p = o.util.objId(l), u[p])
|
|
216
211
|
return u[p];
|
|
217
212
|
d = /** @type {Record<string, any>} */
|
|
218
213
|
{}, u[p] = d;
|
|
219
|
-
for (var m in
|
|
220
|
-
|
|
214
|
+
for (var m in l)
|
|
215
|
+
l.hasOwnProperty(m) && (d[m] = i(l[m], u));
|
|
221
216
|
return (
|
|
222
217
|
/** @type {any} */
|
|
223
218
|
d
|
|
224
219
|
);
|
|
225
220
|
case "Array":
|
|
226
|
-
return p =
|
|
221
|
+
return p = o.util.objId(l), u[p] ? u[p] : (d = [], u[p] = d, /** @type {Array} */
|
|
227
222
|
/** @type {any} */
|
|
228
|
-
|
|
229
|
-
d[
|
|
223
|
+
l.forEach(function(b, g) {
|
|
224
|
+
d[g] = i(b, u);
|
|
230
225
|
}), /** @type {any} */
|
|
231
226
|
d);
|
|
232
227
|
default:
|
|
233
|
-
return
|
|
228
|
+
return l;
|
|
234
229
|
}
|
|
235
230
|
},
|
|
236
231
|
/**
|
|
@@ -243,9 +238,9 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
243
238
|
*/
|
|
244
239
|
getLanguage: function(i) {
|
|
245
240
|
for (; i; ) {
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
248
|
-
return
|
|
241
|
+
var l = a.exec(i.className);
|
|
242
|
+
if (l)
|
|
243
|
+
return l[1].toLowerCase();
|
|
249
244
|
i = i.parentElement;
|
|
250
245
|
}
|
|
251
246
|
return "none";
|
|
@@ -257,8 +252,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
257
252
|
* @param {string} language
|
|
258
253
|
* @returns {void}
|
|
259
254
|
*/
|
|
260
|
-
setLanguage: function(i,
|
|
261
|
-
i.className = i.className.replace(RegExp(
|
|
255
|
+
setLanguage: function(i, l) {
|
|
256
|
+
i.className = i.className.replace(RegExp(a, "gi"), ""), i.classList.add("language-" + l);
|
|
262
257
|
},
|
|
263
258
|
/**
|
|
264
259
|
* Returns the script element that is currently executing.
|
|
@@ -280,10 +275,10 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
280
275
|
} catch (d) {
|
|
281
276
|
var i = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(d.stack) || [])[1];
|
|
282
277
|
if (i) {
|
|
283
|
-
var
|
|
284
|
-
for (var u in
|
|
285
|
-
if (
|
|
286
|
-
return
|
|
278
|
+
var l = document.getElementsByTagName("script");
|
|
279
|
+
for (var u in l)
|
|
280
|
+
if (l[u].src == i)
|
|
281
|
+
return l[u];
|
|
287
282
|
}
|
|
288
283
|
return null;
|
|
289
284
|
}
|
|
@@ -307,10 +302,10 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
307
302
|
* @param {boolean} [defaultActivation=false]
|
|
308
303
|
* @returns {boolean}
|
|
309
304
|
*/
|
|
310
|
-
isActive: function(i,
|
|
311
|
-
for (var d = "no-" +
|
|
305
|
+
isActive: function(i, l, u) {
|
|
306
|
+
for (var d = "no-" + l; i; ) {
|
|
312
307
|
var p = i.classList;
|
|
313
|
-
if (p.contains(
|
|
308
|
+
if (p.contains(l))
|
|
314
309
|
return !0;
|
|
315
310
|
if (p.contains(d))
|
|
316
311
|
return !1;
|
|
@@ -362,10 +357,10 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
362
357
|
* 'color': /\b(?:red|green|blue)\b/
|
|
363
358
|
* });
|
|
364
359
|
*/
|
|
365
|
-
extend: function(i,
|
|
366
|
-
var u =
|
|
367
|
-
for (var d in
|
|
368
|
-
u[d] =
|
|
360
|
+
extend: function(i, l) {
|
|
361
|
+
var u = o.util.clone(o.languages[i]);
|
|
362
|
+
for (var d in l)
|
|
363
|
+
u[d] = l[d];
|
|
369
364
|
return u;
|
|
370
365
|
},
|
|
371
366
|
/**
|
|
@@ -443,31 +438,31 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
443
438
|
* @returns {Grammar} The new grammar object.
|
|
444
439
|
* @public
|
|
445
440
|
*/
|
|
446
|
-
insertBefore: function(i,
|
|
441
|
+
insertBefore: function(i, l, u, d) {
|
|
447
442
|
d = d || /** @type {any} */
|
|
448
|
-
|
|
443
|
+
o.languages;
|
|
449
444
|
var p = d[i], m = {};
|
|
450
|
-
for (var
|
|
451
|
-
if (p.hasOwnProperty(
|
|
452
|
-
if (
|
|
453
|
-
for (var
|
|
454
|
-
u.hasOwnProperty(
|
|
455
|
-
u.hasOwnProperty(
|
|
445
|
+
for (var b in p)
|
|
446
|
+
if (p.hasOwnProperty(b)) {
|
|
447
|
+
if (b == l)
|
|
448
|
+
for (var g in u)
|
|
449
|
+
u.hasOwnProperty(g) && (m[g] = u[g]);
|
|
450
|
+
u.hasOwnProperty(b) || (m[b] = p[b]);
|
|
456
451
|
}
|
|
457
|
-
var
|
|
458
|
-
return d[i] = m,
|
|
459
|
-
|
|
452
|
+
var w = d[i];
|
|
453
|
+
return d[i] = m, o.languages.DFS(o.languages, function(C, D) {
|
|
454
|
+
D === w && C != i && (this[C] = m);
|
|
460
455
|
}), m;
|
|
461
456
|
},
|
|
462
457
|
// Traverse a language definition with Depth First Search
|
|
463
|
-
DFS: function i(
|
|
458
|
+
DFS: function i(l, u, d, p) {
|
|
464
459
|
p = p || {};
|
|
465
|
-
var m =
|
|
466
|
-
for (var
|
|
467
|
-
if (
|
|
468
|
-
u.call(
|
|
469
|
-
var
|
|
470
|
-
|
|
460
|
+
var m = o.util.objId;
|
|
461
|
+
for (var b in l)
|
|
462
|
+
if (l.hasOwnProperty(b)) {
|
|
463
|
+
u.call(l, b, l[b], d || b);
|
|
464
|
+
var g = l[b], w = o.util.type(g);
|
|
465
|
+
w === "Object" && !p[m(g)] ? (p[m(g)] = !0, i(g, u, null, p)) : w === "Array" && !p[m(g)] && (p[m(g)] = !0, i(g, u, b, p));
|
|
471
466
|
}
|
|
472
467
|
}
|
|
473
468
|
},
|
|
@@ -484,8 +479,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
484
479
|
* @memberof Prism
|
|
485
480
|
* @public
|
|
486
481
|
*/
|
|
487
|
-
highlightAll: function(i,
|
|
488
|
-
|
|
482
|
+
highlightAll: function(i, l) {
|
|
483
|
+
o.highlightAllUnder(document, i, l);
|
|
489
484
|
},
|
|
490
485
|
/**
|
|
491
486
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -502,15 +497,15 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
502
497
|
* @memberof Prism
|
|
503
498
|
* @public
|
|
504
499
|
*/
|
|
505
|
-
highlightAllUnder: function(i,
|
|
500
|
+
highlightAllUnder: function(i, l, u) {
|
|
506
501
|
var d = {
|
|
507
502
|
callback: u,
|
|
508
503
|
container: i,
|
|
509
504
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
510
505
|
};
|
|
511
|
-
|
|
506
|
+
o.hooks.run("before-highlightall", d), d.elements = Array.prototype.slice.apply(d.container.querySelectorAll(d.selector)), o.hooks.run("before-all-elements-highlight", d);
|
|
512
507
|
for (var p = 0, m; m = d.elements[p++]; )
|
|
513
|
-
|
|
508
|
+
o.highlightElement(m, l === !0, d.callback);
|
|
514
509
|
},
|
|
515
510
|
/**
|
|
516
511
|
* Highlights the code inside a single element.
|
|
@@ -540,39 +535,39 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
540
535
|
* @memberof Prism
|
|
541
536
|
* @public
|
|
542
537
|
*/
|
|
543
|
-
highlightElement: function(i,
|
|
544
|
-
var d =
|
|
545
|
-
|
|
538
|
+
highlightElement: function(i, l, u) {
|
|
539
|
+
var d = o.util.getLanguage(i), p = o.languages[d];
|
|
540
|
+
o.util.setLanguage(i, d);
|
|
546
541
|
var m = i.parentElement;
|
|
547
|
-
m && m.nodeName.toLowerCase() === "pre" &&
|
|
548
|
-
var
|
|
542
|
+
m && m.nodeName.toLowerCase() === "pre" && o.util.setLanguage(m, d);
|
|
543
|
+
var b = i.textContent, g = {
|
|
549
544
|
element: i,
|
|
550
545
|
language: d,
|
|
551
546
|
grammar: p,
|
|
552
|
-
code:
|
|
547
|
+
code: b
|
|
553
548
|
};
|
|
554
|
-
function
|
|
555
|
-
|
|
549
|
+
function w(D) {
|
|
550
|
+
g.highlightedCode = D, o.hooks.run("before-insert", g), g.element.innerHTML = g.highlightedCode, o.hooks.run("after-highlight", g), o.hooks.run("complete", g), u && u.call(g.element);
|
|
556
551
|
}
|
|
557
|
-
if (
|
|
558
|
-
|
|
552
|
+
if (o.hooks.run("before-sanity-check", g), m = g.element.parentElement, m && m.nodeName.toLowerCase() === "pre" && !m.hasAttribute("tabindex") && m.setAttribute("tabindex", "0"), !g.code) {
|
|
553
|
+
o.hooks.run("complete", g), u && u.call(g.element);
|
|
559
554
|
return;
|
|
560
555
|
}
|
|
561
|
-
if (
|
|
562
|
-
|
|
556
|
+
if (o.hooks.run("before-highlight", g), !g.grammar) {
|
|
557
|
+
w(o.util.encode(g.code));
|
|
563
558
|
return;
|
|
564
559
|
}
|
|
565
|
-
if (
|
|
566
|
-
var
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
},
|
|
570
|
-
language:
|
|
571
|
-
code:
|
|
560
|
+
if (l && r.Worker) {
|
|
561
|
+
var C = new Worker(o.filename);
|
|
562
|
+
C.onmessage = function(D) {
|
|
563
|
+
w(D.data);
|
|
564
|
+
}, C.postMessage(JSON.stringify({
|
|
565
|
+
language: g.language,
|
|
566
|
+
code: g.code,
|
|
572
567
|
immediateClose: !0
|
|
573
568
|
}));
|
|
574
569
|
} else
|
|
575
|
-
|
|
570
|
+
w(o.highlight(g.code, g.grammar, g.language));
|
|
576
571
|
},
|
|
577
572
|
/**
|
|
578
573
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -594,15 +589,15 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
594
589
|
* @example
|
|
595
590
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
596
591
|
*/
|
|
597
|
-
highlight: function(i,
|
|
592
|
+
highlight: function(i, l, u) {
|
|
598
593
|
var d = {
|
|
599
594
|
code: i,
|
|
600
|
-
grammar:
|
|
595
|
+
grammar: l,
|
|
601
596
|
language: u
|
|
602
597
|
};
|
|
603
|
-
if (
|
|
598
|
+
if (o.hooks.run("before-tokenize", d), !d.grammar)
|
|
604
599
|
throw new Error('The language "' + d.language + '" has no grammar.');
|
|
605
|
-
return d.tokens =
|
|
600
|
+
return d.tokens = o.tokenize(d.code, d.grammar), o.hooks.run("after-tokenize", d), h.stringify(o.util.encode(d.tokens), d.language);
|
|
606
601
|
},
|
|
607
602
|
/**
|
|
608
603
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -628,15 +623,15 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
628
623
|
* }
|
|
629
624
|
* });
|
|
630
625
|
*/
|
|
631
|
-
tokenize: function(i,
|
|
632
|
-
var u =
|
|
626
|
+
tokenize: function(i, l) {
|
|
627
|
+
var u = l.rest;
|
|
633
628
|
if (u) {
|
|
634
629
|
for (var d in u)
|
|
635
|
-
|
|
636
|
-
delete
|
|
630
|
+
l[d] = u[d];
|
|
631
|
+
delete l.rest;
|
|
637
632
|
}
|
|
638
|
-
var p = new
|
|
639
|
-
return
|
|
633
|
+
var p = new S();
|
|
634
|
+
return L(p, p.head, i), E(i, p, l, p.head, 0), k(p);
|
|
640
635
|
},
|
|
641
636
|
/**
|
|
642
637
|
* @namespace
|
|
@@ -657,9 +652,9 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
657
652
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
658
653
|
* @public
|
|
659
654
|
*/
|
|
660
|
-
add: function(i,
|
|
661
|
-
var u =
|
|
662
|
-
u[i] = u[i] || [], u[i].push(
|
|
655
|
+
add: function(i, l) {
|
|
656
|
+
var u = o.hooks.all;
|
|
657
|
+
u[i] = u[i] || [], u[i].push(l);
|
|
663
658
|
},
|
|
664
659
|
/**
|
|
665
660
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -670,44 +665,44 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
670
665
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
671
666
|
* @public
|
|
672
667
|
*/
|
|
673
|
-
run: function(i,
|
|
674
|
-
var u =
|
|
668
|
+
run: function(i, l) {
|
|
669
|
+
var u = o.hooks.all[i];
|
|
675
670
|
if (!(!u || !u.length))
|
|
676
671
|
for (var d = 0, p; p = u[d++]; )
|
|
677
|
-
p(
|
|
672
|
+
p(l);
|
|
678
673
|
}
|
|
679
674
|
},
|
|
680
|
-
Token:
|
|
675
|
+
Token: h
|
|
681
676
|
};
|
|
682
|
-
|
|
683
|
-
function
|
|
684
|
-
this.type = i, this.content =
|
|
677
|
+
r.Prism = o;
|
|
678
|
+
function h(i, l, u, d) {
|
|
679
|
+
this.type = i, this.content = l, this.alias = u, this.length = (d || "").length | 0;
|
|
685
680
|
}
|
|
686
|
-
|
|
687
|
-
if (typeof
|
|
688
|
-
return
|
|
689
|
-
if (Array.isArray(
|
|
681
|
+
h.stringify = function i(l, u) {
|
|
682
|
+
if (typeof l == "string")
|
|
683
|
+
return l;
|
|
684
|
+
if (Array.isArray(l)) {
|
|
690
685
|
var d = "";
|
|
691
|
-
return
|
|
692
|
-
d += i(
|
|
686
|
+
return l.forEach(function(w) {
|
|
687
|
+
d += i(w, u);
|
|
693
688
|
}), d;
|
|
694
689
|
}
|
|
695
690
|
var p = {
|
|
696
|
-
type:
|
|
697
|
-
content: i(
|
|
691
|
+
type: l.type,
|
|
692
|
+
content: i(l.content, u),
|
|
698
693
|
tag: "span",
|
|
699
|
-
classes: ["token",
|
|
694
|
+
classes: ["token", l.type],
|
|
700
695
|
attributes: {},
|
|
701
696
|
language: u
|
|
702
|
-
}, m =
|
|
703
|
-
m && (Array.isArray(m) ? Array.prototype.push.apply(p.classes, m) : p.classes.push(m)),
|
|
704
|
-
var
|
|
705
|
-
for (var
|
|
706
|
-
|
|
707
|
-
return "<" + p.tag + ' class="' + p.classes.join(" ") + '"' +
|
|
697
|
+
}, m = l.alias;
|
|
698
|
+
m && (Array.isArray(m) ? Array.prototype.push.apply(p.classes, m) : p.classes.push(m)), o.hooks.run("wrap", p);
|
|
699
|
+
var b = "";
|
|
700
|
+
for (var g in p.attributes)
|
|
701
|
+
b += " " + g + '="' + (p.attributes[g] || "").replace(/"/g, """) + '"';
|
|
702
|
+
return "<" + p.tag + ' class="' + p.classes.join(" ") + '"' + b + ">" + p.content + "</" + p.tag + ">";
|
|
708
703
|
};
|
|
709
|
-
function
|
|
710
|
-
i.lastIndex =
|
|
704
|
+
function f(i, l, u, d) {
|
|
705
|
+
i.lastIndex = l;
|
|
711
706
|
var p = i.exec(u);
|
|
712
707
|
if (p && d && p[1]) {
|
|
713
708
|
var m = p[1].length;
|
|
@@ -715,90 +710,90 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
715
710
|
}
|
|
716
711
|
return p;
|
|
717
712
|
}
|
|
718
|
-
function
|
|
719
|
-
for (var
|
|
720
|
-
if (!(!u.hasOwnProperty(
|
|
721
|
-
var
|
|
722
|
-
|
|
723
|
-
for (var
|
|
724
|
-
if (m && m.cause ==
|
|
713
|
+
function E(i, l, u, d, p, m) {
|
|
714
|
+
for (var b in u)
|
|
715
|
+
if (!(!u.hasOwnProperty(b) || !u[b])) {
|
|
716
|
+
var g = u[b];
|
|
717
|
+
g = Array.isArray(g) ? g : [g];
|
|
718
|
+
for (var w = 0; w < g.length; ++w) {
|
|
719
|
+
if (m && m.cause == b + "," + w)
|
|
725
720
|
return;
|
|
726
|
-
var
|
|
727
|
-
if (
|
|
728
|
-
var ne =
|
|
729
|
-
|
|
721
|
+
var C = g[w], D = C.inside, W = !!C.lookbehind, oe = !!C.greedy, ve = C.alias;
|
|
722
|
+
if (oe && !C.pattern.global) {
|
|
723
|
+
var ne = C.pattern.toString().match(/[imsuy]*$/)[0];
|
|
724
|
+
C.pattern = RegExp(C.pattern.source, ne + "g");
|
|
730
725
|
}
|
|
731
|
-
for (var
|
|
732
|
-
var ee =
|
|
733
|
-
if (
|
|
726
|
+
for (var ie = C.pattern || C, N = d.next, Y = p; N !== l.tail && !(m && Y >= m.reach); Y += N.value.length, N = N.next) {
|
|
727
|
+
var ee = N.value;
|
|
728
|
+
if (l.length > i.length)
|
|
734
729
|
return;
|
|
735
|
-
if (!(ee instanceof
|
|
736
|
-
var le = 1,
|
|
737
|
-
if (
|
|
738
|
-
if (
|
|
730
|
+
if (!(ee instanceof h)) {
|
|
731
|
+
var le = 1, H;
|
|
732
|
+
if (oe) {
|
|
733
|
+
if (H = f(ie, Y, i, W), !H || H.index >= i.length)
|
|
739
734
|
break;
|
|
740
|
-
var se =
|
|
741
|
-
for (
|
|
742
|
-
|
|
743
|
-
if (
|
|
735
|
+
var se = H.index, We = H.index + H[0].length, J = Y;
|
|
736
|
+
for (J += N.value.length; se >= J; )
|
|
737
|
+
N = N.next, J += N.value.length;
|
|
738
|
+
if (J -= N.value.length, Y = J, N.value instanceof h)
|
|
744
739
|
continue;
|
|
745
|
-
for (var
|
|
746
|
-
le++,
|
|
747
|
-
le--, ee = i.slice(
|
|
748
|
-
} else if (
|
|
740
|
+
for (var ae = N; ae !== l.tail && (J < We || typeof ae.value == "string"); ae = ae.next)
|
|
741
|
+
le++, J += ae.value.length;
|
|
742
|
+
le--, ee = i.slice(Y, J), H.index -= Y;
|
|
743
|
+
} else if (H = f(ie, 0, ee, W), !H)
|
|
749
744
|
continue;
|
|
750
|
-
var se =
|
|
751
|
-
m &&
|
|
752
|
-
var ce =
|
|
753
|
-
|
|
754
|
-
var
|
|
755
|
-
if (
|
|
756
|
-
var
|
|
757
|
-
cause:
|
|
758
|
-
reach:
|
|
745
|
+
var se = H.index, ue = H[0], be = ee.slice(0, se), Ee = ee.slice(se + ue.length), ye = Y + ee.length;
|
|
746
|
+
m && ye > m.reach && (m.reach = ye);
|
|
747
|
+
var ce = N.prev;
|
|
748
|
+
be && (ce = L(l, ce, be), Y += be.length), R(l, ce, le);
|
|
749
|
+
var Ge = new h(b, D ? o.tokenize(ue, D) : ue, ve, ue);
|
|
750
|
+
if (N = L(l, ce, Ge), Ee && L(l, N, Ee), le > 1) {
|
|
751
|
+
var _e = {
|
|
752
|
+
cause: b + "," + w,
|
|
753
|
+
reach: ye
|
|
759
754
|
};
|
|
760
|
-
|
|
755
|
+
E(i, l, u, N.prev, Y, _e), m && _e.reach > m.reach && (m.reach = _e.reach);
|
|
761
756
|
}
|
|
762
757
|
}
|
|
763
758
|
}
|
|
764
759
|
}
|
|
765
760
|
}
|
|
766
761
|
}
|
|
767
|
-
function
|
|
768
|
-
var i = { value: null, prev: null, next: null },
|
|
769
|
-
i.next =
|
|
762
|
+
function S() {
|
|
763
|
+
var i = { value: null, prev: null, next: null }, l = { value: null, prev: i, next: null };
|
|
764
|
+
i.next = l, this.head = i, this.tail = l, this.length = 0;
|
|
770
765
|
}
|
|
771
|
-
function
|
|
772
|
-
var d =
|
|
773
|
-
return
|
|
766
|
+
function L(i, l, u) {
|
|
767
|
+
var d = l.next, p = { value: u, prev: l, next: d };
|
|
768
|
+
return l.next = p, d.prev = p, i.length++, p;
|
|
774
769
|
}
|
|
775
|
-
function
|
|
776
|
-
for (var d =
|
|
770
|
+
function R(i, l, u) {
|
|
771
|
+
for (var d = l.next, p = 0; p < u && d !== i.tail; p++)
|
|
777
772
|
d = d.next;
|
|
778
|
-
|
|
773
|
+
l.next = d, d.prev = l, i.length -= p;
|
|
779
774
|
}
|
|
780
|
-
function
|
|
781
|
-
for (var
|
|
782
|
-
|
|
783
|
-
return
|
|
775
|
+
function k(i) {
|
|
776
|
+
for (var l = [], u = i.head.next; u !== i.tail; )
|
|
777
|
+
l.push(u.value), u = u.next;
|
|
778
|
+
return l;
|
|
784
779
|
}
|
|
785
|
-
if (!
|
|
786
|
-
return
|
|
787
|
-
var
|
|
788
|
-
|
|
789
|
-
}, !1)),
|
|
790
|
-
var
|
|
791
|
-
|
|
792
|
-
function
|
|
793
|
-
|
|
780
|
+
if (!r.document)
|
|
781
|
+
return r.addEventListener && (o.disableWorkerMessageHandler || r.addEventListener("message", function(i) {
|
|
782
|
+
var l = JSON.parse(i.data), u = l.language, d = l.code, p = l.immediateClose;
|
|
783
|
+
r.postMessage(o.highlight(d, o.languages[u], u)), p && r.close();
|
|
784
|
+
}, !1)), o;
|
|
785
|
+
var y = o.util.currentScript();
|
|
786
|
+
y && (o.filename = y.src, y.hasAttribute("data-manual") && (o.manual = !0));
|
|
787
|
+
function x() {
|
|
788
|
+
o.manual || o.highlightAll();
|
|
794
789
|
}
|
|
795
|
-
if (!
|
|
796
|
-
var
|
|
797
|
-
|
|
790
|
+
if (!o.manual) {
|
|
791
|
+
var A = document.readyState;
|
|
792
|
+
A === "loading" || A === "interactive" && y && y.defer ? document.addEventListener("DOMContentLoaded", x) : window.requestAnimationFrame ? window.requestAnimationFrame(x) : window.setTimeout(x, 16);
|
|
798
793
|
}
|
|
799
|
-
return
|
|
794
|
+
return o;
|
|
800
795
|
}(n);
|
|
801
|
-
e.exports && (e.exports = t), typeof
|
|
796
|
+
e.exports && (e.exports = t), typeof Ie < "u" && (Ie.Prism = t), t.languages.markup = {
|
|
802
797
|
comment: {
|
|
803
798
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
804
799
|
greedy: !0
|
|
@@ -875,8 +870,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
875
870
|
},
|
|
876
871
|
/&#x?[\da-f]{1,8};/i
|
|
877
872
|
]
|
|
878
|
-
}, 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(
|
|
879
|
-
|
|
873
|
+
}, 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(r) {
|
|
874
|
+
r.type === "entity" && (r.attributes.title = r.content.replace(/&/, "&"));
|
|
880
875
|
}), Object.defineProperty(t.languages.markup.tag, "addInlined", {
|
|
881
876
|
/**
|
|
882
877
|
* Adds an inlined language to markup.
|
|
@@ -889,12 +884,12 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
889
884
|
* @example
|
|
890
885
|
* addInlined('style', 'css');
|
|
891
886
|
*/
|
|
892
|
-
value: function(
|
|
887
|
+
value: function(r, a) {
|
|
893
888
|
var c = {};
|
|
894
|
-
c["language-" +
|
|
889
|
+
c["language-" + a] = {
|
|
895
890
|
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
896
891
|
lookbehind: !0,
|
|
897
|
-
inside: t.languages[
|
|
892
|
+
inside: t.languages[a]
|
|
898
893
|
}, c.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
899
894
|
var s = {
|
|
900
895
|
"included-cdata": {
|
|
@@ -902,19 +897,19 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
902
897
|
inside: c
|
|
903
898
|
}
|
|
904
899
|
};
|
|
905
|
-
s["language-" +
|
|
900
|
+
s["language-" + a] = {
|
|
906
901
|
pattern: /[\s\S]+/,
|
|
907
|
-
inside: t.languages[
|
|
902
|
+
inside: t.languages[a]
|
|
908
903
|
};
|
|
909
|
-
var
|
|
910
|
-
|
|
904
|
+
var o = {};
|
|
905
|
+
o[r] = {
|
|
911
906
|
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
912
|
-
return
|
|
907
|
+
return r;
|
|
913
908
|
}), "i"),
|
|
914
909
|
lookbehind: !0,
|
|
915
910
|
greedy: !0,
|
|
916
911
|
inside: s
|
|
917
|
-
}, t.languages.insertBefore("markup", "cdata",
|
|
912
|
+
}, t.languages.insertBefore("markup", "cdata", o);
|
|
918
913
|
}
|
|
919
914
|
}), Object.defineProperty(t.languages.markup.tag, "addAttribute", {
|
|
920
915
|
/**
|
|
@@ -928,10 +923,10 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
928
923
|
* @example
|
|
929
924
|
* addAttribute('style', 'css');
|
|
930
925
|
*/
|
|
931
|
-
value: function(
|
|
926
|
+
value: function(r, a) {
|
|
932
927
|
t.languages.markup.tag.inside["special-attr"].push({
|
|
933
928
|
pattern: RegExp(
|
|
934
|
-
/(^|["'\s])/.source + "(?:" +
|
|
929
|
+
/(^|["'\s])/.source + "(?:" + r + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
935
930
|
"i"
|
|
936
931
|
),
|
|
937
932
|
lookbehind: !0,
|
|
@@ -943,8 +938,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
943
938
|
value: {
|
|
944
939
|
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
945
940
|
lookbehind: !0,
|
|
946
|
-
alias: [
|
|
947
|
-
inside: t.languages[
|
|
941
|
+
alias: [a, "language-" + a],
|
|
942
|
+
inside: t.languages[a]
|
|
948
943
|
},
|
|
949
944
|
punctuation: [
|
|
950
945
|
{
|
|
@@ -958,12 +953,12 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
958
953
|
}
|
|
959
954
|
});
|
|
960
955
|
}
|
|
961
|
-
}), 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(
|
|
962
|
-
var
|
|
963
|
-
|
|
956
|
+
}), 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(r) {
|
|
957
|
+
var a = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
958
|
+
r.languages.css = {
|
|
964
959
|
comment: /\/\*[\s\S]*?\*\//,
|
|
965
960
|
atrule: {
|
|
966
|
-
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" +
|
|
961
|
+
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + a.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
967
962
|
inside: {
|
|
968
963
|
rule: /^@[\w-]+/,
|
|
969
964
|
"selector-function-argument": {
|
|
@@ -980,23 +975,23 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
980
975
|
},
|
|
981
976
|
url: {
|
|
982
977
|
// https://drafts.csswg.org/css-values-3/#urls
|
|
983
|
-
pattern: RegExp("\\burl\\((?:" +
|
|
978
|
+
pattern: RegExp("\\burl\\((?:" + a.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
|
|
984
979
|
greedy: !0,
|
|
985
980
|
inside: {
|
|
986
981
|
function: /^url/i,
|
|
987
982
|
punctuation: /^\(|\)$/,
|
|
988
983
|
string: {
|
|
989
|
-
pattern: RegExp("^" +
|
|
984
|
+
pattern: RegExp("^" + a.source + "$"),
|
|
990
985
|
alias: "url"
|
|
991
986
|
}
|
|
992
987
|
}
|
|
993
988
|
},
|
|
994
989
|
selector: {
|
|
995
|
-
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` +
|
|
990
|
+
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + a.source + ")*(?=\\s*\\{)"),
|
|
996
991
|
lookbehind: !0
|
|
997
992
|
},
|
|
998
993
|
string: {
|
|
999
|
-
pattern:
|
|
994
|
+
pattern: a,
|
|
1000
995
|
greedy: !0
|
|
1001
996
|
},
|
|
1002
997
|
property: {
|
|
@@ -1009,8 +1004,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
1009
1004
|
lookbehind: !0
|
|
1010
1005
|
},
|
|
1011
1006
|
punctuation: /[(){};:,]/
|
|
1012
|
-
},
|
|
1013
|
-
var c =
|
|
1007
|
+
}, r.languages.css.atrule.inside.rest = r.languages.css;
|
|
1008
|
+
var c = r.languages.markup;
|
|
1014
1009
|
c && (c.tag.addInlined("style", "css"), c.tag.addAttribute("style", "css"));
|
|
1015
1010
|
}(t), t.languages.clike = {
|
|
1016
1011
|
comment: [
|
|
@@ -1176,8 +1171,8 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
1176
1171
|
if (typeof t > "u" || typeof document > "u")
|
|
1177
1172
|
return;
|
|
1178
1173
|
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
1179
|
-
var
|
|
1180
|
-
return "✖ Error " +
|
|
1174
|
+
var r = "Loading…", a = function(y, x) {
|
|
1175
|
+
return "✖ Error " + y + " while fetching file: " + x;
|
|
1181
1176
|
}, c = "✖ Error: File does not exist or is empty", s = {
|
|
1182
1177
|
js: "javascript",
|
|
1183
1178
|
py: "python",
|
|
@@ -1188,52 +1183,52 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
1188
1183
|
bat: "batch",
|
|
1189
1184
|
h: "c",
|
|
1190
1185
|
tex: "latex"
|
|
1191
|
-
},
|
|
1192
|
-
function
|
|
1186
|
+
}, o = "data-src-status", h = "loading", f = "loaded", E = "failed", S = "pre[data-src]:not([" + o + '="' + f + '"]):not([' + o + '="' + h + '"])';
|
|
1187
|
+
function L(y, x, A) {
|
|
1193
1188
|
var i = new XMLHttpRequest();
|
|
1194
|
-
i.open("GET",
|
|
1195
|
-
i.readyState == 4 && (i.status < 400 && i.responseText ?
|
|
1189
|
+
i.open("GET", y, !0), i.onreadystatechange = function() {
|
|
1190
|
+
i.readyState == 4 && (i.status < 400 && i.responseText ? x(i.responseText) : i.status >= 400 ? A(a(i.status, i.statusText)) : A(c));
|
|
1196
1191
|
}, i.send(null);
|
|
1197
1192
|
}
|
|
1198
|
-
function
|
|
1199
|
-
var
|
|
1200
|
-
if (
|
|
1201
|
-
var
|
|
1202
|
-
return i ?
|
|
1193
|
+
function R(y) {
|
|
1194
|
+
var x = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(y || "");
|
|
1195
|
+
if (x) {
|
|
1196
|
+
var A = Number(x[1]), i = x[2], l = x[3];
|
|
1197
|
+
return i ? l ? [A, Number(l)] : [A, void 0] : [A, A];
|
|
1203
1198
|
}
|
|
1204
1199
|
}
|
|
1205
|
-
t.hooks.add("before-highlightall", function(
|
|
1206
|
-
|
|
1207
|
-
}), t.hooks.add("before-sanity-check", function(
|
|
1208
|
-
var
|
|
1200
|
+
t.hooks.add("before-highlightall", function(y) {
|
|
1201
|
+
y.selector += ", " + S;
|
|
1202
|
+
}), t.hooks.add("before-sanity-check", function(y) {
|
|
1203
|
+
var x = (
|
|
1209
1204
|
/** @type {HTMLPreElement} */
|
|
1210
|
-
|
|
1205
|
+
y.element
|
|
1211
1206
|
);
|
|
1212
|
-
if (
|
|
1213
|
-
|
|
1214
|
-
var
|
|
1215
|
-
|
|
1216
|
-
var i =
|
|
1217
|
-
if (
|
|
1207
|
+
if (x.matches(S)) {
|
|
1208
|
+
y.code = "", x.setAttribute(o, h);
|
|
1209
|
+
var A = x.appendChild(document.createElement("CODE"));
|
|
1210
|
+
A.textContent = r;
|
|
1211
|
+
var i = x.getAttribute("data-src"), l = y.language;
|
|
1212
|
+
if (l === "none") {
|
|
1218
1213
|
var u = (/\.(\w+)$/.exec(i) || [, "none"])[1];
|
|
1219
|
-
|
|
1214
|
+
l = s[u] || u;
|
|
1220
1215
|
}
|
|
1221
|
-
t.util.setLanguage(
|
|
1216
|
+
t.util.setLanguage(A, l), t.util.setLanguage(x, l);
|
|
1222
1217
|
var d = t.plugins.autoloader;
|
|
1223
|
-
d && d.loadLanguages(
|
|
1218
|
+
d && d.loadLanguages(l), L(
|
|
1224
1219
|
i,
|
|
1225
1220
|
function(p) {
|
|
1226
|
-
|
|
1227
|
-
var m =
|
|
1221
|
+
x.setAttribute(o, f);
|
|
1222
|
+
var m = R(x.getAttribute("data-range"));
|
|
1228
1223
|
if (m) {
|
|
1229
|
-
var
|
|
1230
|
-
|
|
1231
|
-
`),
|
|
1224
|
+
var b = p.split(/\r\n?|\n/g), g = m[0], w = m[1] == null ? b.length : m[1];
|
|
1225
|
+
g < 0 && (g += b.length), g = Math.max(0, Math.min(g - 1, b.length)), w < 0 && (w += b.length), w = Math.max(0, Math.min(w, b.length)), p = b.slice(g, w).join(`
|
|
1226
|
+
`), x.hasAttribute("data-start") || x.setAttribute("data-start", String(g + 1));
|
|
1232
1227
|
}
|
|
1233
|
-
|
|
1228
|
+
A.textContent = p, t.highlightElement(A);
|
|
1234
1229
|
},
|
|
1235
1230
|
function(p) {
|
|
1236
|
-
|
|
1231
|
+
x.setAttribute(o, E), A.textContent = p;
|
|
1237
1232
|
}
|
|
1238
1233
|
);
|
|
1239
1234
|
}
|
|
@@ -1245,19 +1240,19 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
1245
1240
|
*
|
|
1246
1241
|
* @param {ParentNode} [container=document]
|
|
1247
1242
|
*/
|
|
1248
|
-
highlight: function(
|
|
1249
|
-
for (var
|
|
1243
|
+
highlight: function(y) {
|
|
1244
|
+
for (var x = (y || document).querySelectorAll(S), A = 0, i; i = x[A++]; )
|
|
1250
1245
|
t.highlightElement(i);
|
|
1251
1246
|
}
|
|
1252
1247
|
};
|
|
1253
|
-
var
|
|
1248
|
+
var k = !1;
|
|
1254
1249
|
t.fileHighlight = function() {
|
|
1255
|
-
|
|
1250
|
+
k || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), k = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
1256
1251
|
};
|
|
1257
1252
|
}();
|
|
1258
1253
|
})(ze);
|
|
1259
|
-
var
|
|
1260
|
-
const de = /* @__PURE__ */
|
|
1254
|
+
var ht = ze.exports;
|
|
1255
|
+
const de = /* @__PURE__ */ ft(ht), vt = /* @__PURE__ */ q({
|
|
1261
1256
|
__name: "CodeBlock",
|
|
1262
1257
|
props: {
|
|
1263
1258
|
codeBlockIndex: {
|
|
@@ -1279,36 +1274,51 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
|
|
|
1279
1274
|
},
|
|
1280
1275
|
setup(e) {
|
|
1281
1276
|
de.manual = !0;
|
|
1282
|
-
const n = e, t =
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
}, []).sort();
|
|
1286
|
-
function r(g) {
|
|
1287
|
-
t.value = !0, de.languages[g.language] || console.warn(`Prism: the language “${g.language}” isn’t enabled.`), g.preElement.classList.contains(`language-${g.language}`) || g.preElement.classList.add(`language-${g.language}`), g.codeElement.innerHTML = c(g.code), de.highlightElement(g.codeElement), t.value = !1;
|
|
1277
|
+
const n = e, t = Z(!1);
|
|
1278
|
+
function r(o) {
|
|
1279
|
+
t.value = !0, de.languages[o.language] || console.warn(`Prism: the language “${o.language}” isn’t enabled.`), o.preElement.classList.contains(`language-${o.language}`) || o.preElement.classList.add(`language-${o.language}`), o.codeElement.innerHTML = a(o.code), de.highlightElement(o.codeElement), t.value = !1;
|
|
1288
1280
|
}
|
|
1289
|
-
const
|
|
1290
|
-
var
|
|
1291
|
-
const
|
|
1292
|
-
return
|
|
1293
|
-
`) && !n.isSingleLine ?
|
|
1281
|
+
const a = (o) => o.replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'"), c = j(() => `document-code-block-${n.codeBlockIndex}`), s = j(() => {
|
|
1282
|
+
var o, h;
|
|
1283
|
+
const f = ((h = (o = n.lines) == null ? void 0 : o.flatMap((E) => E.text)) == null ? void 0 : h.join("")) || "";
|
|
1284
|
+
return f.endsWith(`
|
|
1285
|
+
`) && !n.isSingleLine ? f.slice(0, -1) : f;
|
|
1294
1286
|
});
|
|
1295
|
-
return ge(() => n.lang, async (
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
)
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1287
|
+
return ge(() => n.lang, async () => {
|
|
1288
|
+
try {
|
|
1289
|
+
await Promise.all([
|
|
1290
|
+
import("./prism-bash.min-vAvTx02J-aOB98otF.js"),
|
|
1291
|
+
import("./prism-css.min-T5ysc1kX-T5ysc1kX.js"),
|
|
1292
|
+
import("./prism-docker.min-8pzECyO2-W1QkyWCu.js"),
|
|
1293
|
+
import("./prism-go.min-uppVtd_Y-uppVtd_Y.js"),
|
|
1294
|
+
import("./prism-http.min-yMXrS1l9-r_ESJlxs.js"),
|
|
1295
|
+
import("./prism-javascript.min-hvuJDaiR-hvuJDaiR.js"),
|
|
1296
|
+
import("./prism-jq.min-EXJzRhH--EXJzRhH-.js"),
|
|
1297
|
+
import("./prism-json.min-1zfY9gEI-1zfY9gEI.js"),
|
|
1298
|
+
import("./prism-log.min-c8dXT1vB-c8dXT1vB.js"),
|
|
1299
|
+
import("./prism-lua.min-GpAHgnCN-GpAHgnCN.js"),
|
|
1300
|
+
import("./prism-makefile.min-XKfdqVzq-XKfdqVzq.js"),
|
|
1301
|
+
import("./prism-markdown.min-hV2SE6LK-pvVrJovK.js"),
|
|
1302
|
+
import("./prism-python.min-5aoERcK6-5aoERcK6.js"),
|
|
1303
|
+
import("./prism-regex.min-Ej1kQav2-Ej1kQav2.js"),
|
|
1304
|
+
import("./prism-rust.min-I56KUKDO-I56KUKDO.js"),
|
|
1305
|
+
import("./prism-rest.min-kotzRXWB-kotzRXWB.js"),
|
|
1306
|
+
import("./prism-scss.min-Als0FLXB-Als0FLXB.js"),
|
|
1307
|
+
import("./prism-sql.min-pOHT8XZf-pOHT8XZf.js"),
|
|
1308
|
+
import("./prism-typescript.min-c31ffb60-c31ffb60.js"),
|
|
1309
|
+
import("./prism-yaml.min-qeUGcluq-ewW8gbw6.js"),
|
|
1310
|
+
import("./prism-xml-doc.min-g6asX3wp-28aswIqY.js")
|
|
1311
|
+
]);
|
|
1312
|
+
} catch {
|
|
1313
|
+
console.warn("Could not import PrismJS language file.");
|
|
1314
|
+
}
|
|
1305
1315
|
de.highlightAll();
|
|
1306
|
-
}, { immediate: !0 }), (
|
|
1307
|
-
const
|
|
1308
|
-
return v(),
|
|
1309
|
-
id:
|
|
1316
|
+
}, { immediate: !0 }), (o, h) => {
|
|
1317
|
+
const f = B("KCodeBlock");
|
|
1318
|
+
return v(), I(f, {
|
|
1319
|
+
id: c.value,
|
|
1310
1320
|
class: "document-code-block",
|
|
1311
|
-
code:
|
|
1321
|
+
code: s.value,
|
|
1312
1322
|
"is-processing": t.value,
|
|
1313
1323
|
"is-single-line": e.isSingleLine,
|
|
1314
1324
|
language: e.lang,
|
|
@@ -1317,7 +1327,7 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
|
|
|
1317
1327
|
}, null, 8, ["id", "code", "is-processing", "is-single-line", "language"]);
|
|
1318
1328
|
};
|
|
1319
1329
|
}
|
|
1320
|
-
}),
|
|
1330
|
+
}), bt = /* @__PURE__ */ K(vt, [["__scopeId", "data-v-b2f66a85"]]), yt = /* @__PURE__ */ q({
|
|
1321
1331
|
__name: "Emphasis",
|
|
1322
1332
|
props: {
|
|
1323
1333
|
level: {
|
|
@@ -1333,14 +1343,14 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
|
|
|
1333
1343
|
},
|
|
1334
1344
|
setup(e) {
|
|
1335
1345
|
const n = e.level === 1 ? "em" : "strong";
|
|
1336
|
-
return (t,
|
|
1337
|
-
default:
|
|
1338
|
-
|
|
1346
|
+
return (t, r) => (v(), I(Q(_(n)), null, {
|
|
1347
|
+
default: F(() => [
|
|
1348
|
+
V(t.$slots, "default")
|
|
1339
1349
|
]),
|
|
1340
1350
|
_: 3
|
|
1341
1351
|
}));
|
|
1342
1352
|
}
|
|
1343
|
-
}),
|
|
1353
|
+
}), _t = /* @__PURE__ */ q({
|
|
1344
1354
|
__name: "Heading",
|
|
1345
1355
|
props: {
|
|
1346
1356
|
level: {
|
|
@@ -1359,15 +1369,15 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
|
|
|
1359
1369
|
}
|
|
1360
1370
|
},
|
|
1361
1371
|
setup(e) {
|
|
1362
|
-
const n = e, t = `${n.slug}`,
|
|
1363
|
-
return (
|
|
1364
|
-
default:
|
|
1365
|
-
|
|
1372
|
+
const n = e, t = `${n.slug}`, r = `h${n.level}`;
|
|
1373
|
+
return (a, c) => (v(), I(Q(r), { id: t }, {
|
|
1374
|
+
default: F(() => [
|
|
1375
|
+
V(a.$slots, "default", {}, void 0, !0)
|
|
1366
1376
|
]),
|
|
1367
1377
|
_: 3
|
|
1368
1378
|
}));
|
|
1369
1379
|
}
|
|
1370
|
-
}),
|
|
1380
|
+
}), kt = /* @__PURE__ */ K(_t, [["__scopeId", "data-v-9ef4ad64"]]), xt = ["alt", "src", "title"], wt = /* @__PURE__ */ q({
|
|
1371
1381
|
__name: "Image",
|
|
1372
1382
|
props: {
|
|
1373
1383
|
url: {
|
|
@@ -1384,49 +1394,49 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
|
|
|
1384
1394
|
}
|
|
1385
1395
|
},
|
|
1386
1396
|
setup(e) {
|
|
1387
|
-
return (n, t) => (v(),
|
|
1397
|
+
return (n, t) => (v(), $("img", {
|
|
1388
1398
|
alt: e.alt,
|
|
1389
1399
|
src: e.url,
|
|
1390
1400
|
title: e.title
|
|
1391
|
-
}, null, 8,
|
|
1401
|
+
}, null, 8, xt));
|
|
1392
1402
|
}
|
|
1393
|
-
}),
|
|
1394
|
-
function Ct(e, n) {
|
|
1395
|
-
return v(), C("hr");
|
|
1396
|
-
}
|
|
1397
|
-
const Tt = /* @__PURE__ */ B(qt, [["render", Ct], ["__scopeId", "data-v-b6e25b56"]]), jt = {};
|
|
1403
|
+
}), St = /* @__PURE__ */ K(wt, [["__scopeId", "data-v-13314abe"]]), At = {};
|
|
1398
1404
|
function Ft(e, n) {
|
|
1399
|
-
return v(),
|
|
1400
|
-
z(e.$slots, "default")
|
|
1401
|
-
]);
|
|
1405
|
+
return v(), $("hr");
|
|
1402
1406
|
}
|
|
1403
|
-
const
|
|
1407
|
+
const $t = /* @__PURE__ */ K(At, [["render", Ft], ["__scopeId", "data-v-b6e25b56"]]), Nt = {};
|
|
1404
1408
|
function Et(e, n) {
|
|
1405
|
-
return v(),
|
|
1406
|
-
|
|
1409
|
+
return v(), $("s", null, [
|
|
1410
|
+
V(e.$slots, "default")
|
|
1411
|
+
]);
|
|
1412
|
+
}
|
|
1413
|
+
const Ct = /* @__PURE__ */ K(Nt, [["render", Et]]), It = {};
|
|
1414
|
+
function Tt(e, n) {
|
|
1415
|
+
return v(), $("table", null, [
|
|
1416
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
1407
1417
|
]);
|
|
1408
1418
|
}
|
|
1409
|
-
const
|
|
1419
|
+
const Ot = /* @__PURE__ */ K(It, [["render", Tt], ["__scopeId", "data-v-c2502730"]]), Pt = /* @__PURE__ */ q({
|
|
1410
1420
|
__name: "TableRow",
|
|
1411
1421
|
props: {
|
|
1412
1422
|
section: {
|
|
1413
1423
|
type: String,
|
|
1414
|
-
default:
|
|
1424
|
+
default: X.body
|
|
1415
1425
|
}
|
|
1416
1426
|
},
|
|
1417
1427
|
setup(e) {
|
|
1418
1428
|
const n = e;
|
|
1419
1429
|
let t;
|
|
1420
|
-
return n.section ===
|
|
1421
|
-
default:
|
|
1422
|
-
|
|
1423
|
-
|
|
1430
|
+
return n.section === X.header ? t = "thead" : n.section === X.body ? t = "tbody" : n.section === X.footer && (t = "tfoot"), (r, a) => (v(), I(Q(_(t)), null, {
|
|
1431
|
+
default: F(() => [
|
|
1432
|
+
O("tr", null, [
|
|
1433
|
+
V(r.$slots, "default", {}, void 0, !0)
|
|
1424
1434
|
])
|
|
1425
1435
|
]),
|
|
1426
1436
|
_: 3
|
|
1427
1437
|
}));
|
|
1428
1438
|
}
|
|
1429
|
-
}),
|
|
1439
|
+
}), Te = /* @__PURE__ */ K(Pt, [["__scopeId", "data-v-90ab3ded"]]), jt = /* @__PURE__ */ q({
|
|
1430
1440
|
__name: "TableCell",
|
|
1431
1441
|
props: {
|
|
1432
1442
|
alignment: {
|
|
@@ -1440,33 +1450,33 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
|
|
|
1440
1450
|
},
|
|
1441
1451
|
setup(e) {
|
|
1442
1452
|
var n;
|
|
1443
|
-
const t = e,
|
|
1444
|
-
let
|
|
1445
|
-
return t.alignment === pe.center ?
|
|
1446
|
-
class:
|
|
1453
|
+
const t = e, r = ((n = t.parent) == null ? void 0 : n.section) === X.header ? "th" : "td";
|
|
1454
|
+
let a;
|
|
1455
|
+
return t.alignment === pe.center ? a = "align-center" : t.alignment === pe.right && (a = "align-right"), (c, s) => (v(), I(Q(_(r)), {
|
|
1456
|
+
class: Se(_(a))
|
|
1447
1457
|
}, {
|
|
1448
|
-
default:
|
|
1449
|
-
|
|
1458
|
+
default: F(() => [
|
|
1459
|
+
V(c.$slots, "default", {}, void 0, !0)
|
|
1450
1460
|
]),
|
|
1451
1461
|
_: 3
|
|
1452
1462
|
}, 8, ["class"]));
|
|
1453
1463
|
}
|
|
1454
|
-
}),
|
|
1464
|
+
}), Lt = /* @__PURE__ */ K(jt, [["__scopeId", "data-v-6fde1a24"]]), Dt = ["checked"], Bt = /* @__PURE__ */ q({
|
|
1455
1465
|
__name: "TaskCheckbox",
|
|
1456
1466
|
props: {
|
|
1457
1467
|
checked: { type: Boolean }
|
|
1458
1468
|
},
|
|
1459
1469
|
setup(e) {
|
|
1460
|
-
const n =
|
|
1461
|
-
return (t,
|
|
1470
|
+
const n = Z(e.checked);
|
|
1471
|
+
return (t, r) => (v(), $("input", {
|
|
1462
1472
|
"aria-label": "Display-only checkbox for task",
|
|
1463
1473
|
checked: n.value,
|
|
1464
1474
|
type: "checkbox"
|
|
1465
|
-
}, null, 8,
|
|
1475
|
+
}, null, 8, Dt));
|
|
1466
1476
|
}
|
|
1467
|
-
}),
|
|
1477
|
+
}), qt = { key: 0 }, Mt = { key: 1 }, zt = {
|
|
1468
1478
|
inheritAttrs: !1
|
|
1469
|
-
},
|
|
1479
|
+
}, Kt = /* @__PURE__ */ q({
|
|
1470
1480
|
...zt,
|
|
1471
1481
|
__name: "Text",
|
|
1472
1482
|
props: {
|
|
@@ -1484,25 +1494,25 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
|
|
|
1484
1494
|
}
|
|
1485
1495
|
},
|
|
1486
1496
|
setup(e) {
|
|
1487
|
-
return (n, t) => (v(),
|
|
1488
|
-
|
|
1489
|
-
e.appendSpace ? (v(),
|
|
1490
|
-
e.hardBreak ? (v(),
|
|
1497
|
+
return (n, t) => (v(), $(Xe, null, [
|
|
1498
|
+
M(P(e.text), 1),
|
|
1499
|
+
e.appendSpace ? (v(), $("span", qt, " ")) : U("", !0),
|
|
1500
|
+
e.hardBreak ? (v(), $("br", Mt)) : U("", !0)
|
|
1491
1501
|
], 64));
|
|
1492
1502
|
}
|
|
1493
|
-
}),
|
|
1494
|
-
function
|
|
1495
|
-
return v(),
|
|
1496
|
-
|
|
1503
|
+
}), Vt = {};
|
|
1504
|
+
function Ut(e, n) {
|
|
1505
|
+
return v(), $("span", null, [
|
|
1506
|
+
V(e.$slots, "default")
|
|
1497
1507
|
]);
|
|
1498
1508
|
}
|
|
1499
|
-
const
|
|
1500
|
-
function
|
|
1501
|
-
return v(),
|
|
1502
|
-
|
|
1509
|
+
const Rt = /* @__PURE__ */ K(Vt, [["render", Ut]]), Ht = {};
|
|
1510
|
+
function Zt(e, n) {
|
|
1511
|
+
return v(), $("p", null, [
|
|
1512
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
1503
1513
|
]);
|
|
1504
1514
|
}
|
|
1505
|
-
const
|
|
1515
|
+
const Yt = /* @__PURE__ */ K(Ht, [["render", Zt], ["__scopeId", "data-v-7b54f530"]]), Jt = /* @__PURE__ */ q({
|
|
1506
1516
|
__name: "List",
|
|
1507
1517
|
props: {
|
|
1508
1518
|
isOrdered: {
|
|
@@ -1516,22 +1526,22 @@ const Qt = /* @__PURE__ */ B(Jt, [["render", Wt], ["__scopeId", "data-v-7b54f530
|
|
|
1516
1526
|
},
|
|
1517
1527
|
setup(e) {
|
|
1518
1528
|
const n = e.isOrdered ? "ol" : "ul";
|
|
1519
|
-
return (t,
|
|
1520
|
-
class:
|
|
1529
|
+
return (t, r) => (v(), I(Q(_(n)), {
|
|
1530
|
+
class: Se({ "has-task-items": e.hasTaskItems })
|
|
1521
1531
|
}, {
|
|
1522
|
-
default:
|
|
1523
|
-
|
|
1532
|
+
default: F(() => [
|
|
1533
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
1524
1534
|
]),
|
|
1525
1535
|
_: 3
|
|
1526
1536
|
}, 8, ["class"]));
|
|
1527
1537
|
}
|
|
1528
|
-
}),
|
|
1529
|
-
function
|
|
1530
|
-
return v(),
|
|
1531
|
-
|
|
1538
|
+
}), Wt = /* @__PURE__ */ K(Jt, [["__scopeId", "data-v-7555911f"]]), Gt = {};
|
|
1539
|
+
function Xt(e, n) {
|
|
1540
|
+
return v(), $("li", null, [
|
|
1541
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
1532
1542
|
]);
|
|
1533
1543
|
}
|
|
1534
|
-
const
|
|
1544
|
+
const Qt = /* @__PURE__ */ K(Gt, [["render", Xt], ["__scopeId", "data-v-cf238e78"]]), en = ["href", "title"], tn = /* @__PURE__ */ q({
|
|
1535
1545
|
__name: "Link",
|
|
1536
1546
|
props: {
|
|
1537
1547
|
href: {
|
|
@@ -1544,131 +1554,131 @@ const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78
|
|
|
1544
1554
|
}
|
|
1545
1555
|
},
|
|
1546
1556
|
setup(e) {
|
|
1547
|
-
return (n, t) => (v(),
|
|
1557
|
+
return (n, t) => (v(), $("a", {
|
|
1548
1558
|
href: e.href,
|
|
1549
1559
|
rel: "noreferrer noopener nofollow",
|
|
1550
1560
|
title: e.title
|
|
1551
1561
|
}, [
|
|
1552
|
-
|
|
1553
|
-
], 8,
|
|
1562
|
+
V(n.$slots, "default", {}, void 0, !0)
|
|
1563
|
+
], 8, en));
|
|
1554
1564
|
}
|
|
1555
|
-
}),
|
|
1556
|
-
blockquote:
|
|
1557
|
-
code:
|
|
1558
|
-
code_block:
|
|
1559
|
-
emphasis:
|
|
1560
|
-
heading:
|
|
1561
|
-
image:
|
|
1562
|
-
break:
|
|
1563
|
-
link:
|
|
1564
|
-
list:
|
|
1565
|
-
list_item:
|
|
1566
|
-
paragraph:
|
|
1567
|
-
strikethrough:
|
|
1568
|
-
table:
|
|
1569
|
-
table_header:
|
|
1570
|
-
table_row:
|
|
1571
|
-
table_cell:
|
|
1572
|
-
task_checkbox:
|
|
1573
|
-
text:
|
|
1574
|
-
text_block:
|
|
1575
|
-
},
|
|
1576
|
-
function
|
|
1577
|
-
|
|
1565
|
+
}), nn = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-0f033d16"]]), an = {
|
|
1566
|
+
blockquote: dt,
|
|
1567
|
+
code: gt,
|
|
1568
|
+
code_block: bt,
|
|
1569
|
+
emphasis: yt,
|
|
1570
|
+
heading: kt,
|
|
1571
|
+
image: St,
|
|
1572
|
+
break: $t,
|
|
1573
|
+
link: nn,
|
|
1574
|
+
list: Wt,
|
|
1575
|
+
list_item: Qt,
|
|
1576
|
+
paragraph: Yt,
|
|
1577
|
+
strikethrough: Ct,
|
|
1578
|
+
table: Ot,
|
|
1579
|
+
table_header: Te,
|
|
1580
|
+
table_row: Te,
|
|
1581
|
+
table_cell: Lt,
|
|
1582
|
+
task_checkbox: Bt,
|
|
1583
|
+
text: Kt,
|
|
1584
|
+
text_block: Rt
|
|
1585
|
+
}, Oe = [];
|
|
1586
|
+
function rn(e) {
|
|
1587
|
+
Oe.indexOf(e) === -1 && (Oe.push(e), console.warn(`[DocumentViewer] Unable to render an unknown node type "${e}"`));
|
|
1578
1588
|
}
|
|
1579
1589
|
function xe(e, n) {
|
|
1580
|
-
return e.map((t,
|
|
1581
|
-
var
|
|
1590
|
+
return e.map((t, r) => {
|
|
1591
|
+
var a;
|
|
1582
1592
|
if (!t)
|
|
1583
1593
|
return null;
|
|
1584
1594
|
const {
|
|
1585
1595
|
type: c,
|
|
1586
1596
|
children: s,
|
|
1587
|
-
...
|
|
1588
|
-
} = t,
|
|
1589
|
-
if (!
|
|
1590
|
-
return
|
|
1591
|
-
if (
|
|
1592
|
-
const
|
|
1593
|
-
var
|
|
1594
|
-
return (
|
|
1595
|
-
var
|
|
1596
|
-
return (
|
|
1597
|
+
...o
|
|
1598
|
+
} = t, h = an[t.type];
|
|
1599
|
+
if (!h)
|
|
1600
|
+
return rn(c), null;
|
|
1601
|
+
if (ot(t) && (t.section = X.header), st(t)) {
|
|
1602
|
+
const f = (a = t.children) == null ? void 0 : a.some((E) => {
|
|
1603
|
+
var S;
|
|
1604
|
+
return (S = E.children) == null ? void 0 : S.some((L) => {
|
|
1605
|
+
var R;
|
|
1606
|
+
return (R = L.children) == null ? void 0 : R.some((k) => k.type === "task_checkbox");
|
|
1597
1607
|
});
|
|
1598
1608
|
});
|
|
1599
|
-
return
|
|
1600
|
-
hasTaskItems:
|
|
1601
|
-
},
|
|
1609
|
+
return T(h, ke({
|
|
1610
|
+
hasTaskItems: f
|
|
1611
|
+
}, o, {
|
|
1602
1612
|
parent: n
|
|
1603
1613
|
}), {
|
|
1604
1614
|
default: () => s && xe(s, t)
|
|
1605
1615
|
});
|
|
1606
1616
|
}
|
|
1607
|
-
return (t == null ? void 0 : t.type) === "code_block" ?
|
|
1617
|
+
return (t == null ? void 0 : t.type) === "code_block" ? T(h, ke(o, {
|
|
1608
1618
|
lines: s,
|
|
1609
1619
|
isSingleLine: (s == null ? void 0 : s.length) && s.length === 1,
|
|
1610
|
-
codeBlockIndex:
|
|
1611
|
-
}), null) :
|
|
1620
|
+
codeBlockIndex: r
|
|
1621
|
+
}), null) : T(h, ke(o, {
|
|
1612
1622
|
parent: n
|
|
1613
1623
|
}), {
|
|
1614
1624
|
default: () => s && xe(s, t)
|
|
1615
1625
|
});
|
|
1616
1626
|
});
|
|
1617
1627
|
}
|
|
1618
|
-
const
|
|
1628
|
+
const on = {
|
|
1619
1629
|
error: "Error: Markdown content missing"
|
|
1620
|
-
},
|
|
1621
|
-
documentViewer:
|
|
1630
|
+
}, ln = {
|
|
1631
|
+
documentViewer: on
|
|
1622
1632
|
};
|
|
1623
|
-
function
|
|
1633
|
+
function sn() {
|
|
1624
1634
|
return {
|
|
1625
|
-
i18n:
|
|
1635
|
+
i18n: qe("en-us", ln),
|
|
1626
1636
|
i18nT: Me
|
|
1627
1637
|
// Translation component <i18n-t>
|
|
1628
1638
|
};
|
|
1629
1639
|
}
|
|
1630
|
-
function
|
|
1640
|
+
function un() {
|
|
1631
1641
|
return {
|
|
1632
1642
|
hasRequiredProps: (e, n) => {
|
|
1633
1643
|
let t = !0;
|
|
1634
|
-
return e.forEach((
|
|
1635
|
-
n.forEach((
|
|
1636
|
-
a
|
|
1644
|
+
return e.forEach((r) => {
|
|
1645
|
+
n.forEach((a) => {
|
|
1646
|
+
r[a] || (t = !1);
|
|
1637
1647
|
});
|
|
1638
1648
|
}), t;
|
|
1639
1649
|
}
|
|
1640
1650
|
};
|
|
1641
1651
|
}
|
|
1642
|
-
const
|
|
1643
|
-
useI18n:
|
|
1644
|
-
useUtilities:
|
|
1652
|
+
const cn = {
|
|
1653
|
+
useI18n: sn,
|
|
1654
|
+
useUtilities: un
|
|
1645
1655
|
};
|
|
1646
|
-
function
|
|
1656
|
+
function dn(e, n = "") {
|
|
1647
1657
|
return e.toLowerCase().trim().replace(/ /g, "-").replace(/[^\w-]+/g, "") + n;
|
|
1648
1658
|
}
|
|
1649
|
-
function
|
|
1659
|
+
function Ke(e, n = /* @__PURE__ */ new Map()) {
|
|
1650
1660
|
if (!e)
|
|
1651
1661
|
return e;
|
|
1652
1662
|
const t = n || /* @__PURE__ */ new Map();
|
|
1653
|
-
return e.map((
|
|
1663
|
+
return e.map((r) => lt(r) ? pn(r, n) : (r.children && (r.children = Ke(r.children, t)), r));
|
|
1654
1664
|
}
|
|
1655
|
-
function
|
|
1656
|
-
var
|
|
1657
|
-
const
|
|
1658
|
-
n.set(s, (
|
|
1659
|
-
const
|
|
1665
|
+
function pn(e, n, t = "doc-heading-") {
|
|
1666
|
+
var r;
|
|
1667
|
+
const a = (r = e.children) == null ? void 0 : r[0], c = `level-${e.level}`, s = it(a) && a.text || c, o = n.get(s);
|
|
1668
|
+
n.set(s, (o || 0) + 1);
|
|
1669
|
+
const h = o && o > 1 ? `-${o}` : "", f = t + dn(s, h);
|
|
1660
1670
|
return {
|
|
1661
1671
|
...e,
|
|
1662
|
-
slug:
|
|
1672
|
+
slug: f
|
|
1663
1673
|
};
|
|
1664
1674
|
}
|
|
1665
|
-
const
|
|
1675
|
+
const mn = {
|
|
1666
1676
|
class: "document-viewer",
|
|
1667
1677
|
"data-testid": "document-viewer"
|
|
1668
|
-
},
|
|
1678
|
+
}, gn = {
|
|
1669
1679
|
key: 1,
|
|
1670
1680
|
"data-testid": "document-viewer-error"
|
|
1671
|
-
},
|
|
1681
|
+
}, fn = /* @__PURE__ */ q({
|
|
1672
1682
|
__name: "DocumentViewer",
|
|
1673
1683
|
props: {
|
|
1674
1684
|
document: {
|
|
@@ -1678,71 +1688,71 @@ const fn = {
|
|
|
1678
1688
|
},
|
|
1679
1689
|
setup(e) {
|
|
1680
1690
|
var n;
|
|
1681
|
-
const t = e, { i18n:
|
|
1682
|
-
var
|
|
1683
|
-
return (
|
|
1691
|
+
const t = e, { i18n: r } = cn.useI18n(), a = (h) => !h || Object.keys(h).length === 0 && h.constructor === Object, c = j(() => !a(t.document)), s = Ke((n = t.document) == null ? void 0 : n.children), o = () => {
|
|
1692
|
+
var h;
|
|
1693
|
+
return (h = t.document) != null && h.children ? xe(s) : null;
|
|
1684
1694
|
};
|
|
1685
|
-
return (
|
|
1686
|
-
c.value ? (v(),
|
|
1695
|
+
return (h, f) => (v(), $("div", mn, [
|
|
1696
|
+
c.value ? (v(), I(o, { key: 0 })) : (v(), $("div", gn, P(_(r).t("documentViewer.error")), 1))
|
|
1687
1697
|
]));
|
|
1688
1698
|
}
|
|
1689
|
-
}),
|
|
1690
|
-
function
|
|
1699
|
+
}), hn = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-1ab71c85"]]);
|
|
1700
|
+
function Pe(e) {
|
|
1691
1701
|
if (e !== void 0)
|
|
1692
1702
|
return JSON.parse(JSON.stringify(e));
|
|
1693
1703
|
}
|
|
1694
|
-
function
|
|
1704
|
+
function vn(e) {
|
|
1695
1705
|
return Object.keys(e).length === 0;
|
|
1696
1706
|
}
|
|
1697
1707
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1698
|
-
function
|
|
1708
|
+
function Ve(e) {
|
|
1699
1709
|
return typeof e > "u" || e === null;
|
|
1700
1710
|
}
|
|
1701
|
-
function
|
|
1711
|
+
function bn(e) {
|
|
1702
1712
|
return typeof e == "object" && e !== null;
|
|
1703
1713
|
}
|
|
1704
|
-
function
|
|
1705
|
-
return Array.isArray(e) ? e :
|
|
1714
|
+
function yn(e) {
|
|
1715
|
+
return Array.isArray(e) ? e : Ve(e) ? [] : [e];
|
|
1706
1716
|
}
|
|
1707
|
-
function
|
|
1708
|
-
var t,
|
|
1717
|
+
function _n(e, n) {
|
|
1718
|
+
var t, r, a, c;
|
|
1709
1719
|
if (n)
|
|
1710
|
-
for (c = Object.keys(n), t = 0,
|
|
1711
|
-
|
|
1720
|
+
for (c = Object.keys(n), t = 0, r = c.length; t < r; t += 1)
|
|
1721
|
+
a = c[t], e[a] = n[a];
|
|
1712
1722
|
return e;
|
|
1713
1723
|
}
|
|
1714
|
-
function
|
|
1715
|
-
var t = "",
|
|
1716
|
-
for (
|
|
1724
|
+
function kn(e, n) {
|
|
1725
|
+
var t = "", r;
|
|
1726
|
+
for (r = 0; r < n; r += 1)
|
|
1717
1727
|
t += e;
|
|
1718
1728
|
return t;
|
|
1719
1729
|
}
|
|
1720
|
-
function
|
|
1730
|
+
function xn(e) {
|
|
1721
1731
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1722
1732
|
}
|
|
1723
|
-
var
|
|
1724
|
-
isNothing:
|
|
1725
|
-
isObject:
|
|
1726
|
-
toArray:
|
|
1727
|
-
repeat:
|
|
1728
|
-
isNegativeZero:
|
|
1729
|
-
extend:
|
|
1733
|
+
var wn = Ve, Sn = bn, An = yn, Fn = kn, $n = xn, Nn = _n, Fe = {
|
|
1734
|
+
isNothing: wn,
|
|
1735
|
+
isObject: Sn,
|
|
1736
|
+
toArray: An,
|
|
1737
|
+
repeat: Fn,
|
|
1738
|
+
isNegativeZero: $n,
|
|
1739
|
+
extend: Nn
|
|
1730
1740
|
};
|
|
1731
|
-
function
|
|
1732
|
-
var t = "",
|
|
1741
|
+
function Ue(e, n) {
|
|
1742
|
+
var t = "", r = e.reason || "(unknown reason)";
|
|
1733
1743
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
|
|
1734
1744
|
|
|
1735
|
-
` + e.mark.snippet),
|
|
1745
|
+
` + e.mark.snippet), r + " " + t) : r;
|
|
1736
1746
|
}
|
|
1737
|
-
function
|
|
1738
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message =
|
|
1747
|
+
function re(e, n) {
|
|
1748
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Ue(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1739
1749
|
}
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
return this.name + ": " +
|
|
1750
|
+
re.prototype = Object.create(Error.prototype);
|
|
1751
|
+
re.prototype.constructor = re;
|
|
1752
|
+
re.prototype.toString = function(e) {
|
|
1753
|
+
return this.name + ": " + Ue(this, e);
|
|
1744
1754
|
};
|
|
1745
|
-
var
|
|
1755
|
+
var G = re, En = [
|
|
1746
1756
|
"kind",
|
|
1747
1757
|
"multi",
|
|
1748
1758
|
"resolve",
|
|
@@ -1753,41 +1763,41 @@ var X = ae, Fn = [
|
|
|
1753
1763
|
"representName",
|
|
1754
1764
|
"defaultStyle",
|
|
1755
1765
|
"styleAliases"
|
|
1756
|
-
],
|
|
1766
|
+
], Cn = [
|
|
1757
1767
|
"scalar",
|
|
1758
1768
|
"sequence",
|
|
1759
1769
|
"mapping"
|
|
1760
1770
|
];
|
|
1761
|
-
function
|
|
1771
|
+
function In(e) {
|
|
1762
1772
|
var n = {};
|
|
1763
1773
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1764
|
-
e[t].forEach(function(
|
|
1765
|
-
n[String(
|
|
1774
|
+
e[t].forEach(function(r) {
|
|
1775
|
+
n[String(r)] = t;
|
|
1766
1776
|
});
|
|
1767
1777
|
}), n;
|
|
1768
1778
|
}
|
|
1769
|
-
function
|
|
1779
|
+
function Tn(e, n) {
|
|
1770
1780
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1771
|
-
if (
|
|
1772
|
-
throw new
|
|
1781
|
+
if (En.indexOf(t) === -1)
|
|
1782
|
+
throw new G('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1773
1783
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1774
1784
|
return !0;
|
|
1775
1785
|
}, this.construct = n.construct || function(t) {
|
|
1776
1786
|
return t;
|
|
1777
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1778
|
-
throw new
|
|
1787
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = In(n.styleAliases || null), Cn.indexOf(this.kind) === -1)
|
|
1788
|
+
throw new G('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1779
1789
|
}
|
|
1780
|
-
var
|
|
1781
|
-
function
|
|
1790
|
+
var z = Tn;
|
|
1791
|
+
function je(e, n) {
|
|
1782
1792
|
var t = [];
|
|
1783
|
-
return e[n].forEach(function(
|
|
1784
|
-
var
|
|
1793
|
+
return e[n].forEach(function(r) {
|
|
1794
|
+
var a = t.length;
|
|
1785
1795
|
t.forEach(function(c, s) {
|
|
1786
|
-
c.tag ===
|
|
1787
|
-
}), t[
|
|
1796
|
+
c.tag === r.tag && c.kind === r.kind && c.multi === r.multi && (a = s);
|
|
1797
|
+
}), t[a] = r;
|
|
1788
1798
|
}), t;
|
|
1789
1799
|
}
|
|
1790
|
-
function
|
|
1800
|
+
function On() {
|
|
1791
1801
|
var e = {
|
|
1792
1802
|
scalar: {},
|
|
1793
1803
|
sequence: {},
|
|
@@ -1800,78 +1810,78 @@ function Ln() {
|
|
|
1800
1810
|
fallback: []
|
|
1801
1811
|
}
|
|
1802
1812
|
}, n, t;
|
|
1803
|
-
function a
|
|
1804
|
-
|
|
1813
|
+
function r(a) {
|
|
1814
|
+
a.multi ? (e.multi[a.kind].push(a), e.multi.fallback.push(a)) : e[a.kind][a.tag] = e.fallback[a.tag] = a;
|
|
1805
1815
|
}
|
|
1806
1816
|
for (n = 0, t = arguments.length; n < t; n += 1)
|
|
1807
|
-
arguments[n].forEach(
|
|
1817
|
+
arguments[n].forEach(r);
|
|
1808
1818
|
return e;
|
|
1809
1819
|
}
|
|
1810
|
-
function
|
|
1820
|
+
function we(e) {
|
|
1811
1821
|
return this.extend(e);
|
|
1812
1822
|
}
|
|
1813
|
-
|
|
1823
|
+
we.prototype.extend = function(e) {
|
|
1814
1824
|
var n = [], t = [];
|
|
1815
|
-
if (e instanceof
|
|
1825
|
+
if (e instanceof z)
|
|
1816
1826
|
t.push(e);
|
|
1817
1827
|
else if (Array.isArray(e))
|
|
1818
1828
|
t = t.concat(e);
|
|
1819
1829
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
1820
1830
|
e.implicit && (n = n.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
|
|
1821
1831
|
else
|
|
1822
|
-
throw new
|
|
1823
|
-
n.forEach(function(
|
|
1824
|
-
if (!(
|
|
1825
|
-
throw new
|
|
1826
|
-
if (
|
|
1827
|
-
throw new
|
|
1828
|
-
if (
|
|
1829
|
-
throw new
|
|
1830
|
-
}), t.forEach(function(
|
|
1831
|
-
if (!(
|
|
1832
|
-
throw new
|
|
1832
|
+
throw new G("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1833
|
+
n.forEach(function(a) {
|
|
1834
|
+
if (!(a instanceof z))
|
|
1835
|
+
throw new G("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1836
|
+
if (a.loadKind && a.loadKind !== "scalar")
|
|
1837
|
+
throw new G("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1838
|
+
if (a.multi)
|
|
1839
|
+
throw new G("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1840
|
+
}), t.forEach(function(a) {
|
|
1841
|
+
if (!(a instanceof z))
|
|
1842
|
+
throw new G("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1833
1843
|
});
|
|
1834
|
-
var
|
|
1835
|
-
return
|
|
1844
|
+
var r = Object.create(we.prototype);
|
|
1845
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = je(r, "implicit"), r.compiledExplicit = je(r, "explicit"), r.compiledTypeMap = On(r.compiledImplicit, r.compiledExplicit), r;
|
|
1836
1846
|
};
|
|
1837
|
-
var Pn =
|
|
1847
|
+
var Pn = we, jn = new z("tag:yaml.org,2002:str", {
|
|
1838
1848
|
kind: "scalar",
|
|
1839
1849
|
construct: function(e) {
|
|
1840
1850
|
return e !== null ? e : "";
|
|
1841
1851
|
}
|
|
1842
|
-
}),
|
|
1852
|
+
}), Ln = new z("tag:yaml.org,2002:seq", {
|
|
1843
1853
|
kind: "sequence",
|
|
1844
1854
|
construct: function(e) {
|
|
1845
1855
|
return e !== null ? e : [];
|
|
1846
1856
|
}
|
|
1847
|
-
}),
|
|
1857
|
+
}), Dn = new z("tag:yaml.org,2002:map", {
|
|
1848
1858
|
kind: "mapping",
|
|
1849
1859
|
construct: function(e) {
|
|
1850
1860
|
return e !== null ? e : {};
|
|
1851
1861
|
}
|
|
1852
|
-
}),
|
|
1862
|
+
}), Bn = new Pn({
|
|
1853
1863
|
explicit: [
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1864
|
+
jn,
|
|
1865
|
+
Ln,
|
|
1866
|
+
Dn
|
|
1857
1867
|
]
|
|
1858
1868
|
});
|
|
1859
|
-
function
|
|
1869
|
+
function qn(e) {
|
|
1860
1870
|
if (e === null)
|
|
1861
1871
|
return !0;
|
|
1862
1872
|
var n = e.length;
|
|
1863
1873
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1864
1874
|
}
|
|
1865
|
-
function
|
|
1875
|
+
function Mn() {
|
|
1866
1876
|
return null;
|
|
1867
1877
|
}
|
|
1868
1878
|
function zn(e) {
|
|
1869
1879
|
return e === null;
|
|
1870
1880
|
}
|
|
1871
|
-
var
|
|
1881
|
+
var Kn = new z("tag:yaml.org,2002:null", {
|
|
1872
1882
|
kind: "scalar",
|
|
1873
|
-
resolve:
|
|
1874
|
-
construct:
|
|
1883
|
+
resolve: qn,
|
|
1884
|
+
construct: Mn,
|
|
1875
1885
|
predicate: zn,
|
|
1876
1886
|
represent: {
|
|
1877
1887
|
canonical: function() {
|
|
@@ -1892,23 +1902,23 @@ var Hn = new M("tag:yaml.org,2002:null", {
|
|
|
1892
1902
|
},
|
|
1893
1903
|
defaultStyle: "lowercase"
|
|
1894
1904
|
});
|
|
1895
|
-
function
|
|
1905
|
+
function Vn(e) {
|
|
1896
1906
|
if (e === null)
|
|
1897
1907
|
return !1;
|
|
1898
1908
|
var n = e.length;
|
|
1899
1909
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1900
1910
|
}
|
|
1901
|
-
function
|
|
1911
|
+
function Un(e) {
|
|
1902
1912
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1903
1913
|
}
|
|
1904
|
-
function
|
|
1914
|
+
function Rn(e) {
|
|
1905
1915
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1906
1916
|
}
|
|
1907
|
-
var
|
|
1917
|
+
var Hn = new z("tag:yaml.org,2002:bool", {
|
|
1908
1918
|
kind: "scalar",
|
|
1909
|
-
resolve:
|
|
1910
|
-
construct:
|
|
1911
|
-
predicate:
|
|
1919
|
+
resolve: Vn,
|
|
1920
|
+
construct: Un,
|
|
1921
|
+
predicate: Rn,
|
|
1912
1922
|
represent: {
|
|
1913
1923
|
lowercase: function(e) {
|
|
1914
1924
|
return e ? "true" : "false";
|
|
@@ -1922,67 +1932,67 @@ var Jn = new M("tag:yaml.org,2002:bool", {
|
|
|
1922
1932
|
},
|
|
1923
1933
|
defaultStyle: "lowercase"
|
|
1924
1934
|
});
|
|
1925
|
-
function
|
|
1935
|
+
function Zn(e) {
|
|
1926
1936
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1927
1937
|
}
|
|
1928
|
-
function
|
|
1938
|
+
function Yn(e) {
|
|
1929
1939
|
return 48 <= e && e <= 55;
|
|
1930
1940
|
}
|
|
1931
|
-
function
|
|
1941
|
+
function Jn(e) {
|
|
1932
1942
|
return 48 <= e && e <= 57;
|
|
1933
1943
|
}
|
|
1934
|
-
function
|
|
1944
|
+
function Wn(e) {
|
|
1935
1945
|
if (e === null)
|
|
1936
1946
|
return !1;
|
|
1937
|
-
var n = e.length, t = 0,
|
|
1947
|
+
var n = e.length, t = 0, r = !1, a;
|
|
1938
1948
|
if (!n)
|
|
1939
1949
|
return !1;
|
|
1940
|
-
if (
|
|
1950
|
+
if (a = e[t], (a === "-" || a === "+") && (a = e[++t]), a === "0") {
|
|
1941
1951
|
if (t + 1 === n)
|
|
1942
1952
|
return !0;
|
|
1943
|
-
if (
|
|
1953
|
+
if (a = e[++t], a === "b") {
|
|
1944
1954
|
for (t++; t < n; t++)
|
|
1945
|
-
if (
|
|
1946
|
-
if (
|
|
1955
|
+
if (a = e[t], a !== "_") {
|
|
1956
|
+
if (a !== "0" && a !== "1")
|
|
1947
1957
|
return !1;
|
|
1948
|
-
|
|
1958
|
+
r = !0;
|
|
1949
1959
|
}
|
|
1950
|
-
return
|
|
1960
|
+
return r && a !== "_";
|
|
1951
1961
|
}
|
|
1952
|
-
if (
|
|
1962
|
+
if (a === "x") {
|
|
1953
1963
|
for (t++; t < n; t++)
|
|
1954
|
-
if (
|
|
1955
|
-
if (!
|
|
1964
|
+
if (a = e[t], a !== "_") {
|
|
1965
|
+
if (!Zn(e.charCodeAt(t)))
|
|
1956
1966
|
return !1;
|
|
1957
|
-
|
|
1967
|
+
r = !0;
|
|
1958
1968
|
}
|
|
1959
|
-
return
|
|
1969
|
+
return r && a !== "_";
|
|
1960
1970
|
}
|
|
1961
|
-
if (
|
|
1971
|
+
if (a === "o") {
|
|
1962
1972
|
for (t++; t < n; t++)
|
|
1963
|
-
if (
|
|
1964
|
-
if (!
|
|
1973
|
+
if (a = e[t], a !== "_") {
|
|
1974
|
+
if (!Yn(e.charCodeAt(t)))
|
|
1965
1975
|
return !1;
|
|
1966
|
-
|
|
1976
|
+
r = !0;
|
|
1967
1977
|
}
|
|
1968
|
-
return
|
|
1978
|
+
return r && a !== "_";
|
|
1969
1979
|
}
|
|
1970
1980
|
}
|
|
1971
|
-
if (
|
|
1981
|
+
if (a === "_")
|
|
1972
1982
|
return !1;
|
|
1973
1983
|
for (; t < n; t++)
|
|
1974
|
-
if (
|
|
1975
|
-
if (!
|
|
1984
|
+
if (a = e[t], a !== "_") {
|
|
1985
|
+
if (!Jn(e.charCodeAt(t)))
|
|
1976
1986
|
return !1;
|
|
1977
|
-
|
|
1987
|
+
r = !0;
|
|
1978
1988
|
}
|
|
1979
|
-
return !(!
|
|
1989
|
+
return !(!r || a === "_");
|
|
1980
1990
|
}
|
|
1981
|
-
function
|
|
1982
|
-
var n = e, t = 1,
|
|
1983
|
-
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")),
|
|
1991
|
+
function Gn(e) {
|
|
1992
|
+
var n = e, t = 1, r;
|
|
1993
|
+
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
|
|
1984
1994
|
return 0;
|
|
1985
|
-
if (
|
|
1995
|
+
if (r === "0") {
|
|
1986
1996
|
if (n[1] === "b")
|
|
1987
1997
|
return t * parseInt(n.slice(2), 2);
|
|
1988
1998
|
if (n[1] === "x")
|
|
@@ -1992,14 +2002,14 @@ function Yn(e) {
|
|
|
1992
2002
|
}
|
|
1993
2003
|
return t * parseInt(n, 10);
|
|
1994
2004
|
}
|
|
1995
|
-
function
|
|
1996
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
2005
|
+
function Xn(e) {
|
|
2006
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Fe.isNegativeZero(e);
|
|
1997
2007
|
}
|
|
1998
|
-
var
|
|
2008
|
+
var Qn = new z("tag:yaml.org,2002:int", {
|
|
1999
2009
|
kind: "scalar",
|
|
2000
|
-
resolve:
|
|
2001
|
-
construct:
|
|
2002
|
-
predicate:
|
|
2010
|
+
resolve: Wn,
|
|
2011
|
+
construct: Gn,
|
|
2012
|
+
predicate: Xn,
|
|
2003
2013
|
represent: {
|
|
2004
2014
|
binary: function(e) {
|
|
2005
2015
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -2022,21 +2032,21 @@ var tr = new M("tag:yaml.org,2002:int", {
|
|
|
2022
2032
|
decimal: [10, "dec"],
|
|
2023
2033
|
hexadecimal: [16, "hex"]
|
|
2024
2034
|
}
|
|
2025
|
-
}),
|
|
2035
|
+
}), ea = new RegExp(
|
|
2026
2036
|
// 2.5e4, 2.5 and integers
|
|
2027
2037
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
2028
2038
|
);
|
|
2029
|
-
function
|
|
2030
|
-
return !(e === null || !
|
|
2039
|
+
function ta(e) {
|
|
2040
|
+
return !(e === null || !ea.test(e) || // Quick hack to not allow integers end with `_`
|
|
2031
2041
|
// Probably should update regexp & check speed
|
|
2032
2042
|
e[e.length - 1] === "_");
|
|
2033
2043
|
}
|
|
2034
|
-
function
|
|
2044
|
+
function na(e) {
|
|
2035
2045
|
var n, t;
|
|
2036
2046
|
return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
|
|
2037
2047
|
}
|
|
2038
|
-
var
|
|
2039
|
-
function
|
|
2048
|
+
var aa = /^[-+]?[0-9]+e/;
|
|
2049
|
+
function ra(e, n) {
|
|
2040
2050
|
var t;
|
|
2041
2051
|
if (isNaN(e))
|
|
2042
2052
|
switch (n) {
|
|
@@ -2065,109 +2075,109 @@ function or(e, n) {
|
|
|
2065
2075
|
case "camelcase":
|
|
2066
2076
|
return "-.Inf";
|
|
2067
2077
|
}
|
|
2068
|
-
else if (
|
|
2078
|
+
else if (Fe.isNegativeZero(e))
|
|
2069
2079
|
return "-0.0";
|
|
2070
|
-
return t = e.toString(10),
|
|
2080
|
+
return t = e.toString(10), aa.test(t) ? t.replace("e", ".e") : t;
|
|
2071
2081
|
}
|
|
2072
|
-
function
|
|
2073
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
2082
|
+
function oa(e) {
|
|
2083
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Fe.isNegativeZero(e));
|
|
2074
2084
|
}
|
|
2075
|
-
var
|
|
2085
|
+
var ia = new z("tag:yaml.org,2002:float", {
|
|
2076
2086
|
kind: "scalar",
|
|
2077
|
-
resolve:
|
|
2078
|
-
construct:
|
|
2079
|
-
predicate:
|
|
2080
|
-
represent:
|
|
2087
|
+
resolve: ta,
|
|
2088
|
+
construct: na,
|
|
2089
|
+
predicate: oa,
|
|
2090
|
+
represent: ra,
|
|
2081
2091
|
defaultStyle: "lowercase"
|
|
2082
|
-
}),
|
|
2092
|
+
}), la = Bn.extend({
|
|
2083
2093
|
implicit: [
|
|
2094
|
+
Kn,
|
|
2084
2095
|
Hn,
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
sr
|
|
2096
|
+
Qn,
|
|
2097
|
+
ia
|
|
2088
2098
|
]
|
|
2089
|
-
}),
|
|
2099
|
+
}), sa = la, Re = new RegExp(
|
|
2090
2100
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
2091
|
-
),
|
|
2101
|
+
), He = new RegExp(
|
|
2092
2102
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
2093
2103
|
);
|
|
2094
|
-
function
|
|
2095
|
-
return e === null ? !1 :
|
|
2104
|
+
function ua(e) {
|
|
2105
|
+
return e === null ? !1 : Re.exec(e) !== null || He.exec(e) !== null;
|
|
2096
2106
|
}
|
|
2097
|
-
function
|
|
2098
|
-
var n, t,
|
|
2099
|
-
if (n =
|
|
2107
|
+
function ca(e) {
|
|
2108
|
+
var n, t, r, a, c, s, o, h = 0, f = null, E, S, L;
|
|
2109
|
+
if (n = Re.exec(e), n === null && (n = He.exec(e)), n === null)
|
|
2100
2110
|
throw new Error("Date resolve error");
|
|
2101
|
-
if (t = +n[1],
|
|
2102
|
-
return new Date(Date.UTC(t,
|
|
2103
|
-
if (c = +n[4], s = +n[5],
|
|
2104
|
-
for (
|
|
2105
|
-
|
|
2106
|
-
|
|
2111
|
+
if (t = +n[1], r = +n[2] - 1, a = +n[3], !n[4])
|
|
2112
|
+
return new Date(Date.UTC(t, r, a));
|
|
2113
|
+
if (c = +n[4], s = +n[5], o = +n[6], n[7]) {
|
|
2114
|
+
for (h = n[7].slice(0, 3); h.length < 3; )
|
|
2115
|
+
h += "0";
|
|
2116
|
+
h = +h;
|
|
2107
2117
|
}
|
|
2108
|
-
return n[9] && (
|
|
2118
|
+
return n[9] && (E = +n[10], S = +(n[11] || 0), f = (E * 60 + S) * 6e4, n[9] === "-" && (f = -f)), L = new Date(Date.UTC(t, r, a, c, s, o, h)), f && L.setTime(L.getTime() - f), L;
|
|
2109
2119
|
}
|
|
2110
|
-
function
|
|
2120
|
+
function da(e) {
|
|
2111
2121
|
return e.toISOString();
|
|
2112
2122
|
}
|
|
2113
|
-
var
|
|
2123
|
+
var pa = new z("tag:yaml.org,2002:timestamp", {
|
|
2114
2124
|
kind: "scalar",
|
|
2115
|
-
resolve:
|
|
2116
|
-
construct:
|
|
2125
|
+
resolve: ua,
|
|
2126
|
+
construct: ca,
|
|
2117
2127
|
instanceOf: Date,
|
|
2118
|
-
represent:
|
|
2128
|
+
represent: da
|
|
2119
2129
|
});
|
|
2120
|
-
function
|
|
2130
|
+
function ma(e) {
|
|
2121
2131
|
return e === "<<" || e === null;
|
|
2122
2132
|
}
|
|
2123
|
-
var
|
|
2133
|
+
var ga = new z("tag:yaml.org,2002:merge", {
|
|
2124
2134
|
kind: "scalar",
|
|
2125
|
-
resolve:
|
|
2126
|
-
}),
|
|
2135
|
+
resolve: ma
|
|
2136
|
+
}), $e = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
2127
2137
|
\r`;
|
|
2128
|
-
function
|
|
2138
|
+
function fa(e) {
|
|
2129
2139
|
if (e === null)
|
|
2130
2140
|
return !1;
|
|
2131
|
-
var n, t,
|
|
2132
|
-
for (t = 0; t <
|
|
2141
|
+
var n, t, r = 0, a = e.length, c = $e;
|
|
2142
|
+
for (t = 0; t < a; t++)
|
|
2133
2143
|
if (n = c.indexOf(e.charAt(t)), !(n > 64)) {
|
|
2134
2144
|
if (n < 0)
|
|
2135
2145
|
return !1;
|
|
2136
|
-
|
|
2146
|
+
r += 6;
|
|
2137
2147
|
}
|
|
2138
|
-
return
|
|
2148
|
+
return r % 8 === 0;
|
|
2139
2149
|
}
|
|
2140
|
-
function
|
|
2141
|
-
var n, t,
|
|
2142
|
-
for (n = 0; n <
|
|
2143
|
-
n % 4 === 0 && n && (
|
|
2144
|
-
return t =
|
|
2150
|
+
function ha(e) {
|
|
2151
|
+
var n, t, r = e.replace(/[\r\n=]/g, ""), a = r.length, c = $e, s = 0, o = [];
|
|
2152
|
+
for (n = 0; n < a; n++)
|
|
2153
|
+
n % 4 === 0 && n && (o.push(s >> 16 & 255), o.push(s >> 8 & 255), o.push(s & 255)), s = s << 6 | c.indexOf(r.charAt(n));
|
|
2154
|
+
return t = a % 4 * 6, t === 0 ? (o.push(s >> 16 & 255), o.push(s >> 8 & 255), o.push(s & 255)) : t === 18 ? (o.push(s >> 10 & 255), o.push(s >> 2 & 255)) : t === 12 && o.push(s >> 4 & 255), new Uint8Array(o);
|
|
2145
2155
|
}
|
|
2146
|
-
function
|
|
2147
|
-
var n = "", t = 0,
|
|
2148
|
-
for (
|
|
2149
|
-
|
|
2150
|
-
return
|
|
2156
|
+
function va(e) {
|
|
2157
|
+
var n = "", t = 0, r, a, c = e.length, s = $e;
|
|
2158
|
+
for (r = 0; r < c; r++)
|
|
2159
|
+
r % 3 === 0 && r && (n += s[t >> 18 & 63], n += s[t >> 12 & 63], n += s[t >> 6 & 63], n += s[t & 63]), t = (t << 8) + e[r];
|
|
2160
|
+
return a = c % 3, a === 0 ? (n += s[t >> 18 & 63], n += s[t >> 12 & 63], n += s[t >> 6 & 63], n += s[t & 63]) : a === 2 ? (n += s[t >> 10 & 63], n += s[t >> 4 & 63], n += s[t << 2 & 63], n += s[64]) : a === 1 && (n += s[t >> 2 & 63], n += s[t << 4 & 63], n += s[64], n += s[64]), n;
|
|
2151
2161
|
}
|
|
2152
|
-
function
|
|
2162
|
+
function ba(e) {
|
|
2153
2163
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
2154
2164
|
}
|
|
2155
|
-
var
|
|
2165
|
+
var ya = new z("tag:yaml.org,2002:binary", {
|
|
2156
2166
|
kind: "scalar",
|
|
2157
|
-
resolve:
|
|
2158
|
-
construct:
|
|
2159
|
-
predicate:
|
|
2160
|
-
represent:
|
|
2161
|
-
}),
|
|
2162
|
-
function
|
|
2167
|
+
resolve: fa,
|
|
2168
|
+
construct: ha,
|
|
2169
|
+
predicate: ba,
|
|
2170
|
+
represent: va
|
|
2171
|
+
}), _a = Object.prototype.hasOwnProperty, ka = Object.prototype.toString;
|
|
2172
|
+
function xa(e) {
|
|
2163
2173
|
if (e === null)
|
|
2164
2174
|
return !0;
|
|
2165
|
-
var n = [], t,
|
|
2166
|
-
for (t = 0,
|
|
2167
|
-
if (
|
|
2175
|
+
var n = [], t, r, a, c, s, o = e;
|
|
2176
|
+
for (t = 0, r = o.length; t < r; t += 1) {
|
|
2177
|
+
if (a = o[t], s = !1, ka.call(a) !== "[object Object]")
|
|
2168
2178
|
return !1;
|
|
2169
|
-
for (c in
|
|
2170
|
-
if (
|
|
2179
|
+
for (c in a)
|
|
2180
|
+
if (_a.call(a, c))
|
|
2171
2181
|
if (!s)
|
|
2172
2182
|
s = !0;
|
|
2173
2183
|
else
|
|
@@ -2181,75 +2191,75 @@ function _r(e) {
|
|
|
2181
2191
|
}
|
|
2182
2192
|
return !0;
|
|
2183
2193
|
}
|
|
2184
|
-
function
|
|
2194
|
+
function wa(e) {
|
|
2185
2195
|
return e !== null ? e : [];
|
|
2186
2196
|
}
|
|
2187
|
-
var
|
|
2197
|
+
var Sa = new z("tag:yaml.org,2002:omap", {
|
|
2188
2198
|
kind: "sequence",
|
|
2189
|
-
resolve:
|
|
2190
|
-
construct:
|
|
2191
|
-
}),
|
|
2192
|
-
function
|
|
2199
|
+
resolve: xa,
|
|
2200
|
+
construct: wa
|
|
2201
|
+
}), Aa = Object.prototype.toString;
|
|
2202
|
+
function Fa(e) {
|
|
2193
2203
|
if (e === null)
|
|
2194
2204
|
return !0;
|
|
2195
|
-
var n, t,
|
|
2205
|
+
var n, t, r, a, c, s = e;
|
|
2196
2206
|
for (c = new Array(s.length), n = 0, t = s.length; n < t; n += 1) {
|
|
2197
|
-
if (
|
|
2207
|
+
if (r = s[n], Aa.call(r) !== "[object Object]" || (a = Object.keys(r), a.length !== 1))
|
|
2198
2208
|
return !1;
|
|
2199
|
-
c[n] = [
|
|
2209
|
+
c[n] = [a[0], r[a[0]]];
|
|
2200
2210
|
}
|
|
2201
2211
|
return !0;
|
|
2202
2212
|
}
|
|
2203
|
-
function
|
|
2213
|
+
function $a(e) {
|
|
2204
2214
|
if (e === null)
|
|
2205
2215
|
return [];
|
|
2206
|
-
var n, t,
|
|
2216
|
+
var n, t, r, a, c, s = e;
|
|
2207
2217
|
for (c = new Array(s.length), n = 0, t = s.length; n < t; n += 1)
|
|
2208
|
-
|
|
2218
|
+
r = s[n], a = Object.keys(r), c[n] = [a[0], r[a[0]]];
|
|
2209
2219
|
return c;
|
|
2210
2220
|
}
|
|
2211
|
-
var
|
|
2221
|
+
var Na = new z("tag:yaml.org,2002:pairs", {
|
|
2212
2222
|
kind: "sequence",
|
|
2213
|
-
resolve:
|
|
2214
|
-
construct:
|
|
2215
|
-
}),
|
|
2216
|
-
function
|
|
2223
|
+
resolve: Fa,
|
|
2224
|
+
construct: $a
|
|
2225
|
+
}), Ea = Object.prototype.hasOwnProperty;
|
|
2226
|
+
function Ca(e) {
|
|
2217
2227
|
if (e === null)
|
|
2218
2228
|
return !0;
|
|
2219
2229
|
var n, t = e;
|
|
2220
2230
|
for (n in t)
|
|
2221
|
-
if (
|
|
2231
|
+
if (Ea.call(t, n) && t[n] !== null)
|
|
2222
2232
|
return !1;
|
|
2223
2233
|
return !0;
|
|
2224
2234
|
}
|
|
2225
|
-
function
|
|
2235
|
+
function Ia(e) {
|
|
2226
2236
|
return e !== null ? e : {};
|
|
2227
2237
|
}
|
|
2228
|
-
var
|
|
2238
|
+
var Ta = new z("tag:yaml.org,2002:set", {
|
|
2229
2239
|
kind: "mapping",
|
|
2230
|
-
resolve:
|
|
2231
|
-
construct:
|
|
2240
|
+
resolve: Ca,
|
|
2241
|
+
construct: Ia
|
|
2232
2242
|
});
|
|
2233
|
-
|
|
2243
|
+
sa.extend({
|
|
2234
2244
|
implicit: [
|
|
2235
|
-
|
|
2236
|
-
|
|
2245
|
+
pa,
|
|
2246
|
+
ga
|
|
2237
2247
|
],
|
|
2238
2248
|
explicit: [
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2249
|
+
ya,
|
|
2250
|
+
Sa,
|
|
2251
|
+
Na,
|
|
2252
|
+
Ta
|
|
2243
2253
|
]
|
|
2244
2254
|
});
|
|
2245
|
-
function
|
|
2255
|
+
function Le(e) {
|
|
2246
2256
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
2247
2257
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
2248
2258
|
}
|
|
2249
|
-
var
|
|
2259
|
+
var Oa = new Array(256), Pa = new Array(256);
|
|
2250
2260
|
for (var te = 0; te < 256; te++)
|
|
2251
|
-
|
|
2252
|
-
const
|
|
2261
|
+
Oa[te] = Le(te) ? 1 : 0, Pa[te] = Le(te);
|
|
2262
|
+
const Ze = /* @__PURE__ */ q({
|
|
2253
2263
|
__name: "PermissionsWrapper",
|
|
2254
2264
|
props: {
|
|
2255
2265
|
/**
|
|
@@ -2271,25 +2281,25 @@ const We = /* @__PURE__ */ G({
|
|
|
2271
2281
|
}
|
|
2272
2282
|
},
|
|
2273
2283
|
setup(e) {
|
|
2274
|
-
const n = e, t =
|
|
2284
|
+
const n = e, t = Z(void 0), r = j(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
2275
2285
|
return ge(() => n.authFunction, async () => {
|
|
2276
2286
|
t.value = await n.authFunction();
|
|
2277
|
-
}, { immediate: !0 }), (
|
|
2287
|
+
}, { immediate: !0 }), (a, c) => r.value ? V(a.$slots, "default", {
|
|
2278
2288
|
key: 0,
|
|
2279
2289
|
isAllowed: t.value
|
|
2280
|
-
}) :
|
|
2290
|
+
}) : U("", !0);
|
|
2281
2291
|
}
|
|
2282
|
-
}),
|
|
2292
|
+
}), ja = (e) => (fe("data-v-cb31890c"), e = e(), he(), e), La = { class: "documentation-display" }, Da = { class: "document-meta" }, Ba = { class: "document-title meta-section" }, qa = /* @__PURE__ */ ja(() => /* @__PURE__ */ O("span", { class: "document-title-extension" }, "md", -1)), Ma = {
|
|
2283
2293
|
key: 0,
|
|
2284
2294
|
class: "document-status meta-section"
|
|
2285
|
-
},
|
|
2295
|
+
}, za = { class: "meta-label" }, Ka = {
|
|
2286
2296
|
key: 1,
|
|
2287
2297
|
class: "document-create meta-section"
|
|
2288
|
-
},
|
|
2298
|
+
}, Va = { class: "meta-label" }, Ua = { class: "document-display-actions" }, Ra = {
|
|
2289
2299
|
key: 0,
|
|
2290
2300
|
class: "markdown-content-loading",
|
|
2291
2301
|
"data-testid": "markdown-content-loading"
|
|
2292
|
-
},
|
|
2302
|
+
}, Ha = { key: 1 }, Za = /* @__PURE__ */ q({
|
|
2293
2303
|
__name: "DocumentationDisplay",
|
|
2294
2304
|
props: {
|
|
2295
2305
|
/**
|
|
@@ -2316,101 +2326,101 @@ const We = /* @__PURE__ */ G({
|
|
|
2316
2326
|
},
|
|
2317
2327
|
emits: ["add", "edit", "toggle-published"],
|
|
2318
2328
|
setup(e, { emit: n }) {
|
|
2319
|
-
const t = e,
|
|
2320
|
-
var
|
|
2321
|
-
return ((
|
|
2322
|
-
}),
|
|
2323
|
-
ge(() => t.selectedDocument, (
|
|
2324
|
-
var
|
|
2325
|
-
|
|
2329
|
+
const t = e, r = n, { i18n: a } = Ae.useI18n(), c = Z(!0), s = j(() => {
|
|
2330
|
+
var k, y, x, A, i;
|
|
2331
|
+
return ((y = (k = t.selectedDocument) == null ? void 0 : k.document) == null ? void 0 : y.title) || ((i = (A = (x = t.selectedDocument) == null ? void 0 : x.document) == null ? void 0 : A.revision) == null ? void 0 : i.title) || "";
|
|
2332
|
+
}), o = j(() => ""), h = Z(!1), f = Z(a.t("documentation.common.unpublished")), E = Z(null);
|
|
2333
|
+
ge(() => t.selectedDocument, (k) => {
|
|
2334
|
+
var y;
|
|
2335
|
+
vn(k) || (t.hidePublishToggle || L((y = k.document) == null ? void 0 : y.status), k.ast && R());
|
|
2326
2336
|
}, { deep: !0 });
|
|
2327
|
-
const
|
|
2328
|
-
const
|
|
2329
|
-
|
|
2330
|
-
},
|
|
2331
|
-
|
|
2332
|
-
},
|
|
2333
|
-
|
|
2337
|
+
const S = () => {
|
|
2338
|
+
const k = !h.value;
|
|
2339
|
+
r("toggle-published", k), h.value = k, f.value = k ? a.t("documentation.common.published") : a.t("documentation.common.unpublished");
|
|
2340
|
+
}, L = (k) => {
|
|
2341
|
+
k === "published" ? (h.value = !0, f.value = a.t("documentation.common.published")) : (h.value = !1, f.value = a.t("documentation.common.unpublished"));
|
|
2342
|
+
}, R = () => {
|
|
2343
|
+
E.value = {
|
|
2334
2344
|
children: t.selectedDocument.ast,
|
|
2335
2345
|
type: "document",
|
|
2336
2346
|
version: 1
|
|
2337
2347
|
}, c.value = !1;
|
|
2338
2348
|
};
|
|
2339
|
-
return (
|
|
2340
|
-
const
|
|
2341
|
-
return v(),
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2349
|
+
return (k, y) => {
|
|
2350
|
+
const x = B("KBadge"), A = B("KInputSwitch"), i = B("KButton"), l = B("KSkeleton");
|
|
2351
|
+
return v(), $("div", La, [
|
|
2352
|
+
O("div", Da, [
|
|
2353
|
+
O("div", Ba, [
|
|
2354
|
+
V(k.$slots, "document-title", {}, () => [
|
|
2355
|
+
O("span", null, P(s.value), 1),
|
|
2356
|
+
M("."),
|
|
2357
|
+
qa
|
|
2348
2358
|
], !0)
|
|
2349
2359
|
]),
|
|
2350
|
-
e.hidePublishToggle ?
|
|
2351
|
-
|
|
2352
|
-
|
|
2360
|
+
e.hidePublishToggle ? U("", !0) : (v(), $("div", Ma, [
|
|
2361
|
+
O("span", za, P(_(a).t("documentation.documentation_display.status_label")), 1),
|
|
2362
|
+
h.value ? (v(), I(x, {
|
|
2353
2363
|
key: 0,
|
|
2354
2364
|
appearance: "success"
|
|
2355
2365
|
}, {
|
|
2356
|
-
default:
|
|
2357
|
-
|
|
2366
|
+
default: F(() => [
|
|
2367
|
+
M(P(_(a).t("documentation.common.published")), 1)
|
|
2358
2368
|
]),
|
|
2359
2369
|
_: 1
|
|
2360
|
-
})) : (v(),
|
|
2370
|
+
})) : (v(), I(x, {
|
|
2361
2371
|
key: 1,
|
|
2362
2372
|
appearance: "neutral"
|
|
2363
2373
|
}, {
|
|
2364
|
-
default:
|
|
2365
|
-
|
|
2374
|
+
default: F(() => [
|
|
2375
|
+
M(P(_(a).t("documentation.common.unpublished")), 1)
|
|
2366
2376
|
]),
|
|
2367
2377
|
_: 1
|
|
2368
2378
|
}))
|
|
2369
2379
|
])),
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
default:
|
|
2374
|
-
|
|
2380
|
+
o.value ? (v(), $("div", Ka, [
|
|
2381
|
+
O("span", Va, P(_(a).t("documentation.documentation_display.added_label")), 1),
|
|
2382
|
+
T(x, { appearance: "neutral" }, {
|
|
2383
|
+
default: F(() => [
|
|
2384
|
+
M(P(o.value), 1)
|
|
2375
2385
|
]),
|
|
2376
2386
|
_: 1
|
|
2377
2387
|
})
|
|
2378
|
-
])) :
|
|
2379
|
-
|
|
2380
|
-
|
|
2388
|
+
])) : U("", !0),
|
|
2389
|
+
O("div", Ua, [
|
|
2390
|
+
T(_(Ze), {
|
|
2381
2391
|
"auth-function": () => e.canEdit()
|
|
2382
2392
|
}, {
|
|
2383
|
-
default:
|
|
2384
|
-
!e.hidePublishToggle && !e.card ? (v(),
|
|
2393
|
+
default: F(() => [
|
|
2394
|
+
!e.hidePublishToggle && !e.card ? (v(), I(A, {
|
|
2385
2395
|
key: 0,
|
|
2386
|
-
modelValue:
|
|
2387
|
-
"onUpdate:modelValue":
|
|
2396
|
+
modelValue: h.value,
|
|
2397
|
+
"onUpdate:modelValue": y[0] || (y[0] = (u) => h.value = u),
|
|
2388
2398
|
class: "document-publish-toggle",
|
|
2389
2399
|
"data-testid": "document-publish-toggle",
|
|
2390
|
-
label:
|
|
2400
|
+
label: f.value,
|
|
2391
2401
|
"label-before": "",
|
|
2392
|
-
onClick:
|
|
2393
|
-
}, null, 8, ["modelValue", "label"])) :
|
|
2394
|
-
|
|
2402
|
+
onClick: S
|
|
2403
|
+
}, null, 8, ["modelValue", "label"])) : U("", !0),
|
|
2404
|
+
T(i, {
|
|
2395
2405
|
appearance: "secondary",
|
|
2396
2406
|
class: "document-edit-button",
|
|
2397
2407
|
"data-testid": "document-edit-button",
|
|
2398
2408
|
size: "small",
|
|
2399
|
-
onClick:
|
|
2409
|
+
onClick: y[1] || (y[1] = (u) => r("edit"))
|
|
2400
2410
|
}, {
|
|
2401
|
-
default:
|
|
2402
|
-
|
|
2411
|
+
default: F(() => [
|
|
2412
|
+
M(P(_(a).t("documentation.documentation_display.edit_button")), 1)
|
|
2403
2413
|
]),
|
|
2404
2414
|
_: 1
|
|
2405
2415
|
}),
|
|
2406
|
-
|
|
2416
|
+
T(i, {
|
|
2407
2417
|
appearance: "primary",
|
|
2408
2418
|
"data-testid": "add-new-page-button",
|
|
2409
2419
|
size: "small",
|
|
2410
|
-
onClick:
|
|
2420
|
+
onClick: y[2] || (y[2] = (u) => r("add"))
|
|
2411
2421
|
}, {
|
|
2412
|
-
default:
|
|
2413
|
-
|
|
2422
|
+
default: F(() => [
|
|
2423
|
+
M(P(_(a).t("documentation.documentation_display.add_new")), 1)
|
|
2414
2424
|
]),
|
|
2415
2425
|
_: 1
|
|
2416
2426
|
})
|
|
@@ -2419,44 +2429,44 @@ const We = /* @__PURE__ */ G({
|
|
|
2419
2429
|
}, 8, ["auth-function"])
|
|
2420
2430
|
])
|
|
2421
2431
|
]),
|
|
2422
|
-
c.value ? (v(),
|
|
2423
|
-
e.card ? (v(),
|
|
2432
|
+
c.value ? (v(), $("div", Ra, [
|
|
2433
|
+
e.card ? (v(), I(l, {
|
|
2424
2434
|
key: 1,
|
|
2425
2435
|
type: "card"
|
|
2426
|
-
})) : (v(),
|
|
2436
|
+
})) : (v(), I(l, {
|
|
2427
2437
|
key: 0,
|
|
2428
2438
|
class: "markdown-content-loader"
|
|
2429
2439
|
}))
|
|
2430
|
-
])) : (v(),
|
|
2431
|
-
|
|
2432
|
-
class:
|
|
2440
|
+
])) : (v(), $("div", Ha, [
|
|
2441
|
+
O("div", {
|
|
2442
|
+
class: Se(["document-content", { "content-card-view": e.card }])
|
|
2433
2443
|
}, [
|
|
2434
|
-
|
|
2444
|
+
E.value ? (v(), I(_(hn), {
|
|
2435
2445
|
key: 0,
|
|
2436
|
-
document:
|
|
2437
|
-
}, null, 8, ["document"])) :
|
|
2446
|
+
document: E.value
|
|
2447
|
+
}, null, 8, ["document"])) : U("", !0)
|
|
2438
2448
|
], 2)
|
|
2439
2449
|
]))
|
|
2440
2450
|
]);
|
|
2441
2451
|
};
|
|
2442
2452
|
}
|
|
2443
|
-
}),
|
|
2453
|
+
}), Ne = (e, n) => {
|
|
2444
2454
|
const t = e.__vccOpts || e;
|
|
2445
|
-
for (const [
|
|
2446
|
-
t[
|
|
2455
|
+
for (const [r, a] of n)
|
|
2456
|
+
t[r] = a;
|
|
2447
2457
|
return t;
|
|
2448
|
-
},
|
|
2458
|
+
}, Ya = /* @__PURE__ */ Ne(Za, [["__scopeId", "data-v-cb31890c"]]), me = "24px", Ye = (e, n) => {
|
|
2449
2459
|
const t = e.__vccOpts || e;
|
|
2450
|
-
for (const [
|
|
2451
|
-
t[
|
|
2460
|
+
for (const [r, a] of n)
|
|
2461
|
+
t[r] = a;
|
|
2452
2462
|
return t;
|
|
2453
|
-
},
|
|
2463
|
+
}, Ja = (e) => (fe("data-v-ee85ff00"), e = e(), he(), e), Wa = ["aria-hidden"], Ga = {
|
|
2454
2464
|
key: 0,
|
|
2455
2465
|
"data-testid": "kui-icon-svg-title"
|
|
2456
|
-
},
|
|
2466
|
+
}, Xa = /* @__PURE__ */ Ja(() => /* @__PURE__ */ O("path", {
|
|
2457
2467
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2458
2468
|
fill: "currentColor"
|
|
2459
|
-
}, null, -1)),
|
|
2469
|
+
}, null, -1)), Qa = /* @__PURE__ */ q({
|
|
2460
2470
|
__name: "AddIcon",
|
|
2461
2471
|
props: {
|
|
2462
2472
|
/** The accessibility text provided to screen readers */
|
|
@@ -2508,16 +2518,16 @@ const We = /* @__PURE__ */ G({
|
|
|
2508
2518
|
}
|
|
2509
2519
|
},
|
|
2510
2520
|
setup(e) {
|
|
2511
|
-
const n = e, t =
|
|
2521
|
+
const n = e, t = j(() => {
|
|
2512
2522
|
if (typeof n.size == "number" && n.size > 0)
|
|
2513
2523
|
return `${n.size}px`;
|
|
2514
2524
|
if (typeof n.size == "string") {
|
|
2515
|
-
const
|
|
2525
|
+
const a = String(n.size).replace(/px/gi, ""), c = Number(a);
|
|
2516
2526
|
if (c && !isNaN(c) && Number.isInteger(c) && c > 0)
|
|
2517
2527
|
return `${c}px`;
|
|
2518
2528
|
}
|
|
2519
2529
|
return me;
|
|
2520
|
-
}),
|
|
2530
|
+
}), r = j(() => ({
|
|
2521
2531
|
boxSizing: "border-box",
|
|
2522
2532
|
color: n.color,
|
|
2523
2533
|
display: n.display,
|
|
@@ -2525,14 +2535,14 @@ const We = /* @__PURE__ */ G({
|
|
|
2525
2535
|
lineHeight: "0",
|
|
2526
2536
|
width: t.value
|
|
2527
2537
|
}));
|
|
2528
|
-
return (
|
|
2538
|
+
return (a, c) => (v(), I(Q(e.as), {
|
|
2529
2539
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2530
2540
|
class: "kui-icon add-icon",
|
|
2531
2541
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2532
|
-
style:
|
|
2542
|
+
style: Be(r.value)
|
|
2533
2543
|
}, {
|
|
2534
|
-
default:
|
|
2535
|
-
(v(),
|
|
2544
|
+
default: F(() => [
|
|
2545
|
+
(v(), $("svg", {
|
|
2536
2546
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2537
2547
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2538
2548
|
fill: "none",
|
|
@@ -2542,21 +2552,21 @@ const We = /* @__PURE__ */ G({
|
|
|
2542
2552
|
width: "100%",
|
|
2543
2553
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2544
2554
|
}, [
|
|
2545
|
-
e.title ? (v(),
|
|
2546
|
-
|
|
2547
|
-
], 8,
|
|
2555
|
+
e.title ? (v(), $("title", Ga, P(e.title), 1)) : U("", !0),
|
|
2556
|
+
Xa
|
|
2557
|
+
], 8, Wa))
|
|
2548
2558
|
]),
|
|
2549
2559
|
_: 1
|
|
2550
2560
|
}, 8, ["aria-hidden", "style"]));
|
|
2551
2561
|
}
|
|
2552
|
-
}),
|
|
2562
|
+
}), er = /* @__PURE__ */ Ye(Qa, [["__scopeId", "data-v-ee85ff00"]]), Je = (e) => (fe("data-v-513e4f3f"), e = e(), he(), e), tr = ["aria-hidden"], nr = {
|
|
2553
2563
|
key: 0,
|
|
2554
2564
|
"data-testid": "kui-icon-svg-title"
|
|
2555
|
-
},
|
|
2565
|
+
}, ar = /* @__PURE__ */ Je(() => /* @__PURE__ */ O("path", {
|
|
2556
2566
|
d: "M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",
|
|
2557
2567
|
fill: "currentColor",
|
|
2558
2568
|
"transform-origin": "center"
|
|
2559
|
-
}, null, -1)),
|
|
2569
|
+
}, null, -1)), rr = /* @__PURE__ */ Je(() => /* @__PURE__ */ O("animateTransform", {
|
|
2560
2570
|
attributeName: "transform",
|
|
2561
2571
|
attributeType: "XML",
|
|
2562
2572
|
dur: "1.5s",
|
|
@@ -2564,7 +2574,7 @@ const We = /* @__PURE__ */ G({
|
|
|
2564
2574
|
repeatCount: "indefinite",
|
|
2565
2575
|
to: "360",
|
|
2566
2576
|
type: "rotate"
|
|
2567
|
-
}, null, -1)),
|
|
2577
|
+
}, null, -1)), or = /* @__PURE__ */ q({
|
|
2568
2578
|
__name: "ProgressIcon",
|
|
2569
2579
|
props: {
|
|
2570
2580
|
/** The accessibility text provided to screen readers */
|
|
@@ -2616,16 +2626,16 @@ const We = /* @__PURE__ */ G({
|
|
|
2616
2626
|
}
|
|
2617
2627
|
},
|
|
2618
2628
|
setup(e) {
|
|
2619
|
-
const n = e, t =
|
|
2629
|
+
const n = e, t = j(() => {
|
|
2620
2630
|
if (typeof n.size == "number" && n.size > 0)
|
|
2621
2631
|
return `${n.size}px`;
|
|
2622
2632
|
if (typeof n.size == "string") {
|
|
2623
|
-
const
|
|
2633
|
+
const a = String(n.size).replace(/px/gi, ""), c = Number(a);
|
|
2624
2634
|
if (c && !isNaN(c) && Number.isInteger(c) && c > 0)
|
|
2625
2635
|
return `${c}px`;
|
|
2626
2636
|
}
|
|
2627
2637
|
return me;
|
|
2628
|
-
}),
|
|
2638
|
+
}), r = j(() => ({
|
|
2629
2639
|
boxSizing: "border-box",
|
|
2630
2640
|
color: n.color,
|
|
2631
2641
|
display: n.display,
|
|
@@ -2633,14 +2643,14 @@ const We = /* @__PURE__ */ G({
|
|
|
2633
2643
|
lineHeight: "0",
|
|
2634
2644
|
width: t.value
|
|
2635
2645
|
}));
|
|
2636
|
-
return (
|
|
2646
|
+
return (a, c) => (v(), I(Q(e.as), {
|
|
2637
2647
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2638
2648
|
class: "kui-icon progress-icon",
|
|
2639
2649
|
"data-testid": "kui-icon-wrapper-progress-icon",
|
|
2640
|
-
style:
|
|
2650
|
+
style: Be(r.value)
|
|
2641
2651
|
}, {
|
|
2642
|
-
default:
|
|
2643
|
-
(v(),
|
|
2652
|
+
default: F(() => [
|
|
2653
|
+
(v(), $("svg", {
|
|
2644
2654
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2645
2655
|
"data-testid": "kui-icon-svg-progress-icon",
|
|
2646
2656
|
fill: "none",
|
|
@@ -2650,15 +2660,15 @@ const We = /* @__PURE__ */ G({
|
|
|
2650
2660
|
width: "100%",
|
|
2651
2661
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2652
2662
|
}, [
|
|
2653
|
-
e.title ? (v(),
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
], 8,
|
|
2663
|
+
e.title ? (v(), $("title", nr, P(e.title), 1)) : U("", !0),
|
|
2664
|
+
ar,
|
|
2665
|
+
rr
|
|
2666
|
+
], 8, tr))
|
|
2657
2667
|
]),
|
|
2658
2668
|
_: 1
|
|
2659
2669
|
}, 8, ["aria-hidden", "style"]));
|
|
2660
2670
|
}
|
|
2661
|
-
}),
|
|
2671
|
+
}), De = /* @__PURE__ */ Ye(or, [["__scopeId", "data-v-513e4f3f"]]), ir = /* @__PURE__ */ q({
|
|
2662
2672
|
__name: "DocumentationPageEmptyState",
|
|
2663
2673
|
props: {
|
|
2664
2674
|
/**
|
|
@@ -2673,36 +2683,36 @@ const We = /* @__PURE__ */ G({
|
|
|
2673
2683
|
},
|
|
2674
2684
|
emits: ["create-documentation"],
|
|
2675
2685
|
setup(e, { emit: n }) {
|
|
2676
|
-
const t = n, { i18n:
|
|
2677
|
-
return (
|
|
2678
|
-
const s =
|
|
2679
|
-
return v(),
|
|
2686
|
+
const t = n, { i18n: r } = Ae.useI18n();
|
|
2687
|
+
return (a, c) => {
|
|
2688
|
+
const s = B("KButton"), o = B("KEmptyState");
|
|
2689
|
+
return v(), I(o, {
|
|
2680
2690
|
class: "documentation-page-empty-state",
|
|
2681
2691
|
"data-testid": "documentation-page-empty-state",
|
|
2682
2692
|
icon: "stateGruceo",
|
|
2683
2693
|
"icon-size": "96"
|
|
2684
2694
|
}, {
|
|
2685
|
-
title:
|
|
2686
|
-
|
|
2695
|
+
title: F(() => [
|
|
2696
|
+
M(P(_(r).t("documentation.show.empty_state.title")), 1)
|
|
2687
2697
|
]),
|
|
2688
|
-
message:
|
|
2689
|
-
|
|
2698
|
+
message: F(() => [
|
|
2699
|
+
M(P(_(r).t("documentation.show.empty_state.message")), 1)
|
|
2690
2700
|
]),
|
|
2691
|
-
cta:
|
|
2692
|
-
|
|
2701
|
+
cta: F(() => [
|
|
2702
|
+
T(_(Ze), {
|
|
2693
2703
|
"auth-function": () => e.canEdit()
|
|
2694
2704
|
}, {
|
|
2695
|
-
default:
|
|
2696
|
-
|
|
2705
|
+
default: F(() => [
|
|
2706
|
+
T(s, {
|
|
2697
2707
|
appearance: "primary",
|
|
2698
2708
|
"data-testid": "add-new-page-button",
|
|
2699
|
-
onClick: c[0] || (c[0] = (
|
|
2709
|
+
onClick: c[0] || (c[0] = (h) => t("create-documentation"))
|
|
2700
2710
|
}, {
|
|
2701
|
-
icon:
|
|
2702
|
-
|
|
2711
|
+
icon: F(() => [
|
|
2712
|
+
T(_(er), { size: "22" })
|
|
2703
2713
|
]),
|
|
2704
|
-
default:
|
|
2705
|
-
|
|
2714
|
+
default: F(() => [
|
|
2715
|
+
M(" " + P(_(r).t("documentation.show.empty_state.ctaText")), 1)
|
|
2706
2716
|
]),
|
|
2707
2717
|
_: 1
|
|
2708
2718
|
})
|
|
@@ -2714,13 +2724,13 @@ const We = /* @__PURE__ */ G({
|
|
|
2714
2724
|
});
|
|
2715
2725
|
};
|
|
2716
2726
|
}
|
|
2717
|
-
}),
|
|
2727
|
+
}), lr = {
|
|
2718
2728
|
// @ts-ignore
|
|
2719
2729
|
serviceDocumentationDocs: "https://docs.konghq.com/konnect/servicehub/service-documentation/#main"
|
|
2720
|
-
},
|
|
2730
|
+
}, sr = (e) => (fe("data-v-ad1a177c"), e = e(), he(), e), ur = { class: "title" }, cr = { class: "subtitle" }, dr = /* @__PURE__ */ sr(() => /* @__PURE__ */ O("br", null, null, -1)), pr = { class: "document-inputs" }, mr = { class: "page-name side-by-side" }, gr = { class: "url-slug side-by-side" }, fr = {
|
|
2721
2731
|
key: 1,
|
|
2722
2732
|
class: "documentation-status"
|
|
2723
|
-
},
|
|
2733
|
+
}, hr = { class: "action-buttons" }, vr = { class: "button-spacing" }, br = /* @__PURE__ */ q({
|
|
2724
2734
|
__name: "ProductDocumentModal",
|
|
2725
2735
|
props: {
|
|
2726
2736
|
actionPending: {
|
|
@@ -2750,206 +2760,206 @@ const We = /* @__PURE__ */ G({
|
|
|
2750
2760
|
},
|
|
2751
2761
|
emits: ["cancel", "save", "delete"],
|
|
2752
2762
|
setup(e, { emit: n }) {
|
|
2753
|
-
const t = e,
|
|
2763
|
+
const t = e, r = n, { i18n: a } = Ae.useI18n(), c = j(() => {
|
|
2754
2764
|
var m;
|
|
2755
2765
|
return (m = t.record.file) == null ? void 0 : m.filename;
|
|
2756
|
-
}), s =
|
|
2766
|
+
}), s = j(() => {
|
|
2757
2767
|
var m;
|
|
2758
|
-
return
|
|
2759
|
-
}),
|
|
2768
|
+
return A.value ? (m = A.value.name) == null ? void 0 : m.split(".")[0] : "";
|
|
2769
|
+
}), o = Z(!0), h = j(() => o.value ? "published" : "unpublished"), f = Qe({
|
|
2760
2770
|
fileName: "",
|
|
2761
2771
|
pageName: "",
|
|
2762
2772
|
urlSlug: "",
|
|
2763
|
-
status:
|
|
2773
|
+
status: h.value,
|
|
2764
2774
|
parent: ""
|
|
2765
|
-
}),
|
|
2775
|
+
}), E = /^[\w-]+$/, S = j(() => {
|
|
2766
2776
|
var m;
|
|
2767
|
-
return
|
|
2768
|
-
}),
|
|
2769
|
-
var
|
|
2770
|
-
let m = (
|
|
2771
|
-
var
|
|
2772
|
-
return
|
|
2773
|
-
}).map((
|
|
2774
|
-
label:
|
|
2775
|
-
value:
|
|
2777
|
+
return f.urlSlug !== "" && !((m = f.urlSlug) != null && m.match(E));
|
|
2778
|
+
}), L = j(() => {
|
|
2779
|
+
var g;
|
|
2780
|
+
let m = (g = t.documents) == null ? void 0 : g.filter((w) => {
|
|
2781
|
+
var C;
|
|
2782
|
+
return w.record.id !== ((C = t.record) == null ? void 0 : C.id) && !w.record.parent_document_id;
|
|
2783
|
+
}).map((w) => ({
|
|
2784
|
+
label: w.record.title,
|
|
2785
|
+
value: w.record.id,
|
|
2776
2786
|
selected: !1
|
|
2777
2787
|
}));
|
|
2778
2788
|
m || (m = []);
|
|
2779
|
-
const
|
|
2789
|
+
const b = Pe(m.length);
|
|
2780
2790
|
return m.push({
|
|
2781
|
-
label:
|
|
2791
|
+
label: a.t("documentation.form_modal.parent_document_select_option_none"),
|
|
2782
2792
|
value: "none",
|
|
2783
|
-
selected: !
|
|
2793
|
+
selected: !b
|
|
2784
2794
|
}), m;
|
|
2785
|
-
}),
|
|
2786
|
-
|
|
2787
|
-
},
|
|
2788
|
-
|
|
2795
|
+
}), R = j(() => !t.editing && !A.value || !f.pageName || S.value), k = j(() => t.editing ? a.t("documentation.form_modal.edit_title") : a.t("documentation.form_modal.create_title")), y = j(() => t.editing ? a.t("documentation.form_modal.replace_file_button_text") : a.t("documentation.form_modal.filename_button_text")), x = j(() => h.value === "published" ? a.t("documentation.common.published") : a.t("documentation.common.unpublished")), A = Z(null), i = (m) => {
|
|
2796
|
+
A.value = m == null ? void 0 : m[0], f.pageName = s.value, f.urlSlug = s.value, f.fileName = s.value;
|
|
2797
|
+
}, l = () => {
|
|
2798
|
+
A.value = null;
|
|
2789
2799
|
}, u = () => {
|
|
2790
|
-
|
|
2800
|
+
r("cancel"), p();
|
|
2791
2801
|
}, d = () => {
|
|
2792
|
-
|
|
2802
|
+
r("save", Object.assign(f, { status: h.value }), A);
|
|
2793
2803
|
}, p = () => {
|
|
2794
|
-
var m,
|
|
2795
|
-
if (
|
|
2796
|
-
const
|
|
2797
|
-
|
|
2804
|
+
var m, b, g, w, C;
|
|
2805
|
+
if (A.value = null, t.editing && ((m = t.record) != null && m.document)) {
|
|
2806
|
+
const D = Pe(t.record), W = D.status || t.record.document.status || o.value;
|
|
2807
|
+
f.fileName = ((b = D.document.file) == null ? void 0 : b.filename) || ((w = (g = D.document.revision) == null ? void 0 : g.file) == null ? void 0 : w.filename), f.pageName = D.document.title || ((C = D.document.revision) == null ? void 0 : C.title), f.urlSlug = D.document.slug, f.parent = D.document.parent_document_id, f.status = W, o.value = W === "published";
|
|
2798
2808
|
} else
|
|
2799
|
-
|
|
2809
|
+
f.fileName = "", f.pageName = "", f.urlSlug = "", f.parent = "", f.status = "";
|
|
2800
2810
|
};
|
|
2801
|
-
return
|
|
2811
|
+
return et(() => {
|
|
2802
2812
|
p();
|
|
2803
|
-
}), (m,
|
|
2804
|
-
const
|
|
2805
|
-
return v(),
|
|
2806
|
-
|
|
2813
|
+
}), (m, b) => {
|
|
2814
|
+
const g = B("KExternalLink"), w = B("KAlert"), C = B("KFileUpload"), D = B("KInput"), W = B("KLabel"), oe = B("KInputSwitch"), ve = B("KSelect"), ne = B("KButton"), ie = B("KPrompt");
|
|
2815
|
+
return v(), I(tt, { to: "#kong-ui-app-layout-teleport-default-slot" }, [
|
|
2816
|
+
T(ie, {
|
|
2807
2817
|
class: "edit-document-modal",
|
|
2808
2818
|
"data-testid": "edit-document-modal",
|
|
2809
2819
|
"is-visible": "",
|
|
2810
2820
|
onCanceled: u,
|
|
2811
2821
|
onProceed: d
|
|
2812
2822
|
}, {
|
|
2813
|
-
"header-content":
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2823
|
+
"header-content": F(() => [
|
|
2824
|
+
O("div", ur, [
|
|
2825
|
+
M(P(k.value) + " ", 1),
|
|
2826
|
+
O("div", cr, [
|
|
2827
|
+
M(P(_(a).t("documentation.form_modal.subtitle")) + " ", 1),
|
|
2828
|
+
dr,
|
|
2829
|
+
T(g, {
|
|
2820
2830
|
class: "doc-link",
|
|
2821
|
-
href:
|
|
2831
|
+
href: _(lr).serviceDocumentationDocs
|
|
2822
2832
|
}, {
|
|
2823
|
-
default:
|
|
2824
|
-
|
|
2833
|
+
default: F(() => [
|
|
2834
|
+
M(P(_(a).t("documentation.form_modal.documentation_link_text")), 1)
|
|
2825
2835
|
]),
|
|
2826
2836
|
_: 1
|
|
2827
2837
|
}, 8, ["href"])
|
|
2828
2838
|
])
|
|
2829
2839
|
])
|
|
2830
2840
|
]),
|
|
2831
|
-
"body-content":
|
|
2832
|
-
e.errorMessage ? (v(),
|
|
2841
|
+
"body-content": F(() => [
|
|
2842
|
+
e.errorMessage ? (v(), I(w, {
|
|
2833
2843
|
key: 0,
|
|
2834
2844
|
"alert-message": e.errorMessage,
|
|
2835
2845
|
appearance: "danger",
|
|
2836
2846
|
class: "bottom-spacing"
|
|
2837
|
-
}, null, 8, ["alert-message"])) :
|
|
2838
|
-
|
|
2847
|
+
}, null, 8, ["alert-message"])) : U("", !0),
|
|
2848
|
+
T(C, {
|
|
2839
2849
|
accept: [".md", ".markdown"],
|
|
2840
|
-
"button-text":
|
|
2850
|
+
"button-text": y.value,
|
|
2841
2851
|
class: "document-file-upload",
|
|
2842
2852
|
"data-testid": "document-file-upload",
|
|
2843
|
-
label:
|
|
2844
|
-
"label-attributes": { help:
|
|
2853
|
+
label: _(a).t("documentation.form_modal.file_label"),
|
|
2854
|
+
"label-attributes": { help: _(a).t("documentation.form_modal.file_tooltip") },
|
|
2845
2855
|
placeholder: e.editing ? c.value : void 0,
|
|
2846
2856
|
onFileAdded: i,
|
|
2847
|
-
onFileRemoved:
|
|
2857
|
+
onFileRemoved: l
|
|
2848
2858
|
}, null, 8, ["accept", "button-text", "label", "label-attributes", "placeholder"]),
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
modelValue:
|
|
2853
|
-
"onUpdate:modelValue":
|
|
2859
|
+
O("div", pr, [
|
|
2860
|
+
O("div", mr, [
|
|
2861
|
+
T(D, {
|
|
2862
|
+
modelValue: f.pageName,
|
|
2863
|
+
"onUpdate:modelValue": b[0] || (b[0] = (N) => f.pageName = N),
|
|
2854
2864
|
modelModifiers: { trim: !0 },
|
|
2855
2865
|
"data-testid": "documentation-page-name",
|
|
2856
|
-
label:
|
|
2857
|
-
placeholder:
|
|
2866
|
+
label: _(a).t("documentation.form_modal.title_label"),
|
|
2867
|
+
placeholder: _(a).t("documentation.form_modal.title_placeholder"),
|
|
2858
2868
|
required: ""
|
|
2859
2869
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
2860
2870
|
]),
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
modelValue:
|
|
2864
|
-
"onUpdate:modelValue":
|
|
2871
|
+
O("div", gr, [
|
|
2872
|
+
T(D, {
|
|
2873
|
+
modelValue: f.urlSlug,
|
|
2874
|
+
"onUpdate:modelValue": b[1] || (b[1] = (N) => f.urlSlug = N),
|
|
2865
2875
|
modelModifiers: { trim: !0 },
|
|
2866
2876
|
"data-testid": "documentation-url-slug",
|
|
2867
|
-
"error-message":
|
|
2868
|
-
"has-error":
|
|
2869
|
-
label:
|
|
2870
|
-
pattern:
|
|
2871
|
-
placeholder:
|
|
2877
|
+
"error-message": _(a).t("documentation.form_modal.slug_error"),
|
|
2878
|
+
"has-error": S.value,
|
|
2879
|
+
label: _(a).t("documentation.form_modal.slug_label"),
|
|
2880
|
+
pattern: E,
|
|
2881
|
+
placeholder: _(a).t("documentation.form_modal.slug_placeholder")
|
|
2872
2882
|
}, null, 8, ["modelValue", "error-message", "has-error", "label", "placeholder"])
|
|
2873
2883
|
])
|
|
2874
2884
|
]),
|
|
2875
|
-
e.hidePublishToggle ?
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
default:
|
|
2879
|
-
|
|
2885
|
+
e.hidePublishToggle ? U("", !0) : (v(), $("div", fr, [
|
|
2886
|
+
O("div", null, [
|
|
2887
|
+
T(W, null, {
|
|
2888
|
+
default: F(() => [
|
|
2889
|
+
M(P(_(a).t("documentation.form_modal.status_label")), 1)
|
|
2880
2890
|
]),
|
|
2881
2891
|
_: 1
|
|
2882
2892
|
})
|
|
2883
2893
|
]),
|
|
2884
|
-
|
|
2885
|
-
modelValue:
|
|
2886
|
-
"onUpdate:modelValue":
|
|
2894
|
+
T(oe, {
|
|
2895
|
+
modelValue: o.value,
|
|
2896
|
+
"onUpdate:modelValue": b[2] || (b[2] = (N) => o.value = N),
|
|
2887
2897
|
"data-testid": "documentation-status",
|
|
2888
|
-
label:
|
|
2898
|
+
label: x.value
|
|
2889
2899
|
}, null, 8, ["modelValue", "label"])
|
|
2890
2900
|
])),
|
|
2891
|
-
|
|
2892
|
-
modelValue:
|
|
2893
|
-
"onUpdate:modelValue":
|
|
2901
|
+
T(ve, {
|
|
2902
|
+
modelValue: f.parent,
|
|
2903
|
+
"onUpdate:modelValue": b[3] || (b[3] = (N) => f.parent = N),
|
|
2894
2904
|
appearance: "select",
|
|
2895
2905
|
class: "document-parent-select",
|
|
2896
2906
|
"data-testid": "documentation-parent",
|
|
2897
2907
|
"enable-filtering": "",
|
|
2898
|
-
items:
|
|
2899
|
-
label:
|
|
2908
|
+
items: L.value,
|
|
2909
|
+
label: _(a).t("documentation.form_modal.parent_document_select_label"),
|
|
2900
2910
|
width: "100%"
|
|
2901
2911
|
}, null, 8, ["modelValue", "items", "label"])
|
|
2902
2912
|
]),
|
|
2903
|
-
"action-buttons":
|
|
2904
|
-
|
|
2905
|
-
e.editing ? (v(),
|
|
2913
|
+
"action-buttons": F(() => [
|
|
2914
|
+
O("div", hr, [
|
|
2915
|
+
e.editing ? (v(), I(ne, {
|
|
2906
2916
|
key: 0,
|
|
2907
2917
|
appearance: "danger",
|
|
2908
2918
|
class: "edit-documentation-delete-button",
|
|
2909
2919
|
"data-testid": "edit-documentation-delete-button",
|
|
2910
2920
|
disabled: e.actionPending,
|
|
2911
|
-
onClick:
|
|
2912
|
-
},
|
|
2913
|
-
default:
|
|
2914
|
-
|
|
2921
|
+
onClick: b[4] || (b[4] = (N) => r("delete"))
|
|
2922
|
+
}, Ce({
|
|
2923
|
+
default: F(() => [
|
|
2924
|
+
M(" " + P(_(a).t("documentation.form_modal.delete_button_text")), 1)
|
|
2915
2925
|
]),
|
|
2916
2926
|
_: 2
|
|
2917
2927
|
}, [
|
|
2918
2928
|
e.actionPending ? {
|
|
2919
2929
|
name: "icon",
|
|
2920
|
-
fn:
|
|
2921
|
-
|
|
2930
|
+
fn: F(() => [
|
|
2931
|
+
T(_(De), { size: "16" })
|
|
2922
2932
|
]),
|
|
2923
2933
|
key: "0"
|
|
2924
2934
|
} : void 0
|
|
2925
|
-
]), 1032, ["disabled"])) :
|
|
2926
|
-
|
|
2927
|
-
|
|
2935
|
+
]), 1032, ["disabled"])) : U("", !0),
|
|
2936
|
+
O("div", vr, [
|
|
2937
|
+
T(ne, {
|
|
2928
2938
|
appearance: "secondary",
|
|
2929
2939
|
class: "edit-documentation-cancel-button",
|
|
2930
2940
|
"data-testid": "edit-documentation-cancel-button",
|
|
2931
2941
|
onClick: u
|
|
2932
2942
|
}, {
|
|
2933
|
-
default:
|
|
2934
|
-
|
|
2943
|
+
default: F(() => [
|
|
2944
|
+
M(P(_(a).t("documentation.form_modal.cancel_button_text")), 1)
|
|
2935
2945
|
]),
|
|
2936
2946
|
_: 1
|
|
2937
2947
|
}),
|
|
2938
|
-
|
|
2948
|
+
T(ne, {
|
|
2939
2949
|
appearance: "primary",
|
|
2940
2950
|
"data-testid": "edit-documentation-save-button",
|
|
2941
|
-
disabled: e.actionPending ||
|
|
2951
|
+
disabled: e.actionPending || R.value,
|
|
2942
2952
|
onClick: d
|
|
2943
|
-
},
|
|
2944
|
-
default:
|
|
2945
|
-
|
|
2953
|
+
}, Ce({
|
|
2954
|
+
default: F(() => [
|
|
2955
|
+
M(" " + P(_(a).t("documentation.form_modal.save_button_text")), 1)
|
|
2946
2956
|
]),
|
|
2947
2957
|
_: 2
|
|
2948
2958
|
}, [
|
|
2949
2959
|
e.actionPending ? {
|
|
2950
2960
|
name: "icon",
|
|
2951
|
-
fn:
|
|
2952
|
-
|
|
2961
|
+
fn: F(() => [
|
|
2962
|
+
T(_(De), { size: "16" })
|
|
2953
2963
|
]),
|
|
2954
2964
|
key: "0"
|
|
2955
2965
|
} : void 0
|
|
@@ -2962,7 +2972,7 @@ const We = /* @__PURE__ */ G({
|
|
|
2962
2972
|
]);
|
|
2963
2973
|
};
|
|
2964
2974
|
}
|
|
2965
|
-
}),
|
|
2975
|
+
}), yr = /* @__PURE__ */ Ne(br, [["__scopeId", "data-v-ad1a177c"]]), _r = { class: "documentation" }, kr = { class: "documentation-parent-container" }, xr = /* @__PURE__ */ q({
|
|
2966
2976
|
__name: "DocumentationContent",
|
|
2967
2977
|
props: {
|
|
2968
2978
|
actionPending: {
|
|
@@ -3020,76 +3030,76 @@ const We = /* @__PURE__ */ G({
|
|
|
3020
3030
|
},
|
|
3021
3031
|
emits: ["child-change", "delete", "edit", "document-selection", "modal-closed", "parent-change", "save", "toggle-published"],
|
|
3022
3032
|
setup(e, { emit: n }) {
|
|
3023
|
-
const t = n,
|
|
3024
|
-
ge(() => c.actionSuccess, (
|
|
3025
|
-
|
|
3033
|
+
const t = n, r = Z(!1), a = Z(!1), c = e;
|
|
3034
|
+
ge(() => c.actionSuccess, (E) => {
|
|
3035
|
+
E && f();
|
|
3026
3036
|
});
|
|
3027
|
-
const s =
|
|
3028
|
-
var
|
|
3029
|
-
return `data-display-${c.cacheKey}-${((
|
|
3030
|
-
}),
|
|
3031
|
-
|
|
3032
|
-
}, g = () => {
|
|
3033
|
-
r.value = !0, a.value = !0, t("edit");
|
|
3037
|
+
const s = j(() => {
|
|
3038
|
+
var E, S;
|
|
3039
|
+
return `data-display-${c.cacheKey}-${((S = (E = c.selectedDocument) == null ? void 0 : E.document) == null ? void 0 : S.id) || ""}`;
|
|
3040
|
+
}), o = () => {
|
|
3041
|
+
a.value = !1, r.value = !0;
|
|
3034
3042
|
}, h = () => {
|
|
3035
|
-
a.value = !
|
|
3043
|
+
a.value = !0, r.value = !0, t("edit");
|
|
3044
|
+
}, f = () => {
|
|
3045
|
+
r.value = !1, t("modal-closed");
|
|
3036
3046
|
};
|
|
3037
|
-
return (
|
|
3038
|
-
const
|
|
3039
|
-
return v(),
|
|
3040
|
-
e.documentList && !e.documentList.length ? (v(),
|
|
3047
|
+
return (E, S) => {
|
|
3048
|
+
const L = B("KTreeList"), R = B("KCard");
|
|
3049
|
+
return v(), $("div", _r, [
|
|
3050
|
+
e.documentList && !e.documentList.length ? (v(), I(ir, {
|
|
3041
3051
|
key: 0,
|
|
3042
3052
|
"can-edit": e.canEdit,
|
|
3043
|
-
onCreateDocumentation:
|
|
3044
|
-
}, null, 8, ["can-edit"])) : (v(),
|
|
3053
|
+
onCreateDocumentation: o
|
|
3054
|
+
}, null, 8, ["can-edit"])) : (v(), I(R, {
|
|
3045
3055
|
key: 1,
|
|
3046
3056
|
class: "documentation-card"
|
|
3047
3057
|
}, {
|
|
3048
|
-
default:
|
|
3049
|
-
|
|
3050
|
-
(v(),
|
|
3058
|
+
default: F(() => [
|
|
3059
|
+
O("div", kr, [
|
|
3060
|
+
(v(), I(L, {
|
|
3051
3061
|
key: `tree-list-${e.cacheKey}`,
|
|
3052
3062
|
class: "document-tree-list",
|
|
3053
3063
|
items: e.documentList,
|
|
3054
3064
|
"max-depth": 2,
|
|
3055
|
-
onChange:
|
|
3056
|
-
onChildChange:
|
|
3057
|
-
onSelected:
|
|
3065
|
+
onChange: S[0] || (S[0] = (k) => t("parent-change", k)),
|
|
3066
|
+
onChildChange: S[1] || (S[1] = (k) => t("child-change", k)),
|
|
3067
|
+
onSelected: S[2] || (S[2] = (k) => t("document-selection", k))
|
|
3058
3068
|
}, null, 8, ["items"])),
|
|
3059
|
-
e.selectedDocument ? (v(),
|
|
3069
|
+
e.selectedDocument ? (v(), I(Ya, {
|
|
3060
3070
|
key: s.value,
|
|
3061
3071
|
"can-edit": e.canEdit,
|
|
3062
3072
|
card: e.card,
|
|
3063
3073
|
class: "document-holder",
|
|
3064
3074
|
"hide-publish-toggle": e.hidePublishToggle,
|
|
3065
3075
|
"selected-document": e.selectedDocument,
|
|
3066
|
-
onAdd:
|
|
3067
|
-
onEdit:
|
|
3068
|
-
onTogglePublished:
|
|
3069
|
-
}, null, 8, ["can-edit", "card", "hide-publish-toggle", "selected-document"])) :
|
|
3076
|
+
onAdd: o,
|
|
3077
|
+
onEdit: h,
|
|
3078
|
+
onTogglePublished: S[3] || (S[3] = (k) => t("toggle-published", k))
|
|
3079
|
+
}, null, 8, ["can-edit", "card", "hide-publish-toggle", "selected-document"])) : U("", !0)
|
|
3070
3080
|
])
|
|
3071
3081
|
]),
|
|
3072
3082
|
_: 1
|
|
3073
3083
|
})),
|
|
3074
|
-
|
|
3084
|
+
r.value ? (v(), I(yr, {
|
|
3075
3085
|
key: 2,
|
|
3076
3086
|
"action-pending": e.actionPending,
|
|
3077
3087
|
documents: e.documentList,
|
|
3078
|
-
editing:
|
|
3088
|
+
editing: a.value,
|
|
3079
3089
|
"error-message": e.modalErrorMessage,
|
|
3080
3090
|
"hide-publish-toggle": e.hidePublishToggle,
|
|
3081
|
-
record:
|
|
3082
|
-
onCancel:
|
|
3083
|
-
onDelete:
|
|
3084
|
-
onSave:
|
|
3085
|
-
}, null, 8, ["action-pending", "documents", "editing", "error-message", "hide-publish-toggle", "record"])) :
|
|
3091
|
+
record: a.value && e.selectedDocument ? e.selectedDocument : void 0,
|
|
3092
|
+
onCancel: f,
|
|
3093
|
+
onDelete: S[4] || (S[4] = (k) => t("delete")),
|
|
3094
|
+
onSave: S[5] || (S[5] = (k, y) => t("save", k, y))
|
|
3095
|
+
}, null, 8, ["action-pending", "documents", "editing", "error-message", "hide-publish-toggle", "record"])) : U("", !0)
|
|
3086
3096
|
]);
|
|
3087
3097
|
};
|
|
3088
3098
|
}
|
|
3089
|
-
}),
|
|
3099
|
+
}), Nr = /* @__PURE__ */ Ne(xr, [["__scopeId", "data-v-28dad1b5"]]);
|
|
3090
3100
|
export {
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3101
|
+
Nr as DocumentationContent,
|
|
3102
|
+
Ya as DocumentationDisplay,
|
|
3103
|
+
ir as DocumentationPageEmptyState,
|
|
3104
|
+
yr as ProductDocumentModal
|
|
3095
3105
|
};
|