md-editor-v3 1.9.1 → 1.9.2
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/lib/md-editor-v3.es.js +51 -30
- package/lib/md-editor-v3.umd.js +29 -29
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/md-editor-v3.es.js
CHANGED
|
@@ -259,7 +259,7 @@ class Bus {
|
|
|
259
259
|
try {
|
|
260
260
|
item(...params);
|
|
261
261
|
} catch (error) {
|
|
262
|
-
console.error(`${name}\
|
|
262
|
+
console.error(`${name} monitor event exception\uFF01`, error);
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
}
|
|
@@ -719,7 +719,7 @@ const goto = (url, option = {
|
|
|
719
719
|
nofollow: true
|
|
720
720
|
}) => {
|
|
721
721
|
if (!url) {
|
|
722
|
-
console.warn("
|
|
722
|
+
console.warn("error link!");
|
|
723
723
|
}
|
|
724
724
|
const aEle = document.createElement("a");
|
|
725
725
|
aEle.href = url;
|
|
@@ -761,11 +761,13 @@ const scrollAuto = (pEle, cEle) => {
|
|
|
761
761
|
addEvent();
|
|
762
762
|
}
|
|
763
763
|
};
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
764
|
+
return [
|
|
765
|
+
addEvent,
|
|
766
|
+
() => {
|
|
767
|
+
pEle.removeEventListener("scroll", scrollHandler);
|
|
768
|
+
cEle.removeEventListener("scroll", scrollHandler);
|
|
769
|
+
}
|
|
770
|
+
];
|
|
769
771
|
};
|
|
770
772
|
const base642File = (base64, fileName = "image.png") => {
|
|
771
773
|
const arr = base64.split(",");
|
|
@@ -4657,8 +4659,7 @@ const useMarked = (props2, mermaidData) => {
|
|
|
4657
4659
|
let svgCode = "";
|
|
4658
4660
|
if (props2.mermaid) {
|
|
4659
4661
|
svgCode = props2.mermaid.mermaidAPI.render(idRand, code);
|
|
4660
|
-
}
|
|
4661
|
-
if (typeof window !== "undefined" && window.mermaid) {
|
|
4662
|
+
} else if (typeof window !== "undefined" && window.mermaid) {
|
|
4662
4663
|
svgCode = window.mermaid.mermaidAPI.render(idRand, code);
|
|
4663
4664
|
} else {
|
|
4664
4665
|
svgCode = `<div class="mermaid">${code}</div>`;
|
|
@@ -4757,6 +4758,8 @@ const useAutoScroll = (props2, html, textAreaRef, previewRef, htmlRef) => {
|
|
|
4757
4758
|
const editorId = inject("editorId");
|
|
4758
4759
|
let clearScrollAuto = () => {
|
|
4759
4760
|
};
|
|
4761
|
+
let initScrollAuto = () => {
|
|
4762
|
+
};
|
|
4760
4763
|
const initCopyEntry = () => {
|
|
4761
4764
|
document.querySelectorAll(`#${editorId} .${prefix}-preview pre`).forEach((pre) => {
|
|
4762
4765
|
var _a;
|
|
@@ -4775,26 +4778,30 @@ const useAutoScroll = (props2, html, textAreaRef, previewRef, htmlRef) => {
|
|
|
4775
4778
|
pre.appendChild(copyButton);
|
|
4776
4779
|
});
|
|
4777
4780
|
};
|
|
4781
|
+
onMounted(() => {
|
|
4782
|
+
[initScrollAuto, clearScrollAuto] = scrollAuto(textAreaRef.value, previewRef.value || htmlRef.value);
|
|
4783
|
+
});
|
|
4778
4784
|
const htmlChanged = () => {
|
|
4779
4785
|
nextTick(() => {
|
|
4780
4786
|
if (props2.setting.preview && !previewOnly) {
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
}, 0);
|
|
4787
|
+
clearScrollAuto();
|
|
4788
|
+
initScrollAuto();
|
|
4784
4789
|
}
|
|
4785
4790
|
initCopyEntry();
|
|
4786
4791
|
});
|
|
4787
4792
|
};
|
|
4788
|
-
|
|
4789
|
-
watch(() => props2.setting.preview, (nVal) => {
|
|
4793
|
+
const settingPreviewChanged = (nVal) => {
|
|
4790
4794
|
if (nVal && !previewOnly) {
|
|
4791
4795
|
nextTick(() => {
|
|
4792
|
-
clearScrollAuto
|
|
4796
|
+
clearScrollAuto();
|
|
4797
|
+
[initScrollAuto, clearScrollAuto] = scrollAuto(textAreaRef.value, previewRef.value || htmlRef.value);
|
|
4798
|
+
initScrollAuto();
|
|
4793
4799
|
});
|
|
4794
|
-
} else {
|
|
4795
|
-
clearScrollAuto();
|
|
4796
4800
|
}
|
|
4797
|
-
}
|
|
4801
|
+
};
|
|
4802
|
+
watch(() => html.value, htmlChanged);
|
|
4803
|
+
watch(() => props2.setting.preview, settingPreviewChanged);
|
|
4804
|
+
watch(() => props2.setting.htmlPreview, settingPreviewChanged);
|
|
4798
4805
|
onMounted(htmlChanged);
|
|
4799
4806
|
};
|
|
4800
4807
|
const useAutoGenrator = (props2, textAreaRef) => {
|
|
@@ -4862,29 +4869,37 @@ const useMermaid = (props2) => {
|
|
|
4862
4869
|
reRender: false,
|
|
4863
4870
|
mermaidInited: !!props2.mermaid
|
|
4864
4871
|
});
|
|
4865
|
-
|
|
4866
|
-
if (!props2.noMermaid
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4872
|
+
const reSetMermaidTheme = () => {
|
|
4873
|
+
if (!props2.noMermaid) {
|
|
4874
|
+
if (props2.mermaid) {
|
|
4875
|
+
props2.mermaid.initialize({
|
|
4876
|
+
theme: theme.value === "dark" ? "dark" : "default"
|
|
4877
|
+
});
|
|
4878
|
+
} else if (window.mermaid) {
|
|
4879
|
+
window.mermaid.initialize({
|
|
4880
|
+
theme: theme.value === "dark" ? "dark" : "default"
|
|
4881
|
+
});
|
|
4882
|
+
}
|
|
4870
4883
|
mermaidData.reRender = !mermaidData.reRender;
|
|
4871
4884
|
}
|
|
4872
|
-
}
|
|
4885
|
+
};
|
|
4886
|
+
watch(() => theme.value, reSetMermaidTheme);
|
|
4873
4887
|
let mermaidScript;
|
|
4874
4888
|
onMounted(() => {
|
|
4875
|
-
if (!props2.noMermaid && props2.mermaid) {
|
|
4876
|
-
window.mermaid = props2.mermaid;
|
|
4877
|
-
} else if (!props2.noMermaid && !props2.mermaid) {
|
|
4889
|
+
if (!props2.noMermaid && !props2.mermaid) {
|
|
4878
4890
|
mermaidScript = document.createElement("script");
|
|
4879
4891
|
mermaidScript.src = props2.mermaidJs;
|
|
4880
4892
|
mermaidScript.onload = () => {
|
|
4881
|
-
mermaidData.mermaidInited = true;
|
|
4882
4893
|
window.mermaid.initialize({
|
|
4894
|
+
theme: theme.value === "dark" ? "dark" : "default",
|
|
4883
4895
|
logLevel: "Fatal"
|
|
4884
4896
|
});
|
|
4897
|
+
mermaidData.mermaidInited = true;
|
|
4885
4898
|
};
|
|
4886
4899
|
mermaidScript.id = `${prefix}-mermaid`;
|
|
4887
4900
|
appendHandler(mermaidScript);
|
|
4901
|
+
} else if (!props2.noMermaid) {
|
|
4902
|
+
reSetMermaidTheme();
|
|
4888
4903
|
}
|
|
4889
4904
|
});
|
|
4890
4905
|
onBeforeUnmount(() => {
|
|
@@ -4986,7 +5001,7 @@ var Content = defineComponent({
|
|
|
4986
5001
|
return createVNode(Fragment, null, [createVNode("div", {
|
|
4987
5002
|
"class": [`${prefix}-content`]
|
|
4988
5003
|
}, [!previewOnly && createVNode("div", {
|
|
4989
|
-
"class":
|
|
5004
|
+
"class": `${prefix}-input-wrapper`
|
|
4990
5005
|
}, [createVNode("textarea", {
|
|
4991
5006
|
"id": `${editorId}-textarea`,
|
|
4992
5007
|
"ref": textAreaRef,
|
|
@@ -4998,12 +5013,18 @@ var Content = defineComponent({
|
|
|
4998
5013
|
"class": [props2.setting.preview || props2.setting.htmlPreview ? "" : "textarea-only"],
|
|
4999
5014
|
"placeholder": props2.placeholder
|
|
5000
5015
|
}, null)]), props2.setting.preview && createVNode("div", {
|
|
5016
|
+
"class": `${prefix}-preview-wrapper`,
|
|
5001
5017
|
"ref": previewRef,
|
|
5018
|
+
"key": "content-preview-wrapper"
|
|
5019
|
+
}, [createVNode("div", {
|
|
5002
5020
|
"id": `${prefix}-preview`,
|
|
5003
5021
|
"class": [`${prefix}-preview`, `${previewTheme == null ? void 0 : previewTheme.value}-theme`, showCodeRowNumber && `${prefix}-scrn`],
|
|
5004
5022
|
"innerHTML": html.value
|
|
5005
|
-
}, null), props2.setting.htmlPreview && createVNode(
|
|
5023
|
+
}, null)]), props2.setting.htmlPreview && createVNode("div", {
|
|
5024
|
+
"class": `${prefix}-preview-wrapper`,
|
|
5006
5025
|
"ref": htmlRef,
|
|
5026
|
+
"key": "html-preview-wrapper"
|
|
5027
|
+
}, [createVNode("div", {
|
|
5007
5028
|
"class": `${prefix}-html`
|
|
5008
5029
|
}, [html.value])])]), props2.hljs === null && createVNode(Teleport, {
|
|
5009
5030
|
"to": "head"
|
package/lib/md-editor-v3.umd.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var Xt=Object.defineProperty,Yt=Object.defineProperties;var en=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var tn=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable;var le=(r,T,I)=>T in r?Xt(r,T,{enumerable:!0,configurable:!0,writable:!0,value:I}):r[T]=I,P=(r,T)=>{for(var I in T||(T={}))tn.call(T,I)&&le(r,I,T[I]);if(tt)for(var I of tt(T))nn.call(T,I)&&le(r,I,T[I]);return r},Y=(r,T)=>Yt(r,en(T));var nt=(r,T,I)=>(le(r,typeof T!="symbol"?T+"":T,I),I);(function(r,T){typeof exports=="object"&&typeof module!="undefined"?module.exports=T(require("vue")):typeof define=="function"&&define.amd?define(["vue"],T):(r=typeof globalThis!="undefined"?globalThis:r||self,r.MdEditorV3=T(r.Vue))})(this,function(r){"use strict";const T="//at.alicdn.com/t/font_2605852_pqekijay2ij.js",I={atom:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/atom-one-dark.css",github:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/github.css",githubDark:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/github-dark.css",js:"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/highlight.min.js"},re={main:"https://cdn.jsdelivr.net/npm/prettier@2.4.0/standalone.js",markdown:"https://cdn.jsdelivr.net/npm/prettier@2.4.0/parser-markdown.js"},ae={css:"https://cdn.jsdelivr.net/npm/cropperjs@1.5.12/dist/cropper.min.css",js:"https://cdn.jsdelivr.net/npm/cropperjs@1.5.12/dist/cropper.min.js"},it="https://cdn.jsdelivr.net/npm/screenfull@5.1.0/dist/screenfull.js",lt=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],se={"zh-CN":{toolbarTips:{bold:"\u52A0\u7C97",underline:"\u4E0B\u5212\u7EBF",italic:"\u659C\u4F53",strikeThrough:"\u5220\u9664\u7EBF",title:"\u6807\u9898",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",quote:"\u5F15\u7528",unorderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868",codeRow:"\u884C\u5185\u4EE3\u7801",code:"\u5757\u7EA7\u4EE3\u7801",link:"\u94FE\u63A5",image:"\u56FE\u7247",table:"\u8868\u683C",mermaid:"mermaid\u56FE",katex:"\u516C\u5F0F",revoke:"\u540E\u9000",next:"\u524D\u8FDB",save:"\u4FDD\u5B58",prettier:"\u7F8E\u5316",pageFullscreen:"\u6D4F\u89C8\u5668\u5168\u5C4F",fullscreen:"\u5C4F\u5E55\u5168\u5C4F",preview:"\u9884\u89C8",htmlPreview:"html\u4EE3\u7801\u9884\u89C8",catalog:"\u76EE\u5F55",github:"\u6E90\u7801\u5730\u5740"},titleItem:{h1:"\u4E00\u7EA7\u6807\u9898",h2:"\u4E8C\u7EA7\u6807\u9898",h3:"\u4E09\u7EA7\u6807\u9898",h4:"\u56DB\u7EA7\u6807\u9898",h5:"\u4E94\u7EA7\u6807\u9898",h6:"\u516D\u7EA7\u6807\u9898"},imgTitleItem:{link:"\u6DFB\u52A0\u94FE\u63A5",upload:"\u4E0A\u4F20\u56FE\u7247",clip2upload:"\u88C1\u526A\u4E0A\u4F20"},linkModalTips:{title:"\u6DFB\u52A0",descLable:"\u94FE\u63A5\u63CF\u8FF0\uFF1A",descLablePlaceHolder:"\u8BF7\u8F93\u5165\u63CF\u8FF0...",urlLable:"\u94FE\u63A5\u5730\u5740\uFF1A",UrlLablePlaceHolder:"\u8BF7\u8F93\u5165\u94FE\u63A5...",buttonOK:"\u786E\u5B9A"},clipModalTips:{title:"\u88C1\u526A\u56FE\u7247\u4E0A\u4F20",buttonUpload:"\u4E0A\u4F20"},copyCode:{text:"\u590D\u5236\u4EE3\u7801",tips:"\u5DF2\u590D\u5236\uFF01"},mermaid:{flow:"\u6D41\u7A0B\u56FE",sequence:"\u65F6\u5E8F\u56FE",gantt:"\u7518\u7279\u56FE",class:"\u7C7B\u56FE",state:"\u72B6\u6001\u56FE",pie:"\u997C\u56FE",relationship:"\u5173\u7CFB\u56FE",journey:"\u65C5\u7A0B\u56FE"},katex:{inline:"\u884C\u5185\u516C\u5F0F",block:"\u5757\u7EA7\u516C\u5F0F"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{title:"Add ",descLable:"Desc:",descLablePlaceHolder:"Enter a description...",urlLable:"Link:",UrlLablePlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",tips:"Copied!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"}}},rt="https://cdn.jsdelivr.net/npm/mermaid@8.13.5/dist/mermaid.min.js",at="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js",st="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css";class ot{constructor(){nt(this,"pools",{})}remove(e,t,n){const s=this.pools[e]&&this.pools[e][t];s&&(this.pools[e][t]=s.filter(a=>a===n))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...n){this.pools[e]||(this.pools[e]={});const s=this.pools[e][t];s&&s.forEach(a=>{try{a(...n)}catch(o){console.error(`${t}\u76D1\u542C\u4E8B\u4EF6\u6267\u884C\u5F02\u5E38\uFF01`,o)}})}}var w=new ot;const ct=(i,e)=>{const{editorId:t}=i,n=a=>{var o,c;return((o=i.toolbars)==null?void 0:o.includes(a))&&!((c=i.toolbarsExclude)==null?void 0:c.includes(a))},l=a=>{if(a.target===document.querySelector(`#${i.editorId}-textarea`))if(a.ctrlKey||a.metaKey)switch(a.code){case"KeyS":{a.shiftKey?n("strikeThrough")&&w.emit(t,"replace","strikeThrough"):n("save")&&(w.emit(t,"onSave",i.modelValue),a.preventDefault());break}case"KeyB":{n("bold")&&(w.emit(t,"replace","bold"),a.preventDefault());break}case"KeyU":{a.shiftKey?n("unorderedList")&&(w.emit(t,"replace","unorderedList"),a.preventDefault()):n("underline")&&(w.emit(t,"replace","underline"),a.preventDefault());break}case"KeyI":{a.shiftKey?n("image")&&(w.emit(t,"openModals","image"),a.preventDefault()):n("italic")&&(w.emit(t,"replace","italic"),a.preventDefault());break}case"Digit1":{n("title")&&(w.emit(t,"replace","h1"),a.preventDefault());break}case"Digit2":{n("title")&&(w.emit(t,"replace","h2"),a.preventDefault());break}case"Digit3":{n("title")&&(w.emit(t,"replace","h3"),a.preventDefault());break}case"Digit4":{n("title")&&(w.emit(t,"replace","h4"),a.preventDefault());break}case"Digit5":{n("title")&&(w.emit(t,"replace","h5"),a.preventDefault());break}case"Digit6":{n("title")&&(w.emit(t,"replace","h6"),a.preventDefault());break}case"ArrowUp":{n("sup")&&(w.emit(t,"replace","sup"),a.preventDefault());break}case"ArrowDown":{n("sub")&&(w.emit(t,"replace","sub"),a.preventDefault());break}case"KeyQ":{w.emit(t,"replace","quote"),a.preventDefault();break}case"KeyO":{n("orderedList")&&(w.emit(t,"replace","orderedList"),a.preventDefault());break}case"KeyC":{if(a.shiftKey)n("code")&&(w.emit(t,"replace","code"),a.preventDefault());else if(a.altKey)n("codeRow")&&(w.emit(t,"replace","codeRow"),a.preventDefault());else{a.preventDefault(),w.emit(t,"replace","ctrlC");break}break}case"KeyL":{n("link")&&(w.emit(t,"openModals","link"),a.preventDefault());break}case"KeyZ":{a.shiftKey?n("next")&&(w.emit(t,"ctrlShiftZ"),a.preventDefault()):n("revoke")&&(w.emit(t,"ctrlZ"),a.preventDefault());break}case"KeyF":{a.shiftKey&&n("prettier")&&(w.emit(t,"replace","prettier"),a.preventDefault());break}case"KeyT":{a.altKey&&a.shiftKey&&n("table")&&(w.emit(t,"replace","table"),a.preventDefault());break}case"KeyX":{w.emit(t,"replace","ctrlX"),a.preventDefault();break}case"KeyD":{a.preventDefault(),w.emit(t,"replace","ctrlD");break}}else a.code==="Tab"&&(a.preventDefault(),a.shiftKey?w.emit(t,"replace","shiftTab"):w.emit(t,"replace","tab"))},s=a=>{if(a.clipboardData&&a.clipboardData.files.length>0){const o=a.clipboardData.files[0];/image\/.*/.test(o.type)&&(w.emit(t,"uploadImage",[o]),a.preventDefault())}};r.onMounted(()=>{i.previewOnly||(window.addEventListener("keydown",l),document.addEventListener("paste",s),w.on(t,{name:"onSave",callback(){i.onSave?i.onSave(i.modelValue):e.emit("onSave",i.modelValue)}}))}),r.onBeforeUnmount(()=>{i.previewOnly||(window.removeEventListener("keydown",l),document.removeEventListener("paste",s))})},ut=i=>{const{previewOnly:e,editorId:t,tabWidth:n,showCodeRowNumber:l,Cropper:s}=i;r.provide("editorId",t),r.provide("tabWidth",n),r.provide("theme",r.computed(()=>i.theme));const a=r.computed(()=>{let c=I.atom;if(i.highlightCss)c=i.highlightCss;else switch(i.previewTheme){case"github":{i.theme==="dark"?c=I.githubDark:c=I.github;break}}return{js:i.highlightJs,css:c}});r.provide("highlight",a),r.provide("historyLength",i.historyLength),r.provide("previewOnly",e),r.provide("showCodeRowNumber",l);const o=r.computed(()=>{const c=P(P({},se),i.languageUserDefined);return c[i.language]?c[i.language]:se["zh-CN"]});r.provide("usedLanguageText",o),r.provide("Cropper",s),r.provide("previewTheme",r.computed(()=>i.previewTheme))};var ln="",dt=r.defineComponent({setup(){return()=>r.createVNode("div",{class:`${u}-divider`},null)}});const J=({instance:i,ctx:e,props:t={}},n="default")=>{const l=(i==null?void 0:i.$slots[n])||(e==null?void 0:e.slots[n]);return(l?l(i):"")||t[n]};var rn="",U=r.defineComponent({props:{trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>()=>{}}},setup(i,e){const t=`${u}-dropdown-hidden`,n=r.reactive({overlayClass:[t],overlayStyle:{},triggerHover:!1,overlayHover:!1}),l=r.ref(),s=r.ref(),a=()=>{i.trigger==="hover"&&(n.triggerHover=!0);const g=l.value,h=s.value,d=g.getBoundingClientRect(),m=g.offsetTop,k=g.offsetLeft,$=d.height,y=d.width;n.overlayStyle=Y(P({},n.overlayStyle),{top:m+$+"px",left:k-h.offsetWidth/2+y/2+"px"}),i.onChange(!0)},o=()=>{n.overlayHover=!0};r.watch(()=>i.visible,g=>{g?n.overlayClass=n.overlayClass.filter(h=>h!==t):n.overlayClass.push(t)});const c=g=>{const h=l.value,d=s.value;!h.contains(g.target)&&!d.contains(g.target)&&i.onChange(!1)};let p=-1;const f=g=>{l.value===g.target?n.triggerHover=!1:n.overlayHover=!1,clearTimeout(p),p=window.setTimeout(()=>{!n.overlayHover&&!n.triggerHover&&i.onChange(!1)},10)};return r.onMounted(()=>{i.trigger==="click"?(l.value.addEventListener("click",a),document.addEventListener("click",c)):(l.value.addEventListener("mouseenter",a),l.value.addEventListener("mouseleave",f),s.value.addEventListener("mouseenter",o),s.value.addEventListener("mouseleave",f))}),r.onBeforeUnmount(()=>{i.trigger==="click"?(l.value.removeEventListener("click",a),document.removeEventListener("click",c)):(l.value.removeEventListener("mouseenter",a),l.value.removeEventListener("mouseleave",f),s.value.removeEventListener("mouseenter",o),s.value.removeEventListener("mouseleave",f))}),()=>{const g=J({ctx:e}),h=J({props:i,ctx:e},"overlay"),d=r.cloneVNode(g instanceof Array?g[0]:g,{ref:l}),m=r.createVNode("div",{class:[`${u}-dropdown`,n.overlayClass],style:n.overlayStyle,ref:s},[r.createVNode("div",{class:`${u}-dropdown-overlay`},[h instanceof Array?h[0]:h])]);return[d,m]}}});const A=(i,e=0,t=e)=>{i.setSelectionRange?setTimeout(()=>{i.setSelectionRange(e,t),i.focus()},0):console.log("can not reset position!")},ee=(i,e,t)=>{const{deviationStart:n=0,deviationEnd:l=0,direct:s=!1,select:a=!1}=t;let o="";if(i.selectionStart||i.selectionStart===0){const c=i.selectionStart,p=i.selectionEnd||0,{prefixVal:f=i.value.substring(0,c),subfixVal:g=i.value.substring(p,i.value.length)}=t;o=f+e+g,A(i,a?c+n:c+e.length+l,c+e.length+l)}else o+=e;return s&&(i.value=o),o},ht=(i,e={newWindow:!0,nofollow:!0})=>{i||console.warn("\u65E0\u6548\u7684\u94FE\u63A5\uFF01");const t=document.createElement("a");t.href=i,t.style.display="none",e.newWindow&&(t.target="_blank"),e.nofollow&&(t.rel="noopener noreferrer"),document.body.appendChild(t),t.click(),document.body.removeChild(t)},oe=(i,e)=>{const t=pt(()=>{i.removeEventListener("scroll",n),i.addEventListener("scroll",n),e.removeEventListener("scroll",n),e.addEventListener("scroll",n)},50),n=l=>{const s=i.clientHeight,a=e.clientHeight,o=i.scrollHeight,c=e.scrollHeight,p=(o-s)/(c-a);l.target===i?(e.removeEventListener("scroll",n),e.scrollTo({top:i.scrollTop/p}),t()):(i.removeEventListener("scroll",n),i.scrollTo({top:e.scrollTop*p}),t())};return t(),()=>{i.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}},ft=(i,e="image.png")=>{const t=i.split(","),n=t[0].match(/:(.*?);/);if(n){const l=n[1],s=atob(t[1]);let a=s.length;const o=new Uint8Array(a);for(;a--;)o[a]=s.charCodeAt(a);return new File([o],e,{type:l})}return null},ce=i=>{if(!i.trim())return i;const e=i.split(`
|
|
2
|
-
`),t=['<span rn-wrapper aria-hidden="true">'];return e.forEach(()=>{t.push("<span></span>")}),t.push("</span>"),`<span class="code-block">${i}</span>${t.join("")}`},pt=(i,e=200)=>{let t=0;return(...n)=>{t&&clearTimeout(t),t=window.setTimeout(()=>{i.apply(globalThis,n),t=0},e)}},ue=(i,e)=>{const t=n=>{const l=i.parentElement||document.body,s=l.offsetWidth,a=l.offsetHeight,{clientWidth:o}=document.documentElement,{clientHeight:c}=document.documentElement,p=n.offsetX,f=n.offsetY,g=d=>{let m=d.x+document.body.scrollLeft-document.body.clientLeft-p,k=d.y+document.body.scrollTop-document.body.clientTop-f;m=m<1?1:m<o-s-1?m:o-s-1,k=k<1?1:k<c-a-1?k:c-a-1,e?e(m,k):(l.style.left=`${m}px`,l.style.top=`${k}px`)};document.addEventListener("mousemove",g);const h=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",h)};document.addEventListener("mouseup",h)};return i.addEventListener("mousedown",t),()=>{i.removeEventListener("mousedown",t)}},te=i=>{document.getElementById(i.id)||document.head.appendChild(i)};var an="",de=r.defineComponent({props:{title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClosed:{type:Function,default:()=>()=>{}},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>()=>{}}},setup(i,e){const t=r.ref(i.visible),n=r.ref([`${u}-modal`]),l=r.ref(),s=r.ref();let a=()=>{};const o=r.reactive({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}});return r.onMounted(()=>{a=ue(s.value,(c,p)=>{o.initPos.left=c+"px",o.initPos.top=p+"px"})}),r.onBeforeUnmount(()=>{a()}),r.watch(()=>i.isFullscreen,c=>{c?a():a=ue(s.value,(p,f)=>{o.initPos.left=p+"px",o.initPos.top=f+"px"})}),r.watch(()=>i.visible,c=>{c?(n.value.push("zoom-in"),t.value=c,r.nextTick(()=>{const p=l.value.offsetWidth/2,f=l.value.offsetHeight/2,g=document.documentElement.clientWidth/2,h=document.documentElement.clientHeight/2;o.initPos.left=g-p+"px",o.initPos.top=h-f+"px"}),setTimeout(()=>{n.value=n.value.filter(p=>p!=="zoom-in")},140)):(n.value.push("zoom-out"),setTimeout(()=>{n.value=n.value.filter(p=>p!=="zoom-out"),t.value=c},130))}),()=>{const c=J({ctx:e}),p=J({props:i,ctx:e},"title");return r.createVNode("div",{style:{display:t.value?"block":"none"}},[r.createVNode("div",{class:`${u}-modal-mask`,onClick:i.onClosed},null),r.createVNode("div",{class:n.value,style:Y(P({},o.initPos),{width:i.width,height:i.height}),ref:l},[r.createVNode("div",{class:`${u}-modal-header`,ref:s},[p||""]),r.createVNode("div",{class:`${u}-modal-body`},[c]),r.createVNode("div",{class:`${u}-modal-func`},[i.showAdjust&&r.createVNode("div",{class:`${u}-modal-adjust`,onClick:f=>{f.stopPropagation(),i.isFullscreen?o.initPos=o.historyPos:(o.historyPos=o.initPos,o.initPos={left:"0",top:"0"}),i.onAdjust(!i.isFullscreen)}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":`#icon-${i.isFullscreen?"suoxiao":"fangda"}`},null)])]),r.createVNode("div",{class:`${u}-modal-close`,onClick:f=>{f.stopPropagation(),i.onClosed&&i.onClosed()}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-close"},null)])])])])])}}}),gt=r.defineComponent({props:{type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){const e=r.inject("usedLanguageText"),t=r.inject("editorId"),n=r.computed(()=>{var s,a,o,c;switch(i.type){case"link":return`${(s=e.value.linkModalTips)==null?void 0:s.title}${(a=e.value.toolbarTips)==null?void 0:a.link}`;case"image":return`${(o=e.value.linkModalTips)==null?void 0:o.title}${(c=e.value.toolbarTips)==null?void 0:c.image}`;default:return""}}),l=r.reactive({desc:"",url:""});return r.watch(()=>i.visible,s=>{s||setTimeout(()=>{l.desc="",l.url=""},200)}),()=>r.createVNode(de,{title:n.value,visible:i.visible,onClosed:i.onCancel},{default:()=>{var s,a,o,c,p;return[r.createVNode("div",{class:`${u}-form-item`},[r.createVNode("label",{class:`${u}-lable`,for:`link-desc-${t}`},[(s=e.value.linkModalTips)==null?void 0:s.descLable]),r.createVNode("input",{placeholder:(a=e.value.linkModalTips)==null?void 0:a.descLablePlaceHolder,class:`${u}-input`,id:`link-desc-${t}`,type:"text",value:l.desc,onChange:f=>{l.desc=f.target.value},autocomplete:"off"},null)]),r.createVNode("div",{class:`${u}-form-item`},[r.createVNode("label",{class:`${u}-lable`,for:`link-url-${t}`},[(o=e.value.linkModalTips)==null?void 0:o.urlLable]),r.createVNode("input",{placeholder:(c=e.value.linkModalTips)==null?void 0:c.UrlLablePlaceHolder,class:`${u}-input`,id:`link-url-${t}`,type:"text",value:l.url,onChange:f=>{l.url=f.target.value},autocomplete:"off"},null)]),r.createVNode("div",{class:`${u}-form-item`},[r.createVNode("button",{class:[`${u}-btn`,`${u}-btn-row`],type:"button",onClick:()=>{i.onOk(l),l.desc="",l.url=""}},[(p=e.value.linkModalTips)==null?void 0:p.buttonOK])])]}})}}),sn="",mt=r.defineComponent({props:{visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){const e=r.inject("usedLanguageText"),t=r.inject("editorId");let n=r.inject("Cropper");const l=r.ref(),s=r.ref(),a=r.ref(),o=r.reactive({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let c=null;r.watch(()=>i.visible,()=>{i.visible&&!o.cropperInited&&(n=n||window.Cropper,l.value.onchange=()=>{const g=l.value.files||[];if(o.imgSelected=!0,(g==null?void 0:g.length)>0){const h=new FileReader;h.onload=d=>{o.imgSrc=d.target.result,r.nextTick(()=>{c=new n(s.value,{viewMode:2,preview:`.${u}-clip-preview-target`})})},h.readAsDataURL(g[0])}})}),r.watch(()=>[o.imgSelected],()=>{a.value.style=""}),r.watch(()=>o.isFullscreen,()=>{r.nextTick(()=>{c==null||c.destroy(),a.value.style="",s.value&&(c=new n(s.value,{viewMode:2,preview:`.${u}-clip-preview-target`}))})});const p=r.computed(()=>o.isFullscreen?{width:"100%",height:"100%"}:{width:"668px",height:"421px"}),f=()=>{c.destroy(),l.value.value="",o.imgSelected=!1};return()=>{var g;return r.createVNode(de,r.mergeProps({title:(g=e.value.clipModalTips)==null?void 0:g.title,visible:i.visible,onClosed:i.onCancel,showAdjust:!0,isFullscreen:o.isFullscreen,onAdjust:h=>{o.isFullscreen=h}},p.value),{default:()=>{var h;return[r.createVNode("div",{class:`${u}-form-item ${u}-clip`},[r.createVNode("div",{class:`${u}-clip-main`},[o.imgSelected?r.createVNode("div",{class:`${u}-clip-cropper`},[r.createVNode("img",{src:o.imgSrc,ref:s,style:{display:"none"}},null),r.createVNode("div",{class:`${u}-clip-delete`,onClick:f},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-delete"},null)])])]):r.createVNode("div",{class:`${u}-clip-upload`,onClick:()=>{l.value.click()}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-upload"},null)])])]),r.createVNode("div",{class:`${u}-clip-preview`},[r.createVNode("div",{class:`${u}-clip-preview-target`,ref:a},null)])]),r.createVNode("div",{class:`${u}-form-item`},[r.createVNode("button",{class:`${u}-btn`,type:"button",onClick:()=>{const d=c.getCroppedCanvas();w.emit(t,"uploadImage",[ft(d.toDataURL("image/png"))],i.onOk),f()}},[(h=e.value.linkModalTips)==null?void 0:h.buttonOK])]),r.createVNode("input",{ref:l,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}}),kt=r.defineComponent({props:{type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){return()=>r.createVNode(r.Fragment,null,[r.createVNode(gt,{type:i.type,visible:i.linkVisible,onOk:i.onOk,onCancel:i.onCancel},null),r.createVNode(mt,{visible:i.clipVisible,onOk:i.onOk,onCancel:i.onCancel},null)])}});const bt=i=>{let{screenfull:e}=i;const t=()=>{e.isEnabled?e.isFullscreen?e.exit():e.request():console.error("browser does not support screenfull!")},n=()=>{e=window.screenfull,e&&e.isEnabled&&e.on("change",()=>{i.updateSetting(!i.setting.fullscreen,"fullscreen")})};return r.onMounted(()=>{e&&e.isEnabled&&e.on("change",()=>{i.updateSetting(!i.setting.fullscreen,"fullscreen")})}),{fullScreenHandler:t,screenfullLoad:n}},yt=r.defineComponent({name:"TableShape",props:{tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}},setup(i){const e=r.reactive({x:-1,y:-1});return()=>r.createVNode("div",{class:`${u}-table-shape`,onMouseleave:()=>{e.x=-1,e.y=-1}},[new Array(i.tableShape[1]).fill("").map((t,n)=>r.createVNode("div",{class:`${u}-table-shape-row`,key:`table-shape-row-${n}`},[new Array(i.tableShape[0]).fill("").map((l,s)=>r.createVNode("div",{class:`${u}-table-shape-col`,key:`table-shape-col-${s}`,onMouseenter:()=>{e.x=n,e.y=s},onClick:()=>{i.onSelected(e)}},[r.createVNode("div",{class:[`${u}-table-shape-col-default`,n<=e.x&&s<=e.y&&`${u}-table-shape-col-include`]},null)]))]))])}});var wt=r.defineComponent({name:"MDEditorToolbar",props:{prettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>()=>{}},tableShape:{type:Array,default:()=>[6,4]}},setup(i){const e=r.inject("editorId"),t=r.inject("usedLanguageText"),n=r.inject("previewOnly"),{fullScreenHandler:l,screenfullLoad:s}=bt(i),a=r.reactive({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),o=(m,k)=>{w.emit(e,"replace",m,k)},c=r.reactive({type:"link",linkVisible:!1,clipVisible:!1}),p=r.ref();r.onMounted(()=>{var m;w.on(e,{name:"openModals",callback(k){c.type=k,c.linkVisible=!0}}),(m=p.value)==null||m.addEventListener("mouseover",()=>{var k;((k=window.getSelection())==null?void 0:k.toString())||w.emit(e,"selectTextChange","")})});const f=r.computed(()=>{const m=i.toolbars.filter(v=>!i.toolbarsExclude.includes(v)),k=m.indexOf("="),$=k===-1?m:m.slice(0,k+1),y=k===-1?[]:m.slice(k,Number.MAX_SAFE_INTEGER);return[$,y]}),g=r.ref(),h=()=>{w.emit(e,"uploadImage",g.value.files),g.value.value=""};r.onMounted(()=>{g.value.addEventListener("change",h)});const d=m=>{var k,$,y,v,S,N,_,L,F,j,R,O,Z,Ve,Ee,Te,Ie,De,Fe,Le,_e,Re,je,ze,Ae,Me,Be,He,Oe,Pe,Ue,qe,Ke,Ze,Je,We,Ge,Qe,Xe,Ye,et;switch(m){case"-":return r.createVNode(dt,null,null);case"bold":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(k=t.value.toolbarTips)==null?void 0:k.bold,onClick:()=>{o("bold")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-bold"},null)])]);case"underline":return r.createVNode("div",{class:`${u}-toolbar-item`,title:($=t.value.toolbarTips)==null?void 0:$.underline,onClick:()=>{o("underline")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-underline"},null)])]);case"italic":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(y=t.value.toolbarTips)==null?void 0:y.italic,onClick:()=>{o("italic")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-italic"},null)])]);case"strikeThrough":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(v=t.value.toolbarTips)==null?void 0:v.strikeThrough,onClick:()=>{o("strikeThrough")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-strike-through"},null)])]);case"title":return r.createVNode(U,{visible:a.title,onChange:E=>{a.title=E},overlay:r.createVNode("ul",{class:`${u}-menu`,onClick:()=>{a.title=!1}},[r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("h1")}},[(S=t.value.titleItem)==null?void 0:S.h1]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("h2")}},[(N=t.value.titleItem)==null?void 0:N.h2]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("h3")}},[(_=t.value.titleItem)==null?void 0:_.h3]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("h4")}},[(L=t.value.titleItem)==null?void 0:L.h4]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("h5")}},[(F=t.value.titleItem)==null?void 0:F.h5]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("h6")}},[(j=t.value.titleItem)==null?void 0:j.h6])])},{default:()=>{var E;return[r.createVNode("div",{class:`${u}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.title},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-title"},null)])])]}});case"sub":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(R=t.value.toolbarTips)==null?void 0:R.sub,onClick:()=>{o("sub")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-sub"},null)])]);case"sup":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(O=t.value.toolbarTips)==null?void 0:O.sup,onClick:()=>{o("sup")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-sup"},null)])]);case"quote":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Z=t.value.toolbarTips)==null?void 0:Z.quote,onClick:()=>{o("quote")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-quote"},null)])]);case"unorderedList":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Ve=t.value.toolbarTips)==null?void 0:Ve.unorderedList,onClick:()=>{o("unorderedList")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-unordered-list"},null)])]);case"orderedList":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Ee=t.value.toolbarTips)==null?void 0:Ee.orderedList,onClick:()=>{o("orderedList")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-ordered-list"},null)])]);case"codeRow":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Te=t.value.toolbarTips)==null?void 0:Te.codeRow,onClick:()=>{o("codeRow")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-code-row"},null)])]);case"code":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Ie=t.value.toolbarTips)==null?void 0:Ie.code,onClick:()=>{o("code")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-code"},null)])]);case"link":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(De=t.value.toolbarTips)==null?void 0:De.link,onClick:()=>{c.type="link",c.linkVisible=!0}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-link"},null)])]);case"image":return r.createVNode(U,{visible:a.image,onChange:E=>{a.image=E},overlay:r.createVNode("ul",{class:`${u}-menu`,onClick:()=>{a.title=!1}},[r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{c.type="image",c.linkVisible=!0}},[(Fe=t.value.imgTitleItem)==null?void 0:Fe.link]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{g.value.click()}},[(Le=t.value.imgTitleItem)==null?void 0:Le.upload]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{c.clipVisible=!0}},[(_e=t.value.imgTitleItem)==null?void 0:_e.clip2upload])])},{default:()=>{var E;return[r.createVNode("div",{class:`${u}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.image},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-image"},null)])])]}});case"table":return r.createVNode(U,{visible:a.table,onChange:E=>{a.table=E},key:"bar-table",overlay:r.createVNode(yt,{tableShape:i.tableShape,onSelected:E=>{o("table",{selectedShape:E})}},null)},{default:()=>{var E;return[r.createVNode("div",{class:`${u}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.table},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-table"},null)])])]}});case"revoke":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Re=t.value.toolbarTips)==null?void 0:Re.revoke,onClick:()=>{w.emit(e,"ctrlZ")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-revoke"},null)])]);case"next":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(je=t.value.toolbarTips)==null?void 0:je.next,onClick:()=>{w.emit(e,"ctrlShiftZ")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-next"},null)])]);case"save":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(ze=t.value.toolbarTips)==null?void 0:ze.save,onClick:()=>{w.emit(e,"onSave")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-baocun"},null)])]);case"prettier":return i.prettier?r.createVNode("div",{class:`${u}-toolbar-item`,title:(Ae=t.value.toolbarTips)==null?void 0:Ae.prettier,onClick:()=>{o("prettier")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-prettier"},null)])]):"";case"pageFullscreen":return!i.setting.fullscreen&&r.createVNode("div",{class:`${u}-toolbar-item`,title:(Me=t.value.toolbarTips)==null?void 0:Me.pageFullscreen,onClick:()=>{i.updateSetting(!i.setting.pageFullScreen,"pageFullScreen")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":`#icon-${i.setting.pageFullScreen?"suoxiao":"fangda"}`},null)])]);case"fullscreen":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Be=t.value.toolbarTips)==null?void 0:Be.fullscreen,onClick:l},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":`#icon-${i.setting.fullscreen?"fullScreen-exit":"fullScreen"}`},null)])]);case"preview":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(He=t.value.toolbarTips)==null?void 0:He.preview,onClick:()=>{i.updateSetting(!i.setting.preview,"preview")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-preview"},null)])]);case"htmlPreview":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Oe=t.value.toolbarTips)==null?void 0:Oe.htmlPreview,onClick:()=>{i.updateSetting(!i.setting.htmlPreview,"htmlPreview")}},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-coding"},null)])]);case"catalog":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Pe=t.value.toolbarTips)==null?void 0:Pe.catalog,onClick:()=>{w.emit(e,"catalogShow")},key:"bar-catalog"},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-catalog"},null)])]);case"github":return r.createVNode("div",{class:`${u}-toolbar-item`,title:(Ue=t.value.toolbarTips)==null?void 0:Ue.github,onClick:()=>ht("https://github.com/imzbf/md-editor-v3")},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-github"},null)])]);case"mermaid":return r.createVNode(U,{visible:a.mermaid,onChange:E=>{a.mermaid=E},overlay:r.createVNode("ul",{class:`${u}-menu`,onClick:()=>{a.mermaid=!1}},[r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("flow")}},[(qe=t.value.mermaid)==null?void 0:qe.flow]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("sequence")}},[(Ke=t.value.mermaid)==null?void 0:Ke.sequence]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("gantt")}},[(Ze=t.value.mermaid)==null?void 0:Ze.gantt]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("class")}},[(Je=t.value.mermaid)==null?void 0:Je.class]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("state")}},[(We=t.value.mermaid)==null?void 0:We.state]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("pie")}},[(Ge=t.value.mermaid)==null?void 0:Ge.pie]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("relationship")}},[(Qe=t.value.mermaid)==null?void 0:Qe.relationship]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("journey")}},[(Xe=t.value.mermaid)==null?void 0:Xe.journey])]),key:"bar-mermaid"},{default:()=>{var E;return[r.createVNode("div",{class:`${u}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.mermaid},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-mermaid"},null)])])]}});case"katex":return r.createVNode(U,{visible:a.katex,onChange:E=>{a.katex=E},overlay:r.createVNode("ul",{class:`${u}-menu`,onClick:()=>{a.katex=!1}},[r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("katexInline")}},[(Ye=t.value.katex)==null?void 0:Ye.inline]),r.createVNode("li",{class:`${u}-menu-item`,onClick:()=>{o("katexBlock")}},[(et=t.value.katex)==null?void 0:et.block])]),key:"bar-katex"},{default:()=>{var E;return[r.createVNode("div",{class:`${u}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.mermaid},[r.createVNode("svg",{class:`${u}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-formula"},null)])])]}})}};return()=>{const m=f.value[0].map($=>d($)),k=f.value[1].map($=>d($));return r.createVNode("div",{class:`${u}-toolbar-wrapper`},[r.createVNode("div",{class:`${u}-toolbar`},[r.createVNode("div",{class:`${u}-toolbar-left`,ref:p},[m]),r.createVNode("div",{class:`${u}-toolbar-right`},[k])]),r.createVNode("input",{ref:g,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),r.createVNode(kt,{linkVisible:c.linkVisible,clipVisible:c.clipVisible,type:c.type,onCancel:()=>{c.linkVisible=!1,c.clipVisible=!1},onOk:$=>{$&&o(c.type,{desc:$.desc,url:$.url}),c.linkVisible=!1,c.clipVisible=!1}},null),!n&&i.screenfull===null&&r.createVNode(r.Teleport,{to:"head"},{default:()=>[r.createVNode("script",{src:i.screenfullJs,onLoad:s},null)]})])}}});function he(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let H=he();function xt(i){H=i}const $t=/[&<>"']/,Ct=/[&<>"']/g,vt=/[<>"']|&(?!#?\w+;)/,St=/[<>"']|&(?!#?\w+;)/g,Nt={"&":"&","<":"<",">":">",'"':""","'":"'"},fe=i=>Nt[i];function D(i,e){if(e){if($t.test(i))return i.replace(Ct,fe)}else if(vt.test(i))return i.replace(St,fe);return i}const Vt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function pe(i){return i.replace(Vt,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Et=/(^|[^\[])\^/g;function V(i,e){i=i.source||i,e=e||"";const t={replace:(n,l)=>(l=l.source||l,l=l.replace(Et,"$1"),i=i.replace(n,l),t),getRegex:()=>new RegExp(i,e)};return t}const Tt=/[^\w:]/g,It=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ge(i,e,t){if(i){let n;try{n=decodeURIComponent(pe(t)).replace(Tt,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!It.test(t)&&(t=_t(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const W={},Dt=/^[^:]+:\/*[^/]*$/,Ft=/^([^:]+:)[\s\S]*$/,Lt=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _t(i,e){W[" "+i]||(Dt.test(i)?W[" "+i]=i+"/":W[" "+i]=Q(i,"/",!0)),i=W[" "+i];const t=i.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:i.replace(Ft,"$1")+e:e.charAt(0)==="/"?t?e:i.replace(Lt,"$1")+e:i+e}const G={exec:function(){}};function z(i){let e=1,t,n;for(;e<arguments.length;e++){t=arguments[e];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i}function me(i,e){const t=i.replace(/\|/g,(s,a,o)=>{let c=!1,p=a;for(;--p>=0&&o[p]==="\\";)c=!c;return c?"|":" |"}),n=t.split(/ \|/);let l=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;l<n.length;l++)n[l]=n[l].trim().replace(/\\\|/g,"|");return n}function Q(i,e,t){const n=i.length;if(n===0)return"";let l=0;for(;l<n;){const s=i.charAt(n-l-1);if(s===e&&!t)l++;else if(s!==e&&t)l++;else break}return i.substr(0,n-l)}function Rt(i,e){if(i.indexOf(e[1])===-1)return-1;const t=i.length;let n=0,l=0;for(;l<t;l++)if(i[l]==="\\")l++;else if(i[l]===e[0])n++;else if(i[l]===e[1]&&(n--,n<0))return l;return-1}function ke(i){i&&i.sanitize&&!i.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function be(i,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=i),e>>=1,i+=i;return t+i}function ye(i,e,t,n){const l=e.href,s=e.title?D(e.title):null,a=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){n.state.inLink=!0;const o={type:"link",raw:t,href:l,title:s,text:a,tokens:n.inlineTokens(a,[])};return n.state.inLink=!1,o}else return{type:"image",raw:t,href:l,title:s,text:D(a)}}function jt(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
|
|
1
|
+
var Xt=Object.defineProperty,Yt=Object.defineProperties;var en=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var tn=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable;var le=(r,T,I)=>T in r?Xt(r,T,{enumerable:!0,configurable:!0,writable:!0,value:I}):r[T]=I,P=(r,T)=>{for(var I in T||(T={}))tn.call(T,I)&&le(r,I,T[I]);if(tt)for(var I of tt(T))nn.call(T,I)&&le(r,I,T[I]);return r},Y=(r,T)=>Yt(r,en(T));var nt=(r,T,I)=>(le(r,typeof T!="symbol"?T+"":T,I),I);(function(r,T){typeof exports=="object"&&typeof module!="undefined"?module.exports=T(require("vue")):typeof define=="function"&&define.amd?define(["vue"],T):(r=typeof globalThis!="undefined"?globalThis:r||self,r.MdEditorV3=T(r.Vue))})(this,function(r){"use strict";const T="//at.alicdn.com/t/font_2605852_pqekijay2ij.js",I={atom:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/atom-one-dark.css",github:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/github.css",githubDark:"https://cdn.jsdelivr.net/npm/highlight.js@11.2.0/styles/github-dark.css",js:"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/highlight.min.js"},re={main:"https://cdn.jsdelivr.net/npm/prettier@2.4.0/standalone.js",markdown:"https://cdn.jsdelivr.net/npm/prettier@2.4.0/parser-markdown.js"},ae={css:"https://cdn.jsdelivr.net/npm/cropperjs@1.5.12/dist/cropper.min.css",js:"https://cdn.jsdelivr.net/npm/cropperjs@1.5.12/dist/cropper.min.js"},it="https://cdn.jsdelivr.net/npm/screenfull@5.1.0/dist/screenfull.js",lt=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],se={"zh-CN":{toolbarTips:{bold:"\u52A0\u7C97",underline:"\u4E0B\u5212\u7EBF",italic:"\u659C\u4F53",strikeThrough:"\u5220\u9664\u7EBF",title:"\u6807\u9898",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",quote:"\u5F15\u7528",unorderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868",codeRow:"\u884C\u5185\u4EE3\u7801",code:"\u5757\u7EA7\u4EE3\u7801",link:"\u94FE\u63A5",image:"\u56FE\u7247",table:"\u8868\u683C",mermaid:"mermaid\u56FE",katex:"\u516C\u5F0F",revoke:"\u540E\u9000",next:"\u524D\u8FDB",save:"\u4FDD\u5B58",prettier:"\u7F8E\u5316",pageFullscreen:"\u6D4F\u89C8\u5668\u5168\u5C4F",fullscreen:"\u5C4F\u5E55\u5168\u5C4F",preview:"\u9884\u89C8",htmlPreview:"html\u4EE3\u7801\u9884\u89C8",catalog:"\u76EE\u5F55",github:"\u6E90\u7801\u5730\u5740"},titleItem:{h1:"\u4E00\u7EA7\u6807\u9898",h2:"\u4E8C\u7EA7\u6807\u9898",h3:"\u4E09\u7EA7\u6807\u9898",h4:"\u56DB\u7EA7\u6807\u9898",h5:"\u4E94\u7EA7\u6807\u9898",h6:"\u516D\u7EA7\u6807\u9898"},imgTitleItem:{link:"\u6DFB\u52A0\u94FE\u63A5",upload:"\u4E0A\u4F20\u56FE\u7247",clip2upload:"\u88C1\u526A\u4E0A\u4F20"},linkModalTips:{title:"\u6DFB\u52A0",descLable:"\u94FE\u63A5\u63CF\u8FF0\uFF1A",descLablePlaceHolder:"\u8BF7\u8F93\u5165\u63CF\u8FF0...",urlLable:"\u94FE\u63A5\u5730\u5740\uFF1A",UrlLablePlaceHolder:"\u8BF7\u8F93\u5165\u94FE\u63A5...",buttonOK:"\u786E\u5B9A"},clipModalTips:{title:"\u88C1\u526A\u56FE\u7247\u4E0A\u4F20",buttonUpload:"\u4E0A\u4F20"},copyCode:{text:"\u590D\u5236\u4EE3\u7801",tips:"\u5DF2\u590D\u5236\uFF01"},mermaid:{flow:"\u6D41\u7A0B\u56FE",sequence:"\u65F6\u5E8F\u56FE",gantt:"\u7518\u7279\u56FE",class:"\u7C7B\u56FE",state:"\u72B6\u6001\u56FE",pie:"\u997C\u56FE",relationship:"\u5173\u7CFB\u56FE",journey:"\u65C5\u7A0B\u56FE"},katex:{inline:"\u884C\u5185\u516C\u5F0F",block:"\u5757\u7EA7\u516C\u5F0F"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{title:"Add ",descLable:"Desc:",descLablePlaceHolder:"Enter a description...",urlLable:"Link:",UrlLablePlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",tips:"Copied!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"}}},rt="https://cdn.jsdelivr.net/npm/mermaid@8.13.5/dist/mermaid.min.js",at="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js",st="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css";class ot{constructor(){nt(this,"pools",{})}remove(e,t,n){const s=this.pools[e]&&this.pools[e][t];s&&(this.pools[e][t]=s.filter(a=>a===n))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...n){this.pools[e]||(this.pools[e]={});const s=this.pools[e][t];s&&s.forEach(a=>{try{a(...n)}catch(o){console.error(`${t} monitor event exception\uFF01`,o)}})}}var x=new ot;const ct=(i,e)=>{const{editorId:t}=i,n=a=>{var o,c;return((o=i.toolbars)==null?void 0:o.includes(a))&&!((c=i.toolbarsExclude)==null?void 0:c.includes(a))},l=a=>{if(a.target===document.querySelector(`#${i.editorId}-textarea`))if(a.ctrlKey||a.metaKey)switch(a.code){case"KeyS":{a.shiftKey?n("strikeThrough")&&x.emit(t,"replace","strikeThrough"):n("save")&&(x.emit(t,"onSave",i.modelValue),a.preventDefault());break}case"KeyB":{n("bold")&&(x.emit(t,"replace","bold"),a.preventDefault());break}case"KeyU":{a.shiftKey?n("unorderedList")&&(x.emit(t,"replace","unorderedList"),a.preventDefault()):n("underline")&&(x.emit(t,"replace","underline"),a.preventDefault());break}case"KeyI":{a.shiftKey?n("image")&&(x.emit(t,"openModals","image"),a.preventDefault()):n("italic")&&(x.emit(t,"replace","italic"),a.preventDefault());break}case"Digit1":{n("title")&&(x.emit(t,"replace","h1"),a.preventDefault());break}case"Digit2":{n("title")&&(x.emit(t,"replace","h2"),a.preventDefault());break}case"Digit3":{n("title")&&(x.emit(t,"replace","h3"),a.preventDefault());break}case"Digit4":{n("title")&&(x.emit(t,"replace","h4"),a.preventDefault());break}case"Digit5":{n("title")&&(x.emit(t,"replace","h5"),a.preventDefault());break}case"Digit6":{n("title")&&(x.emit(t,"replace","h6"),a.preventDefault());break}case"ArrowUp":{n("sup")&&(x.emit(t,"replace","sup"),a.preventDefault());break}case"ArrowDown":{n("sub")&&(x.emit(t,"replace","sub"),a.preventDefault());break}case"KeyQ":{x.emit(t,"replace","quote"),a.preventDefault();break}case"KeyO":{n("orderedList")&&(x.emit(t,"replace","orderedList"),a.preventDefault());break}case"KeyC":{if(a.shiftKey)n("code")&&(x.emit(t,"replace","code"),a.preventDefault());else if(a.altKey)n("codeRow")&&(x.emit(t,"replace","codeRow"),a.preventDefault());else{a.preventDefault(),x.emit(t,"replace","ctrlC");break}break}case"KeyL":{n("link")&&(x.emit(t,"openModals","link"),a.preventDefault());break}case"KeyZ":{a.shiftKey?n("next")&&(x.emit(t,"ctrlShiftZ"),a.preventDefault()):n("revoke")&&(x.emit(t,"ctrlZ"),a.preventDefault());break}case"KeyF":{a.shiftKey&&n("prettier")&&(x.emit(t,"replace","prettier"),a.preventDefault());break}case"KeyT":{a.altKey&&a.shiftKey&&n("table")&&(x.emit(t,"replace","table"),a.preventDefault());break}case"KeyX":{x.emit(t,"replace","ctrlX"),a.preventDefault();break}case"KeyD":{a.preventDefault(),x.emit(t,"replace","ctrlD");break}}else a.code==="Tab"&&(a.preventDefault(),a.shiftKey?x.emit(t,"replace","shiftTab"):x.emit(t,"replace","tab"))},s=a=>{if(a.clipboardData&&a.clipboardData.files.length>0){const o=a.clipboardData.files[0];/image\/.*/.test(o.type)&&(x.emit(t,"uploadImage",[o]),a.preventDefault())}};r.onMounted(()=>{i.previewOnly||(window.addEventListener("keydown",l),document.addEventListener("paste",s),x.on(t,{name:"onSave",callback(){i.onSave?i.onSave(i.modelValue):e.emit("onSave",i.modelValue)}}))}),r.onBeforeUnmount(()=>{i.previewOnly||(window.removeEventListener("keydown",l),document.removeEventListener("paste",s))})},dt=i=>{const{previewOnly:e,editorId:t,tabWidth:n,showCodeRowNumber:l,Cropper:s}=i;r.provide("editorId",t),r.provide("tabWidth",n),r.provide("theme",r.computed(()=>i.theme));const a=r.computed(()=>{let c=I.atom;if(i.highlightCss)c=i.highlightCss;else switch(i.previewTheme){case"github":{i.theme==="dark"?c=I.githubDark:c=I.github;break}}return{js:i.highlightJs,css:c}});r.provide("highlight",a),r.provide("historyLength",i.historyLength),r.provide("previewOnly",e),r.provide("showCodeRowNumber",l);const o=r.computed(()=>{const c=P(P({},se),i.languageUserDefined);return c[i.language]?c[i.language]:se["zh-CN"]});r.provide("usedLanguageText",o),r.provide("Cropper",s),r.provide("previewTheme",r.computed(()=>i.previewTheme))};var ln="",ut=r.defineComponent({setup(){return()=>r.createVNode("div",{class:`${d}-divider`},null)}});const J=({instance:i,ctx:e,props:t={}},n="default")=>{const l=(i==null?void 0:i.$slots[n])||(e==null?void 0:e.slots[n]);return(l?l(i):"")||t[n]};var rn="",U=r.defineComponent({props:{trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>()=>{}}},setup(i,e){const t=`${d}-dropdown-hidden`,n=r.reactive({overlayClass:[t],overlayStyle:{},triggerHover:!1,overlayHover:!1}),l=r.ref(),s=r.ref(),a=()=>{i.trigger==="hover"&&(n.triggerHover=!0);const m=l.value,h=s.value,u=m.getBoundingClientRect(),g=m.offsetTop,k=m.offsetLeft,w=u.height,y=u.width;n.overlayStyle=Y(P({},n.overlayStyle),{top:g+w+"px",left:k-h.offsetWidth/2+y/2+"px"}),i.onChange(!0)},o=()=>{n.overlayHover=!0};r.watch(()=>i.visible,m=>{m?n.overlayClass=n.overlayClass.filter(h=>h!==t):n.overlayClass.push(t)});const c=m=>{const h=l.value,u=s.value;!h.contains(m.target)&&!u.contains(m.target)&&i.onChange(!1)};let p=-1;const f=m=>{l.value===m.target?n.triggerHover=!1:n.overlayHover=!1,clearTimeout(p),p=window.setTimeout(()=>{!n.overlayHover&&!n.triggerHover&&i.onChange(!1)},10)};return r.onMounted(()=>{i.trigger==="click"?(l.value.addEventListener("click",a),document.addEventListener("click",c)):(l.value.addEventListener("mouseenter",a),l.value.addEventListener("mouseleave",f),s.value.addEventListener("mouseenter",o),s.value.addEventListener("mouseleave",f))}),r.onBeforeUnmount(()=>{i.trigger==="click"?(l.value.removeEventListener("click",a),document.removeEventListener("click",c)):(l.value.removeEventListener("mouseenter",a),l.value.removeEventListener("mouseleave",f),s.value.removeEventListener("mouseenter",o),s.value.removeEventListener("mouseleave",f))}),()=>{const m=J({ctx:e}),h=J({props:i,ctx:e},"overlay"),u=r.cloneVNode(m instanceof Array?m[0]:m,{ref:l}),g=r.createVNode("div",{class:[`${d}-dropdown`,n.overlayClass],style:n.overlayStyle,ref:s},[r.createVNode("div",{class:`${d}-dropdown-overlay`},[h instanceof Array?h[0]:h])]);return[u,g]}}});const A=(i,e=0,t=e)=>{i.setSelectionRange?setTimeout(()=>{i.setSelectionRange(e,t),i.focus()},0):console.log("can not reset position!")},ee=(i,e,t)=>{const{deviationStart:n=0,deviationEnd:l=0,direct:s=!1,select:a=!1}=t;let o="";if(i.selectionStart||i.selectionStart===0){const c=i.selectionStart,p=i.selectionEnd||0,{prefixVal:f=i.value.substring(0,c),subfixVal:m=i.value.substring(p,i.value.length)}=t;o=f+e+m,A(i,a?c+n:c+e.length+l,c+e.length+l)}else o+=e;return s&&(i.value=o),o},ht=(i,e={newWindow:!0,nofollow:!0})=>{i||console.warn("error link!");const t=document.createElement("a");t.href=i,t.style.display="none",e.newWindow&&(t.target="_blank"),e.nofollow&&(t.rel="noopener noreferrer"),document.body.appendChild(t),t.click(),document.body.removeChild(t)},oe=(i,e)=>{const t=pt(()=>{i.removeEventListener("scroll",n),i.addEventListener("scroll",n),e.removeEventListener("scroll",n),e.addEventListener("scroll",n)},50),n=l=>{const s=i.clientHeight,a=e.clientHeight,o=i.scrollHeight,c=e.scrollHeight,p=(o-s)/(c-a);l.target===i?(e.removeEventListener("scroll",n),e.scrollTo({top:i.scrollTop/p}),t()):(i.removeEventListener("scroll",n),i.scrollTo({top:e.scrollTop*p}),t())};return[t,()=>{i.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}]},ft=(i,e="image.png")=>{const t=i.split(","),n=t[0].match(/:(.*?);/);if(n){const l=n[1],s=atob(t[1]);let a=s.length;const o=new Uint8Array(a);for(;a--;)o[a]=s.charCodeAt(a);return new File([o],e,{type:l})}return null},ce=i=>{if(!i.trim())return i;const e=i.split(`
|
|
2
|
+
`),t=['<span rn-wrapper aria-hidden="true">'];return e.forEach(()=>{t.push("<span></span>")}),t.push("</span>"),`<span class="code-block">${i}</span>${t.join("")}`},pt=(i,e=200)=>{let t=0;return(...n)=>{t&&clearTimeout(t),t=window.setTimeout(()=>{i.apply(globalThis,n),t=0},e)}},de=(i,e)=>{const t=n=>{const l=i.parentElement||document.body,s=l.offsetWidth,a=l.offsetHeight,{clientWidth:o}=document.documentElement,{clientHeight:c}=document.documentElement,p=n.offsetX,f=n.offsetY,m=u=>{let g=u.x+document.body.scrollLeft-document.body.clientLeft-p,k=u.y+document.body.scrollTop-document.body.clientTop-f;g=g<1?1:g<o-s-1?g:o-s-1,k=k<1?1:k<c-a-1?k:c-a-1,e?e(g,k):(l.style.left=`${g}px`,l.style.top=`${k}px`)};document.addEventListener("mousemove",m);const h=()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",h)};document.addEventListener("mouseup",h)};return i.addEventListener("mousedown",t),()=>{i.removeEventListener("mousedown",t)}},te=i=>{document.getElementById(i.id)||document.head.appendChild(i)};var an="",ue=r.defineComponent({props:{title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClosed:{type:Function,default:()=>()=>{}},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>()=>{}}},setup(i,e){const t=r.ref(i.visible),n=r.ref([`${d}-modal`]),l=r.ref(),s=r.ref();let a=()=>{};const o=r.reactive({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}});return r.onMounted(()=>{a=de(s.value,(c,p)=>{o.initPos.left=c+"px",o.initPos.top=p+"px"})}),r.onBeforeUnmount(()=>{a()}),r.watch(()=>i.isFullscreen,c=>{c?a():a=de(s.value,(p,f)=>{o.initPos.left=p+"px",o.initPos.top=f+"px"})}),r.watch(()=>i.visible,c=>{c?(n.value.push("zoom-in"),t.value=c,r.nextTick(()=>{const p=l.value.offsetWidth/2,f=l.value.offsetHeight/2,m=document.documentElement.clientWidth/2,h=document.documentElement.clientHeight/2;o.initPos.left=m-p+"px",o.initPos.top=h-f+"px"}),setTimeout(()=>{n.value=n.value.filter(p=>p!=="zoom-in")},140)):(n.value.push("zoom-out"),setTimeout(()=>{n.value=n.value.filter(p=>p!=="zoom-out"),t.value=c},130))}),()=>{const c=J({ctx:e}),p=J({props:i,ctx:e},"title");return r.createVNode("div",{style:{display:t.value?"block":"none"}},[r.createVNode("div",{class:`${d}-modal-mask`,onClick:i.onClosed},null),r.createVNode("div",{class:n.value,style:Y(P({},o.initPos),{width:i.width,height:i.height}),ref:l},[r.createVNode("div",{class:`${d}-modal-header`,ref:s},[p||""]),r.createVNode("div",{class:`${d}-modal-body`},[c]),r.createVNode("div",{class:`${d}-modal-func`},[i.showAdjust&&r.createVNode("div",{class:`${d}-modal-adjust`,onClick:f=>{f.stopPropagation(),i.isFullscreen?o.initPos=o.historyPos:(o.historyPos=o.initPos,o.initPos={left:"0",top:"0"}),i.onAdjust(!i.isFullscreen)}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":`#icon-${i.isFullscreen?"suoxiao":"fangda"}`},null)])]),r.createVNode("div",{class:`${d}-modal-close`,onClick:f=>{f.stopPropagation(),i.onClosed&&i.onClosed()}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-close"},null)])])])])])}}}),gt=r.defineComponent({props:{type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){const e=r.inject("usedLanguageText"),t=r.inject("editorId"),n=r.computed(()=>{var s,a,o,c;switch(i.type){case"link":return`${(s=e.value.linkModalTips)==null?void 0:s.title}${(a=e.value.toolbarTips)==null?void 0:a.link}`;case"image":return`${(o=e.value.linkModalTips)==null?void 0:o.title}${(c=e.value.toolbarTips)==null?void 0:c.image}`;default:return""}}),l=r.reactive({desc:"",url:""});return r.watch(()=>i.visible,s=>{s||setTimeout(()=>{l.desc="",l.url=""},200)}),()=>r.createVNode(ue,{title:n.value,visible:i.visible,onClosed:i.onCancel},{default:()=>{var s,a,o,c,p;return[r.createVNode("div",{class:`${d}-form-item`},[r.createVNode("label",{class:`${d}-lable`,for:`link-desc-${t}`},[(s=e.value.linkModalTips)==null?void 0:s.descLable]),r.createVNode("input",{placeholder:(a=e.value.linkModalTips)==null?void 0:a.descLablePlaceHolder,class:`${d}-input`,id:`link-desc-${t}`,type:"text",value:l.desc,onChange:f=>{l.desc=f.target.value},autocomplete:"off"},null)]),r.createVNode("div",{class:`${d}-form-item`},[r.createVNode("label",{class:`${d}-lable`,for:`link-url-${t}`},[(o=e.value.linkModalTips)==null?void 0:o.urlLable]),r.createVNode("input",{placeholder:(c=e.value.linkModalTips)==null?void 0:c.UrlLablePlaceHolder,class:`${d}-input`,id:`link-url-${t}`,type:"text",value:l.url,onChange:f=>{l.url=f.target.value},autocomplete:"off"},null)]),r.createVNode("div",{class:`${d}-form-item`},[r.createVNode("button",{class:[`${d}-btn`,`${d}-btn-row`],type:"button",onClick:()=>{i.onOk(l),l.desc="",l.url=""}},[(p=e.value.linkModalTips)==null?void 0:p.buttonOK])])]}})}}),sn="",mt=r.defineComponent({props:{visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){const e=r.inject("usedLanguageText"),t=r.inject("editorId");let n=r.inject("Cropper");const l=r.ref(),s=r.ref(),a=r.ref(),o=r.reactive({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let c=null;r.watch(()=>i.visible,()=>{i.visible&&!o.cropperInited&&(n=n||window.Cropper,l.value.onchange=()=>{const m=l.value.files||[];if(o.imgSelected=!0,(m==null?void 0:m.length)>0){const h=new FileReader;h.onload=u=>{o.imgSrc=u.target.result,r.nextTick(()=>{c=new n(s.value,{viewMode:2,preview:`.${d}-clip-preview-target`})})},h.readAsDataURL(m[0])}})}),r.watch(()=>[o.imgSelected],()=>{a.value.style=""}),r.watch(()=>o.isFullscreen,()=>{r.nextTick(()=>{c==null||c.destroy(),a.value.style="",s.value&&(c=new n(s.value,{viewMode:2,preview:`.${d}-clip-preview-target`}))})});const p=r.computed(()=>o.isFullscreen?{width:"100%",height:"100%"}:{width:"668px",height:"421px"}),f=()=>{c.destroy(),l.value.value="",o.imgSelected=!1};return()=>{var m;return r.createVNode(ue,r.mergeProps({title:(m=e.value.clipModalTips)==null?void 0:m.title,visible:i.visible,onClosed:i.onCancel,showAdjust:!0,isFullscreen:o.isFullscreen,onAdjust:h=>{o.isFullscreen=h}},p.value),{default:()=>{var h;return[r.createVNode("div",{class:`${d}-form-item ${d}-clip`},[r.createVNode("div",{class:`${d}-clip-main`},[o.imgSelected?r.createVNode("div",{class:`${d}-clip-cropper`},[r.createVNode("img",{src:o.imgSrc,ref:s,style:{display:"none"}},null),r.createVNode("div",{class:`${d}-clip-delete`,onClick:f},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-delete"},null)])])]):r.createVNode("div",{class:`${d}-clip-upload`,onClick:()=>{l.value.click()}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-upload"},null)])])]),r.createVNode("div",{class:`${d}-clip-preview`},[r.createVNode("div",{class:`${d}-clip-preview-target`,ref:a},null)])]),r.createVNode("div",{class:`${d}-form-item`},[r.createVNode("button",{class:`${d}-btn`,type:"button",onClick:()=>{const u=c.getCroppedCanvas();x.emit(t,"uploadImage",[ft(u.toDataURL("image/png"))],i.onOk),f()}},[(h=e.value.linkModalTips)==null?void 0:h.buttonOK])]),r.createVNode("input",{ref:l,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}}),kt=r.defineComponent({props:{type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(i){return()=>r.createVNode(r.Fragment,null,[r.createVNode(gt,{type:i.type,visible:i.linkVisible,onOk:i.onOk,onCancel:i.onCancel},null),r.createVNode(mt,{visible:i.clipVisible,onOk:i.onOk,onCancel:i.onCancel},null)])}});const bt=i=>{let{screenfull:e}=i;const t=()=>{e.isEnabled?e.isFullscreen?e.exit():e.request():console.error("browser does not support screenfull!")},n=()=>{e=window.screenfull,e&&e.isEnabled&&e.on("change",()=>{i.updateSetting(!i.setting.fullscreen,"fullscreen")})};return r.onMounted(()=>{e&&e.isEnabled&&e.on("change",()=>{i.updateSetting(!i.setting.fullscreen,"fullscreen")})}),{fullScreenHandler:t,screenfullLoad:n}},yt=r.defineComponent({name:"TableShape",props:{tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}},setup(i){const e=r.reactive({x:-1,y:-1});return()=>r.createVNode("div",{class:`${d}-table-shape`,onMouseleave:()=>{e.x=-1,e.y=-1}},[new Array(i.tableShape[1]).fill("").map((t,n)=>r.createVNode("div",{class:`${d}-table-shape-row`,key:`table-shape-row-${n}`},[new Array(i.tableShape[0]).fill("").map((l,s)=>r.createVNode("div",{class:`${d}-table-shape-col`,key:`table-shape-col-${s}`,onMouseenter:()=>{e.x=n,e.y=s},onClick:()=>{i.onSelected(e)}},[r.createVNode("div",{class:[`${d}-table-shape-col-default`,n<=e.x&&s<=e.y&&`${d}-table-shape-col-include`]},null)]))]))])}});var wt=r.defineComponent({name:"MDEditorToolbar",props:{prettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>()=>{}},tableShape:{type:Array,default:()=>[6,4]}},setup(i){const e=r.inject("editorId"),t=r.inject("usedLanguageText"),n=r.inject("previewOnly"),{fullScreenHandler:l,screenfullLoad:s}=bt(i),a=r.reactive({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),o=(g,k)=>{x.emit(e,"replace",g,k)},c=r.reactive({type:"link",linkVisible:!1,clipVisible:!1}),p=r.ref();r.onMounted(()=>{var g;x.on(e,{name:"openModals",callback(k){c.type=k,c.linkVisible=!0}}),(g=p.value)==null||g.addEventListener("mouseover",()=>{var k;((k=window.getSelection())==null?void 0:k.toString())||x.emit(e,"selectTextChange","")})});const f=r.computed(()=>{const g=i.toolbars.filter(C=>!i.toolbarsExclude.includes(C)),k=g.indexOf("="),w=k===-1?g:g.slice(0,k+1),y=k===-1?[]:g.slice(k,Number.MAX_SAFE_INTEGER);return[w,y]}),m=r.ref(),h=()=>{x.emit(e,"uploadImage",m.value.files),m.value.value=""};r.onMounted(()=>{m.value.addEventListener("change",h)});const u=g=>{var k,w,y,C,S,N,_,F,L,j,R,O,Z,Ve,Ee,Te,Ie,De,Le,Fe,_e,Re,je,ze,Ae,Me,He,Be,Oe,Pe,Ue,qe,Ke,Ze,Je,We,Ge,Qe,Xe,Ye,et;switch(g){case"-":return r.createVNode(ut,null,null);case"bold":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(k=t.value.toolbarTips)==null?void 0:k.bold,onClick:()=>{o("bold")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-bold"},null)])]);case"underline":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(w=t.value.toolbarTips)==null?void 0:w.underline,onClick:()=>{o("underline")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-underline"},null)])]);case"italic":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(y=t.value.toolbarTips)==null?void 0:y.italic,onClick:()=>{o("italic")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-italic"},null)])]);case"strikeThrough":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(C=t.value.toolbarTips)==null?void 0:C.strikeThrough,onClick:()=>{o("strikeThrough")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-strike-through"},null)])]);case"title":return r.createVNode(U,{visible:a.title,onChange:E=>{a.title=E},overlay:r.createVNode("ul",{class:`${d}-menu`,onClick:()=>{a.title=!1}},[r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("h1")}},[(S=t.value.titleItem)==null?void 0:S.h1]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("h2")}},[(N=t.value.titleItem)==null?void 0:N.h2]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("h3")}},[(_=t.value.titleItem)==null?void 0:_.h3]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("h4")}},[(F=t.value.titleItem)==null?void 0:F.h4]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("h5")}},[(L=t.value.titleItem)==null?void 0:L.h5]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("h6")}},[(j=t.value.titleItem)==null?void 0:j.h6])])},{default:()=>{var E;return[r.createVNode("div",{class:`${d}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.title},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-title"},null)])])]}});case"sub":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(R=t.value.toolbarTips)==null?void 0:R.sub,onClick:()=>{o("sub")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-sub"},null)])]);case"sup":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(O=t.value.toolbarTips)==null?void 0:O.sup,onClick:()=>{o("sup")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-sup"},null)])]);case"quote":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Z=t.value.toolbarTips)==null?void 0:Z.quote,onClick:()=>{o("quote")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-quote"},null)])]);case"unorderedList":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Ve=t.value.toolbarTips)==null?void 0:Ve.unorderedList,onClick:()=>{o("unorderedList")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-unordered-list"},null)])]);case"orderedList":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Ee=t.value.toolbarTips)==null?void 0:Ee.orderedList,onClick:()=>{o("orderedList")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-ordered-list"},null)])]);case"codeRow":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Te=t.value.toolbarTips)==null?void 0:Te.codeRow,onClick:()=>{o("codeRow")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-code-row"},null)])]);case"code":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Ie=t.value.toolbarTips)==null?void 0:Ie.code,onClick:()=>{o("code")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-code"},null)])]);case"link":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(De=t.value.toolbarTips)==null?void 0:De.link,onClick:()=>{c.type="link",c.linkVisible=!0}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-link"},null)])]);case"image":return r.createVNode(U,{visible:a.image,onChange:E=>{a.image=E},overlay:r.createVNode("ul",{class:`${d}-menu`,onClick:()=>{a.title=!1}},[r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{c.type="image",c.linkVisible=!0}},[(Le=t.value.imgTitleItem)==null?void 0:Le.link]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{m.value.click()}},[(Fe=t.value.imgTitleItem)==null?void 0:Fe.upload]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{c.clipVisible=!0}},[(_e=t.value.imgTitleItem)==null?void 0:_e.clip2upload])])},{default:()=>{var E;return[r.createVNode("div",{class:`${d}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.image},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-image"},null)])])]}});case"table":return r.createVNode(U,{visible:a.table,onChange:E=>{a.table=E},key:"bar-table",overlay:r.createVNode(yt,{tableShape:i.tableShape,onSelected:E=>{o("table",{selectedShape:E})}},null)},{default:()=>{var E;return[r.createVNode("div",{class:`${d}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.table},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-table"},null)])])]}});case"revoke":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Re=t.value.toolbarTips)==null?void 0:Re.revoke,onClick:()=>{x.emit(e,"ctrlZ")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-revoke"},null)])]);case"next":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(je=t.value.toolbarTips)==null?void 0:je.next,onClick:()=>{x.emit(e,"ctrlShiftZ")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-next"},null)])]);case"save":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(ze=t.value.toolbarTips)==null?void 0:ze.save,onClick:()=>{x.emit(e,"onSave")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-baocun"},null)])]);case"prettier":return i.prettier?r.createVNode("div",{class:`${d}-toolbar-item`,title:(Ae=t.value.toolbarTips)==null?void 0:Ae.prettier,onClick:()=>{o("prettier")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-prettier"},null)])]):"";case"pageFullscreen":return!i.setting.fullscreen&&r.createVNode("div",{class:`${d}-toolbar-item`,title:(Me=t.value.toolbarTips)==null?void 0:Me.pageFullscreen,onClick:()=>{i.updateSetting(!i.setting.pageFullScreen,"pageFullScreen")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":`#icon-${i.setting.pageFullScreen?"suoxiao":"fangda"}`},null)])]);case"fullscreen":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(He=t.value.toolbarTips)==null?void 0:He.fullscreen,onClick:l},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":`#icon-${i.setting.fullscreen?"fullScreen-exit":"fullScreen"}`},null)])]);case"preview":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Be=t.value.toolbarTips)==null?void 0:Be.preview,onClick:()=>{i.updateSetting(!i.setting.preview,"preview")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-preview"},null)])]);case"htmlPreview":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Oe=t.value.toolbarTips)==null?void 0:Oe.htmlPreview,onClick:()=>{i.updateSetting(!i.setting.htmlPreview,"htmlPreview")}},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-coding"},null)])]);case"catalog":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Pe=t.value.toolbarTips)==null?void 0:Pe.catalog,onClick:()=>{x.emit(e,"catalogShow")},key:"bar-catalog"},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-catalog"},null)])]);case"github":return r.createVNode("div",{class:`${d}-toolbar-item`,title:(Ue=t.value.toolbarTips)==null?void 0:Ue.github,onClick:()=>ht("https://github.com/imzbf/md-editor-v3")},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-github"},null)])]);case"mermaid":return r.createVNode(U,{visible:a.mermaid,onChange:E=>{a.mermaid=E},overlay:r.createVNode("ul",{class:`${d}-menu`,onClick:()=>{a.mermaid=!1}},[r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("flow")}},[(qe=t.value.mermaid)==null?void 0:qe.flow]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("sequence")}},[(Ke=t.value.mermaid)==null?void 0:Ke.sequence]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("gantt")}},[(Ze=t.value.mermaid)==null?void 0:Ze.gantt]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("class")}},[(Je=t.value.mermaid)==null?void 0:Je.class]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("state")}},[(We=t.value.mermaid)==null?void 0:We.state]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("pie")}},[(Ge=t.value.mermaid)==null?void 0:Ge.pie]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("relationship")}},[(Qe=t.value.mermaid)==null?void 0:Qe.relationship]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("journey")}},[(Xe=t.value.mermaid)==null?void 0:Xe.journey])]),key:"bar-mermaid"},{default:()=>{var E;return[r.createVNode("div",{class:`${d}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.mermaid},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-mermaid"},null)])])]}});case"katex":return r.createVNode(U,{visible:a.katex,onChange:E=>{a.katex=E},overlay:r.createVNode("ul",{class:`${d}-menu`,onClick:()=>{a.katex=!1}},[r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("katexInline")}},[(Ye=t.value.katex)==null?void 0:Ye.inline]),r.createVNode("li",{class:`${d}-menu-item`,onClick:()=>{o("katexBlock")}},[(et=t.value.katex)==null?void 0:et.block])]),key:"bar-katex"},{default:()=>{var E;return[r.createVNode("div",{class:`${d}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.mermaid},[r.createVNode("svg",{class:`${d}-icon`,"aria-hidden":"true"},[r.createVNode("use",{"xlink:href":"#icon-formula"},null)])])]}})}};return()=>{const g=f.value[0].map(w=>u(w)),k=f.value[1].map(w=>u(w));return r.createVNode("div",{class:`${d}-toolbar-wrapper`},[r.createVNode("div",{class:`${d}-toolbar`},[r.createVNode("div",{class:`${d}-toolbar-left`,ref:p},[g]),r.createVNode("div",{class:`${d}-toolbar-right`},[k])]),r.createVNode("input",{ref:m,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),r.createVNode(kt,{linkVisible:c.linkVisible,clipVisible:c.clipVisible,type:c.type,onCancel:()=>{c.linkVisible=!1,c.clipVisible=!1},onOk:w=>{w&&o(c.type,{desc:w.desc,url:w.url}),c.linkVisible=!1,c.clipVisible=!1}},null),!n&&i.screenfull===null&&r.createVNode(r.Teleport,{to:"head"},{default:()=>[r.createVNode("script",{src:i.screenfullJs,onLoad:s},null)]})])}}});function he(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let B=he();function xt(i){B=i}const $t=/[&<>"']/,vt=/[&<>"']/g,Ct=/[<>"']|&(?!#?\w+;)/,St=/[<>"']|&(?!#?\w+;)/g,Nt={"&":"&","<":"<",">":">",'"':""","'":"'"},fe=i=>Nt[i];function D(i,e){if(e){if($t.test(i))return i.replace(vt,fe)}else if(Ct.test(i))return i.replace(St,fe);return i}const Vt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function pe(i){return i.replace(Vt,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Et=/(^|[^\[])\^/g;function V(i,e){i=i.source||i,e=e||"";const t={replace:(n,l)=>(l=l.source||l,l=l.replace(Et,"$1"),i=i.replace(n,l),t),getRegex:()=>new RegExp(i,e)};return t}const Tt=/[^\w:]/g,It=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ge(i,e,t){if(i){let n;try{n=decodeURIComponent(pe(t)).replace(Tt,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!It.test(t)&&(t=_t(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const W={},Dt=/^[^:]+:\/*[^/]*$/,Lt=/^([^:]+:)[\s\S]*$/,Ft=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _t(i,e){W[" "+i]||(Dt.test(i)?W[" "+i]=i+"/":W[" "+i]=Q(i,"/",!0)),i=W[" "+i];const t=i.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:i.replace(Lt,"$1")+e:e.charAt(0)==="/"?t?e:i.replace(Ft,"$1")+e:i+e}const G={exec:function(){}};function z(i){let e=1,t,n;for(;e<arguments.length;e++){t=arguments[e];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i}function me(i,e){const t=i.replace(/\|/g,(s,a,o)=>{let c=!1,p=a;for(;--p>=0&&o[p]==="\\";)c=!c;return c?"|":" |"}),n=t.split(/ \|/);let l=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;l<n.length;l++)n[l]=n[l].trim().replace(/\\\|/g,"|");return n}function Q(i,e,t){const n=i.length;if(n===0)return"";let l=0;for(;l<n;){const s=i.charAt(n-l-1);if(s===e&&!t)l++;else if(s!==e&&t)l++;else break}return i.substr(0,n-l)}function Rt(i,e){if(i.indexOf(e[1])===-1)return-1;const t=i.length;let n=0,l=0;for(;l<t;l++)if(i[l]==="\\")l++;else if(i[l]===e[0])n++;else if(i[l]===e[1]&&(n--,n<0))return l;return-1}function ke(i){i&&i.sanitize&&!i.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function be(i,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=i),e>>=1,i+=i;return t+i}function ye(i,e,t,n){const l=e.href,s=e.title?D(e.title):null,a=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){n.state.inLink=!0;const o={type:"link",raw:t,href:l,title:s,text:a,tokens:n.inlineTokens(a,[])};return n.state.inLink=!1,o}else return{type:"image",raw:t,href:l,title:s,text:D(a)}}function jt(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
|
|
3
3
|
`).map(l=>{const s=l.match(/^\s+/);if(s===null)return l;const[a]=s;return a.length>=n.length?l.slice(n.length):l}).join(`
|
|
4
|
-
`)}class ne{constructor(e){this.options=e||
|
|
4
|
+
`)}class ne{constructor(e){this.options=e||B}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:`
|
|
5
5
|
`}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Q(n,`
|
|
6
|
-
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],l=jt(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:l}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const s=Q(n,"#");(this.options.pedantic||!s||/ $/.test(s))&&(n=s.trim())}const l={type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:[]};return this.lexer.inline(l.text,l.tokens),l}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,l,s,a,o,c,p,f,
|
|
7
|
-
`,1)[0],
|
|
8
|
-
`,1)[0],this.options.pedantic?(a=2,
|
|
9
|
-
`,e=e.substring(
|
|
10
|
-
`,1)[0],f=h,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!N.test(f));){if(f.search(/[^ ]/)>=a||!f.trim())
|
|
11
|
-
`+f.slice(a);else if(!c)
|
|
6
|
+
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],l=jt(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:l}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const s=Q(n,"#");(this.options.pedantic||!s||/ $/.test(s))&&(n=s.trim())}const l={type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:[]};return this.lexer.inline(l.text,l.tokens),l}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,l,s,a,o,c,p,f,m,h,u,g,k=t[1].trim();const w=k.length>1,y={type:"list",raw:"",ordered:w,start:w?+k.slice(0,-1):"",loose:!1,items:[]};k=w?`\\d{1,9}\\${k.slice(-1)}`:`\\${k}`,this.options.pedantic&&(k=w?k:"[*+-]");const C=new RegExp(`^( {0,3}${k})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(g=!1,!(!(t=C.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),f=t[2].split(`
|
|
7
|
+
`,1)[0],m=e.split(`
|
|
8
|
+
`,1)[0],this.options.pedantic?(a=2,u=f.trimLeft()):(a=t[2].search(/[^ ]/),a=a>4?1:a,u=f.slice(a),a+=t[1].length),c=!1,!f&&/^ *$/.test(m)&&(n+=m+`
|
|
9
|
+
`,e=e.substring(m.length+1),g=!0),!g){const N=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(h=e.split(`
|
|
10
|
+
`,1)[0],f=h,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!N.test(f));){if(f.search(/[^ ]/)>=a||!f.trim())u+=`
|
|
11
|
+
`+f.slice(a);else if(!c)u+=`
|
|
12
12
|
`+f;else break;!c&&!f.trim()&&(c=!0),n+=h+`
|
|
13
|
-
`,e=e.substring(h.length+1)}}y.loose||(p?y.loose=!0:/\n *\n *$/.test(n)&&(p=!0)),this.options.gfm&&(l=/^\[[ xX]\] /.exec(
|
|
13
|
+
`,e=e.substring(h.length+1)}}y.loose||(p?y.loose=!0:/\n *\n *$/.test(n)&&(p=!0)),this.options.gfm&&(l=/^\[[ xX]\] /.exec(u),l&&(s=l[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:n,task:!!l,checked:s,loose:!1,text:u}),y.raw+=n}y.items[y.items.length-1].raw=n.trimRight(),y.items[y.items.length-1].text=u.trimRight(),y.raw=y.raw.trimRight();const S=y.items.length;for(o=0;o<S;o++)this.lexer.state.top=!1,y.items[o].tokens=this.lexer.blockTokens(y.items[o].text,[]),!y.loose&&y.items[o].tokens.some(N=>N.type==="space")&&(y.loose=!0,y.items[o].loose=!0);return y}}html(e){const t=this.rules.block.html.exec(e);if(t){const n={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(t[0]):D(t[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));const n=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:n,raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:me(t[1]).map(l=>({text:l})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split(`
|
|
14
14
|
`):[]};if(n.header.length===n.align.length){n.raw=t[0];let l=n.align.length,s,a,o,c;for(s=0;s<l;s++)/^ *-+: *$/.test(n.align[s])?n.align[s]="right":/^ *:-+: *$/.test(n.align[s])?n.align[s]="center":/^ *:-+ *$/.test(n.align[s])?n.align[s]="left":n.align[s]=null;for(l=n.rows.length,s=0;s<l;s++)n.rows[s]=me(n.rows[s],n.header.length).map(p=>({text:p}));for(l=n.header.length,a=0;a<l;a++)n.header[a].tokens=[],this.lexer.inlineTokens(n.header[a].text,n.header[a].tokens);for(l=n.rows.length,a=0;a<l;a++)for(c=n.rows[a],o=0;o<c.length;o++)c[o].tokens=[],this.lexer.inlineTokens(c[o].text,c[o].tokens);return n}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const n={type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n={type:"paragraph",raw:t[0],text:t[1].charAt(t[1].length-1)===`
|
|
15
|
-
`?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}text(e){const t=this.rules.block.text.exec(e);if(t){const n={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:D(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):D(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const a=Q(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{const a=Rt(t[2],"()");if(a>-1){const c=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let l=t[2],s="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);a&&(l=a[1],s=a[3])}else s=t[3]?t[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(this.options.pedantic&&!/>$/.test(n)?l=l.slice(1):l=l.slice(1,-1)),ye(t,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let l=(n[2]||n[1]).replace(/\s+/g," ");if(l=t[l.toLowerCase()],!l||!l.href){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return ye(n,l,n[0],this.lexer)}}emStrong(e,t,n=""){let l=this.rules.inline.emStrong.lDelim.exec(e);if(!l||l[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=l[1]||l[2]||"";if(!s||s&&(n===""||this.rules.inline.punctuation.exec(n))){const a=l[0].length-1;let o,c,p=a,f=0;const
|
|
16
|
-
]`).replace("lheading"
|
|
15
|
+
`?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}text(e){const t=this.rules.block.text.exec(e);if(t){const n={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:D(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):D(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const a=Q(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{const a=Rt(t[2],"()");if(a>-1){const c=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let l=t[2],s="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);a&&(l=a[1],s=a[3])}else s=t[3]?t[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(this.options.pedantic&&!/>$/.test(n)?l=l.slice(1):l=l.slice(1,-1)),ye(t,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let l=(n[2]||n[1]).replace(/\s+/g," ");if(l=t[l.toLowerCase()],!l||!l.href){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return ye(n,l,n[0],this.lexer)}}emStrong(e,t,n=""){let l=this.rules.inline.emStrong.lDelim.exec(e);if(!l||l[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=l[1]||l[2]||"";if(!s||s&&(n===""||this.rules.inline.punctuation.exec(n))){const a=l[0].length-1;let o,c,p=a,f=0;const m=l[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+a);(l=m.exec(t))!=null;){if(o=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!o)continue;if(c=o.length,l[3]||l[4]){p+=c;continue}else if((l[5]||l[6])&&a%3&&!((a+c)%3)){f+=c;continue}if(p-=c,p>0)continue;if(c=Math.min(c,c+p+f),Math.min(a,c)%2){const u=e.slice(1,a+l.index+c);return{type:"em",raw:e.slice(0,a+l.index+c+1),text:u,tokens:this.lexer.inlineTokens(u,[])}}const h=e.slice(2,a+l.index+c-1);return{type:"strong",raw:e.slice(0,a+l.index+c+1),text:h,tokens:this.lexer.inlineTokens(h,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const l=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return l&&s&&(n=n.substring(1,n.length-1)),n=D(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let l,s;return n[2]==="@"?(l=D(this.options.mangle?t(n[1]):n[1]),s="mailto:"+l):(l=D(n[1]),s=l),{type:"link",raw:n[0],text:l,href:s,tokens:[{type:"text",raw:l,text:l}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let l,s;if(n[2]==="@")l=D(this.options.mangle?t(n[0]):n[0]),s="mailto:"+l;else{let a;do a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(a!==n[0]);l=D(n[0]),n[1]==="www."?s="http://"+l:s=l}return{type:"link",raw:n[0],text:l,href:s,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let l;return this.lexer.state.inRawBlock?l=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):D(n[0]):n[0]:l=D(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:l}}}}const $={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:G,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};$._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,$._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,$.def=V($.def).replace("label",$._label).replace("title",$._title).getRegex(),$.bullet=/(?:[*+-]|\d{1,9}[.)])/,$.listItemStart=V(/^( *)(bull) */).replace("bull",$.bullet).getRegex(),$.list=V($.list).replace(/bull/g,$.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+$.def.source+")").getRegex(),$._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,$.html=V($.html,"i").replace("comment",$._comment).replace("tag",$._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$.paragraph=V($._paragraph).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex(),$.blockquote=V($.blockquote).replace("paragraph",$.paragraph).getRegex(),$.normal=z({},$),$.gfm=z({},$.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),$.gfm.table=V($.gfm.table).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex(),$.gfm.paragraph=V($._paragraph).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",$.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex(),$.pedantic=z({},$.normal,{html:V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:G,paragraph:V($.normal._paragraph).replace("hr",$.hr).replace("heading",` *#{1,6} *[^
|
|
16
|
+
]`).replace("lheading",$.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const b={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:G,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:G,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};b._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",b.punctuation=V(b.punctuation).replace(/punctuation/g,b._punctuation).getRegex(),b.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,b.escapedEmSt=/\\\*|\\_/g,b._comment=V($._comment).replace("(?:-->|$)","-->").getRegex(),b.emStrong.lDelim=V(b.emStrong.lDelim).replace(/punct/g,b._punctuation).getRegex(),b.emStrong.rDelimAst=V(b.emStrong.rDelimAst,"g").replace(/punct/g,b._punctuation).getRegex(),b.emStrong.rDelimUnd=V(b.emStrong.rDelimUnd,"g").replace(/punct/g,b._punctuation).getRegex(),b._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,b._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,b._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,b.autolink=V(b.autolink).replace("scheme",b._scheme).replace("email",b._email).getRegex(),b._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,b.tag=V(b.tag).replace("comment",b._comment).replace("attribute",b._attribute).getRegex(),b._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,b._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,b._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,b.link=V(b.link).replace("label",b._label).replace("href",b._href).replace("title",b._title).getRegex(),b.reflink=V(b.reflink).replace("label",b._label).getRegex(),b.reflinkSearch=V(b.reflinkSearch,"g").replace("reflink",b.reflink).replace("nolink",b.nolink).getRegex(),b.normal=z({},b),b.pedantic=z({},b.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:V(/^!?\[(label)\]\((.*?)\)/).replace("label",b._label).getRegex(),reflink:V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",b._label).getRegex()}),b.gfm=z({},b.normal,{escape:V(b.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),b.gfm.url=V(b.gfm.url,"i").replace("email",b.gfm._extended_email).getRegex(),b.breaks=z({},b.gfm,{br:V(b.br).replace("{2,}","*").getRegex(),text:V(b.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function zt(i){return i.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function we(i){let e="",t,n;const l=i.length;for(t=0;t<l;t++)n=i.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class M{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||B,this.options.tokenizer=this.options.tokenizer||new ne,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:$.normal,inline:b.normal};this.options.pedantic?(t.block=$.pedantic,t.inline=b.pedantic):this.options.gfm&&(t.block=$.gfm,this.options.breaks?t.inline=b.breaks:t.inline=b.gfm),this.tokenizer.rules=t}static get rules(){return{block:$,inline:b}}static lex(e,t){return new M(t).lex(e)}static lexInline(e,t){return new M(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
|
|
17
17
|
`).replace(/\t/g," "),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic&&(e=e.replace(/^ +$/gm,""));let n,l,s,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(n=o.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.type&&t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
|
|
18
18
|
`+n.raw,l.text+=`
|
|
19
19
|
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
|
|
@@ -22,7 +22,7 @@ var Xt=Object.defineProperty,Yt=Object.defineProperties;var en=Object.getOwnProp
|
|
|
22
22
|
`+n.raw,l.text+=`
|
|
23
23
|
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n),a=s.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&l.type==="text"?(l.raw+=`
|
|
24
24
|
`+n.raw,l.text+=`
|
|
25
|
-
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,l,s,a=e,o,c,p;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+be("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+be("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(c||(p=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,p)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,we)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,we))){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const
|
|
25
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,l,s,a=e,o,c,p;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+be("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+be("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(c||(p=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,p)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,we)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,we))){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const m=e.slice(1);let h;this.options.extensions.startInline.forEach(function(u){h=u.call({lexer:this},m),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(s=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(s,zt)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(p=n.raw.slice(-1)),c=!0,l=t[t.length-1],l&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return t}}class ie{constructor(e){this.options=e||B}code(e,t,n){const l=(t||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(e,l);s!=null&&s!==e&&(n=!0,e=s)}return e=e.replace(/\n$/,"")+`
|
|
26
26
|
`,l?'<pre><code class="'+this.options.langPrefix+D(l,!0)+'">'+(n?e:D(e,!0))+`</code></pre>
|
|
27
27
|
`:"<pre><code>"+(n?e:D(e,!0))+`</code></pre>
|
|
28
28
|
`}blockquote(e){return`<blockquote>
|
|
@@ -42,19 +42,19 @@ var Xt=Object.defineProperty,Yt=Object.defineProperties;var en=Object.getOwnProp
|
|
|
42
42
|
`}tablerow(e){return`<tr>
|
|
43
43
|
`+e+`</tr>
|
|
44
44
|
`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+`>
|
|
45
|
-
`}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(e=ge(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l='<a href="'+D(e)+'"';return t&&(l+=' title="'+t+'"'),l+=">"+n+"</a>",l}image(e,t,n){if(e=ge(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l='<img src="'+e+'" alt="'+n+'"';return t&&(l+=' title="'+t+'"'),l+=this.options.xhtml?"/>":">",l}text(e){return e}}class xe{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class $e{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,l=0;if(this.seen.hasOwnProperty(n)){l=this.seen[e];do l++,n=e+"-"+l;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=l,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class
|
|
46
|
-
`+(
|
|
47
|
-
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+D(n.message+"",!0)+"</pre>";throw n}}
|
|
48
|
-
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+D(t.message+"",!0)+"</pre>";throw t}},
|
|
45
|
+
`}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(e=ge(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l='<a href="'+D(e)+'"';return t&&(l+=' title="'+t+'"'),l+=">"+n+"</a>",l}image(e,t,n){if(e=ge(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l='<img src="'+e+'" alt="'+n+'"';return t&&(l+=' title="'+t+'"'),l+=this.options.xhtml?"/>":">",l}text(e){return e}}class xe{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class $e{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,l=0;if(this.seen.hasOwnProperty(n)){l=this.seen[e];do l++,n=e+"-"+l;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=l,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class H{constructor(e){this.options=e||B,this.options.renderer=this.options.renderer||new ie,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new xe,this.slugger=new $e}static parse(e,t){return new H(t).parse(e)}static parseInline(e,t){return new H(t).parseInline(e)}parse(e,t=!0){let n="",l,s,a,o,c,p,f,m,h,u,g,k,w,y,C,S,N,_,F;const L=e.length;for(l=0;l<L;l++){if(u=e[l],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(F=this.options.extensions.renderers[u.type].call({parser:this},u),F!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type))){n+=F||"";continue}switch(u.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(u.tokens),u.depth,pe(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(u.text,u.lang,u.escaped);continue}case"table":{for(m="",f="",o=u.header.length,s=0;s<o;s++)f+=this.renderer.tablecell(this.parseInline(u.header[s].tokens),{header:!0,align:u.align[s]});for(m+=this.renderer.tablerow(f),h="",o=u.rows.length,s=0;s<o;s++){for(p=u.rows[s],f="",c=p.length,a=0;a<c;a++)f+=this.renderer.tablecell(this.parseInline(p[a].tokens),{header:!1,align:u.align[a]});h+=this.renderer.tablerow(f)}n+=this.renderer.table(m,h);continue}case"blockquote":{h=this.parse(u.tokens),n+=this.renderer.blockquote(h);continue}case"list":{for(g=u.ordered,k=u.start,w=u.loose,o=u.items.length,h="",s=0;s<o;s++)C=u.items[s],S=C.checked,N=C.task,y="",C.task&&(_=this.renderer.checkbox(S),w?C.tokens.length>0&&C.tokens[0].type==="paragraph"?(C.tokens[0].text=_+" "+C.tokens[0].text,C.tokens[0].tokens&&C.tokens[0].tokens.length>0&&C.tokens[0].tokens[0].type==="text"&&(C.tokens[0].tokens[0].text=_+" "+C.tokens[0].tokens[0].text)):C.tokens.unshift({type:"text",text:_}):y+=_),y+=this.parse(C.tokens,w),h+=this.renderer.listitem(y,N,S);n+=this.renderer.list(h,g,k);continue}case"html":{n+=this.renderer.html(u.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(u.tokens));continue}case"text":{for(h=u.tokens?this.parseInline(u.tokens):u.text;l+1<L&&e[l+1].type==="text";)u=e[++l],h+=`
|
|
46
|
+
`+(u.tokens?this.parseInline(u.tokens):u.text);n+=t?this.renderer.paragraph(h):h;continue}default:{const j='Token with "'+u.type+'" type was not found.';if(this.options.silent){console.error(j);return}else throw new Error(j)}}}return n}parseInline(e,t){t=t||this.renderer;let n="",l,s,a;const o=e.length;for(l=0;l<o;l++){if(s=e[l],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(a=this.options.extensions.renderers[s.type].call({parser:this},s),a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type))){n+=a||"";continue}switch(s.type){case"escape":{n+=t.text(s.text);break}case"html":{n+=t.html(s.text);break}case"link":{n+=t.link(s.href,s.title,this.parseInline(s.tokens,t));break}case"image":{n+=t.image(s.href,s.title,s.text);break}case"strong":{n+=t.strong(this.parseInline(s.tokens,t));break}case"em":{n+=t.em(this.parseInline(s.tokens,t));break}case"codespan":{n+=t.codespan(s.text);break}case"br":{n+=t.br();break}case"del":{n+=t.del(this.parseInline(s.tokens,t));break}case"text":{n+=t.text(s.text);break}default:{const c='Token with "'+s.type+'" type was not found.';if(this.options.silent){console.error(c);return}else throw new Error(c)}}}return n}}function v(i,e,t){if(typeof i=="undefined"||i===null)throw new Error("marked(): input parameter is undefined or null");if(typeof i!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");if(typeof e=="function"&&(t=e,e=null),e=z({},v.defaults,e||{}),ke(e),t){const n=e.highlight;let l;try{l=M.lex(i,e)}catch(o){return t(o)}const s=function(o){let c;if(!o)try{e.walkTokens&&v.walkTokens(l,e.walkTokens),c=H.parse(l,e)}catch(p){o=p}return e.highlight=n,o?t(o):t(null,c)};if(!n||n.length<3||(delete e.highlight,!l.length))return s();let a=0;v.walkTokens(l,function(o){o.type==="code"&&(a++,setTimeout(()=>{n(o.text,o.lang,function(c,p){if(c)return s(c);p!=null&&p!==o.text&&(o.text=p,o.escaped=!0),a--,a===0&&s()})},0))}),a===0&&s();return}try{const n=M.lex(i,e);return e.walkTokens&&v.walkTokens(n,e.walkTokens),H.parse(n,e)}catch(n){if(n.message+=`
|
|
47
|
+
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+D(n.message+"",!0)+"</pre>";throw n}}v.options=v.setOptions=function(i){return z(v.defaults,i),xt(v.defaults),v},v.getDefaults=he,v.defaults=B,v.use=function(...i){const e=z({},...i),t=v.defaults.extensions||{renderers:{},childTokens:{}};let n;i.forEach(l=>{if(l.extensions&&(n=!0,l.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const a=t.renderers?t.renderers[s.name]:null;a?t.renderers[s.name]=function(...o){let c=s.renderer.apply(this,o);return c===!1&&(c=a.apply(this,o)),c}:t.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[s.level]?t[s.level].unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}s.childTokens&&(t.childTokens[s.name]=s.childTokens)})),l.renderer){const s=v.defaults.renderer||new ie;for(const a in l.renderer){const o=s[a];s[a]=(...c)=>{let p=l.renderer[a].apply(s,c);return p===!1&&(p=o.apply(s,c)),p}}e.renderer=s}if(l.tokenizer){const s=v.defaults.tokenizer||new ne;for(const a in l.tokenizer){const o=s[a];s[a]=(...c)=>{let p=l.tokenizer[a].apply(s,c);return p===!1&&(p=o.apply(s,c)),p}}e.tokenizer=s}if(l.walkTokens){const s=v.defaults.walkTokens;e.walkTokens=function(a){l.walkTokens.call(this,a),s&&s.call(this,a)}}n&&(e.extensions=t),v.setOptions(e)})},v.walkTokens=function(i,e){for(const t of i)switch(e.call(v,t),t.type){case"table":{for(const n of t.header)v.walkTokens(n.tokens,e);for(const n of t.rows)for(const l of n)v.walkTokens(l.tokens,e);break}case"list":{v.walkTokens(t.items,e);break}default:v.defaults.extensions&&v.defaults.extensions.childTokens&&v.defaults.extensions.childTokens[t.type]?v.defaults.extensions.childTokens[t.type].forEach(function(n){v.walkTokens(t[n],e)}):t.tokens&&v.walkTokens(t.tokens,e)}},v.parseInline=function(i,e){if(typeof i=="undefined"||i===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof i!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");e=z({},v.defaults,e||{}),ke(e);try{const t=M.lexInline(i,e);return e.walkTokens&&v.walkTokens(t,e.walkTokens),H.parseInline(t,e)}catch(t){if(t.message+=`
|
|
48
|
+
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+D(t.message+"",!0)+"</pre>";throw t}},v.Parser=H,v.parser=H.parse,v.Renderer=ie,v.TextRenderer=xe,v.Lexer=M,v.lexer=M.lex,v.Tokenizer=ne,v.Slugger=$e,v.parse=v,H.parse,M.lex;var At=function(){var i=document.getSelection();if(!i.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n<i.rangeCount;n++)t.push(i.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return i.removeAllRanges(),function(){i.type==="Caret"&&i.removeAllRanges(),i.rangeCount||t.forEach(function(l){i.addRange(l)}),e&&e.focus()}},Mt=At,ve={"text/plain":"Text","text/html":"Url",default:"Text"},Ht="Copy to clipboard: #{key}, Enter";function Bt(i){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,e)}function Ot(i,e){var t,n,l,s,a,o,c=!1;e||(e={}),t=e.debug||!1;try{l=Mt(),s=document.createRange(),a=document.getSelection(),o=document.createElement("span"),o.textContent=i,o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(f){if(f.stopPropagation(),e.format)if(f.preventDefault(),typeof f.clipboardData=="undefined"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=ve[e.format]||ve.default;window.clipboardData.setData(m,i)}else f.clipboardData.clearData(),f.clipboardData.setData(e.format,i);e.onCopy&&(f.preventDefault(),e.onCopy(f.clipboardData))}),document.body.appendChild(o),s.selectNodeContents(o),a.addRange(s);var p=document.execCommand("copy");if(!p)throw new Error("copy command was unsuccessful");c=!0}catch(f){t&&console.error("unable to copy using execCommand: ",f),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",i),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(m){t&&console.error("unable to copy using clipboardData: ",m),t&&console.error("falling back to prompt"),n=Bt("message"in e?e.message:Ht),window.prompt(n,i)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(s):a.removeAllRanges()),o&&document.body.removeChild(o),l()}return c}var q=Ot;const K=i=>{const e=i.value,t=e.substring(0,i.selectionStart),n=e.substring(i.selectionEnd,e.length),l=t.lastIndexOf(`
|
|
49
49
|
`),s=t.substring(0,l+1),a=n.indexOf(`
|
|
50
|
-
`),o=n.substring(a===-1?n.length:a,n.length),c=t.substring(l+1,t.length),p=n.substring(0,a);return{prefixStr:t,subfixStr:n,prefixStrEndRow:s,subfixStrEndRow:o,prefixSupply:c,subfixSupply:p}},Pt=(i,e="",t,n)=>{var f,
|
|
51
|
-
|`;for(let k=0;k<=
|
|
52
|
-
|`;for(let
|
|
53
|
-
`;break}case"tab":{e=((f=window.getSelection())==null?void 0:f.toString())||"";const{tabWidth:h=2}=n,
|
|
54
|
-
`).map(N=>`${
|
|
55
|
-
`),c=
|
|
56
|
-
`);let[L
|
|
57
|
-
`);return A(t,t.selectionStart-
|
|
50
|
+
`),o=n.substring(a===-1?n.length:a,n.length),c=t.substring(l+1,t.length),p=n.substring(0,a);return{prefixStr:t,subfixStr:n,prefixStrEndRow:s,subfixStrEndRow:o,prefixSupply:c,subfixSupply:p}},Pt=(i,e="",t,n)=>{var f,m;let l="",s=0,a=0,o=!1,c,p;if(/^h[1-6]{1}$/.test(i)){const h=i.replace(/^h(\d)/,(u,g)=>new Array(Number(g)).fill("#",0,g).join(""));l=`${h} ${e}`,s=h.length+1}else{if(i==="prettier")return window.prettier.format(t.value,{parser:"markdown",plugins:window.prettierPlugins});switch(i){case"bold":{l=`**${e}**`,s=2,a=-2;break}case"underline":{l=`<u>${e}</u>`,s=3,a=-4;break}case"italic":{l=`*${e}*`,s=1,a=-1;break}case"strikeThrough":{l=`~${e}~`,s=1,a=-1;break}case"sub":{l=`<sub>${e}</sub>`,s=5,a=-6;break}case"sup":{l=`<sup>${e}</sup>`,s=5,a=-6;break}case"codeRow":{l="`"+e+"`",s=1,a=-1;break}case"quote":{l=`> ${e}`,s=2;break}case"orderedList":{l=`1. ${e}`,s=3;break}case"unorderedList":{l=`- ${e}`,s=2;break}case"code":{l="```language\n"+e+"\n```\n",s=3,a=11-l.length,o=!0;break}case"table":{l="|";const{selectedShape:h={x:1,y:1}}=n,{x:u,y:g}=h;for(let k=0;k<=g;k++)l+=" col |";l+=`
|
|
51
|
+
|`;for(let k=0;k<=g;k++)l+=" - |";for(let k=0;k<=u;k++){l+=`
|
|
52
|
+
|`;for(let w=0;w<=g;w++)l+=" content |"}s=2,a=5-l.length,o=!0;break}case"link":{const{desc:h,url:u}=n;l=`[${h}](${u})`;break}case"image":{const{desc:h,url:u}=n;l=`
|
|
53
|
+
`;break}case"tab":{e=((f=window.getSelection())==null?void 0:f.toString())||"";const{tabWidth:h=2}=n,u=new Array(h).fill(" ").join("");if(e==="")l=u;else if(/\n/.test(e)){const{prefixStr:g,subfixStr:k,prefixSupply:w,subfixSupply:y}=K(t);l=`${w}${e}${y}`.split(`
|
|
54
|
+
`).map(N=>`${u}${N}`).join(`
|
|
55
|
+
`),c=g.substring(0,g.length-w.length),p=k.substring(y.length,k.length),o=!0,s=h,a=-w.length-y.length}else{const k=t.value.substring(0,t.selectionStart);/\n$/.test(k)||k===""?(l=`${u}${e}`,o=!0):l=u}break}case"shiftTab":{e=((m=window.getSelection())==null?void 0:m.toString())||"";const{tabWidth:h=2}=n,{prefixStr:u,prefixStrEndRow:g,subfixStrEndRow:k,prefixSupply:w,subfixSupply:y}=K(t),C=new RegExp(`^\\s{${h}}`),S=(N=!1,_=!1)=>{const F=`${w}${e}${y}`;if(C.test(F)){const L=u.length-(_?0:h),j=N?L+e.length-h:L;return A(t,L,j),`${g}${F.replace(C,"")}${k}`}else if(/^\s/.test(F)){const L=F.replace(/^\s/,""),j=F.length-L.length,R=t.selectionStart-(_?0:j),O=N?R+e.length-j:R;return A(t,R,O),`${g}${L}${k}`}else l=e};if(e===""){const N=S();if(N)return N}else if(/\n/.test(e)){const _=`${w}${e}${y}`.split(`
|
|
56
|
+
`);let[F,L]=[0,0];const j=_.map((R,O)=>{if(C.test(R))return O===0&&(F=h),L+=h,R.replace(C,"");if(/^\s/.test(R)){const Z=R.replace(/^\s/,"");return L+=R.length-Z.length,Z}return R}).join(`
|
|
57
|
+
`);return A(t,t.selectionStart-F,t.selectionEnd-L),`${g}${j}${k}`}else{const N=S(!0,!0);if(N)return N}break}case"ctrlC":{const{prefixSupply:h,subfixSupply:u}=K(t);return q(e===""?`${h}${u}`:e),t.value}case"ctrlX":{const{prefixStrEndRow:h,subfixStrEndRow:u,prefixStr:g,subfixStr:k,prefixSupply:w,subfixSupply:y}=K(t);return e===""?(q(`${w}${y}`),A(t,h.length),`${h}${u.replace(/^\n/,"")}`):(q(e),A(t,g.length),`${g}${k}`)}case"ctrlD":{const{prefixStrEndRow:h,subfixStrEndRow:u}=K(t);return A(t,h.length),`${h}${u.replace(/^\n/,"")}`}case"flow":{l="```mermaid\nflowchart TD \n Start --> Stop\n```\n",s=2;break}case"sequence":{l="```mermaid\nsequenceDiagram\n A->>B: hello!\n B-->>A: hi!\n A-)B: bye!\n```\n",s=2;break}case"gantt":{l=`\`\`\`mermaid
|
|
58
58
|
gantt
|
|
59
59
|
title A Gantt Diagram
|
|
60
60
|
dateFormat YYYY-MM-DD
|
|
@@ -76,7 +76,7 @@ journey
|
|
|
76
76
|
`,s=2;break}case"katexInline":{l="$$",s=1,a=-1;break}case"katexBlock":{l=`$$
|
|
77
77
|
|
|
78
78
|
$$
|
|
79
|
-
`,s=1,a=-4;break}}}return ee(t,l,{deviationStart:s,deviationEnd:a,select:o,prefixVal:c,subfixVal:p})};var
|
|
80
|
-
`)
|
|
81
|
-
- `,{}));else{const y
|
|
82
|
-
${
|
|
79
|
+
`,s=1,a=-4;break}}}return ee(t,l,{deviationStart:s,deviationEnd:a,select:o,prefixVal:c,subfixVal:p})};var Ce={block(i,e){return{name:"KaTexBlockExtension",level:"block",start:t=>{var n;return(n=t.match(/\$\$\n/))==null?void 0:n.index},tokenizer(t){const l=/^\$\$\n([^$]*)\$\$\n?/.exec(t);if(l)return{type:"KaTexBlockExtension",raw:l[0],text:l[1].trim(),tokens:[]}},renderer(t){const n=e||typeof window!="undefined"&&window.katex;if(n){const l=n.renderToString(t.text,{throwOnError:!1});return`<span class="${i}-katex-block" data-processed>${l}</span>`}else return`<span class="${i}-katex-block">${t.text}</span>`}}},inline(i,e){return{name:"KaTexInlineExtension",level:"inline",start:t=>{var n;return(n=t.match(/\$[^$]/))==null?void 0:n.index},tokenizer(t){const l=/^\$([^$]*)\$/.exec(t);if(l)return{type:"KaTexInlineExtension",raw:l[0],text:l[1].trim(),tokens:[]}},renderer(t){const n=e||typeof window!="undefined"&&window.katex;if(n){const l=n.renderToString(t.text,{throwOnError:!1});return`<span class="${i}-katex-inline" data-processed>${l}</span>`}else return`<span class="${i}-katex-inline">${t.text}</span>`}}}};const Ut=(i,e)=>{var o,c;const t=r.inject("previewOnly"),n=r.inject("historyLength"),l=r.inject("editorId");if(t)return;let s=-1;const a={list:[{content:i.value,startPos:((o=e.value)==null?void 0:o.selectionStart)||0,endPos:((c=e.value)==null?void 0:c.selectionEnd)||0}],userUpdated:!0,curr:0};r.watch(()=>i.value,p=>{var h,u;clearTimeout(s);const f=((h=e.value)==null?void 0:h.selectionStart)||0,m=((u=e.value)==null?void 0:u.selectionEnd)||0;s=setTimeout(()=>{if(a.userUpdated){a.curr<a.list.length-1&&(a.list=a.list.slice(0,a.curr+1)),a.list.length>n&&a.list.shift();const g=a.list.pop();g.startPos=f,g.endPos=m,Array.prototype.push.call(a.list,g,{content:p,startPos:f,endPos:m}),a.curr=a.list.length-1}else a.userUpdated=!0},10)}),r.onMounted(()=>{x.on(l,{name:"ctrlZ",callback(){a.userUpdated=!1,a.curr=a.curr-1<0?0:a.curr-1;const p=a.list[a.curr];i.onChange(p.content),A(e.value,p.startPos,p.endPos)}}),x.on(l,{name:"ctrlShiftZ",callback(){a.userUpdated=!1,a.curr=a.curr+1===a.list.length?a.curr:a.curr+1;const p=a.list[a.curr];i.onChange(p.content),A(e.value,p.startPos,p.endPos)}})})},qt=(i,e)=>{const t=r.inject("showCodeRowNumber"),n=r.inject("editorId"),l=r.ref(!1),s=r.ref(!1);let a=[];const o=new v.Renderer;o.heading=(...h)=>{const[,u,g]=h;return a.push({text:g,level:u}),i.markedHeading(...h)},o.defaultCode=o.code,o.code=(h,u,g)=>{var k;if(!i.noMermaid&&u==="mermaid"){const w=`${d}-mermaid-${Date.now().toString(36)}`;try{let y="";return i.mermaid?y=i.mermaid.mermaidAPI.render(w,h):typeof window!="undefined"&&window.mermaid?y=window.mermaid.mermaidAPI.render(w,h):y=`<div class="mermaid">${h}</div>`,`<div class="${d}-mermaid">${y}</div>`}catch{if(typeof document!="undefined"){const C=document.querySelector(`#${w}`);if(C){const S=C.outerHTML;return(k=C.parentElement)==null||k.remove(),S}}return""}}return o.defaultCode(h,u,g)},o.image=(h,u,g)=>`<figure><img src="${h}" alt="${g}"><figcaption>${g}</figcaption></figure>`,v.setOptions({renderer:o,breaks:!0}),i.noKatex||v.use({extensions:[Ce.inline(d,i.katex),Ce.block(d,i.katex)]}),i.hljs&&v.setOptions({highlight:h=>{const u=i.hljs.highlightAuto(h).value;return t?ce(u):`<span class="code-block">${u}</span>`}});const c=r.computed(()=>{a=[];const h=v(i.value);return l.value,e.reRender,e.mermaidInited,s.value,i.sanitize(h)}),p=()=>{v.setOptions({highlight:h=>{const u=window.hljs.highlightAuto(h).value;return t?ce(u):`<span class="code-block">${u}</span>`}}),l.value=!0};r.watch(()=>c.value,h=>{i.onHtmlChanged(h),i.onGetCatalog(a),x.emit(n,"catalogChanged",a)});let f,m;return r.onMounted(()=>{!i.noKatex&&!i.katex&&(f=document.createElement("script"),f.src=i.katexJs,f.onload=()=>{s.value=!0},f.id=`${d}-katex`,m=document.createElement("link"),m.rel="stylesheet",m.href=i.katexCss,m.id=`${d}-katexCss`,te(f),te(m))}),r.onBeforeUnmount(()=>{f&&f.remove(),m&&m.remove()}),{html:c,highlightLoad:p}},Kt=(i,e,t,n,l)=>{const s=r.inject("previewOnly"),a=r.inject("usedLanguageText"),o=r.inject("editorId");let c=()=>{},p=()=>{};const f=()=>{document.querySelectorAll(`#${o} .${d}-preview pre`).forEach(u=>{var k;const g=document.createElement("span");g.setAttribute("class","copy-button"),g.innerText=((k=a.value.copyCode)==null?void 0:k.text)||"\u590D\u5236\u4EE3\u7801",g.addEventListener("click",()=>{var w;q(u.querySelector("code").innerText),g.innerText=((w=a.value.copyCode)==null?void 0:w.tips)||"\u5DF2\u590D\u5236\uFF01",setTimeout(()=>{var y;g.innerText=((y=a.value.copyCode)==null?void 0:y.text)||"\u590D\u5236\u4EE3\u7801"},1500)}),u.appendChild(g)})};r.onMounted(()=>{[p,c]=oe(t.value,n.value||l.value)});const m=()=>{r.nextTick(()=>{i.setting.preview&&!s&&(c(),p()),f()})},h=u=>{u&&!s&&r.nextTick(()=>{c(),[p,c]=oe(t.value,n.value||l.value),p()})};r.watch(()=>e.value,m),r.watch(()=>i.setting.preview,h),r.watch(()=>i.setting.htmlPreview,h),r.onMounted(m)},Zt=(i,e)=>{const t=r.inject("previewOnly"),n=r.inject("tabWidth"),l=r.inject("editorId"),s=r.ref("");return r.onMounted(()=>{var a,o;t||((a=e.value)==null||a.addEventListener("select",()=>{var c;s.value=((c=window.getSelection())==null?void 0:c.toString())||""}),(o=e.value)==null||o.addEventListener("keypress",c=>{var p,f,m;if(c.key==="Enter"){const h=(p=e.value)==null?void 0:p.selectionStart,u=(f=e.value)==null?void 0:f.value.substring(0,h),g=(m=e.value)==null?void 0:m.value.substring(h),k=u==null?void 0:u.lastIndexOf(`
|
|
80
|
+
`),w=u==null?void 0:u.substring(k+1,h);if(/^\d+\.\s|^-\s/.test(w))if(c.cancelBubble=!0,c.preventDefault(),c.stopPropagation(),/^\d+\.\s+$|^-\s+$/.test(w)){const y=u==null?void 0:u.replace(new RegExp(w+"$"),"");i.onChange(y+g),A(e.value,y==null?void 0:y.length)}else if(/^-\s+.+/.test(w))i.onChange(ee(e.value,`
|
|
81
|
+
- `,{}));else{const y=w==null?void 0:w.match(/\d+(?=\.)/),C=y&&Number(y[0])+1||1;i.onChange(ee(e.value,`
|
|
82
|
+
${C}. `,{}))}}}),x.on(l,{name:"replace",callback(c,p={}){i.onChange(Pt(c,s.value,e.value,Y(P({},p),{tabWidth:n})))}}))}),x.on(l,{name:"selectTextChange",callback(a){s.value=a}}),{selectedText:s}},Jt=i=>{const e=r.inject("theme"),t=r.reactive({reRender:!1,mermaidInited:!!i.mermaid}),n=()=>{i.noMermaid||(i.mermaid?i.mermaid.initialize({theme:e.value==="dark"?"dark":"default"}):window.mermaid&&window.mermaid.initialize({theme:e.value==="dark"?"dark":"default"}),t.reRender=!t.reRender)};r.watch(()=>e.value,n);let l;return r.onMounted(()=>{!i.noMermaid&&!i.mermaid?(l=document.createElement("script"),l.src=i.mermaidJs,l.onload=()=>{window.mermaid.initialize({theme:e.value==="dark"?"dark":"default",logLevel:"Fatal"}),t.mermaidInited=!0},l.id=`${d}-mermaid`,te(l)):i.noMermaid||n()}),r.onBeforeUnmount(()=>{!i.noMermaid&&!i.mermaid&&l&&l.remove()}),t};var Wt=r.defineComponent({name:"MDEditorContent",props:{value:{type:String,default:""},hljs:{type:Object,default:null},onChange:{type:Function,default:()=>()=>{}},setting:{type:Object,default:()=>({})},onHtmlChanged:{type:Function,default:()=>()=>{}},onGetCatalog:{type:Function,default:()=>()=>{}},markedHeading:{type:Function,default:()=>(i,e)=>`<h${e} id="${i}"><a href="#${i}">${i}</a></h${e}>`},mermaid:{type:Object},mermaidJs:{type:String,default:""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:i=>i},placeholder:{type:String,default:""},katex:{type:Object},katexJs:{type:String,default:""},katexCss:{type:String,default:""},noKatex:{type:Boolean,default:!1}},setup(i){const e=r.inject("highlight"),t=r.inject("previewOnly"),n=r.inject("showCodeRowNumber"),l=r.inject("previewTheme"),s=r.inject("editorId"),a=r.ref(),o=r.ref(),c=r.ref(),p=Jt(i),{html:f,highlightLoad:m}=qt(i,p);Kt(i,f,a,o,c);const{selectedText:h}=Zt(i,a);return Ut(i,a),()=>r.createVNode(r.Fragment,null,[r.createVNode("div",{class:[`${d}-content`]},[!t&&r.createVNode("div",{class:`${d}-input-wrapper`},[r.createVNode("textarea",{id:`${s}-textarea`,ref:a,value:i.value,onInput:u=>{h.value="",i.onChange(u.target.value)},class:[i.setting.preview||i.setting.htmlPreview?"":"textarea-only"],placeholder:i.placeholder},null)]),i.setting.preview&&r.createVNode("div",{class:`${d}-preview-wrapper`,ref:o,key:"content-preview-wrapper"},[r.createVNode("div",{id:`${d}-preview`,class:[`${d}-preview`,`${l==null?void 0:l.value}-theme`,n&&`${d}-scrn`],innerHTML:f.value},null)]),i.setting.htmlPreview&&r.createVNode("div",{class:`${d}-preview-wrapper`,ref:c,key:"html-preview-wrapper"},[r.createVNode("div",{class:`${d}-html`},[f.value])])]),i.hljs===null&&r.createVNode(r.Teleport,{to:"head"},{default:()=>[r.createVNode("link",{rel:"stylesheet",href:e.value.css},null),r.createVNode("script",{src:e.value.js,onLoad:m},null)]})])}});const Se=r.defineComponent({props:{tocItem:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:()=>{}}},setup(i){return()=>r.createVNode("div",{class:`${d}-catalog-link`,onClick:e=>{e.stopPropagation();const t=i.markedHeadingId(i.tocItem.text,i.tocItem.level),n=document.getElementById(t),l=document.getElementById(`${d}-preview`);if(n){const s=n.offsetTop;l==null||l.scrollTo({top:s,behavior:"smooth"})}}},[r.createVNode("span",null,[i.tocItem.text]),i.tocItem.children&&i.tocItem.children.map(e=>r.createVNode(Se,{markedHeadingId:i.markedHeadingId,key:e.text,tocItem:e},null))])}});var on="";const Gt=r.defineComponent({props:{markedHeadingId:{type:Function,default:()=>{}}},setup(i){const e=r.inject("editorId"),t=r.reactive({list:[],show:!1}),n=r.computed(()=>{const l=[];return t.list.forEach(({text:s,level:a})=>{const o={level:a,text:s};if(l.length===0)l.push(o);else{let c=l[l.length-1];if(o.level>c.level)for(let p=c.level+1;p<=6;p++){const{children:f}=c;if(!f){c.children=[o];break}if(c=f[f.length-1],o.level<=c.level){f.push(o);break}}else l.push(o)}}),l});return r.onMounted(()=>{x.on(e,{name:"catalogChanged",callback:l=>{t.list=l}}),x.on(e,{name:"catalogShow",callback:()=>{t.show=!t.show}})}),()=>t.show?r.createVNode("div",{class:`${d}-catalog`},[n.value.map(l=>r.createVNode(Se,{markedHeadingId:i.markedHeadingId,tocItem:l,key:l.text},null))]):""}});var cn="",dn="";const d="md",Ne=i=>i,Qt={modelValue:{type:String,default:""},theme:{type:String,default:"light"},editorClass:{type:String,default:""},hljs:{type:Object,default:null},highlightJs:{type:String,default:I.js},highlightCss:{type:String,default:""},historyLength:{type:Number,default:10},onChange:{type:Function},onSave:{type:Function},onUploadImg:{type:Function},pageFullScreen:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},htmlPreview:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},language:{type:String,default:"zh-CN"},languageUserDefined:{type:Object,default:()=>({})},toolbars:{type:Array,default:lt},toolbarsExclude:{type:Array,default:[]},prettier:{type:Boolean,default:!0},prettierCDN:{type:String,default:re.main},prettierMDCDN:{type:String,default:re.markdown},onHtmlChanged:{type:Function},Cropper:{type:Function,default:null},cropperCss:{type:String,default:ae.css},cropperJs:{type:String,default:ae.js},iconfontJs:{type:String,default:T},onGetCatalog:{type:Function},editorId:{type:String,default:"md-editor-v3"},tabWidth:{type:Number,default:2},showCodeRowNumber:{type:Boolean,default:!1},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:it},previewTheme:{type:String,default:"default"},markedHeading:{type:Function,default:(i,e,t)=>{const n=Ne(t);return i!==t?`<h${e} id="${n}">${i}</h${e}>`:`<h${e} id="${n}"><a href="#${n}">${t}</a></h${e}>`}},style:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:Ne},tableShape:{type:Array,default:()=>[6,4]},mermaid:{type:Object},mermaidJs:{type:String,default:rt},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:i=>i},placeholder:{type:String,default:""},katex:{type:Object},katexJs:{type:String,default:at},katexCss:{type:String,default:st},noKatex:{type:Boolean,default:!1}};var X=r.defineComponent({name:"MdEditorV3",props:Qt,setup(i,e){const{hljs:t,previewOnly:n,iconfontJs:l,prettier:s,prettierCDN:a,prettierMDCDN:o,Cropper:c,cropperCss:p,cropperJs:f,editorId:m,screenfull:h,screenfullJs:u}=i;ct(i,e),dt(i);const g=r.reactive({pageFullScreen:i.pageFullScreen,fullscreen:!1,preview:i.preview,htmlPreview:i.preview?!1:i.htmlPreview}),k=(S,N)=>{g[N]=S,N==="preview"&&g.preview?g.htmlPreview=!1:N==="htmlPreview"&&g.htmlPreview&&(g.preview=!1)};let w="";const y=()=>{g.pageFullScreen||g.fullscreen?document.body.style.overflow="hidden":document.body.style.overflow=w};r.watch(()=>[g.pageFullScreen,g.fullscreen],y),r.onMounted(()=>{n||x.on(m,{name:"uploadImage",callback(S,N){const _=F=>{F.forEach(L=>{setTimeout(()=>{x.emit(m,"replace","image",{desc:"",url:L})},0)}),N&&N()};i.onUploadImg?i.onUploadImg(S,_):e.emit("onUploadImg",S,_)}}),w=document.body.style.overflow,y()}),r.onBeforeUnmount(()=>{x.clear(m)});const C=r.computed(()=>!i.toolbarsExclude.includes("catalog")&&i.toolbars.includes("catalog"));return()=>r.createVNode("div",{id:m,class:[d,i.editorClass,i.theme==="dark"&&`${d}-dark`,g.fullscreen||g.pageFullScreen?`${d}-fullscreen`:"",n&&`${d}-previewOnly`],style:i.style},[!n&&r.createVNode(wt,{prettier:s,screenfull:h,screenfullJs:u,toolbars:i.toolbars,toolbarsExclude:i.toolbarsExclude,setting:g,updateSetting:k,tableShape:i.tableShape},null),r.createVNode(Wt,{hljs:t,value:i.modelValue,onChange:S=>{i.onChange?i.onChange(S):e.emit("update:modelValue",S)},setting:g,onHtmlChanged:S=>{i.onHtmlChanged?i.onHtmlChanged(S):e.emit("onHtmlChanged",S)},onGetCatalog:S=>{i.onGetCatalog?i.onGetCatalog(S):e.emit("onGetCatalog",S)},markedHeading:i.markedHeading,mermaid:i.mermaid,mermaidJs:i.mermaidJs,noMermaid:i.noMermaid,sanitize:i.sanitize,placeholder:i.placeholder,katex:i.katex,katexJs:i.katexJs,katexCss:i.katexCss,noKatex:i.noKatex},null),C.value&&r.createVNode(Gt,{markedHeadingId:i.markedHeadingId},null),!n&&r.createVNode(r.Teleport,{to:"head"},{default:()=>[r.createVNode("script",{src:l},null)]}),s&&!n&&r.createVNode(r.Teleport,{to:"head"},{default:()=>[r.createVNode("script",{src:a},null),r.createVNode("script",{src:o},null)]}),!n&&c===null&&r.createVNode(r.Teleport,{to:"head"},{default:()=>[r.createVNode("link",{href:p,rel:"stylesheet"},null),r.createVNode("script",{src:f},null)]})])}});return X.install=i=>(i.component(X.name,X),i),X});
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.md-divider{position:relative;display:inline-block;width:1px;top:.1em;height:.9em;margin:0 8px;background-color:#e6e6e6}.md-dark .md-divider{background-color:#2d2d2d}.md-dropdown{overflow:hidden;box-sizing:border-box;position:absolute;transition:all .3s;opacity:1;z-index:10000;background-color:#fff}.md-dropdown-hidden{opacity:0;z-index:-10000}.md-dropdown-overlay{margin-top:6px}.md-dark .md-dropdown{background-color:#000}.md-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20000;height:100%;background-color:#00000073}.md-modal{display:block;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;border-radius:3px;border:1px solid #e6e6e6;position:fixed;z-index:20001;flex-direction:column}.md-modal-header{cursor:grab;display:flex;justify-content:space-between;padding:10px 24px;color:#222;font-weight:600;font-size:16px;line-height:22px;word-wrap:break-word;user-select:none;border-bottom:1px solid #e6e6e6;position:relative}.md-modal-body{padding:24px;font-size:14px;word-wrap:break-word;height:calc(100% - 61px);box-sizing:border-box}.md-modal .md-modal-func{position:absolute;top:10px;right:10px}.md-modal .md-modal-func .md-modal-adjust,.md-modal .md-modal-func .md-modal-close{cursor:pointer;width:24px;height:24px;line-height:24px;text-align:center;display:inline-block}.md-modal .md-modal-func .md-modal-adjust{padding-right:10px}.animation{animation-duration:.15s}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoom-in{animation-name:zoomIn;animation-duration:.15s}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoom-out{animation-name:zoomOut;animation-duration:.15s}.md-clip{position:relative;display:flex;height:calc(100% - 32px)}.md-clip-main,.md-clip-preview{width:50%;height:100%;border:1px #e6e6e6 solid}.md-clip-main{margin-right:1em}.md-clip-main .md-clip-cropper{position:relative;width:100%;height:100%}.md-clip-main .md-clip-cropper .md-clip-delete{position:absolute;top:0;right:0;font-size:0;background-color:#ececec;border-bottom-left-radius:4px;color:#222;cursor:pointer}.md-clip-main .md-clip-upload{display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer}.md-clip-main .md-clip-upload .md-icon{width:auto;height:40px}.md-clip-preview-target{width:100%;height:100%;overflow:hidden}.md-dark .md-clip-main,.md-dark .md-clip-preview{border:1px #2d2d2d solid}.md-dark .md-clip-main{margin-right:1em}.md-dark .md-clip-main .md-clip-cropper .md-clip-delete{background-color:#111;color:#999}.md-catalog{position:absolute;overflow:auto;top:44px;right:0;height:calc(100% - 44px);background-color:#f6f6f6;border-left:1px solid #e6e6e6;width:200px;box-sizing:border-box;margin:0;padding:5px 10px;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";z-index:2}.md-catalog-link{padding:5px 0 5px 8px;line-height:1.2}.md-catalog-link span{position:relative;overflow:hidden;color:#222;white-space:nowrap;text-overflow:ellipsis;transition:color .3s;cursor:pointer}.md-catalog-link span:hover{color:#73d13d}.md-catalog-link>.md-catalog-link{padding-top:5px;padding-bottom:5px}.md-catalog-link>.md-catalog-link:first-of-type{padding-top:10px}.md-catalog-link>.md-catalog-link:last-of-type{padding-bottom:0}.md-dark .md-catalog{background-color:#000;border-left-color:#2d2d2d}.md-dark .md-catalog-link span{color:#999}.md-dark .md-catalog-link span:hover{color:#73d13d}.md{width:100%;height:400px;position:relative;box-sizing:border-box;border:1px solid #e6e6e6;display:flex;flex-direction:column;overflow:hidden;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI Variable,Segoe UI,system-ui,ui-sans-serif,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.md ::-webkit-scrollbar{width:6px;height:6px}.md ::-webkit-scrollbar-corner,.md ::-webkit-scrollbar-track{background-color:#e2e2e2}.md ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.md ::-webkit-scrollbar-button:vertical{display:none}.md ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.md ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.md-icon{width:24px;height:24px;fill:currentColor;overflow:hidden}.md-menu{margin:0;padding:0;border-radius:3px;border:1px solid #e6e6e6}.md-menu-item{list-style:none;font-size:12px;color:#222;padding:4px 10px;cursor:pointer}.md-menu-item:first-of-type{padding-top:8px}.md-menu-item:last-of-type{padding-bottom:8px}.md-menu-item:hover{background-color:#f5f7fa}.md-table-shape{padding:4px;border-radius:3px;border:1px solid #e6e6e6;display:flex;flex-direction:column}.md-table-shape-row{display:flex}.md-table-shape-col{padding:2px;cursor:pointer}.md-table-shape-col-default{width:16px;height:16px;background-color:#e0e0e0;border-radius:3px;transition:all .2s}.md-table-shape-col-include{background-color:#aaa}.md-toolbar-wrapper{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.md-toolbar-wrapper::-webkit-scrollbar{height:0!important}.md-toolbar-wrapper .md-toolbar{min-width:850px;padding:4px;height:35px;border-bottom:1px solid #e6e6e6;display:flex;justify-content:space-between;align-items:center;box-sizing:content-box}.md-toolbar-wrapper .md-toolbar-item{height:24px;display:inline-block;padding:0 4px;transition:all .3s;border-radius:0;cursor:pointer;list-style:none;user-select:none}.md-toolbar-wrapper .md-toolbar-item:hover{border-radius:3px;background-color:#e6e6e6}.md-toolbar-wrapper .md-toolbar-left,.md-toolbar-wrapper .md-toolbar-right{padding:1px 0;display:flex;align-items:center}.md-content{display:flex;height:calc(100% - 44px)}.md-content .md-input-wrapper{flex:1;box-sizing:border-box}.md-content .md-input-wrapper textarea{width:100%;height:100%;padding:10px 20px;box-sizing:border-box;font-size:1em;font-family:-apple-system,Consolas,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;resize:none;border:none;outline:none;overflow-y:scroll;color:inherit;background-color:inherit}.md-content .md-input-wrapper textarea.textarea-only{overflow-y:auto}.md-content .md-preview,.md-content .md-html{flex:1;padding:10px 20px;overflow:auto;font-size:16px;position:relative}.md-form-item{margin-bottom:14px;text-align:center}.md-form-item:last-of-type{margin-bottom:0}.md-lable{font-size:14px;color:#222;width:80px;text-align:center;display:inline-block}.md-input{border-radius:4px;padding:4px 11px;color:#222;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #e6e6e6;transition:all .2s}.md-input:focus{border-color:#57a3f3;outline:0;box-shadow:0 0 0 2px #2d8cf033}.md-btn{font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid transparent;white-space:nowrap;user-select:none;height:32px;padding:0 15px;font-size:14px;border-radius:4px;transition:all .2s linear;color:#515a6e;background-color:#fff;border-color:#e6e6e6;margin-left:10px}.md-btn:first-of-type{margin-left:0}.md-btn:hover{color:#57a3f3;background-color:#fff;border-color:#57a3f3}.md-btn-row{width:100%}.md-katex-block{text-align:center;margin:20px}.md-previewOnly{border:none;height:auto}.md-previewOnly .md-content{height:100%}.md-previewOnly .md-preview{padding:0}.md-dark{color:#999;background-color:#000;border-color:#2d2d2d}.md-dark .md-toolbar{border-color:#2d2d2d}.md-dark .md-toolbar-item:hover{background-color:#1b1a1a}.md-dark .md-table-shape{border-color:#2d2d2d}.md-dark .md-table-shape-col-default{background-color:#222}.md-dark .md-table-shape-col-include{background-color:#555}.md-dark .md-modal{background-color:#000;border-color:#2d2d2d}.md-dark .md-modal-header{border-color:#2d2d2d;color:#999}.md-dark .md-modal-header .md-modal-title{color:#999}.md-dark .md-dropdown-overlay{background-color:#000}.md-dark .md-menu{border-color:#2d2d2d}.md-dark .md-menu{background-color:inherit}.md-dark .md-menu-item{color:#999}.md-dark .md-menu-item:hover{background-color:#1b1a1a}.md-dark .md-lable{color:#999}.md-dark .md-input,.md-dark .md-btn{color:#999;background-color:#000;border-color:#2d2d2d}.md-dark ::-webkit-scrollbar-corner,.md-dark ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;height:auto;z-index:10000}.mermaid,.md-katex-inline,.md-katex-block{display:none}.mermaid[data-processed],.md-katex-inline[data-processed]{display:initial}.md-katex-block[data-processed]{display:block}.md-scrn span[rn-wrapper]{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;user-select:none;counter-reset:linenumber}.md-scrn span[rn-wrapper]>span{display:block;pointer-events:none;counter-increment:linenumber}.md-scrn span[rn-wrapper]>span:before{color:#999;display:block;padding-right:.5em;text-align:right;content:counter(linenumber)}.md-scrn pre code{padding-left:3.5em!important}.default-theme ::-webkit-scrollbar{width:6px;height:6px}.default-theme ::-webkit-scrollbar-corner,.default-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.default-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.default-theme ::-webkit-scrollbar-button:vertical{display:none}.default-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.default-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.default-theme h1,.default-theme h2,.default-theme h3,.default-theme h4,.default-theme h5,.default-theme h6{position:relative;word-break:break-all}.default-theme h1 a,.default-theme h2 a,.default-theme h3 a,.default-theme h4 a,.default-theme h5 a,.default-theme h6 a{color:inherit}.default-theme h1 a:hover,.default-theme h2 a:hover,.default-theme h3 a:hover,.default-theme h4 a:hover,.default-theme h5 a:hover,.default-theme h6 a:hover{color:inherit;text-decoration:none}.default-theme pre,.default-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.default-theme pre code{display:block}.default-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.default-theme figure{margin:0;display:inline-block}.default-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.default-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.default-theme div[inline]>figure{display:inline-block;padding-right:.5em}.default-theme div[inline]>figure img{padding:0;border:none}.default-theme h1,.default-theme h2,.default-theme h3,.default-theme h4,.default-theme h5,.default-theme h6{margin:1.4em 0 .8em;font-weight:700}.default-theme a{text-decoration:none;color:#2d8cf0;transition:color .3s}.default-theme a:hover{color:#73d13d}.default-theme img{display:block;margin:0 auto;max-width:100%;box-sizing:border-box;padding:5px;border:1px solid #e6e6e6;border-radius:3px}.default-theme p{line-height:1.6;margin:0;padding:.5rem 0}.default-theme p:empty{display:none}.default-theme code{color:#3594f7;background-color:#3baafa1a;display:inline-block;padding:0 4px;border-radius:2px;line-height:22px}.default-theme blockquote{margin:20px 0;padding:.5em 1.2em;line-height:2em;background-color:#ececec;border-left:5px solid #35b378;display:block}.default-theme blockquote p{padding:0}.default-theme pre{position:relative;margin:20px 0;border-radius:5px;box-shadow:#0005 0 2px 2px;line-height:1.6}.default-theme pre code{position:relative;padding:1em;background-color:#282c34;color:#a9b7c6;border-radius:0 0 5px 5px}.default-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer}.default-theme pre:before{content:"";display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAACCCAYAAADVN8idAAAgAElEQVR4nO2de5QU5Zn/v1VdVX2/zQwMzDCDgCBKOIx4myXLRlnYGDlhzWWDSTxkhXBQo2iS34kmavb3C5qo5+yqqBs5xNG4ZpVskjXk6BrhqAkbdoyXgSUoiqgMzDjAzPS1+lLX3x/TYNU7F6C7untm+vn8Ne/bVdVvP+8777fe2/MABEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQExKu2BtN03SyHGVhxdS61jk+77xWr3dWk9c7Y4okTakThbqAIIa8POcTeF4EAM0w1KxhZtKamhxUtcETinKiN5s92p3Nfngok31vx/HB7mr/FmLisaItMGv2NPfclqnCrKYGoXVqWJxWF+TrAj4u5JE4n+jiRZMzoWmmmlPMTDpjJgdTxuDxhNrX2691HzmuffhBX/7gjj3pD6v9W4iJx9TFwXqxWWrlG6UmforYiIhQb4ZcEcPPBzjJ5eZd4AHA0GGYip7nZSPNJfU44tqAcUI9ZhxTetUepfv4W6mBav+W08FxRUvZ0P3F3jjehHBByM+3RyNLLw6H29vCwQubPJ6ZhY/aS3x0JwD05nKH9yRSXW8kEp2dsfiu/UnZKPG5xCRiQYuHb5/vvfyieZ4lbXO8FzU1uE62vwtLfHQXAPT064f3Hsq++cZ7ud2vHci+uv9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2y+9/KL53mWLJrjvajgug0oXRy7gKEYgXsPZd98473c7tcOZF/df4SOQBB2pl9V/ylxvncR5novKLhuA0oXxg5gKEag+X72bfVAdm85d38WCwnhGKyYWtc6x+ed1+r1zmryemdMkaQpdaJQFxDEkJfnfALPiwCgGYaaNYxMWtOSg6o2eCKvnOjNZY92Z7MfHspk3yNn2EQxrGgLzJo9zT23Zaowq6lebJ0a4adFg0Jd0MeFPBLnEwRuqP1ppppTzEwqYyZjKW3weNzo6x1Qu7uPax9+2Jc/uGNP+sNq/xZi4jF1cbBebJZa+UapiZ8iNiIi1JshV8Tw8wFOcrl511D0IUOHweWNPDJ6mkvqccS1AeOEesw4pvSqPUp3tSJCnA2VOjFAEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEAQxzvj/snGtbrdYI/0AAAAASUVORK5CYII=);height:32px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:0;border-top-left-radius:5px;border-top-right-radius:5px;background-position:10px 10px}.default-theme table{width:100%;table-layout:fixed;overflow:auto;border-spacing:0;border-collapse:collapse}.default-theme table tr th,.default-theme table tr td{word-wrap:break-word;padding:6px 13px;border:1px solid #e6e6e6}.default-theme table tr:nth-child(2n){background-color:#fafafa}.default-theme table tr:hover{background-color:#eee}.default-theme ol,.default-theme ul{margin:.6em 0;padding-left:1.6em}.default-theme ol li,.default-theme ul li{line-height:1.6;margin:.5em 0}.md-dark .default-theme{color:#999}.md-dark .default-theme ::-webkit-scrollbar-corner,.md-dark .default-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .default-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .default-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .default-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .default-theme hr{border-color:#2d2d2d}.md-dark .default-theme h1,.md-dark .default-theme h2,.md-dark .default-theme h3,.md-dark .default-theme h4,.md-dark .default-theme h5,.md-dark .default-theme h6,.md-dark .default-theme strong{color:#999}.md-dark .default-theme img{border-color:#2d2d2d}.md-dark .default-theme blockquote{background-color:#111}.md-dark .default-theme pre code{background-color:#1a1a1a;color:#a9b7c6}.md-dark .default-theme pre .copy-button{color:#999}.md-dark .default-theme pre:before{background-color:#1a1a1a}.md-dark .default-theme table tr th,.md-dark .default-theme table tr td{border-color:#2d2d2d}.md-dark .default-theme table tr:nth-child(2n){background-color:#0c0c0c}.md-dark .default-theme table tr:hover{background-color:#191919}.github-theme{line-height:1.5}.github-theme ::-webkit-scrollbar{width:6px;height:6px}.github-theme ::-webkit-scrollbar-corner,.github-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.github-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.github-theme ::-webkit-scrollbar-button:vertical{display:none}.github-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.github-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.github-theme h1,.github-theme h2,.github-theme h3,.github-theme h4,.github-theme h5,.github-theme h6{position:relative;word-break:break-all}.github-theme h1 a,.github-theme h2 a,.github-theme h3 a,.github-theme h4 a,.github-theme h5 a,.github-theme h6 a{color:inherit}.github-theme h1 a:hover,.github-theme h2 a:hover,.github-theme h3 a:hover,.github-theme h4 a:hover,.github-theme h5 a:hover,.github-theme h6 a:hover{color:inherit;text-decoration:none}.github-theme pre,.github-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.github-theme pre code{display:block}.github-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.github-theme figure{margin:0;display:inline-block}.github-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.github-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.github-theme div[inline]>figure{display:inline-block;padding-right:.5em}.github-theme div[inline]>figure img{padding:0;border:none}.github-theme h1,.github-theme h2,.github-theme h3,.github-theme h4,.github-theme h5,.github-theme h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.github-theme h1{padding-bottom:.3em;font-size:2em;border-bottom:1px solid #d9dee4}.github-theme h2{padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid #d9dee4}.github-theme h3{font-size:1.25em}.github-theme h4{font-size:1em}.github-theme h5{font-size:.875em}.github-theme h6{font-size:.85em;color:#2d3339}.github-theme a{text-decoration:none;color:#539bf5}.github-theme a:hover{text-decoration:underline}.github-theme img{max-width:100%;box-sizing:content-box;background-color:#fff}.github-theme p,.github-theme blockquote,.github-theme ul,.github-theme ol,.github-theme dl,.github-theme table,.github-theme pre,.github-theme details{margin-top:0;margin-bottom:16px}.github-theme p:empty{display:none}.github-theme code{padding:.2em .4em;margin:0;background-color:#eff1f2;border-radius:6px}.github-theme blockquote{padding:0 1em;color:#57606a;border-left:.25em solid #d0d7de}.github-theme pre{background-color:#f6f8fa;border-radius:6px;position:relative}.github-theme pre code{position:relative;padding:1em;line-height:1.45;margin-bottom:0;word-break:normal;letter-spacing:1px}.github-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;display:none}.github-theme pre:hover .copy-button{display:initial}.github-theme table{display:block;max-width:100%;overflow:auto;border-spacing:0;border-collapse:collapse}.github-theme table tr{background-color:#fff;border-top:1px solid #d8dee4}.github-theme table tr th,.github-theme table tr td{padding:6px 13px;border:1px solid #d0d7de}.github-theme table tr:nth-child(2n){background-color:#f7f8fa}.github-theme ol,.github-theme ul{padding-left:2em}.github-theme ol li+li,.github-theme ul li+li{margin-top:.25em}.md-dark .github-theme{color:#c9d1d9}.md-dark .github-theme ::-webkit-scrollbar-corner,.md-dark .github-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .github-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .github-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .github-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .github-theme hr{border-color:#2d2d2d}.md-dark .github-theme h1,.md-dark .github-theme h2,.md-dark .github-theme h3,.md-dark .github-theme h4,.md-dark .github-theme h5,.md-dark .github-theme h6,.md-dark .github-theme strong{color:#c9d1d9}.md-dark .github-theme h1,.md-dark .github-theme h2{border-bottom:1px solid #373e47}.md-dark .github-theme img{border-color:#2d2d2d}.md-dark .github-theme blockquote{border-color:#444c56;color:#8b949e;background-color:initial}.md-dark .github-theme code{background-color:#2d3339;color:#c9d1d9}.md-dark .github-theme pre{background-color:#2d333b}.md-dark .github-theme pre code{color:#a9b7c6;background-color:#161b22}.md-dark .github-theme pre .copy-button{color:#999}.md-dark .github-theme pre:before{background-color:#1a1a1a}.md-dark .github-theme table tr{background-color:transparent;border-color:gray}.md-dark .github-theme table tr th,.md-dark .github-theme table tr td{border-color:#30363d}.md-dark .github-theme table tr:nth-child(2n){background-color:#161b22}.vuepress-theme{font-size:16px;color:#304455}.vuepress-theme ::-webkit-scrollbar{width:6px;height:6px}.vuepress-theme ::-webkit-scrollbar-corner,.vuepress-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.vuepress-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.vuepress-theme ::-webkit-scrollbar-button:vertical{display:none}.vuepress-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.vuepress-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.vuepress-theme h1,.vuepress-theme h2,.vuepress-theme h3,.vuepress-theme h4,.vuepress-theme h5,.vuepress-theme h6{position:relative;word-break:break-all}.vuepress-theme h1 a,.vuepress-theme h2 a,.vuepress-theme h3 a,.vuepress-theme h4 a,.vuepress-theme h5 a,.vuepress-theme h6 a{color:inherit}.vuepress-theme h1 a:hover,.vuepress-theme h2 a:hover,.vuepress-theme h3 a:hover,.vuepress-theme h4 a:hover,.vuepress-theme h5 a:hover,.vuepress-theme h6 a:hover{color:inherit;text-decoration:none}.vuepress-theme pre,.vuepress-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.vuepress-theme pre code{display:block}.vuepress-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.vuepress-theme figure{margin:0;display:inline-block}.vuepress-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.vuepress-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.vuepress-theme h1,.vuepress-theme h2,.vuepress-theme h3,.vuepress-theme h4,.vuepress-theme h5,.vuepress-theme h6{font-weight:600;color:#273849;line-height:1.45;position:relative;margin-top:1em}.vuepress-theme h1{font-size:2.2em;margin:1em 0}.vuepress-theme h2{font-size:1.65em;padding-bottom:.3em;border-bottom:1px solid #eaecef}.vuepress-theme h3{line-height:1.35em}.vuepress-theme a{text-decoration:none;color:#42b983;font-weight:600}.vuepress-theme img{max-width:100%}.vuepress-theme div[inline]>figure{display:inline-block;padding-right:.5em}.vuepress-theme div[inline]>figure img{padding:0;border:none}.vuepress-theme em{color:#4f5959;padding:0 6px 0 4px}.vuepress-theme code{color:#d63200;padding:3px 5px;margin:0 2px;border-radius:2px;white-space:nowrap}.vuepress-theme p{word-spacing:.05em}.vuepress-theme p:empty{display:none}.vuepress-theme blockquote{margin:2em 0;padding-left:20px;border-left:4px solid #42b983}.vuepress-theme blockquote p{margin-left:0;margin-top:1.2em;margin-bottom:0;padding:0}.vuepress-theme pre,.vuepress-theme code{background-color:#f8f8f8}.vuepress-theme pre{border-radius:2px;position:relative;font-size:.875em;margin:1em 0}.vuepress-theme pre code{overflow-x:auto;color:#747384;white-space:pre;padding:1em;font-size:.85rem;line-height:1.6rem}.vuepress-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;display:none}.vuepress-theme pre:hover .copy-button{display:initial}.vuepress-theme table{border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto}.vuepress-theme table tr{border-top:1px solid #dfe2e5}.vuepress-theme table tr th,.vuepress-theme table tr td{border:1px solid #dfe2e5;padding:.6em 1em}.vuepress-theme table tr:nth-child(2n){background-color:#f6f8fa}.vuepress-theme p,.vuepress-theme ol,.vuepress-theme ul{line-height:1.6em;margin:1.2em 0;position:relative;z-index:1}.vuepress-theme ul,.vuepress-theme ol{padding-left:1.25em;line-height:1.4em}.vuepress-theme ul li,.vuepress-theme ol li{margin:1.2em 0}.md-dark .vuepress-theme{color:#999}.md-dark .vuepress-theme ::-webkit-scrollbar-corner,.md-dark .vuepress-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .vuepress-theme hr{border-color:#2d2d2d}.md-dark .vuepress-theme h1,.md-dark .vuepress-theme h2,.md-dark .vuepress-theme h3,.md-dark .vuepress-theme h4,.md-dark .vuepress-theme h5,.md-dark .vuepress-theme h6,.md-dark .vuepress-theme strong{color:#999}.md-dark .vuepress-theme h2{border-color:#2d2d2d}.md-dark .vuepress-theme code{color:#e06c75;background-color:#1a1a1a}.md-dark .vuepress-theme pre{background-color:#1a1a1a}.md-dark .vuepress-theme pre code{background-color:#1a1a1a;color:#999}.md-dark .vuepress-theme pre:before{background-color:#1a1a1a}.md-dark .vuepress-theme table tr th,.md-dark .vuepress-theme table tr td{border-color:#2d2d2d}.md-dark .vuepress-theme table tr:nth-child(2n){background-color:#0c0c0c}
|
|
1
|
+
.md-divider{position:relative;display:inline-block;width:1px;top:.1em;height:.9em;margin:0 8px;background-color:#e6e6e6}.md-dark .md-divider{background-color:#2d2d2d}.md-dropdown{overflow:hidden;box-sizing:border-box;position:absolute;transition:all .3s;opacity:1;z-index:10000;background-color:#fff}.md-dropdown-hidden{opacity:0;z-index:-10000}.md-dropdown-overlay{margin-top:6px}.md-dark .md-dropdown{background-color:#000}.md-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20000;height:100%;background-color:#00000073}.md-modal{display:block;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;border-radius:3px;border:1px solid #e6e6e6;position:fixed;z-index:20001;flex-direction:column}.md-modal-header{cursor:grab;display:flex;justify-content:space-between;padding:10px 24px;color:#222;font-weight:600;font-size:16px;line-height:22px;word-wrap:break-word;user-select:none;border-bottom:1px solid #e6e6e6;position:relative}.md-modal-body{padding:24px;font-size:14px;word-wrap:break-word;height:calc(100% - 61px);box-sizing:border-box}.md-modal .md-modal-func{position:absolute;top:10px;right:10px}.md-modal .md-modal-func .md-modal-adjust,.md-modal .md-modal-func .md-modal-close{cursor:pointer;width:24px;height:24px;line-height:24px;text-align:center;display:inline-block}.md-modal .md-modal-func .md-modal-adjust{padding-right:10px}.animation{animation-duration:.15s}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoom-in{animation-name:zoomIn;animation-duration:.15s}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoom-out{animation-name:zoomOut;animation-duration:.15s}.md-clip{position:relative;display:flex;height:calc(100% - 32px)}.md-clip-main,.md-clip-preview{width:50%;height:100%;border:1px #e6e6e6 solid}.md-clip-main{margin-right:1em}.md-clip-main .md-clip-cropper{position:relative;width:100%;height:100%}.md-clip-main .md-clip-cropper .md-clip-delete{position:absolute;top:0;right:0;font-size:0;background-color:#ececec;border-bottom-left-radius:4px;color:#222;cursor:pointer}.md-clip-main .md-clip-upload{display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer}.md-clip-main .md-clip-upload .md-icon{width:auto;height:40px}.md-clip-preview-target{width:100%;height:100%;overflow:hidden}.md-dark .md-clip-main,.md-dark .md-clip-preview{border:1px #2d2d2d solid}.md-dark .md-clip-main{margin-right:1em}.md-dark .md-clip-main .md-clip-cropper .md-clip-delete{background-color:#111;color:#999}.md-catalog{position:absolute;overflow:auto;top:44px;right:0;height:calc(100% - 44px);background-color:#f6f6f6;border-left:1px solid #e6e6e6;width:200px;box-sizing:border-box;margin:0;padding:5px 10px;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";z-index:2}.md-catalog-link{padding:5px 0 5px 8px;line-height:1.2}.md-catalog-link span{position:relative;overflow:hidden;color:#222;white-space:nowrap;text-overflow:ellipsis;transition:color .3s;cursor:pointer}.md-catalog-link span:hover{color:#73d13d}.md-catalog-link>.md-catalog-link{padding-top:5px;padding-bottom:5px}.md-catalog-link>.md-catalog-link:first-of-type{padding-top:10px}.md-catalog-link>.md-catalog-link:last-of-type{padding-bottom:0}.md-dark .md-catalog{background-color:#000;border-left-color:#2d2d2d}.md-dark .md-catalog-link span{color:#999}.md-dark .md-catalog-link span:hover{color:#73d13d}.md{width:100%;height:400px;position:relative;box-sizing:border-box;border:1px solid #e6e6e6;display:flex;flex-direction:column;overflow:hidden;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI Variable,Segoe UI,system-ui,ui-sans-serif,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.md ::-webkit-scrollbar{width:6px;height:6px}.md ::-webkit-scrollbar-corner,.md ::-webkit-scrollbar-track{background-color:#e2e2e2}.md ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.md ::-webkit-scrollbar-button:vertical{display:none}.md ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.md ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.md-icon{width:24px;height:24px;fill:currentColor;overflow:hidden}.md-menu{margin:0;padding:0;border-radius:3px;border:1px solid #e6e6e6}.md-menu-item{list-style:none;font-size:12px;color:#222;padding:4px 10px;cursor:pointer}.md-menu-item:first-of-type{padding-top:8px}.md-menu-item:last-of-type{padding-bottom:8px}.md-menu-item:hover{background-color:#f5f7fa}.md-table-shape{padding:4px;border-radius:3px;border:1px solid #e6e6e6;display:flex;flex-direction:column}.md-table-shape-row{display:flex}.md-table-shape-col{padding:2px;cursor:pointer}.md-table-shape-col-default{width:16px;height:16px;background-color:#e0e0e0;border-radius:3px;transition:all .2s}.md-table-shape-col-include{background-color:#aaa}.md-toolbar-wrapper{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.md-toolbar-wrapper::-webkit-scrollbar{height:0!important}.md-toolbar-wrapper .md-toolbar{min-width:850px;padding:4px;height:35px;border-bottom:1px solid #e6e6e6;display:flex;justify-content:space-between;align-items:center;box-sizing:content-box}.md-toolbar-wrapper .md-toolbar-item{height:24px;display:inline-block;padding:0 4px;transition:all .3s;border-radius:0;cursor:pointer;list-style:none;user-select:none}.md-toolbar-wrapper .md-toolbar-item:hover{border-radius:3px;background-color:#e6e6e6}.md-toolbar-wrapper .md-toolbar-left,.md-toolbar-wrapper .md-toolbar-right{padding:1px 0;display:flex;align-items:center}.md-content{display:flex;height:calc(100% - 44px)}.md-content .md-input-wrapper{flex:1;box-sizing:border-box}.md-content .md-input-wrapper textarea{width:100%;height:100%;padding:10px 20px;box-sizing:border-box;font-size:1em;font-family:-apple-system,Consolas,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;resize:none;border:none;outline:none;overflow-y:scroll;color:inherit;background-color:inherit}.md-content .md-input-wrapper textarea.textarea-only{overflow-y:auto}.md-content .md-preview-wrapper{flex:1;box-sizing:border-box;overflow:auto}.md-content .md-preview,.md-content .md-html{padding:10px 20px;font-size:16px;position:relative;word-break:break-all}.md-form-item{margin-bottom:14px;text-align:center}.md-form-item:last-of-type{margin-bottom:0}.md-lable{font-size:14px;color:#222;width:80px;text-align:center;display:inline-block}.md-input{border-radius:4px;padding:4px 11px;color:#222;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #e6e6e6;transition:all .2s}.md-input:focus{border-color:#57a3f3;outline:0;box-shadow:0 0 0 2px #2d8cf033}.md-btn{font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid transparent;white-space:nowrap;user-select:none;height:32px;padding:0 15px;font-size:14px;border-radius:4px;transition:all .2s linear;color:#515a6e;background-color:#fff;border-color:#e6e6e6;margin-left:10px}.md-btn:first-of-type{margin-left:0}.md-btn:hover{color:#57a3f3;background-color:#fff;border-color:#57a3f3}.md-btn-row{width:100%}.md-katex-block{text-align:center;margin:20px}.md-previewOnly{border:none;height:auto}.md-previewOnly .md-content{height:100%}.md-previewOnly .md-preview{padding:0}.md-dark{color:#999;background-color:#000;border-color:#2d2d2d}.md-dark .md-toolbar{border-color:#2d2d2d}.md-dark .md-toolbar-item:hover{background-color:#1b1a1a}.md-dark .md-table-shape{border-color:#2d2d2d}.md-dark .md-table-shape-col-default{background-color:#222}.md-dark .md-table-shape-col-include{background-color:#555}.md-dark .md-modal{background-color:#000;border-color:#2d2d2d}.md-dark .md-modal-header{border-color:#2d2d2d;color:#999}.md-dark .md-modal-header .md-modal-title{color:#999}.md-dark .md-dropdown-overlay{background-color:#000}.md-dark .md-menu{border-color:#2d2d2d}.md-dark .md-menu{background-color:inherit}.md-dark .md-menu-item{color:#999}.md-dark .md-menu-item:hover{background-color:#1b1a1a}.md-dark .md-lable{color:#999}.md-dark .md-input,.md-dark .md-btn{color:#999;background-color:#000;border-color:#2d2d2d}.md-dark ::-webkit-scrollbar-corner,.md-dark ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;width:auto!important;height:auto!important;z-index:10000}.mermaid,.md-katex-inline,.md-katex-block{display:none}.mermaid[data-processed],.md-katex-inline[data-processed]{display:initial}.md-katex-block[data-processed]{display:block}.md-scrn span[rn-wrapper]{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;user-select:none;counter-reset:linenumber}.md-scrn span[rn-wrapper]>span{display:block;pointer-events:none;counter-increment:linenumber}.md-scrn span[rn-wrapper]>span:before{color:#999;display:block;padding-right:.5em;text-align:right;content:counter(linenumber)}.md-scrn pre code{padding-left:3.5em!important}.default-theme ::-webkit-scrollbar{width:6px;height:6px}.default-theme ::-webkit-scrollbar-corner,.default-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.default-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.default-theme ::-webkit-scrollbar-button:vertical{display:none}.default-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.default-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.default-theme h1,.default-theme h2,.default-theme h3,.default-theme h4,.default-theme h5,.default-theme h6{position:relative;word-break:break-all}.default-theme h1 a,.default-theme h2 a,.default-theme h3 a,.default-theme h4 a,.default-theme h5 a,.default-theme h6 a{color:inherit}.default-theme h1 a:hover,.default-theme h2 a:hover,.default-theme h3 a:hover,.default-theme h4 a:hover,.default-theme h5 a:hover,.default-theme h6 a:hover{color:inherit;text-decoration:none}.default-theme pre,.default-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.default-theme pre code{display:block}.default-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.default-theme figure{margin:0;display:inline-block}.default-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.default-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.default-theme div[inline]>figure{display:inline-block;padding-right:.5em}.default-theme div[inline]>figure img{padding:0;border:none}.default-theme h1,.default-theme h2,.default-theme h3,.default-theme h4,.default-theme h5,.default-theme h6{margin:1.4em 0 .8em;font-weight:700}.default-theme a{text-decoration:none;color:#2d8cf0;transition:color .3s}.default-theme a:hover{color:#73d13d}.default-theme img{display:block;margin:0 auto;max-width:100%;box-sizing:border-box;padding:5px;border:1px solid #e6e6e6;border-radius:3px}.default-theme p{line-height:1.6;margin:0;padding:.5rem 0}.default-theme p:empty{display:none}.default-theme code{color:#3594f7;background-color:#3baafa1a;display:inline-block;padding:0 4px;border-radius:2px;line-height:22px}.default-theme blockquote{margin:20px 0;padding:.5em 1.2em;line-height:2em;background-color:#ececec;border-left:5px solid #35b378;display:block}.default-theme blockquote p{padding:0}.default-theme pre{position:relative;margin:20px 0;border-radius:5px;box-shadow:#0005 0 2px 2px;line-height:1.6}.default-theme pre code{position:relative;padding:1em;background-color:#282c34;color:#a9b7c6;border-radius:0 0 5px 5px}.default-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer}.default-theme pre:before{content:"";display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAACCCAYAAADVN8idAAAgAElEQVR4nO2de5QU5Zn/v1VdVX2/zQwMzDCDgCBKOIx4myXLRlnYGDlhzWWDSTxkhXBQo2iS34kmavb3C5qo5+yqqBs5xNG4ZpVskjXk6BrhqAkbdoyXgSUoiqgMzDjAzPS1+lLX3x/TYNU7F6C7untm+vn8Ne/bVdVvP+8777fe2/MABEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQExKu2BtN03SyHGVhxdS61jk+77xWr3dWk9c7Y4okTakThbqAIIa8POcTeF4EAM0w1KxhZtKamhxUtcETinKiN5s92p3Nfngok31vx/HB7mr/FmLisaItMGv2NPfclqnCrKYGoXVqWJxWF+TrAj4u5JE4n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03WgW923/X9Sv/zX5wfKPgVFVJ/mq6dcxC0Nfpaf6ZmD0whiBejAR7lD+n8nf9/zXP+bp7+8PNSkEJ6kvT4UWdHQsPKK+rrlc/z++aicKHYekuUDrwwM7txxov958gpTm1w2zxdZsdi/6vI235XnNknzUTlR7Hq/Vznw6p7MizvekreTV5japGG+3+25NLiUXxxYghnSzEJ2uYVxaL/DUeWw+WZ6d/b15K5qOMlmqWkhtLIg5Ofbo5GlF4fD7W3h4IUF121A6eLYCQzFCNyTSHW9kUh0dsbiu+gIBGFlQYuHv2y+9/KL53mWLJrjvajgug0oXRy7gKEYgXsPZd98473c7tcOZF/df4SOQBB2pl9V/ylxvncR5novKLhuA0oXxg5gKEag+X72bfVAdm85d38WCwnhGKyYWtc6x+ed1+r1zmryemdMkaQpdaJQFxDEkJfnfALPiwCgGYaaNYxMWtOSg6o2eCKvnOjNZY92Z7MfHspk3yNn2EQxrGgLzJo9zT23Zaowq6lebJ0a4adFg0Jd0MeFPBLnEwRuqP1ppppTzEwqYyZjKW3weNzo6x1Qu7uPax9+2Jc/uGNP+sNq/xZi4jF1cbBebJZa+UapiZ8iNiIi1JshV8Tw8wFOcrl511D0IUOHweWNPDJ6mkvqccS1AeOEesw4pvSqPUp3tSJCnA2VOjFAEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEARBEAQxzvj/snGtbrdYI/0AAAAASUVORK5CYII=);height:32px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:0;border-top-left-radius:5px;border-top-right-radius:5px;background-position:10px 10px}.default-theme table{width:100%;table-layout:fixed;overflow:auto;border-spacing:0;border-collapse:collapse}.default-theme table tr th,.default-theme table tr td{word-wrap:break-word;padding:6px 13px;border:1px solid #e6e6e6}.default-theme table tr:nth-child(2n){background-color:#fafafa}.default-theme table tr:hover{background-color:#eee}.default-theme ol,.default-theme ul{margin:.6em 0;padding-left:1.6em}.default-theme ol li,.default-theme ul li{line-height:1.6;margin:.5em 0}.md-dark .default-theme{color:#999}.md-dark .default-theme ::-webkit-scrollbar-corner,.md-dark .default-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .default-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .default-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .default-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .default-theme hr{border-color:#2d2d2d}.md-dark .default-theme h1,.md-dark .default-theme h2,.md-dark .default-theme h3,.md-dark .default-theme h4,.md-dark .default-theme h5,.md-dark .default-theme h6,.md-dark .default-theme strong{color:#999}.md-dark .default-theme img{border-color:#2d2d2d}.md-dark .default-theme blockquote{background-color:#111}.md-dark .default-theme pre code{background-color:#1a1a1a;color:#a9b7c6}.md-dark .default-theme pre .copy-button{color:#999}.md-dark .default-theme pre:before{background-color:#1a1a1a}.md-dark .default-theme table tr th,.md-dark .default-theme table tr td{border-color:#2d2d2d}.md-dark .default-theme table tr:nth-child(2n){background-color:#0c0c0c}.md-dark .default-theme table tr:hover{background-color:#191919}.github-theme{line-height:1.5}.github-theme ::-webkit-scrollbar{width:6px;height:6px}.github-theme ::-webkit-scrollbar-corner,.github-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.github-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.github-theme ::-webkit-scrollbar-button:vertical{display:none}.github-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.github-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.github-theme h1,.github-theme h2,.github-theme h3,.github-theme h4,.github-theme h5,.github-theme h6{position:relative;word-break:break-all}.github-theme h1 a,.github-theme h2 a,.github-theme h3 a,.github-theme h4 a,.github-theme h5 a,.github-theme h6 a{color:inherit}.github-theme h1 a:hover,.github-theme h2 a:hover,.github-theme h3 a:hover,.github-theme h4 a:hover,.github-theme h5 a:hover,.github-theme h6 a:hover{color:inherit;text-decoration:none}.github-theme pre,.github-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.github-theme pre code{display:block}.github-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.github-theme figure{margin:0;display:inline-block}.github-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.github-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.github-theme div[inline]>figure{display:inline-block;padding-right:.5em}.github-theme div[inline]>figure img{padding:0;border:none}.github-theme h1,.github-theme h2,.github-theme h3,.github-theme h4,.github-theme h5,.github-theme h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.github-theme h1{padding-bottom:.3em;font-size:2em;border-bottom:1px solid #d9dee4}.github-theme h2{padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid #d9dee4}.github-theme h3{font-size:1.25em}.github-theme h4{font-size:1em}.github-theme h5{font-size:.875em}.github-theme h6{font-size:.85em;color:#2d3339}.github-theme a{text-decoration:none;color:#539bf5}.github-theme a:hover{text-decoration:underline}.github-theme img{max-width:100%;box-sizing:content-box;background-color:#fff}.github-theme p,.github-theme blockquote,.github-theme ul,.github-theme ol,.github-theme dl,.github-theme table,.github-theme pre,.github-theme details{margin-top:0;margin-bottom:16px}.github-theme p:empty{display:none}.github-theme code{padding:.2em .4em;margin:0;background-color:#eff1f2;border-radius:6px}.github-theme blockquote{padding:0 1em;color:#57606a;border-left:.25em solid #d0d7de}.github-theme pre{background-color:#f6f8fa;border-radius:6px;position:relative}.github-theme pre code{position:relative;padding:1em;line-height:1.45;margin-bottom:0;word-break:normal;letter-spacing:1px}.github-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;display:none}.github-theme pre:hover .copy-button{display:initial}.github-theme table{display:block;max-width:100%;overflow:auto;border-spacing:0;border-collapse:collapse}.github-theme table tr{background-color:#fff;border-top:1px solid #d8dee4}.github-theme table tr th,.github-theme table tr td{padding:6px 13px;border:1px solid #d0d7de}.github-theme table tr:nth-child(2n){background-color:#f7f8fa}.github-theme ol,.github-theme ul{padding-left:2em}.github-theme ol li+li,.github-theme ul li+li{margin-top:.25em}.md-dark .github-theme{color:#c9d1d9}.md-dark .github-theme ::-webkit-scrollbar-corner,.md-dark .github-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .github-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .github-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .github-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .github-theme hr{border-color:#2d2d2d}.md-dark .github-theme h1,.md-dark .github-theme h2,.md-dark .github-theme h3,.md-dark .github-theme h4,.md-dark .github-theme h5,.md-dark .github-theme h6,.md-dark .github-theme strong{color:#c9d1d9}.md-dark .github-theme h1,.md-dark .github-theme h2{border-bottom:1px solid #373e47}.md-dark .github-theme img{border-color:#2d2d2d}.md-dark .github-theme blockquote{border-color:#444c56;color:#8b949e;background-color:initial}.md-dark .github-theme code{background-color:#2d3339;color:#c9d1d9}.md-dark .github-theme pre{background-color:#2d333b}.md-dark .github-theme pre code{color:#a9b7c6;background-color:#161b22}.md-dark .github-theme pre .copy-button{color:#999}.md-dark .github-theme pre:before{background-color:#1a1a1a}.md-dark .github-theme table tr{background-color:transparent;border-color:gray}.md-dark .github-theme table tr th,.md-dark .github-theme table tr td{border-color:#30363d}.md-dark .github-theme table tr:nth-child(2n){background-color:#161b22}.vuepress-theme{font-size:16px;color:#304455}.vuepress-theme ::-webkit-scrollbar{width:6px;height:6px}.vuepress-theme ::-webkit-scrollbar-corner,.vuepress-theme ::-webkit-scrollbar-track{background-color:#e2e2e2;border-radius:2px}.vuepress-theme ::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.vuepress-theme ::-webkit-scrollbar-button:vertical{display:none}.vuepress-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#00000059}.vuepress-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#00000061}.vuepress-theme h1,.vuepress-theme h2,.vuepress-theme h3,.vuepress-theme h4,.vuepress-theme h5,.vuepress-theme h6{position:relative;word-break:break-all}.vuepress-theme h1 a,.vuepress-theme h2 a,.vuepress-theme h3 a,.vuepress-theme h4 a,.vuepress-theme h5 a,.vuepress-theme h6 a{color:inherit}.vuepress-theme h1 a:hover,.vuepress-theme h2 a:hover,.vuepress-theme h3 a:hover,.vuepress-theme h4 a:hover,.vuepress-theme h5 a:hover,.vuepress-theme h6 a:hover{color:inherit;text-decoration:none}.vuepress-theme pre,.vuepress-theme code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:#24292f}.vuepress-theme pre code{display:block}.vuepress-theme pre code .code-block{display:inline-block;width:100%;overflow:auto}.vuepress-theme figure{margin:0;display:inline-block}.vuepress-theme figure figcaption{color:#888;text-align:center;font-size:.875em;margin-top:5px}.vuepress-theme hr{height:1px;margin:10px 0;border:none;border-top:1px solid #eaecef}.vuepress-theme h1,.vuepress-theme h2,.vuepress-theme h3,.vuepress-theme h4,.vuepress-theme h5,.vuepress-theme h6{font-weight:600;color:#273849;line-height:1.45;position:relative;margin-top:1em}.vuepress-theme h1{font-size:2.2em;margin:1em 0}.vuepress-theme h2{font-size:1.65em;padding-bottom:.3em;border-bottom:1px solid #eaecef}.vuepress-theme h3{line-height:1.35em}.vuepress-theme a{text-decoration:none;color:#42b983;font-weight:600}.vuepress-theme img{max-width:100%}.vuepress-theme div[inline]>figure{display:inline-block;padding-right:.5em}.vuepress-theme div[inline]>figure img{padding:0;border:none}.vuepress-theme em{color:#4f5959;padding:0 6px 0 4px}.vuepress-theme code{color:#d63200;padding:3px 5px;margin:0 2px;border-radius:2px;white-space:nowrap}.vuepress-theme p{word-spacing:.05em}.vuepress-theme p:empty{display:none}.vuepress-theme blockquote{margin:2em 0;padding-left:20px;border-left:4px solid #42b983}.vuepress-theme blockquote p{margin-left:0;margin-top:1.2em;margin-bottom:0;padding:0}.vuepress-theme pre,.vuepress-theme code{background-color:#f8f8f8}.vuepress-theme pre{border-radius:2px;position:relative;font-size:.875em;margin:1em 0}.vuepress-theme pre code{overflow-x:auto;color:#747384;white-space:pre;padding:1em;font-size:.85rem;line-height:1.6rem}.vuepress-theme pre .copy-button{color:#999;position:absolute;font-size:12px;top:9px;right:10px;cursor:pointer;display:none}.vuepress-theme pre:hover .copy-button{display:initial}.vuepress-theme table{border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto}.vuepress-theme table tr{border-top:1px solid #dfe2e5}.vuepress-theme table tr th,.vuepress-theme table tr td{border:1px solid #dfe2e5;padding:.6em 1em}.vuepress-theme table tr:nth-child(2n){background-color:#f6f8fa}.vuepress-theme p,.vuepress-theme ol,.vuepress-theme ul{line-height:1.6em;margin:1.2em 0;position:relative;z-index:1}.vuepress-theme ul,.vuepress-theme ol{padding-left:1.25em;line-height:1.4em}.vuepress-theme ul li,.vuepress-theme ol li{margin:1.2em 0}.md-dark .vuepress-theme{color:#999}.md-dark .vuepress-theme ::-webkit-scrollbar-corner,.md-dark .vuepress-theme ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-dark .vuepress-theme ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-dark .vuepress-theme hr{border-color:#2d2d2d}.md-dark .vuepress-theme h1,.md-dark .vuepress-theme h2,.md-dark .vuepress-theme h3,.md-dark .vuepress-theme h4,.md-dark .vuepress-theme h5,.md-dark .vuepress-theme h6,.md-dark .vuepress-theme strong{color:#999}.md-dark .vuepress-theme h2{border-color:#2d2d2d}.md-dark .vuepress-theme code{color:#e06c75;background-color:#1a1a1a}.md-dark .vuepress-theme pre{background-color:#1a1a1a}.md-dark .vuepress-theme pre code{background-color:#1a1a1a;color:#999}.md-dark .vuepress-theme pre:before{background-color:#1a1a1a}.md-dark .vuepress-theme table tr th,.md-dark .vuepress-theme table tr td{border-color:#2d2d2d}.md-dark .vuepress-theme table tr:nth-child(2n){background-color:#0c0c0c}
|