text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fc70c6f8"],{"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3");var l=n("6b75");function r(e,t){if(e){if("string"===typeof e)return Object(l["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(l["a"])(e,t):void 0}}},"0cb2":function(e,t,n){var l=n("7b0b"),r=Math.floor,i="".replace,u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,s,o,c){var d=n+e.length,p=s.length,h=a;return void 0!==o&&(o=l(o),h=u),i.call(c,h,(function(l,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":u=o[i.slice(1,-1)];break;default:var a=+i;if(0===a)return l;if(a>p){var c=r(a/10);return 0===c?l:c<=p?void 0===s[c-1]?i.charAt(1):s[c-1]+i.charAt(1):l}u=s[a-1]}return void 0===u?"":u}))}},1834:function(e,t,n){},"25f0":function(e,t,n){"use strict";var l=n("5e77").PROPER,r=n("6eeb"),i=n("825a"),u=n("577e"),a=n("d039"),s=n("ad6d"),o="toString",c=RegExp.prototype,d=c[o],p=a((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),h=l&&d.name!=o;(p||h)&&r(RegExp.prototype,o,(function(){var e=i(this),t=u(e.source),n=e.flags,l=u(void 0===n&&e instanceof RegExp&&!("flags"in c)?s.call(e):n);return"/"+t+"/"+l}),{unsafe:!0})},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var l=n("6b75");function r(e){if(Array.isArray(e))return Object(l["a"])(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function i(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var u=n("06c5");function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e){return r(e)||i(e)||Object(u["a"])(e)||a()}},"2ca0":function(e,t,n){"use strict";var l=n("23e7"),r=n("06cf").f,i=n("50c4"),u=n("577e"),a=n("5a34"),s=n("1d80"),o=n("ab13"),c=n("c430"),d="".startsWith,p=Math.min,h=o("startsWith"),b=!c&&!h&&!!function(){var e=r(String.prototype,"startsWith");return e&&!e.writable}();l({target:"String",proto:!0,forced:!b&&!h},{startsWith:function(e){var t=u(s(this));a(e);var n=i(p(arguments.length>1?arguments[1]:void 0,t.length)),l=u(e);return d?d.call(t,l,n):t.slice(n,n+l.length)===l}})},"408a":function(e,t){var n=1..valueOf;e.exports=function(e){return n.call(e)}},"44e7":function(e,t,n){var l=n("861d"),r=n("c6b6"),i=n("b622"),u=i("match");e.exports=function(e){var t;return l(e)&&(void 0!==(t=e[u])?!!t:"RegExp"==r(e))}},4552:function(e,t,n){},"466d":function(e,t,n){"use strict";var l=n("d784"),r=n("825a"),i=n("50c4"),u=n("577e"),a=n("1d80"),s=n("dc4a"),o=n("8aa5"),c=n("14c3");l("match",(function(e,t,n){return[function(t){var n=a(this),l=void 0==t?void 0:s(t,e);return l?l.call(t,n):new RegExp(t)[e](u(n))},function(e){var l=r(this),a=u(e),s=n(t,l,a);if(s.done)return s.value;if(!l.global)return c(l,a);var d=l.unicode;l.lastIndex=0;var p,h=[],b=0;while(null!==(p=c(l,a))){var f=u(p[0]);h[b]=f,""===f&&(l.lastIndex=o(a,i(l.lastIndex),d)),b++}return 0===b?null:h}]}))},"4c34":function(e,t,n){"use strict";n("4552")},"4df4":function(e,t,n){"use strict";var l=n("0366"),r=n("7b0b"),i=n("9bdd"),u=n("e95a"),a=n("68ee"),s=n("07fa"),o=n("8418"),c=n("9a1f"),d=n("35a1");e.exports=function(e){var t=r(e),n=a(this),p=arguments.length,h=p>1?arguments[1]:void 0,b=void 0!==h;b&&(h=l(h,p>2?arguments[2]:void 0,2));var f,g,v,m,D,k,x=d(t),j=0;if(!x||this==Array&&u(x))for(f=s(t),g=n?new this(f):Array(f);f>j;j++)k=b?h(t[j],j):t[j],o(g,j,k);else for(m=c(t,x),D=m.next,g=n?new this:[];!(v=D.call(m)).done;j++)k=b?i(m,h,[v.value,j],!0):v.value,o(g,j,k);return g.length=j,g}},5319:function(e,t,n){"use strict";var l=n("d784"),r=n("d039"),i=n("825a"),u=n("1626"),a=n("5926"),s=n("50c4"),o=n("577e"),c=n("1d80"),d=n("8aa5"),p=n("dc4a"),h=n("0cb2"),b=n("14c3"),f=n("b622"),g=f("replace"),v=Math.max,m=Math.min,D=function(e){return void 0===e?e:String(e)},k=function(){return"$0"==="a".replace(/./,"$0")}(),x=function(){return!!/./[g]&&""===/./[g]("a","$0")}(),j=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));l("replace",(function(e,t,n){var l=x?"$":"$0";return[function(e,n){var l=c(this),r=void 0==e?void 0:p(e,g);return r?r.call(e,l,n):t.call(o(l),e,n)},function(e,r){var c=i(this),p=o(e);if("string"===typeof r&&-1===r.indexOf(l)&&-1===r.indexOf("$<")){var f=n(t,c,p,r);if(f.done)return f.value}var g=u(r);g||(r=o(r));var k=c.global;if(k){var x=c.unicode;c.lastIndex=0}var j=[];while(1){var y=b(c,p);if(null===y)break;if(j.push(y),!k)break;var C=o(y[0]);""===C&&(c.lastIndex=d(p,s(c.lastIndex),x))}for(var O="",w=0,A=0;A<j.length;A++){y=j[A];for(var F=o(y[0]),E=v(m(a(y.index),p.length),0),B=[],S=1;S<y.length;S++)B.push(D(y[S]));var T=y.groups;if(g){var $=[F].concat(B,E,p);void 0!==T&&$.push(T);var I=o(r.apply(void 0,$))}else I=h(F,p,E,B,T,r);E>=w&&(O+=p.slice(w,E)+I,w=E+F.length)}return O+p.slice(w)}]}),!j||!k||x)},"55f5":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return oe}));var l=n("f2bf"),r=Object.defineProperty,i=Object.defineProperties,u=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&c(e,n,t[n]);if(a)for(var n of a(t))o.call(t,n)&&c(e,n,t[n]);return e},p=(e,t)=>i(e,u(t)),h=(e,t,n)=>(c(e,"symbol"!==typeof t?t+"":t,n),n);const b="https://at.alicdn.com/t/font_2605852_khjf435c7th.js",f={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://unpkg.com/@highlightjs/cdn-assets@11.3.1/highlight.min.js"},g={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"},v={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"},m="https://cdn.jsdelivr.net/npm/screenfull@5.1.0/dist/screenfull.js",D=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","-","codeRow","code","link","image","table","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],k={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{title:"添加",descLable:"链接描述：",descLablePlaceHolder:"请输入描述...",urlLable:"链接地址：",UrlLablePlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",tips:"已复制！"}},"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",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!"}}};class x{constructor(){h(this,"pools",{})}remove(e,t,n){const l=this.pools[e],r=l&&this.pools[e][t];r&&(this.pools[e][t]=r.filter(e=>e===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 l=this.pools[e],r=l[t];r&&r.forEach(e=>{try{e(...n)}catch(l){console.error(t+"监听事件执行异常！",l)}})}}var j=new x;const y=(e,t)=>{const{editorId:n}=e,r=t=>{var n,l;return(null==(n=e.toolbars)?void 0:n.includes(t))&&!(null==(l=e.toolbarsExclude)?void 0:l.includes(t))},i=t=>{if(t.target===document.querySelector(`#${e.editorId}-textarea`))if(t.ctrlKey||t.metaKey)switch(t.code){case"KeyS":t.shiftKey?r("strikeThrough")&&j.emit(n,"replace","strikeThrough"):r("save")&&(j.emit(n,"onSave",e.modelValue),t.preventDefault());break;case"KeyB":r("bold")&&(j.emit(n,"replace","bold"),t.preventDefault());break;case"KeyU":t.shiftKey?r("unorderedList")&&(j.emit(n,"replace","unorderedList"),t.preventDefault()):r("underline")&&(j.emit(n,"replace","underline"),t.preventDefault());break;case"KeyI":t.shiftKey?r("image")&&(j.emit(n,"openModals","image"),t.preventDefault()):r("italic")&&(j.emit(n,"replace","italic"),t.preventDefault());break;case"Digit1":r("title")&&(j.emit(n,"replace","h1"),t.preventDefault());break;case"Digit2":r("title")&&(j.emit(n,"replace","h2"),t.preventDefault());break;case"Digit3":r("title")&&(j.emit(n,"replace","h3"),t.preventDefault());break;case"Digit4":r("title")&&(j.emit(n,"replace","h4"),t.preventDefault());break;case"Digit5":r("title")&&(j.emit(n,"replace","h5"),t.preventDefault());break;case"Digit6":r("title")&&(j.emit(n,"replace","h6"),t.preventDefault());break;case"ArrowUp":r("sup")&&(j.emit(n,"replace","sup"),t.preventDefault());break;case"ArrowDown":r("sub")&&(j.emit(n,"replace","sub"),t.preventDefault());break;case"KeyQ":j.emit(n,"replace","quote"),t.preventDefault();break;case"KeyO":r("orderedList")&&(j.emit(n,"replace","orderedList"),t.preventDefault());break;case"KeyC":if(t.shiftKey)r("code")&&(j.emit(n,"replace","code"),t.preventDefault());else{if(!t.altKey){t.preventDefault(),j.emit(n,"replace","ctrlC");break}r("codeRow")&&(j.emit(n,"replace","codeRow"),t.preventDefault())}break;case"KeyL":r("link")&&(j.emit(n,"openModals","link"),t.preventDefault());break;case"KeyZ":t.shiftKey?r("next")&&(j.emit(n,"ctrlShiftZ"),t.preventDefault()):r("revoke")&&(j.emit(n,"ctrlZ"),t.preventDefault());break;case"KeyF":t.shiftKey&&r("prettier")&&(j.emit(n,"replace","prettier"),t.preventDefault());break;case"KeyT":t.altKey&&t.shiftKey&&r("table")&&(j.emit(n,"replace","table"),t.preventDefault());break;case"KeyX":j.emit(n,"replace","ctrlX"),t.preventDefault();break;case"KeyD":t.preventDefault(),j.emit(n,"replace","ctrlD");break}else"Tab"===t.code&&(t.preventDefault(),t.shiftKey?j.emit(n,"replace","shiftTab"):j.emit(n,"replace","tab"))},u=e=>{if(e.clipboardData&&e.clipboardData.files.length>0){const t=e.clipboardData.files[0];/image\/.*/.test(t.type)&&(j.emit(n,"uploadImage",[t]),e.preventDefault())}};Object(l["A"])(()=>{e.previewOnly||(window.addEventListener("keydown",i),document.addEventListener("paste",u),j.on(n,{name:"onSave",callback(){e.onSave?e.onSave(e.modelValue):t.emit("onSave",e.modelValue)}}))}),Object(l["y"])(()=>{e.previewOnly||(window.removeEventListener("keydown",i),document.removeEventListener("paste",u))})},C=e=>{const{previewOnly:t,editorId:n,tabWidth:r,showCodeRowNumber:i,Cropper:u}=e;Object(l["E"])("editorId",n),Object(l["E"])("tabWidth",r);const a=Object(l["f"])(()=>{let t=f.atom;if(e.highlightCss)t=e.highlightCss;else switch(e.previewTheme){case"github":t="dark"===e.theme?f.githubDark:f.github;break}return{js:e.highlightJs,css:t}});Object(l["E"])("highlight",a),Object(l["E"])("historyLength",e.historyLength),Object(l["E"])("previewOnly",t),Object(l["E"])("showCodeRowNumber",i);const s=Object(l["f"])(()=>{const t=d(d({},k),e.languageUserDefined);return t[e.language]?t[e.language]:k["zh-CN"]});Object(l["E"])("usedLanguageText",s),Object(l["E"])("Cropper",u),Object(l["E"])("previewTheme",Object(l["f"])(()=>e.previewTheme))};var O=Object(l["p"])({setup(){return()=>Object(l["n"])("div",{class:ue+"-divider"},null)}});const w=({instance:e,ctx:t,props:n={}},l="default")=>{const r=(null==e?void 0:e.$slots[l])||(null==t?void 0:t.slots[l]);return(r?r(e):"")||n[l]};var A=Object(l["p"])({props:{trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>()=>{}}},setup(e,t){const n=ue+"-dropdown-hidden",r=Object(l["G"])({overlayClass:[n],overlayStyle:{},triggerHover:!1,overlayHover:!1}),i=Object(l["H"])(),u=Object(l["H"])(),a=()=>{"hover"===e.trigger&&(r.triggerHover=!0);const t=i.value,n=u.value,l=t.getBoundingClientRect(),a=t.offsetTop,s=t.offsetLeft,o=l.height,c=l.width;r.overlayStyle=p(d({},r.overlayStyle),{top:a+o+"px",left:s-n.offsetWidth/2+c/2+"px"}),e.onChange(!0)},s=()=>{r.overlayHover=!0};Object(l["V"])(()=>e.visible,e=>{e?r.overlayClass=r.overlayClass.filter(e=>e!==n):r.overlayClass.push(n)});const o=t=>{const n=i.value,l=u.value;n.contains(t.target)||l.contains(t.target)||e.onChange(!1)};let c=-1;const h=t=>{i.value===t.target?r.triggerHover=!1:r.overlayHover=!1,clearTimeout(c),c=window.setTimeout(()=>{r.overlayHover||r.triggerHover||e.onChange(!1)},10)};return Object(l["A"])(()=>{"click"===e.trigger?(i.value.addEventListener("click",a),document.addEventListener("click",o)):(i.value.addEventListener("mouseenter",a),i.value.addEventListener("mouseleave",h),u.value.addEventListener("mouseenter",s),u.value.addEventListener("mouseleave",h))}),Object(l["y"])(()=>{"click"===e.trigger?(i.value.removeEventListener("click",a),document.removeEventListener("click",o)):(i.value.removeEventListener("mouseenter",a),i.value.removeEventListener("mouseleave",h),u.value.removeEventListener("mouseenter",s),u.value.removeEventListener("mouseleave",h))}),()=>{const n=w({ctx:t}),a=w({props:e,ctx:t},"overlay"),s=Object(l["e"])(n instanceof Array?n[0]:n,{ref:i}),o=Object(l["n"])("div",{class:[ue+"-dropdown",r.overlayClass],style:r.overlayStyle,ref:u},[Object(l["n"])("div",{class:ue+"-dropdown-overlay"},[a instanceof Array?a[0]:a])]);return[s,o]}}});const F=(e,t=0,n=t)=>{e.setSelectionRange?setTimeout(()=>{e.setSelectionRange(t,n),e.focus()},0):console.log("无法重置光标位置！")},E=(e,t,n)=>{const{deviationStart:l=0,deviationEnd:r=0,direct:i=!1,select:u=!1}=n;let a="";if(e.selectionStart||0===e.selectionStart){const i=e.selectionStart,s=e.selectionEnd||0,{prefixVal:o=e.value.substring(0,i),subfixVal:c=e.value.substring(s,e.value.length)}=n;a=o+t+c,F(e,u?i+l:i+t.length+r,i+t.length+r)}else a+=t;return i&&(e.value=a),a},B=(e,t={newWindow:!0,nofollow:!0})=>{e||console.warn("无效的链接！");const n=document.createElement("a");n.href=e,n.style.display="none",t.newWindow&&(n.target="_blank"),t.nofollow&&(n.rel="noopener noreferrer"),document.body.appendChild(n),n.click(),document.body.removeChild(n)},S=(e,t)=>{const n=e.clientHeight,l=t.clientHeight,r=e.scrollHeight,i=t.scrollHeight,u=(r-n)/(i-l),a=I(()=>{e.removeEventListener("scroll",s),e.addEventListener("scroll",s),t.removeEventListener("scroll",s),t.addEventListener("scroll",s)},50),s=n=>{n.target===e?(t.removeEventListener("scroll",s),t.scrollTo({top:e.scrollTop/u}),a()):(e.removeEventListener("scroll",s),e.scrollTo({top:t.scrollTop*u}),a())};return a(),()=>{e.removeEventListener("scroll",s),t.removeEventListener("scroll",s)}},T=(e,t="image.png")=>{const n=e.split(","),l=n[0].match(/:(.*?);/);if(l){const e=l[1],r=atob(n[1]);let i=r.length;const u=new Uint8Array(i);while(i--)u[i]=r.charCodeAt(i);const a=new File([u],t,{type:e});return a}return null},$=e=>{if(!e.trim())return e;const t=e.split("\n"),n=['<span rn-wrapper aria-hidden="true">'];return t.forEach(()=>{n.push("<span></span>")}),n.push("</span>"),`<span class="code-block">${e}</span>${n.join("")}`},I=(e,t=200)=>{let n=0;return(...l)=>{n&&clearTimeout(n),n=window.setTimeout(()=>{e.apply(globalThis,l),n=0},t)}},_=(e,t)=>{const n=n=>{const l=e.parentElement||document.body,r=l.offsetWidth,i=l.offsetHeight,{clientWidth:u}=document.documentElement,{clientHeight:a}=document.documentElement,s=n.offsetX,o=n.offsetY,c=e=>{let n=e.x+document.body.scrollLeft-document.body.clientLeft-s,c=e.y+document.body.scrollTop-document.body.clientTop-o;n=n<1?1:n<u-r-1?n:u-r-1,c=c<1?1:c<a-i-1?c:a-i-1,t?t(n,c):(l.style.left=n+"px",l.style.top=c+"px")};document.addEventListener("mousemove",c);const d=()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d)};document.addEventListener("mouseup",d)};return e.addEventListener("mousedown",n),()=>{e.removeEventListener("mousedown",n)}};var z=Object(l["p"])({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(e,t){const n=Object(l["H"])(e.visible),r=Object(l["H"])([ue+"-modal"]),i=Object(l["H"])(),u=Object(l["H"])();let a=()=>{};const s=Object(l["G"])({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}});return Object(l["A"])(()=>{a=_(u.value,(e,t)=>{s.initPos.left=e+"px",s.initPos.top=t+"px"})}),Object(l["y"])(()=>{a()}),Object(l["V"])(()=>e.isFullscreen,e=>{console.log(123),e?a():a=_(u.value,(e,t)=>{s.initPos.left=e+"px",s.initPos.top=t+"px"})}),Object(l["V"])(()=>e.visible,e=>{e?(r.value.push("zoom-in"),n.value=e,Object(l["u"])(()=>{const e=i.value.offsetWidth/2,t=i.value.offsetHeight/2,n=document.documentElement.clientWidth/2,l=document.documentElement.clientHeight/2;s.initPos.left=n-e+"px",s.initPos.top=l-t+"px"}),setTimeout(()=>{r.value=r.value.filter(e=>"zoom-in"!==e)},140)):(r.value.push("zoom-out"),setTimeout(()=>{r.value=r.value.filter(e=>"zoom-out"!==e),n.value=e},130))}),()=>{const a=w({ctx:t}),o=w({props:e,ctx:t},"title");return Object(l["n"])("div",{style:{display:n.value?"block":"none"}},[Object(l["n"])("div",{class:ue+"-modal-mask",onClick:e.onClosed},null),Object(l["n"])("div",{class:r.value,style:p(d({},s.initPos),{width:e.width,height:e.height}),ref:i},[Object(l["n"])("div",{class:ue+"-modal-header",ref:u},[o||""]),Object(l["n"])("div",{class:ue+"-modal-body"},[a]),Object(l["n"])("div",{class:ue+"-modal-func"},[e.showAdjust&&Object(l["n"])("div",{class:ue+"-modal-adjust",onClick:t=>{t.stopPropagation(),e.isFullscreen?s.initPos=s.historyPos:(s.historyPos=s.initPos,s.initPos={left:"0",top:"0"}),e.onAdjust(!e.isFullscreen)}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-"+(e.isFullscreen?"suoxiao":"fangda")},null)])]),Object(l["n"])("div",{class:ue+"-modal-close",onClick:t=>{t.stopPropagation(),e.onClosed&&e.onClosed()}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-close"},null)])])])])])}}}),L=Object(l["p"])({props:{type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(e){const t=Object(l["s"])("usedLanguageText"),n=Object(l["s"])("editorId"),r=Object(l["f"])(()=>{var n,l,r,i;switch(e.type){case"link":return`${null==(n=t.value.linkModalTips)?void 0:n.title}${null==(l=t.value.toolbarTips)?void 0:l.link}`;case"image":return`${null==(r=t.value.linkModalTips)?void 0:r.title}${null==(i=t.value.toolbarTips)?void 0:i.image}`;default:return""}}),i=Object(l["G"])({desc:"",url:""});return Object(l["V"])(()=>e.visible,e=>{e||setTimeout(()=>{i.desc="",i.url=""},200)}),()=>Object(l["n"])(z,{title:r.value,visible:e.visible,onClosed:e.onCancel},{default:()=>{var r,u,a,s,o;return[Object(l["n"])("div",{class:ue+"-form-item"},[Object(l["n"])("label",{class:ue+"-lable",for:"link-desc-"+n},[null==(r=t.value.linkModalTips)?void 0:r.descLable]),Object(l["n"])("input",{placeholder:null==(u=t.value.linkModalTips)?void 0:u.descLablePlaceHolder,class:ue+"-input",id:"link-desc-"+n,type:"text",value:i.desc,onChange:e=>{i.desc=e.target.value},autocomplete:"off"},null)]),Object(l["n"])("div",{class:ue+"-form-item"},[Object(l["n"])("label",{class:ue+"-lable",for:"link-url-"+n},[null==(a=t.value.linkModalTips)?void 0:a.urlLable]),Object(l["n"])("input",{placeholder:null==(s=t.value.linkModalTips)?void 0:s.UrlLablePlaceHolder,class:ue+"-input",id:"link-url-"+n,type:"text",value:i.url,onChange:e=>{i.url=e.target.value},autocomplete:"off"},null)]),Object(l["n"])("div",{class:ue+"-form-item"},[Object(l["n"])("button",{class:[ue+"-btn",ue+"-btn-row"],type:"button",onClick:()=>{e.onOk(i),i.desc="",i.url=""}},[null==(o=t.value.linkModalTips)?void 0:o.buttonOK])])]}})}}),R=Object(l["p"])({props:{visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}},setup(e){const t=Object(l["s"])("usedLanguageText"),n=Object(l["s"])("editorId");let r=Object(l["s"])("Cropper");const i=Object(l["H"])(),u=Object(l["H"])(),a=Object(l["H"])(),s=Object(l["G"])({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let o=null;Object(l["V"])(()=>e.visible,()=>{e.visible&&!s.cropperInited&&(r=r||window.Cropper,i.value.onchange=()=>{const e=i.value.files||[];if(s.imgSelected=!0,(null==e?void 0:e.length)>0){const t=new FileReader;t.onload=e=>{s.imgSrc=e.target.result,Object(l["u"])(()=>{o=new r(u.value,{viewMode:2,preview:`.${ue}-clip-preview-target`})})},t.readAsDataURL(e[0])}})}),Object(l["V"])(()=>[s.imgSelected],()=>{a.value.style=""}),Object(l["V"])(()=>s.isFullscreen,()=>{Object(l["u"])(()=>{null==o||o.destroy(),a.value.style="",u.value&&(o=new r(u.value,{viewMode:2,preview:`.${ue}-clip-preview-target`}))})});const c=Object(l["f"])(()=>s.isFullscreen?{width:"100%",height:"100%"}:{width:"668px",height:"421px"}),d=()=>{o.destroy(),i.value.value="",s.imgSelected=!1};return()=>{var r;return Object(l["n"])(z,Object(l["t"])({title:null==(r=t.value.clipModalTips)?void 0:r.title,visible:e.visible,onClosed:e.onCancel,showAdjust:!0,isFullscreen:s.isFullscreen,onAdjust:e=>{s.isFullscreen=e}},c.value),{default:()=>{var r;return[Object(l["n"])("div",{class:`${ue}-form-item ${ue}-clip`},[Object(l["n"])("div",{class:ue+"-clip-main"},[s.imgSelected?Object(l["n"])("div",{class:ue+"-clip-cropper"},[Object(l["n"])("img",{src:s.imgSrc,ref:u,style:{display:"none"}},null),Object(l["n"])("div",{class:ue+"-clip-delete",onClick:d},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-delete"},null)])])]):Object(l["n"])("div",{class:ue+"-clip-upload",onClick:()=>{i.value.click()}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-upload"},null)])])]),Object(l["n"])("div",{class:ue+"-clip-preview"},[Object(l["n"])("div",{class:ue+"-clip-preview-target",ref:a},null)])]),Object(l["n"])("div",{class:ue+"-form-item"},[Object(l["n"])("button",{class:ue+"-btn",type:"button",onClick:()=>{const t=o.getCroppedCanvas();j.emit(n,"uploadImage",[T(t.toDataURL("image/png"))],e.onOk),d()}},[null==(r=t.value.linkModalTips)?void 0:r.buttonOK])]),Object(l["n"])("input",{ref:i,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}}),P=Object(l["p"])({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(e){return()=>Object(l["n"])(l["a"],null,[Object(l["n"])(L,{type:e.type,visible:e.linkVisible,onOk:e.onOk,onCancel:e.onCancel},null),Object(l["n"])(R,{visible:e.clipVisible,onOk:e.onOk,onCancel:e.onCancel},null)])}});const H=e=>{let{screenfull:t}=e;const n=()=>{t.isEnabled?t.isFullscreen?t.exit():t.request():console.error("browser does not support screenfull!")},r=()=>{t=window.screenfull,t&&t.isEnabled&&t.on("change",()=>{e.updateSetting(!e.setting.fullscreen,"fullscreen")})};return Object(l["A"])(()=>{t&&t.isEnabled&&t.on("change",()=>{e.updateSetting(!e.setting.fullscreen,"fullscreen")})}),{fullScreenHandler:n,screenfullLoad:r}};var N=Object(l["p"])({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:()=>()=>{}}},setup(e){const t=Object(l["s"])("editorId"),n=Object(l["s"])("usedLanguageText"),r=Object(l["s"])("previewOnly"),{fullScreenHandler:i,screenfullLoad:u}=H(e),a=Object(l["G"])({title:!1,catalog:!1,image:!1}),s=(e,n)=>{j.emit(t,"replace",e,n)},o=Object(l["G"])({type:"link",linkVisible:!1,clipVisible:!1}),c=Object(l["H"])();Object(l["A"])(()=>{var e;j.on(t,{name:"openModals",callback(e){o.type=e,o.linkVisible=!0}}),null==(e=c.value)||e.addEventListener("mouseover",()=>{var e;(null==(e=window.getSelection())?void 0:e.toString())||j.emit(t,"selectTextChange","")})});const d=Object(l["f"])(()=>{const t=e.toolbars.filter(t=>!e.toolbarsExclude.includes(t)),n=t.indexOf("="),l=-1===n?t:t.slice(0,n+1),r=-1===n?[]:t.slice(n,Number.MAX_SAFE_INTEGER);return[l,r]}),p=Object(l["H"])(),h=()=>{j.emit(t,"uploadImage",p.value.files),p.value.value=""};Object(l["A"])(()=>{p.value.addEventListener("change",h)});const b=r=>{var u,c,d,h,b,f,g,v,m,D,k,x,y,C,w,F,E,S,T,$,I,_,z,L,R,P,H,N,U,V,M,q;switch(r){case"-":return Object(l["n"])(O,null,null);case"bold":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(u=n.value.toolbarTips)?void 0:u.bold,onClick:()=>{s("bold")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-bold"},null)])]);case"underline":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(c=n.value.toolbarTips)?void 0:c.underline,onClick:()=>{s("underline")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-underline"},null)])]);case"italic":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(d=n.value.toolbarTips)?void 0:d.italic,onClick:()=>{s("italic")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-italic"},null)])]);case"strikeThrough":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(h=n.value.toolbarTips)?void 0:h.strikeThrough,onClick:()=>{s("strikeThrough")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-strike-through"},null)])]);case"title":return Object(l["n"])(A,{visible:a.title,onChange:e=>{a.title=e},overlay:Object(l["n"])("ul",{class:ue+"-menu",onClick:()=>{a.title=!1}},[Object(l["n"])("li",{class:ue+"-menu-item",onClick:()=>{s("h1")}},[null==(b=n.value.titleItem)?void 0:b.h1]),Object(l["n"])("li",{class:ue+"-menu-item",onClick:()=>{s("h2")}},[null==(f=n.value.titleItem)?void 0:f.h2]),Object(l["n"])("li",{class:ue+"-menu-item",onClick:()=>{s("h3")}},[null==(g=n.value.titleItem)?void 0:g.h3]),Object(l["n"])("li",{class:ue+"-menu-item",onClick:()=>{s("h4")}},[null==(v=n.value.titleItem)?void 0:v.h4]),Object(l["n"])("li",{class:ue+"-menu-item",onClick:()=>{s("h5")}},[null==(m=n.value.titleItem)?void 0:m.h5]),Object(l["n"])("li",{class:ue+"-menu-item",onClick:()=>{s("h6")}},[null==(D=n.value.titleItem)?void 0:D.h6])])},{default:()=>{var e;return[Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(e=n.value.toolbarTips)?void 0:e.title},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-title"},null)])])]}});case"sub":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(k=n.value.toolbarTips)?void 0:k.sub,onClick:()=>{s("sub")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-sub"},null)])]);case"sup":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(x=n.value.toolbarTips)?void 0:x.sup,onClick:()=>{s("sup")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-sup"},null)])]);case"quote":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(y=n.value.toolbarTips)?void 0:y.quote,onClick:()=>{s("quote")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-quote"},null)])]);case"unorderedList":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(C=n.value.toolbarTips)?void 0:C.unorderedList,onClick:()=>{s("unorderedList")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-unordered-list"},null)])]);case"orderedList":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(w=n.value.toolbarTips)?void 0:w.orderedList,onClick:()=>{s("orderedList")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-ordered-list"},null)])]);case"codeRow":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(F=n.value.toolbarTips)?void 0:F.codeRow,onClick:()=>{s("codeRow")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-code-row"},null)])]);case"code":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(E=n.value.toolbarTips)?void 0:E.code,onClick:()=>{s("code")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-code"},null)])]);case"link":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(S=n.value.toolbarTips)?void 0:S.link,onClick:()=>{o.type="link",o.linkVisible=!0}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-link"},null)])]);case"image":return Object(l["n"])(A,{visible:a.image,onChange:e=>{a.image=e},overlay:Object(l["n"])("ul",{class:ue+"-menu",onClick:()=>{a.title=!1}},[Object(l["n"])("li",{class:ue+"-menu-item",onClick:()=>{o.type="image",o.linkVisible=!0}},[null==(T=n.value.imgTitleItem)?void 0:T.link]),Object(l["n"])("li",{class:ue+"-menu-item",onClick:()=>{p.value.click()}},[null==($=n.value.imgTitleItem)?void 0:$.upload]),Object(l["n"])("li",{class:ue+"-menu-item",onClick:()=>{o.clipVisible=!0}},[null==(I=n.value.imgTitleItem)?void 0:I.clip2upload])])},{default:()=>{var e;return[Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(e=n.value.toolbarTips)?void 0:e.image},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-image"},null)])])]}});case"table":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(_=n.value.toolbarTips)?void 0:_.table,onClick:()=>{s("table")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-table"},null)])]);case"revoke":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(z=n.value.toolbarTips)?void 0:z.revoke,onClick:()=>{j.emit(t,"ctrlZ")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-revoke"},null)])]);case"next":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(L=n.value.toolbarTips)?void 0:L.next,onClick:()=>{j.emit(t,"ctrlShiftZ")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-next"},null)])]);case"save":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(R=n.value.toolbarTips)?void 0:R.save,onClick:()=>{j.emit(t,"onSave")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-baocun"},null)])]);case"prettier":return e.prettier?Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(P=n.value.toolbarTips)?void 0:P.prettier,onClick:()=>{s("prettier")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-prettier"},null)])]):"";case"pageFullscreen":return!e.setting.fullscreen&&Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(H=n.value.toolbarTips)?void 0:H.pageFullscreen,onClick:()=>{e.updateSetting(!e.setting.pageFullScreen,"pageFullScreen")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-"+(e.setting.pageFullScreen?"suoxiao":"fangda")},null)])]);case"fullscreen":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(N=n.value.toolbarTips)?void 0:N.fullscreen,onClick:i},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-"+(e.setting.fullscreen?"fullScreen-exit":"fullScreen")},null)])]);case"preview":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(U=n.value.toolbarTips)?void 0:U.preview,onClick:()=>{e.updateSetting(!e.setting.preview,"preview")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-preview"},null)])]);case"htmlPreview":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(V=n.value.toolbarTips)?void 0:V.htmlPreview,onClick:()=>{e.updateSetting(!e.setting.htmlPreview,"htmlPreview")}},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-coding"},null)])]);case"catalog":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(M=n.value.toolbarTips)?void 0:M.catalog,onClick:()=>{j.emit(t,"catalogShow")},key:"bar-catalog"},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-catalog"},null)])]);case"github":return Object(l["n"])("div",{class:ue+"-toolbar-item",title:null==(q=n.value.toolbarTips)?void 0:q.github,onClick:()=>B("https://github.com/imzbf/md-editor-v3")},[Object(l["n"])("svg",{class:ue+"-icon","aria-hidden":"true"},[Object(l["n"])("use",{"xlink:href":"#icon-github"},null)])])}};return()=>{const t=d.value[0].map(e=>b(e)),n=d.value[1].map(e=>b(e));return Object(l["n"])("div",{class:ue+"-toolbar-wrapper"},[Object(l["n"])("div",{class:ue+"-toolbar"},[Object(l["n"])("div",{class:ue+"-toolbar-left",ref:c},[t]),Object(l["n"])("div",{class:ue+"-toolbar-right"},[n])]),Object(l["n"])("input",{ref:p,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),Object(l["n"])(P,{linkVisible:o.linkVisible,clipVisible:o.clipVisible,type:o.type,onCancel:()=>{o.linkVisible=!1,o.clipVisible=!1},onOk:e=>{e&&s(o.type,{desc:e.desc,url:e.url}),o.linkVisible=!1,o.clipVisible=!1}},null),!r&&null===e.screenfull&&Object(l["n"])(l["b"],{to:"head"},{default:()=>[Object(l["n"])("script",{src:e.screenfullJs,onLoad:u},null)]})])}}}),U=("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self,{exports:{}});(function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function t(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}function n(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}function r(e,t){var l="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(l)return(l=l.call(e)).next.bind(l);if(Array.isArray(e)||(l=n(e))||t&&e&&"number"===typeof e.length){l&&(e=l);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i={exports:{}};function u(){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}}function a(e){i.exports.defaults=e}i.exports={defaults:u(),getDefaults:u,changeDefaults:a};var s=/[&<>"']/,o=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,d=/[<>"']|&(?!#?\w+;)/g,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},h=function(e){return p[e]};function b(e,t){if(t){if(s.test(e))return e.replace(o,h)}else if(c.test(e))return e.replace(d,h);return e}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(f,(function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var v=/(^|[^\[])\^/g;function m(e,t){e=e.source||e,t=t||"";var n={replace:function(t,l){return l=l.source||l,l=l.replace(v,"$1"),e=e.replace(t,l),n},getRegex:function(){return new RegExp(e,t)}};return n}var D=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(e,t,n){if(e){var l;try{l=decodeURIComponent(g(n)).replace(D,"").toLowerCase()}catch(r){return null}if(0===l.indexOf("javascript:")||0===l.indexOf("vbscript:")||0===l.indexOf("data:"))return null}t&&!k.test(n)&&(n=w(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}var j={},y=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(e,t){j[" "+e]||(y.test(e)?j[" "+e]=e+"/":j[" "+e]=B(e,"/",!0)),e=j[" "+e];var n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(C,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(O,"$1")+t:e+t}var A={exec:function(){}};function F(e){for(var t,n,l=1;l<arguments.length;l++)for(n in t=arguments[l],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function E(e,t){var n=e.replace(/\|/g,(function(e,t,n){var l=!1,r=t;while(--r>=0&&"\\"===n[r])l=!l;return l?"|":" |"})),l=n.split(/ \|/),r=0;if(l.length>t)l.splice(t);else while(l.length<t)l.push("");for(;r<l.length;r++)l[r]=l[r].trim().replace(/\\\|/g,"|");return l}function B(e,t,n){var l=e.length;if(0===l)return"";var r=0;while(r<l){var i=e.charAt(l-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,l-r)}function S(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,l=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])l++;else if(e[r]===t[1]&&(l--,l<0))return r;return-1}function T(e){e&&e.sanitize&&!e.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 $(e,t){if(t<1)return"";var n="";while(t>1)1&t&&(n+=e),t>>=1,e+=e;return n+e}var I={escape:b,unescape:g,edit:m,cleanUrl:x,resolveUrl:w,noopTest:A,merge:F,splitCells:E,rtrim:B,findClosingBracket:S,checkSanitizeDeprecation:T,repeatString:$},_=i.exports.defaults,z=I.rtrim,L=I.splitCells,R=I.escape,P=I.findClosingBracket;function H(e,t,n){var l=t.href,r=t.title?R(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:l,title:r,text:i}:{type:"image",raw:n,href:l,title:r,text:R(i)}}function N(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var l=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);if(null===t)return e;var n=t[0];return n.length>=l.length?e.slice(l.length):e})).join("\n")}var U=function(){function e(e){this.options=e||_}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:z(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],l=N(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:l}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var l=z(n,"#");this.options.pedantic?n=l.trim():l&&!/ $/.test(l)||(n=l.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:L(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var l,r=n.align.length;for(l=0;l<r;l++)/^ *-+: *$/.test(n.align[l])?n.align[l]="right":/^ *:-+: *$/.test(n.align[l])?n.align[l]="center":/^ *:-+ *$/.test(n.align[l])?n.align[l]="left":n.align[l]=null;for(r=n.cells.length,l=0;l<r;l++)n.cells[l]=L(n.cells[l],n.header.length);return n}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,l,r,i,u,a,s,o,c,d=t[0],p=t[2],h=p.length>1,b={type:"list",raw:d,ordered:h,start:h?+p.slice(0,-1):"",loose:!1,items:[]},f=t[0].match(this.rules.block.item),g=!1,v=f.length;r=this.rules.block.listItemStart.exec(f[0]);for(var m=0;m<v;m++){if(n=f[m],d=n,this.options.pedantic||(c=n.match(new RegExp("\\n\\s*\\n {0,"+(r[0].length-1)+"}\\S")),c&&(u=n.length-c.index+f.slice(m+1).join("\n").length,b.raw=b.raw.substring(0,b.raw.length-u),n=n.substring(0,c.index),d=n,v=m+1)),m!==v-1){if(i=this.rules.block.listItemStart.exec(f[m+1]),this.options.pedantic?i[1].length>r[1].length:i[1].length>=r[0].length||i[1].length>3){f.splice(m,2,f[m]+(!this.options.pedantic&&i[1].length<r[0].length&&!f[m].match(/\n$/)?"":"\n")+f[m+1]),m--,v--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==p[p.length-1]:h===(1===i[2].length))&&(u=f.slice(m+1).join("\n").length,b.raw=b.raw.substring(0,b.raw.length-u),m=v-1),r=i}l=n.length,n=n.replace(/^ *([*+-]|\d+[.)]) ?/,""),~n.indexOf("\n ")&&(l-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+l+"}","gm"),"")),n=z(n,"\n"),m!==v-1&&(d+="\n"),a=g||/\n\n(?!\s*$)/.test(d),m!==v-1&&(g="\n\n"===d.slice(-2),a||(a=g)),a&&(b.loose=!0),this.options.gfm&&(s=/^\[[ xX]\] /.test(n),o=void 0,s&&(o=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),b.items.push({type:"list_item",raw:d,task:s,checked:o,loose:a,text:n})}return b}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):R(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));var n=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:n,raw:t[0],href:t[2],title:t[3]}}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:L(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var l,r=n.align.length;for(l=0;l<r;l++)/^ *-+: *$/.test(n.align[l])?n.align[l]="right":/^ *:-+: *$/.test(n.align[l])?n.align[l]="center":/^ *:-+ *$/.test(n.align[l])?n.align[l]="left":n.align[l]=null;for(r=n.cells.length,l=0;l<r;l++)n.cells[l]=L(n.cells[l].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0]}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:R(t[1])}},t.tag=function(e,t,n){var l=this.rules.inline.tag.exec(e);if(l)return!t&&/^<a /i.test(l[0])?t=!0:t&&/^<\/a>/i.test(l[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(l[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(l[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:l[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(l[0]):R(l[0]):l[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var l=z(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{var r=P(t[2],"()");if(r>-1){var i=0===t[0].indexOf("!")?5:4,u=i+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,u).trim(),t[3]=""}}var a=t[2],s="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);o&&(a=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(a=this.options.pedantic&&!/>$/.test(n)?a.slice(1):a.slice(1,-1)),H(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var l=(n[2]||n[1]).replace(/\s+/g," ");if(l=t[l.toLowerCase()],!l||!l.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return H(n,l,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var l=this.rules.inline.emStrong.lDelim.exec(e);if(l&&(!l[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=l[1]||l[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var i,u,a=l[0].length-1,s=a,o=0,c="*"===l[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;c.lastIndex=0,t=t.slice(-1*e.length+a);while(null!=(l=c.exec(t)))if(i=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],i)if(u=i.length,l[3]||l[4])s+=u;else if(!((l[5]||l[6])&&a%3)||(a+u)%3){if(s-=u,!(s>0))return u=Math.min(u,u+s+o),Math.min(a,u)%2?{type:"em",raw:e.slice(0,a+l.index+u+1),text:e.slice(1,a+l.index+u)}:{type:"strong",raw:e.slice(0,a+l.index+u+1),text:e.slice(2,a+l.index+u-1)}}else o+=u}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),l=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return l&&r&&(n=n.substring(1,n.length-1)),n=R(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,l,r=this.rules.inline.autolink.exec(e);if(r)return"@"===r[2]?(n=R(this.options.mangle?t(r[1]):r[1]),l="mailto:"+n):(n=R(r[1]),l=n),{type:"link",raw:r[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var l,r;if("@"===n[2])l=R(this.options.mangle?t(n[0]):n[0]),r="mailto:"+l;else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);l=R(n[0]),r="www."===n[1]?"http://"+l:l}return{type:"link",raw:n[0],text:l,href:r,tokens:[{type:"text",raw:l,text:l}]}}},t.inlineText=function(e,t,n){var l,r=this.rules.inline.text.exec(e);if(r)return l=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):R(r[0]):r[0]:R(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:l}},e}(),V=I.noopTest,M=I.edit,q=I.merge,K={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) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,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+|$)/,nptable:V,table:V,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};K.def=M(K.def).replace("label",K._label).replace("title",K._title).getRegex(),K.bullet=/(?:[*+-]|\d{1,9}[.)])/,K.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,K.item=M(K.item,"gm").replace(/bull/g,K.bullet).getRegex(),K.listItemStart=M(/^( *)(bull) */).replace("bull",K.bullet).getRegex(),K.list=M(K.list).replace(/bull/g,K.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+K.def.source+")").getRegex(),K._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",K._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,K.html=M(K.html,"i").replace("comment",K._comment).replace("tag",K._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),K.paragraph=M(K._paragraph).replace("hr",K.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").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",K._tag).getRegex(),K.blockquote=M(K.blockquote).replace("paragraph",K.paragraph).getRegex(),K.normal=q({},K),K.gfm=q({},K.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),K.gfm.nptable=M(K.gfm.nptable).replace("hr",K.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",K._tag).getRegex(),K.gfm.table=M(K.gfm.table).replace("hr",K.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",K._tag).getRegex(),K.pedantic=q({},K.normal,{html:M("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",K._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:V,paragraph:M(K.normal._paragraph).replace("hr",K.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",K.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Z={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:V,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:V,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};Z.punctuation=M(Z.punctuation).replace(/punctuation/g,Z._punctuation).getRegex(),Z.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Z.escapedEmSt=/\\\*|\\_/g,Z._comment=M(K._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Z.emStrong.lDelim=M(Z.emStrong.lDelim).replace(/punct/g,Z._punctuation).getRegex(),Z.emStrong.rDelimAst=M(Z.emStrong.rDelimAst,"g").replace(/punct/g,Z._punctuation).getRegex(),Z.emStrong.rDelimUnd=M(Z.emStrong.rDelimUnd,"g").replace(/punct/g,Z._punctuation).getRegex(),Z._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Z._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Z._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])?)+(?![-_])/,Z.autolink=M(Z.autolink).replace("scheme",Z._scheme).replace("email",Z._email).getRegex(),Z._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Z.tag=M(Z.tag).replace("comment",Z._comment).replace("attribute",Z._attribute).getRegex(),Z._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Z._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Z._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Z.link=M(Z.link).replace("label",Z._label).replace("href",Z._href).replace("title",Z._title).getRegex(),Z.reflink=M(Z.reflink).replace("label",Z._label).getRegex(),Z.reflinkSearch=M(Z.reflinkSearch,"g").replace("reflink",Z.reflink).replace("nolink",Z.nolink).getRegex(),Z.normal=q({},Z),Z.pedantic=q({},Z.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:M(/^!?\[(label)\]\((.*?)\)/).replace("label",Z._label).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z._label).getRegex()}),Z.gfm=q({},Z.normal,{escape:M(Z.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Z.gfm.url=M(Z.gfm.url,"i").replace("email",Z.gfm._extended_email).getRegex(),Z.breaks=q({},Z.gfm,{br:M(Z.br).replace("{2,}","*").getRegex(),text:M(Z.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var G={block:K,inline:Z},W=U,X=i.exports.defaults,J=G.block,Y=G.inline,Q=I.repeatString;function ee(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function te(e){var t,n,l="",r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),l+="&#"+n+";";return l}var ne=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||X,this.options.tokenizer=this.options.tokenizer||new W,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:J.normal,inline:Y.normal};this.options.pedantic?(t.block=J.pedantic,t.inline=Y.pedantic):this.options.gfm&&(t.block=J.gfm,this.options.breaks?t.inline=Y.breaks:t.inline=Y.gfm),this.tokenizer.rules=t}e.lex=function(t,n){var l=new e(n);return l.lex(t)},e.lexInline=function(t,n){var l=new e(n);return l.inlineTokens(t)};var n=e.prototype;return n.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(e,t,n){var l,r,i,u,a,s,o=this;void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));while(e)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(l=n.call(o,e,t))&&(e=e.substring(l.raw.length),t.push(l),!0)}))))if(l=this.tokenizer.space(e))e=e.substring(l.raw.length),l.type&&t.push(l);else if(l=this.tokenizer.code(e))e=e.substring(l.raw.length),u=t[t.length-1],u&&"paragraph"===u.type?(u.raw+="\n"+l.raw,u.text+="\n"+l.text):t.push(l);else if(l=this.tokenizer.fences(e))e=e.substring(l.raw.length),t.push(l);else if(l=this.tokenizer.heading(e))e=e.substring(l.raw.length),t.push(l);else if(l=this.tokenizer.nptable(e))e=e.substring(l.raw.length),t.push(l);else if(l=this.tokenizer.hr(e))e=e.substring(l.raw.length),t.push(l);else if(l=this.tokenizer.blockquote(e))e=e.substring(l.raw.length),l.tokens=this.blockTokens(l.text,[],n),t.push(l);else if(l=this.tokenizer.list(e)){for(e=e.substring(l.raw.length),i=l.items.length,r=0;r<i;r++)l.items[r].tokens=this.blockTokens(l.items[r].text,[],!1);t.push(l)}else if(l=this.tokenizer.html(e))e=e.substring(l.raw.length),t.push(l);else if(n&&(l=this.tokenizer.def(e)))e=e.substring(l.raw.length),this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title});else if(l=this.tokenizer.table(e))e=e.substring(l.raw.length),t.push(l);else if(l=this.tokenizer.lheading(e))e=e.substring(l.raw.length),t.push(l);else if(a=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,n=e.slice(1),l=void 0;o.options.extensions.startBlock.forEach((function(e){l=e.call(this,n),"number"===typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}(),n&&(l=this.tokenizer.paragraph(a)))u=t[t.length-1],s&&"paragraph"===u.type?(u.raw+="\n"+l.raw,u.text+="\n"+l.text):t.push(l),s=a.length!==e.length,e=e.substring(l.raw.length);else if(l=this.tokenizer.text(e))e=e.substring(l.raw.length),u=t[t.length-1],u&&"text"===u.type?(u.raw+="\n"+l.raw,u.text+="\n"+l.text):t.push(l);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}return t},n.inline=function(e){var t,n,l,r,i,u,a=e.length;for(t=0;t<a;t++)switch(u=e[t],u.type){case"paragraph":case"text":case"heading":u.tokens=[],this.inlineTokens(u.text,u.tokens);break;case"table":for(u.tokens={header:[],cells:[]},r=u.header.length,n=0;n<r;n++)u.tokens.header[n]=[],this.inlineTokens(u.header[n],u.tokens.header[n]);for(r=u.cells.length,n=0;n<r;n++)for(i=u.cells[n],u.tokens.cells[n]=[],l=0;l<i.length;l++)u.tokens.cells[n][l]=[],this.inlineTokens(i[l],u.tokens.cells[n][l]);break;case"blockquote":this.inline(u.tokens);break;case"list":for(r=u.items.length,n=0;n<r;n++)this.inline(u.items[n].tokens);break}return e},n.inlineTokens=function(e,t,n,l){var r,i,u,a=this;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===l&&(l=!1);var s,o,c,d=e;if(this.tokens.links){var p=Object.keys(this.tokens.links);if(p.length>0)while(null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(d)))p.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,s.index)+"["+Q("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(s=this.tokenizer.rules.inline.blockSkip.exec(d)))d=d.slice(0,s.index)+"["+Q("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(d)))d=d.slice(0,s.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);while(e)if(o||(c=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(r=n.call(a,e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,l))e=e.substring(r.raw.length),n=r.inLink,l=r.inRawBlock,i=t[t.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,l)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),i=t[t.length-1],"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,l),t.push(r)):i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,d,c))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,l),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,l),t.push(r);else if(r=this.tokenizer.autolink(e,te))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,te))){if(u=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),l=void 0;a.options.extensions.startInline.forEach((function(e){l=e.call(this,n),"number"===typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(u=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(u,l,ee))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(c=r.raw.slice(-1)),o=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(r.raw.length),t.push(r);return t},t(e,null,[{key:"rules",get:function(){return{block:J,inline:Y}}}]),e}(),le=i.exports.defaults,re=I.cleanUrl,ie=I.escape,ue=function(){function e(e){this.options=e||le}var t=e.prototype;return t.code=function(e,t,n){var l=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,l);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",l?'<pre><code class="'+this.options.langPrefix+ie(l,!0)+'">'+(n?e:ie(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ie(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,l){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+l.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var l=t?"ol":"ul",r=t&&1!==n?' start="'+n+'"':"";return"<"+l+r+">\n"+e+"</"+l+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td",l=t.align?"<"+n+' align="'+t.align+'">':"<"+n+">";return l+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(e=re(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var l='<a href="'+ie(e)+'"';return t&&(l+=' title="'+t+'"'),l+=">"+n+"</a>",l},t.image=function(e,t,n){if(e=re(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var l='<img src="'+e+'" alt="'+n+'"';return t&&(l+=' title="'+t+'"'),l+=this.options.xhtml?"/>":">",l},t.text=function(e){return e},e}(),ae=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),se=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var 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},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),oe=ue,ce=ae,de=se,pe=i.exports.defaults,he=I.unescape,be=function(){function e(e){this.options=e||pe,this.options.renderer=this.options.renderer||new oe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ce,this.slugger=new de}e.parse=function(t,n){var l=new e(n);return l.parse(t)},e.parseInline=function(t,n){var l=new e(n);return l.parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,l,r,i,u,a,s,o,c,d,p,h,b,f,g,v,m,D,k,x="",j=e.length;for(n=0;n<j;n++)if(d=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(k=this.options.extensions.renderers[d.type].call(this,d),!1!==k||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))x+=k||"";else switch(d.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(d.tokens),d.depth,he(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(o="",s="",i=d.header.length,l=0;l<i;l++)s+=this.renderer.tablecell(this.parseInline(d.tokens.header[l]),{header:!0,align:d.align[l]});for(o+=this.renderer.tablerow(s),c="",i=d.cells.length,l=0;l<i;l++){for(a=d.tokens.cells[l],s="",u=a.length,r=0;r<u;r++)s+=this.renderer.tablecell(this.parseInline(a[r]),{header:!1,align:d.align[r]});c+=this.renderer.tablerow(s)}x+=this.renderer.table(o,c);continue;case"blockquote":c=this.parse(d.tokens),x+=this.renderer.blockquote(c);continue;case"list":for(p=d.ordered,h=d.start,b=d.loose,i=d.items.length,c="",l=0;l<i;l++)g=d.items[l],v=g.checked,m=g.task,f="",g.task&&(D=this.renderer.checkbox(v),b?g.tokens.length>0&&"text"===g.tokens[0].type?(g.tokens[0].text=D+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=D+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:D}):f+=D),f+=this.parse(g.tokens,b),c+=this.renderer.listitem(f,m,v);x+=this.renderer.list(c,p,h);continue;case"html":x+=this.renderer.html(d.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":c=d.tokens?this.parseInline(d.tokens):d.text;while(n+1<j&&"text"===e[n+1].type)d=e[++n],c+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);x+=t?this.renderer.paragraph(c):c;continue;default:var y='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(y);throw new Error(y)}return x},t.parseInline=function(e,t){t=t||this.renderer;var n,l,r,i="",u=e.length;for(n=0;n<u;n++)if(l=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]&&(r=this.options.extensions.renderers[l.type].call(this,l),!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)))i+=r||"";else switch(l.type){case"escape":i+=t.text(l.text);break;case"html":i+=t.html(l.text);break;case"link":i+=t.link(l.href,l.title,this.parseInline(l.tokens,t));break;case"image":i+=t.image(l.href,l.title,l.text);break;case"strong":i+=t.strong(this.parseInline(l.tokens,t));break;case"em":i+=t.em(this.parseInline(l.tokens,t));break;case"codespan":i+=t.codespan(l.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(l.tokens,t));break;case"text":i+=t.text(l.text);break;default:var a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}return i},e}(),fe=ne,ge=be,ve=U,me=ue,De=ae,ke=se,xe=I.merge,je=I.checkSanitizeDeprecation,ye=I.escape,Ce=i.exports.getDefaults,Oe=i.exports.changeDefaults,we=i.exports.defaults;function Ae(e,t,n){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"===typeof t&&(n=t,t=null),t=xe({},Ae.defaults,t||{}),je(t),n){var l,r=t.highlight;try{l=fe.lex(e,t)}catch(s){return n(s)}var i=function(e){var i;if(!e)try{t.walkTokens&&Ae.walkTokens(l,t.walkTokens),i=ge.parse(l,t)}catch(s){e=s}return t.highlight=r,e?n(e):n(null,i)};if(!r||r.length<3)return i();if(delete t.highlight,!l.length)return i();var u=0;return Ae.walkTokens(l,(function(e){"code"===e.type&&(u++,setTimeout((function(){r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),u--,0===u&&i()}))}),0))})),void(0===u&&i())}try{var a=fe.lex(e,t);return t.walkTokens&&Ae.walkTokens(a,t.walkTokens),ge.parse(a,t)}catch(s){if(s.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ye(s.message+"",!0)+"</pre>";throw s}}Ae.options=Ae.setOptions=function(e){return xe(Ae.defaults,e),Oe(Ae.defaults),Ae},Ae.getDefaults=Ce,Ae.defaults=we,Ae.use=function(){for(var e=this,t=arguments.length,n=new Array(t),l=0;l<t;l++)n[l]=arguments[l];var r,i=xe.apply(void 0,[{}].concat(n)),u=Ae.defaults.extensions||{renderers:{},childTokens:{}};n.forEach((function(t){if(t.extensions&&(r=!0,t.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=u.renderers?u.renderers[e.name]:null;u.renderers[e.name]=t?function(){for(var n=arguments.length,l=new Array(n),r=0;r<n;r++)l[r]=arguments[r];var i=e.renderer.apply(this,l);return!1===i&&(i=t.apply(this,l)),i}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");u[e.level]?u[e.level].unshift(e.tokenizer):u[e.level]=[e.tokenizer],e.start&&("block"===e.level?u.startBlock?u.startBlock.push(e.start):u.startBlock=[e.start]:"inline"===e.level&&(u.startInline?u.startInline.push(e.start):u.startInline=[e.start]))}e.childTokens&&(u.childTokens[e.name]=e.childTokens)}))),t.renderer&&function(){var e=Ae.defaults.renderer||new me,n=function(n){var l=e[n];e[n]=function(){for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];var a=t.renderer[n].apply(e,i);return!1===a&&(a=l.apply(e,i)),a}};for(var l in t.renderer)n(l);i.renderer=e}(),t.tokenizer&&function(){var e=Ae.defaults.tokenizer||new ve,n=function(n){var l=e[n];e[n]=function(){for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];var a=t.tokenizer[n].apply(e,i);return!1===a&&(a=l.apply(e,i)),a}};for(var l in t.tokenizer)n(l);i.tokenizer=e}(),t.walkTokens){var n=Ae.defaults.walkTokens;i.walkTokens=function(l){t.walkTokens.call(e,l),n&&n(l)}}r&&(i.extensions=u),Ae.setOptions(i)}))},Ae.walkTokens=function(e,t){for(var n,l=function(){var e=n.value;switch(t(e),e.type){case"table":for(var l,i=r(e.tokens.header);!(l=i()).done;){var u=l.value;Ae.walkTokens(u,t)}for(var a,s=r(e.tokens.cells);!(a=s()).done;)for(var o,c=a.value,d=r(c);!(o=d()).done;){var p=o.value;Ae.walkTokens(p,t)}break;case"list":Ae.walkTokens(e.items,t);break;default:Ae.defaults.extensions&&Ae.defaults.extensions.childTokens&&Ae.defaults.extensions.childTokens[e.type]?Ae.defaults.extensions.childTokens[e.type].forEach((function(n){Ae.walkTokens(e[n],t)})):e.tokens&&Ae.walkTokens(e.tokens,t)}},i=r(e);!(n=i()).done;)l()},Ae.parseInline=function(e,t){if("undefined"===typeof e||null===e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=xe({},Ae.defaults,t||{}),je(t);try{var n=fe.lexInline(e,t);return t.walkTokens&&Ae.walkTokens(n,t.walkTokens),ge.parseInline(n,t)}catch(l){if(l.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ye(l.message+"",!0)+"</pre>";throw l}},Ae.Parser=ge,Ae.parser=ge.parse,Ae.Renderer=me,Ae.TextRenderer=De,Ae.Lexer=fe,Ae.lexer=fe.lex,Ae.Tokenizer=ve,Ae.Slugger=ke,Ae.parse=Ae;var Fe=Ae;return Fe}))})(U);var V=U.exports,M=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],l=0;l<e.rangeCount;l++)n.push(e.getRangeAt(l));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}},q=M,K={"text/plain":"Text","text/html":"Url",default:"Text"},Z="Copy to clipboard: #{key}, Enter";function G(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function W(e,t){var n,l,r,i,u,a,s=!1;t||(t={}),n=t.debug||!1;try{r=q(),i=document.createRange(),u=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",(function(l){if(l.stopPropagation(),t.format)if(l.preventDefault(),"undefined"===typeof l.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=K[t.format]||K["default"];window.clipboardData.setData(r,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e);t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))})),document.body.appendChild(a),i.selectNodeContents(a),u.addRange(i);var o=document.execCommand("copy");if(!o)throw new Error("copy command was unsuccessful");s=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),l=G("message"in t?t.message:Z),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(i):u.removeAllRanges()),a&&document.body.removeChild(a),r()}return s}var X=W;const J=e=>{const t=e.value,n=t.substring(0,e.selectionStart),l=t.substring(e.selectionEnd,t.length),r=n.lastIndexOf("\n"),i=n.substring(0,r+1),u=l.indexOf("\n"),a=l.substring(-1===u?l.length:u,l.length),s=n.substring(r+1,n.length),o=l.substring(0,u);return{prefixStr:n,subfixStr:l,prefixStrEndRow:i,subfixStrEndRow:a,prefixSupply:s,subfixSupply:o}},Y=(e,t="",n,l)=>{var r,i;let u,a,s="",o=0,c=0,d=!1;if(/^h[1-6]{1}$/.test(e)){const n=e.replace(/^h(\d)/,(e,t)=>new Array(Number(t)).fill("#",0,t).join(""));s=`${n} ${t}`,o=n.length+1}else{if("prettier"===e)return window.prettier.format(n.value,{parser:"markdown",plugins:window.prettierPlugins});switch(e){case"bold":s=`**${t}**`,o=2,c=-2;break;case"underline":s=`<u>${t}</u>`,o=3,c=-4;break;case"italic":s=`*${t}*`,o=1,c=-1;break;case"strikeThrough":s=`~${t}~`,o=1,c=-1;break;case"sub":s=`<sub>${t}</sub>`,o=5,c=-6;break;case"sup":s=`<sup>${t}</sup>`,o=5,c=-6;break;case"codeRow":s="`"+t+"`",o=1,c=-1;break;case"quote":s="> "+t,o=2;break;case"orderedList":s="1. "+t,o=3;break;case"unorderedList":s="- "+t,o=2;break;case"code":s="```language\n"+t+"\n```\n",o=3,c=11-s.length,d=!0;break;case"table":s="| 表头 | 表头 |\n| - | - |\n| 内容 | 内容 |\n",o=2,c=4-s.length,d=!0;break;case"link":{const{desc:e,url:t}=l;s=`[${e}](${t})`;break}case"image":{const{desc:e,url:t}=l;s=`![${e}](${t})\n`;break}case"tab":{t=(null==(r=window.getSelection())?void 0:r.toString())||"";const{tabWidth:e=2}=l,i=new Array(e).fill(" ").join("");if(""===t)s=i;else if(/\n/.test(t)){const{prefixStr:l,subfixStr:r,prefixSupply:p,subfixSupply:h}=J(n),b=`${p}${t}${h}`,f=b.split("\n");s=f.map(e=>`${i}${e}`).join("\n"),u=l.substring(0,l.length-p.length),a=r.substring(h.length,r.length),d=!0,o=e,c=-p.length-h.length}else{const e=n.value,l=e.substring(0,n.selectionStart);/\n$/.test(l)||""===l?(s=`${i}${t}`,d=!0):s=i}break}case"shiftTab":{t=(null==(i=window.getSelection())?void 0:i.toString())||"";const{tabWidth:e=2}=l,{prefixStr:r,prefixStrEndRow:u,subfixStrEndRow:a,prefixSupply:o,subfixSupply:c}=J(n),d=new RegExp(`^\\s{${e}}`),p=(l=!1,i=!1)=>{const p=`${o}${t}${c}`;if(d.test(p)){const s=r.length-(i?0:e),o=l?s+t.length-e:s;return F(n,s,o),`${u}${p.replace(d,"")}${a}`}if(/^\s/.test(p)){const e=p.replace(/^\s/,""),r=p.length-e.length,s=n.selectionStart-(i?0:r),o=l?s+t.length-r:s;return F(n,s,o),`${u}${e}${a}`}s=t};if(""===t){const e=p();if(e)return e}else{if(/\n/.test(t)){const l=`${o}${t}${c}`,r=l.split("\n");let[i,s]=[0,0];const p=r.map((t,n)=>{if(d.test(t))return 0===n&&(i=e),s+=e,t.replace(d,"");if(/^\s/.test(t)){const e=t.replace(/^\s/,"");return s+=t.length-e.length,e}return t}).join("\n");return F(n,n.selectionStart-i,n.selectionEnd-s),`${u}${p}${a}`}{const e=p(!0,!0);if(e)return e}}break}case"ctrlC":{const{prefixSupply:e,subfixSupply:l}=J(n);return X(""===t?`${e}${l}`:t),n.value}case"ctrlX":{const{prefixStrEndRow:e,subfixStrEndRow:l,prefixStr:r,subfixStr:i,prefixSupply:u,subfixSupply:a}=J(n);return""===t?(X(`${u}${a}`),F(n,e.length),`${e}${l.replace(/^\n/,"")}`):(X(t),F(n,r.length),`${r}${i}`)}case"ctrlD":{const{prefixStrEndRow:e,subfixStrEndRow:t}=J(n);return F(n,e.length),`${e}${t.replace(/^\n/,"")}`}}}return E(n,s,{deviationStart:o,deviationEnd:c,select:d,prefixVal:u,subfixVal:a})},Q=(e,t)=>{var n,r;const i=Object(l["s"])("previewOnly"),u=Object(l["s"])("historyLength"),a=Object(l["s"])("editorId");if(i)return;let s=-1;const o={list:[{content:e.value,startPos:(null==(n=t.value)?void 0:n.selectionStart)||0,endPos:(null==(r=t.value)?void 0:r.selectionEnd)||0}],userUpdated:!0,curr:0};Object(l["V"])(()=>e.value,e=>{var n,l;clearTimeout(s);const r=(null==(n=t.value)?void 0:n.selectionStart)||0,i=(null==(l=t.value)?void 0:l.selectionEnd)||0;s=setTimeout(()=>{if(o.userUpdated){o.curr<o.list.length-1&&(o.list=o.list.slice(0,o.curr+1)),o.list.length>u&&o.list.shift();const t=o.list.pop();t.startPos=r,t.endPos=i,Array.prototype.push.call(o.list,t,{content:e,startPos:r,endPos:i}),o.curr=o.list.length-1}else o.userUpdated=!0},10)}),Object(l["A"])(()=>{j.on(a,{name:"ctrlZ",callback(){o.userUpdated=!1,o.curr=o.curr-1<0?0:o.curr-1;const n=o.list[o.curr];e.onChange(n.content),F(t.value,n.startPos,n.endPos)}}),j.on(a,{name:"ctrlShiftZ",callback(){o.userUpdated=!1,o.curr=o.curr+1===o.list.length?o.curr:o.curr+1;const n=o.list[o.curr];e.onChange(n.content),F(t.value,n.startPos,n.endPos)}})})},ee=e=>{const t=Object(l["s"])("showCodeRowNumber"),n=Object(l["s"])("editorId"),r=Object(l["H"])(!1);let i=[];const u=new V.Renderer;u.heading=(...t)=>{const[,n,l]=t;return i.push({text:l,level:n}),e.markedHeading(...t)},u.image=(e,t,n)=>`<figure><img src="${e}" alt="${n}"><figcaption>${n}</figcaption></figure>`,V.setOptions({renderer:u,breaks:!0}),e.hljs&&V.setOptions({highlight:n=>{const l=e.hljs.highlightAuto(n).value;return t?$(l):`<span class="code-block">${l}</span>`}});const a=Object(l["f"])(()=>{i=[];const t=V(e.value);return r.value,t}),s=()=>{V.setOptions({highlight:e=>{const n=window.hljs.highlightAuto(e).value;return t?$(n):`<span class="code-block">${n}</span>`}}),r.value=!0};return Object(l["V"])(()=>a.value,t=>{e.onHtmlChanged(t),e.onGetCatalog(i),j.emit(n,"catalogChanged",i)}),{html:a,highlightLoad:s}},te=(e,t,n,r,i)=>{const u=Object(l["s"])("previewOnly"),a=Object(l["s"])("usedLanguageText"),s=Object(l["s"])("editorId");let o=()=>{};const c=()=>{document.querySelectorAll(`#${s} .${ue}-preview pre`).forEach(e=>{var t;const n=document.createElement("span");n.setAttribute("class","copy-button"),n.innerText=(null==(t=a.value.copyCode)?void 0:t.text)||"复制代码",n.addEventListener("click",()=>{var t;X(e.querySelector("code").innerText),n.innerText=(null==(t=a.value.copyCode)?void 0:t.tips)||"已复制！",setTimeout(()=>{var e;n.innerText=(null==(e=a.value.copyCode)?void 0:e.text)||"复制代码"},1500)}),e.appendChild(n)})},d=()=>{Object(l["u"])(()=>{e.setting.preview&&!u&&(o=S(n.value,r.value||i.value)),c()})};Object(l["V"])(()=>t.value,d),Object(l["V"])(()=>e.setting.preview,e=>{e&&!u?Object(l["u"])(()=>{o=S(n.value,r.value||i.value)}):o()}),Object(l["A"])(d)},ne=(e,t)=>{const n=Object(l["s"])("previewOnly"),r=Object(l["s"])("tabWidth"),i=Object(l["s"])("editorId"),u=Object(l["H"])("");return Object(l["A"])(()=>{var l,a;n||(null==(l=t.value)||l.addEventListener("select",()=>{var e;u.value=(null==(e=window.getSelection())?void 0:e.toString())||""}),null==(a=t.value)||a.addEventListener("keypress",n=>{var l,r,i;if("Enter"===n.key){const u=null==(l=t.value)?void 0:l.selectionStart,a=null==(r=t.value)?void 0:r.value.substring(0,u),s=null==(i=t.value)?void 0:i.value.substring(u),o=null==a?void 0:a.lastIndexOf("\n"),c=null==a?void 0:a.substring(o+1,u);if(/^\d+\.\s|^-\s/.test(c))if(n.cancelBubble=!0,n.preventDefault(),n.stopPropagation(),/^\d+\.\s+$|^-\s+$/.test(c)){const n=null==a?void 0:a.replace(new RegExp(c+"$"),"");e.onChange(n+s),F(t.value,null==n?void 0:n.length)}else if(/^-\s+.+/.test(c))e.onChange(E(t.value,"\n- ",{}));else{const n=null==c?void 0:c.match(/\d+(?=\.)/),l=n&&Number(n[0])+1||1;e.onChange(E(t.value,`\n${l}. `,{}))}}}),j.on(i,{name:"replace",callback(n,l={}){e.onChange(Y(n,u.value,t.value,p(d({},l),{tabWidth:r})))}}))}),j.on(i,{name:"selectTextChange",callback(e){u.value=e}}),{selectedText:u}};var le=Object(l["p"])({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:()=>(e,t)=>`<h${t} id="${e}"><a href="#${e}">${e}</a></h${t}>`}},setup(e){const t=Object(l["s"])("highlight"),n=Object(l["s"])("previewOnly"),r=Object(l["s"])("showCodeRowNumber"),i=Object(l["s"])("previewTheme"),u=Object(l["s"])("editorId"),a=Object(l["H"])(),s=Object(l["H"])(),o=Object(l["H"])(),{html:c,highlightLoad:d}=ee(e);te(e,c,a,s,o);const{selectedText:p}=ne(e,a);return Q(e,a),()=>Object(l["n"])(l["a"],null,[Object(l["n"])("div",{class:[ue+"-content"]},[!n&&Object(l["n"])("div",{class:[ue+"-input-wrapper"]},[Object(l["n"])("textarea",{id:u+"-textarea",ref:a,value:e.value,onInput:t=>{p.value="",e.onChange(t.target.value)},class:[e.setting.preview||e.setting.htmlPreview?"":"textarea-only"]},null)]),e.setting.preview&&Object(l["n"])("div",{ref:s,id:ue+"-preview",class:[ue+"-preview",(null==i?void 0:i.value)+"-theme",r&&ue+"-scrn"],innerHTML:c.value},null),e.setting.htmlPreview&&Object(l["n"])(l["a"],null,[Object(l["n"])("div",{ref:o,class:ue+"-html"},[c.value])])]),null===e.hljs&&Object(l["n"])(l["b"],{to:"head"},{default:()=>[Object(l["n"])("link",{rel:"stylesheet",href:t.value.css},null),Object(l["n"])("script",{src:t.value.js,onLoad:d},null)]})])}});const re=Object(l["p"])({props:{tocItem:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:()=>{}}},setup(e){return()=>Object(l["n"])("div",{class:ue+"-catalog-link",onClick:t=>{t.stopPropagation();const n=e.markedHeadingId(e.tocItem.text,e.tocItem.level),l=document.getElementById(n),r=document.getElementById(ue+"-preview");if(l){const e=l.offsetTop;null==r||r.scrollTo({top:e,behavior:"smooth"})}}},[Object(l["n"])("span",null,[e.tocItem.text]),e.tocItem.children&&e.tocItem.children.map(t=>Object(l["n"])(re,{markedHeadingId:e.markedHeadingId,key:t.text,tocItem:t},null))])}});const ie=Object(l["p"])({props:{markedHeadingId:{type:Function,default:()=>{}}},setup(e){const t=Object(l["s"])("editorId"),n=Object(l["G"])({list:[],show:!1}),r=Object(l["f"])(()=>{const e=[];return n.list.forEach(({text:t,level:n})=>{const l={level:n,text:t};if(0===e.length)e.push(l);else{let t=e[e.length-1];if(l.level>t.level)for(let e=t.level+1;e<=6;e++){const{children:e}=t;if(!e){t.children=[l];break}if(t=e[e.length-1],l.level<=t.level){e.push(l);break}}else e.push(l)}}),e});return Object(l["A"])(()=>{j.on(t,{name:"catalogChanged",callback:e=>{n.list=e}}),j.on(t,{name:"catalogShow",callback:()=>{n.show=!n.show}})}),()=>n.show?Object(l["n"])("div",{class:ue+"-catalog"},[r.value.map(t=>Object(l["n"])(re,{markedHeadingId:e.markedHeadingId,tocItem:t,key:t.text},null))]):""}});const ue="md",ae=e=>e,se={modelValue:{type:String,default:""},theme:{type:String,default:"light"},editorClass:{type:String,default:""},hljs:{type:Object,default:null},highlightJs:{type:String,default:f.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:D},toolbarsExclude:{type:Array,default:[]},prettier:{type:Boolean,default:!0},prettierCDN:{type:String,default:g.main},prettierMDCDN:{type:String,default:g.markdown},onHtmlChanged:{type:Function},Cropper:{type:Function,default:null},cropperCss:{type:String,default:v.css},cropperJs:{type:String,default:v.js},iconfontJs:{type:String,default:b},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:m},previewTheme:{type:String,default:"default"},markedHeading:{type:Function,default:(e,t,n)=>{const l=ae(n);return e!==n?`<h${t} id="${l}">${e}</h${t}>`:`<h${t} id="${l}"><a href="#${l}">${n}</a></h${t}>`}},style:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:ae}};var oe=Object(l["p"])({name:"MdEditorV3",props:se,setup(e,t){const{hljs:n,previewOnly:r,iconfontJs:i,prettier:u,prettierCDN:a,prettierMDCDN:s,Cropper:o,cropperCss:c,cropperJs:d,editorId:p,screenfull:h,screenfullJs:b}=e;y(e,t),C(e);const f=Object(l["G"])({pageFullScreen:e.pageFullScreen,fullscreen:!1,preview:e.preview,htmlPreview:!e.preview&&e.htmlPreview}),g=(e,t)=>{f[t]=e,"preview"===t&&f.preview?f.htmlPreview=!1:"htmlPreview"===t&&f.htmlPreview&&(f.preview=!1)};let v="";const m=()=>{f.pageFullScreen||f.fullscreen?document.body.style.overflow="hidden":document.body.style.overflow=v};Object(l["V"])(()=>[f.pageFullScreen,f.fullscreen],m),Object(l["A"])(()=>{r||j.on(p,{name:"uploadImage",callback(n,l){const r=e=>{e.forEach(e=>{setTimeout(()=>{j.emit(p,"replace","image",{desc:"",url:e})},0)}),l&&l()};e.onUploadImg?e.onUploadImg(n,r):t.emit("onUploadImg",n,r)}}),v=document.body.style.overflow,m()}),Object(l["y"])(()=>{j.clear(p)});const D=Object(l["f"])(()=>!e.toolbarsExclude.includes("catalog")&&e.toolbars.includes("catalog"));return()=>Object(l["n"])("div",{id:p,class:[ue,e.editorClass,"dark"===e.theme&&ue+"-dark",f.fullscreen||f.pageFullScreen?ue+"-fullscreen":"",r&&ue+"-previewOnly"],style:e.style},[!r&&Object(l["n"])(N,{prettier:u,screenfull:h,screenfullJs:b,toolbars:e.toolbars,toolbarsExclude:e.toolbarsExclude,setting:f,updateSetting:g},null),Object(l["n"])(le,{hljs:n,value:e.modelValue,onChange:n=>{e.onChange?e.onChange(n):t.emit("update:modelValue",n)},setting:f,onHtmlChanged:n=>{e.onHtmlChanged?e.onHtmlChanged(n):t.emit("onHtmlChanged",n)},onGetCatalog:n=>{e.onGetCatalog?e.onGetCatalog(n):t.emit("onGetCatalog",n)},markedHeading:e.markedHeading},null),D.value&&Object(l["n"])(ie,{markedHeadingId:e.markedHeadingId},null),!r&&Object(l["n"])(l["b"],{to:"head"},{default:()=>[Object(l["n"])("script",{src:i},null)]}),u&&!r&&Object(l["n"])(l["b"],{to:"head"},{default:()=>[Object(l["n"])("script",{src:a},null),Object(l["n"])("script",{src:s},null)]}),!r&&null===o&&Object(l["n"])(l["b"],{to:"head"},{default:()=>[Object(l["n"])("link",{href:c,rel:"stylesheet"},null),Object(l["n"])("script",{src:d},null)]})])}});oe.install=e=>(e.component(oe.name,oe),e)}).call(this,n("c8ba"))},5899:function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(e,t,n){var l=n("1d80"),r=n("577e"),i=n("5899"),u="["+i+"]",a=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),o=function(e){return function(t){var n=r(l(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:o(1),end:o(2),trim:o(3)}},"5a34":function(e,t,n){var l=n("44e7");e.exports=function(e){if(l(e))throw TypeError("The method doesn't accept regular expressions");return e}},"6b75":function(e,t,n){"use strict";function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}n.d(t,"a",(function(){return l}))},7156:function(e,t,n){var l=n("1626"),r=n("861d"),i=n("d2bb");e.exports=function(e,t,n){var u,a;return i&&l(u=t.constructor)&&u!==n&&r(a=u.prototype)&&a!==n.prototype&&i(e,a),e}},"8aa5":function(e,t,n){"use strict";var l=n("6547").charAt;e.exports=function(e,t,n){return t+(n?l(e,t).length:1)}},"99ad":function(e,t,n){"use strict";n.r(t);n("a4d3"),n("e01a");var l=n("f2bf"),r={id:"processBar",class:"overflow-hidden h-1 text-xs flex rounded bg-purple-200"},i={class:"flex items-center justify-between"},u={class:"text-right"},a={class:"text-xs font-semibold inline-block text-purple-600"},s={class:"container mx-auto flex flex-wrap"},o={class:"w-full md:w-2/3 flex flex-col xxs:px-0 md:px-3"},c={class:"flex flex-col shadow my-4"},d={class:"hover:opacity-75"},p=["src"],h={class:"bg-white flex flex-col justify-center p-6"},b={key:0,class:"text-blue-700 text-sm font-bold uppercase pb-4"},f={class:"text-sm font-semibold inline-block py-1 px-2 uppercase rounded-full text-purple-600 bg-purple-200"},g={class:"text-3xl font-bold hover:text-gray-700 pb-4"},v={class:"relative inline-block w-10 mr-2 align-middle select-none transition duration-200 ease-in"},m=Object(l["k"])("label",{for:"toggle",class:"toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer"},null,-1),D=Object(l["k"])("label",{for:"toggle",class:"text-xs text-gray-700"},"切换预览主题",-1),k={key:1,class:"flex xs:flex-row items-center md:justify-between lg:justify-start mb-3 px-1 pt-2"},x={class:"flex flex-col space-y-1 max-w-max whitespace-nowrap mr-2"},j={class:"text-xs m-0 p-0"},y={class:"text-xs m-0 p-0"},C=["src"],O={class:"text-sm pb-8"},w=Object(l["m"])(" 作者： "),A={class:"font-semibold hover:text-gray-800"},F={class:"md-e"},E=Object(l["k"])("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 md:h-10 md:w-10",viewBox:"0 0 20 20",fill:"currentColor"},[Object(l["k"])("path",{d:"M10.894 2.553a1 1 0 00-1.788 0l-7 14a1 1 0 001.169 1.409l5-1.429A1 1 0 009 15.571V11a1 1 0 112 0v4.571a1 1 0 00.725.962l5 1.428a1 1 0 001.17-1.408l-7-14z"})],-1),B=[E],S={href:"#comment-form",class:"fixed md:right-36 right-28 bottom-20 w-8 h-8 md:h-16 md:w-16 rounded-full flex justify-center items-center bg-indigo-400 opacity-60 hover:bg-gray-400 transition duration-100"},T=Object(l["k"])("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 md:h-10 md:w-10",viewBox:"0 0 20 20",fill:"currentColor"},[Object(l["k"])("path",{"fill-rule":"evenodd",d:"M18 10c0 3.866-3.582 7-8 7a8.841 8.841 0 01-4.083-.98L2 17l1.338-3.123C2.493 12.767 2 11.434 2 10c0-3.866 3.582-7 8-7s8 3.134 8 7zM7 9H5v2h2V9zm8 0h-2v2h2V9zM9 9h2v2H9V9z","clip-rule":"evenodd"})],-1),$=[T],I={class:"w-full flex pt-6"},_={class:"w-1/2 bg-white shadow hover:shadow-md text-left p-6"},z={class:"pt-2"},L={class:"w-1/2 items-end flex flex-col text-justify bg-white shadow hover:shadow-md p-6"},R={class:"pt-2"},P={key:0,class:"w-full flex flex-col text-center md:text-left md:flex-row shadow bg-white mt-10 mb-10 p-6 pb-3"},H={class:"w-full md:w-1/5 flex justify-center md:justify-start pb-4"},N=["src"],U={class:"flex-1 flex flex-col justify-center md:justify-start md:pl-10"},V={class:"font-semibold text-2xl"},M={class:"pt-2"},q={class:"w-full md:w-1/3 flex flex-col px-3"},K={key:0,class:"w-full bg-white shadow flex flex-col my-4 p-6 space-y-3 justify-center align-middle"},Z=Object(l["k"])("h1",{class:"mb-4 text-xl font-bold text-gray-700"},"相似文章",-1),G={class:"flex items-center justify-center"},W={key:0,class:"px-2 py-1 text-sm text-green-100 bg-gray-600 rounded hover:bg-gray-500"},X={class:"flex space-y-3 items-center justify-center md:flex-col md:justify-center md:space-x-0 md:space-y-3 lg:flex-row lg:space-y-0 lg:justify-between lg:space-x-12 sm:flex-row sm:space-y-0 sm:justify-between sm:space-x-12 xs:flex-row sm:space-y-0 xs:justify-between sm:space-x-12 xxs:space-y-0"},J={class:"flex items-center align-center md:mt-2 lg:mt-0"},Y=["src"],Q={class:"mx-3 text-sm text-gray-700 hover:underline"},ee={class:"text-sm font-light text-gray-600"},te={id:"photo",class:"w-full bg-white shadow flex flex-col my-4 p-6"},ne=Object(l["k"])("p",{class:"text-xl font-bold text-gray-700 pb-5"},"图片集",-1),le={class:"grid grid-cols-3 gap-3"},re=Object(l["k"])("a",{class:"w-full bg-blue-800 text-white font-bold text-sm uppercase rounded hover:bg-blue-700 flex items-center justify-center px-2 py-3 mt-6"},[Object(l["k"])("i",{class:"fab fa-instagram"}),Object(l["m"])(" Follow @dgrzyb ")],-1),ie={id:"boxFixed",ref:"box"},ue=Object(l["k"])("button",{class:"w-16 h-8 rounded-md bg-pink-200 hover:bg-red-600 transition duration-500 mb-2"}," 目录 ",-1),ae=["href"];function se(e,t,n,E,T,se){var oe=Object(l["K"])("md-editor"),ce=Object(l["K"])("Comments"),de=Object(l["K"])("router-link");return Object(l["C"])(),Object(l["j"])(l["a"],null,[Object(l["k"])("div",{class:Object(l["v"])(["w-full",{is_fixed:e.isProcessFixed}])},[Object(l["k"])("div",r,[Object(l["k"])("div",{style:Object(l["w"])({width:e.progressWidth}),class:"shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-purple-500"},null,4)]),Object(l["k"])("div",i,[Object(l["k"])("div",u,[Object(l["k"])("span",a,Object(l["N"])(e.progressWidth),1)])])],2),Object(l["k"])("div",s,[Object(l["k"])("section",o,[Object(l["k"])("article",c,[Object(l["k"])("a",d,[Object(l["k"])("img",{src:e.musicPicurl?e.musicPicurl:"https://img.paulzzh.com/touhou/random"},null,8,p)]),Object(l["k"])("div",h,[e.article.category?(Object(l["C"])(),Object(l["j"])("a",b,[Object(l["k"])("span",f,Object(l["N"])(e.article.category.title),1)])):Object(l["i"])("",!0),Object(l["k"])("a",g,[Object(l["m"])(Object(l["N"])(e.article.title)+" ",1),Object(l["k"])("div",v,[Object(l["k"])("input",{type:"checkbox",name:"toggle",id:"toggle",onChange:t[0]||(t[0]=function(e){return E.handleChanged(e)}),class:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"},null,32),m]),D]),e.musicUrl?(Object(l["C"])(),Object(l["j"])("div",k,[Object(l["k"])("div",x,[Object(l["k"])("div",j,Object(l["N"])(e.musicName),1),Object(l["k"])("div",y,Object(l["N"])(e.musicArtistsname),1)]),Object(l["k"])("audio",{src:e.musicUrl,controls:""}," 您的浏览器不支持播放音乐... ",8,C)])):Object(l["i"])("",!0),Object(l["k"])("p",O,[w,Object(l["k"])("a",A,Object(l["N"])(e.article.author?e.article.author.username:""),1),Object(l["m"])(" , 发布于 "+Object(l["N"])(e.article.created_time),1)]),Object(l["k"])("div",F,[Object(l["n"])(oe,{modelValue:e.article.content,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.article.content=t}),"preview-theme":e.theme,previewOnly:!0,onOnGetCatalog:E.onGetCatalog},null,8,["modelValue","preview-theme","onOnGetCatalog"])])]),Object(l["X"])(Object(l["k"])("div",{onClick:t[2]||(t[2]=function(){return E.clickTopHandle&&E.clickTopHandle.apply(E,arguments)}),class:"fixed right-20 bottom-20 w-8 h-8 md:h-16 md:w-16 rounded-full flex justify-center items-center bg-blue-400 opacity-60 hover:bg-gray-400 transition duration-100"},B,512),[[l["U"],e.show]]),Object(l["X"])(Object(l["k"])("a",S,$,512),[[l["U"],e.show]])]),Object(l["k"])("div",I,[Object(l["k"])("a",_,[Object(l["k"])("p",{class:"text-blue-800 hover:underline text-lg font-bold flex items-center cursor-pointer",onClick:t[3]||(t[3]=function(){return E.toPrev&&E.toPrev.apply(E,arguments)})}," 上一篇 "),Object(l["k"])("a",z,Object(l["N"])(e.messagePrev),1)]),Object(l["k"])("a",L,[Object(l["k"])("p",{class:"text-blue-800 hover:underline text-lg font-bold flex items-center cursor-pointer",onClick:t[4]||(t[4]=function(){return E.toNext&&E.toNext.apply(E,arguments)})}," 下一篇 "),Object(l["k"])("a",R,Object(l["N"])(e.messageNext),1)])]),Object(l["n"])(ce,{article:e.article},null,8,["article"]),e.article.author&&e.article.author.description?(Object(l["C"])(),Object(l["j"])("div",P,[Object(l["k"])("div",H,[Object(l["k"])("img",{src:E.getAvatar(e.article),class:"rounded-full object-cover shadow h-32 w-32"},null,8,N)]),Object(l["k"])("div",U,[Object(l["k"])("p",V,Object(l["N"])(e.article.author.username),1),Object(l["k"])("p",M,Object(l["N"])(e.article.author.description),1)])])):Object(l["i"])("",!0)]),Object(l["k"])("aside",q,[e.articles.length>0?(Object(l["C"])(),Object(l["j"])("div",K,[Z,(Object(l["C"])(!0),Object(l["j"])(l["a"],null,Object(l["I"])(e.articles,(function(e){return Object(l["C"])(),Object(l["j"])("div",{key:e.id,class:"flex flex-col px-8 py-6 bg-white rounded-lg shadow-md justify-center align-middle"},[Object(l["k"])("div",G,[e.category?(Object(l["C"])(),Object(l["j"])("a",W,Object(l["N"])(e.category.title),1)):Object(l["i"])("",!0)]),Object(l["n"])(de,{class:"mt-4 text-center",to:{name:"details",params:{slug:e.slug}}},{default:Object(l["W"])((function(){return[Object(l["m"])(Object(l["N"])(e.title),1)]})),_:2},1032,["to"]),Object(l["k"])("div",X,[Object(l["k"])("div",J,[Object(l["k"])("img",{src:E.getAvatar(e),alt:"avatar",class:"object-cover w-8 h-8 rounded-full"},null,8,Y),Object(l["k"])("a",Q,Object(l["N"])(e.author.username),1)]),Object(l["k"])("span",ee,Object(l["N"])(e.created_time),1)])])})),128))])):Object(l["i"])("",!0),Object(l["k"])("div",te,[ne,Object(l["k"])("div",le,[(Object(l["C"])(),Object(l["j"])(l["a"],null,Object(l["I"])(9,(function(e){return Object(l["k"])("img",{key:e,class:"hover:opacity-75",src:"https://img.paulzzh.com/touhou/random"})})),64))]),re,Object(l["k"])("div",ie,null,512)]),e.catalogList.length>0?(Object(l["C"])(),Object(l["j"])("div",{key:1,class:Object(l["v"])(["bg-white mt-4 p-2 xxs:hidden sm:hidden md:block lg:block shadow boxFiexd",{is_fixed:e.isFixed}])},[ue,(Object(l["C"])(!0),Object(l["j"])(l["a"],null,Object(l["I"])(e.catalogList,(function(e,t){return Object(l["C"])(),Object(l["j"])("div",{key:t,class:"hover:bg-gray-300 transition duration-500"},[Object(l["k"])("a",{href:"#".concat(e.text),class:Object(l["v"])("catalog-".concat(e.level))},Object(l["N"])(e.text),11,ae)])})),128))],2)):Object(l["i"])("",!0)])])],64)}var oe=n("5530"),ce=n("2909"),de=(n("2ca0"),n("d81d"),n("a9e3"),n("ac1f"),n("466d"),n("d3b7"),n("25f0"),n("b0c0"),n("5319"),n("852e")),pe=n.n(de),he=n("bc3a"),be=n.n(he),fe=n("5502"),ge=n("6c02"),ve=n("55f5"),me=(n("1834"),Object(l["k"])("br",null,null,-1)),De=Object(l["k"])("br",null,null,-1),ke=Object(l["k"])("h3",{id:"comment-form"},"发表评论",-1),xe=["placeholder"],je=Object(l["k"])("br",null,null,-1),ye=Object(l["k"])("hr",null,null,-1),Ce={key:0},Oe={class:"bg-gray-100 flex justify-center items-center"},we={class:"bg-white w-full sm:max-w-7xl h-auto shadow px-3 py-4 flex flex-col space-y-2"},Ae={class:"group relative flex flex-shrink-0 self-start cursor-pointer"},Fe=["src"],Ee={class:"flex items-center justify-center space-x-2"},Be={class:"block"},Se={class:"flex items-center space-x-2"},Te={class:"bg-gray-100 w-auto rounded-xl px-2 pb-2"},$e={class:"font-medium"},Ie={class:"text-sm"},_e=["id"],ze={key:0},Le=Object(l["k"])("small",null," 对 ",-1),Re={class:"parent"},Pe=["href"],He=Object(l["k"])("small",null," 说道：",-1),Ne={class:"text-xs"},Ue={key:0,class:"ml-2 text-xs bg-blue-200"},Ve=["href"],Me={class:"self-stretch flex justify-center items-center transform transition-opacity duration-200 opacity-0 hover:opacity-100"},qe=Object(l["k"])("div",{class:"text-xs cursor-pointer flex h-6 w-6 transform transition-colors duration-200 hover:bg-gray-100 rounded-full items-center justify-center"},[Object(l["k"])("svg",{class:"w-4 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[Object(l["k"])("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"})])],-1),Ke=[qe],Ze={class:"flex justify-start items-center text-xs w-full"},Ge={class:"font-semibold text-gray-700 px-2 flex items-center justify-center space-x-1"},We={class:"hover:underline"},Xe=["onClick"],Je=Object(l["k"])("a",{href:"#comment-form"},[Object(l["k"])("small",null,"回复")],-1),Ye=[Je],Qe=Object(l["k"])("small",{class:"self-center"},".",-1),et={class:"hover:underline"};function tt(e,t,n,r,i,u){return Object(l["C"])(),Object(l["j"])(l["a"],null,[me,De,ke,Object(l["X"])(Object(l["k"])("textarea",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.message=t}),placeholder:e.placeholder,name:"comment",id:"comment-area",cols:"60",rows:"10"},null,8,xe),[[l["T"],e.message]]),Object(l["k"])("div",null,[Object(l["k"])("button",{onClick:t[1]||(t[1]=function(){return r.submit&&r.submit.apply(r,arguments)}),class:"h-9 w-20 bg-blue-400"},"发布")]),je,Object(l["k"])("p",null,"已有 "+Object(l["N"])(e.comments.length)+" 条评论",1),ye,e.comments.length>0?(Object(l["C"])(),Object(l["j"])("div",Ce,[Object(l["k"])("div",Oe,[Object(l["k"])("div",we,[(Object(l["C"])(!0),Object(l["j"])(l["a"],null,Object(l["I"])(e.comments,(function(e){return Object(l["C"])(),Object(l["j"])("div",{key:e.id,class:"flex items-center space-x-2"},[Object(l["k"])("div",Ae,[Object(l["k"])("img",{src:r.getAvatar(e),alt:"头像",class:"h-8 w-8 object-fill rounded-full"},null,8,Fe)]),Object(l["k"])("div",Ee,[Object(l["k"])("div",Be,[Object(l["k"])("div",Se,[Object(l["k"])("div",Te,[Object(l["k"])("div",$e,[Object(l["k"])("div",Ie,[Object(l["k"])("small",{id:r.getCommentId(e)},Object(l["N"])(e.author.username),9,_e),e.parent?(Object(l["C"])(),Object(l["j"])("span",ze,[Le,Object(l["k"])("span",Re,[Object(l["k"])("a",{href:r.getAnchor(e)},[Object(l["k"])("small",null,Object(l["N"])(e.parent.author.username),1)],8,Pe)])])):Object(l["i"])("",!0),He])]),Object(l["k"])("div",Ne,Object(l["N"])(e.content),1),e.parent?(Object(l["C"])(),Object(l["j"])("div",Ue,[Object(l["k"])("a",{href:r.getAnchor(e)},Object(l["N"])(e.parent.content),9,Ve)])):Object(l["i"])("",!0)]),Object(l["k"])("div",Me,[Object(l["k"])("a",{href:"#comment-form",onClick:t[2]||(t[2]=function(){return r.clearReplyTo&&r.clearReplyTo.apply(r,arguments)})},Ke)])]),Object(l["k"])("div",Ze,[Object(l["k"])("div",Ge,[Object(l["k"])("a",We,[Object(l["k"])("button",{class:"commentBtn",onClick:function(t){return r.replyTo(e)}},Ye,8,Xe)]),Qe,Object(l["k"])("a",et,[Object(l["k"])("small",null,Object(l["N"])(e.created_time),1)])])])])])])})),128))])])])):Object(l["i"])("",!0)],64)}var nt=n("0180"),lt={props:{article:{type:Object}},setup:function(e){var t=Object(fe["b"])(),n=Object(nt["b"])(),r=Object(l["G"])({comments:[],message:"",placeholder:"说呗...",parentId:null,isLoggedIn:Object(l["f"])((function(){return t.getters.isLoggedIn}))});Object(l["V"])((function(){return e.article}),(function(e){r.comments=null!==e?e.comments:[]}));var i=function(){be.a.post("/api/comments/",{content:r.message,article_id:e.article.id,parent_id:r.parentId||null},{headers:{"Content-Type":"Application/json","X-CSRFTOKEN":pe.a.get("csrftoken"),Authorization:"Token "+r.isLoggedIn}}).then((function(e){r.comments.unshift(e.data),r.message="",n.success("留言成功",{timeout:2e3})})).catch((function(e){console.log(e)}))},u=function(e){r.parentId=e.id,r.placeholder="对"+e.author.username+"说："},a=function(){r.parentId=null,r.placeholder="说呗..."},s=function(e){return"comment-".concat(e.id)},o=function(e){if(e.parent)return"#comment-".concat(e.parent.id)},c=function(e){return null!==e.author.user?e.author.user.avatar_url:null!==e.author.avatar?e.author.avatar.content:"https://img.paulzzh.com/touhou/random"};return Object(oe["a"])(Object(oe["a"])({},Object(l["Q"])(r)),{},{submit:i,replyTo:u,clearReplyTo:a,getCommentId:s,getAnchor:o,getAvatar:c})}},rt=n("d959"),it=n.n(rt);const ut=it()(lt,[["render",tt]]);var at=ut,st={props:{slug:{type:String,required:!0}},components:{MdEditor:ve["a"],Comments:at},watch:{$route:function(e){e.fullPath.startsWith("/details")&&(this.getArticle(e.params.slug),this.getPrevNext(e.params.slug))}},setup:function(e){var t=Object(fe["b"])(),n=Object(ge["d"])(),r=Object(l["H"])(null),i=Object(l["G"])({article:{},articles:[],theme:"default",messagePrev:null,messageNext:null,prevSlug:"",nextSlug:"",catalogList:[],catalogHtmlTitle:[],isFixed:!1,isProcessFixed:!1,progressWidth:null,offsetTop:0,offsetHeight:0,offsetProcessBarTop:0,scrollTop:0,isLoggedIn:Object(l["f"])((function(){return t.getters.isLoggedIn})),show:!1,musicName:"",musicUrl:"",musicPicurl:"",musicArtistsname:""}),u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.slug;be.a.get("/api/blog/".concat(t,"/"),{headers:{"Content-Type":"Application/json","X-CSRFTOKEN":pe.a.get("csrftoken"),Authorization:"Token "+i.isLoggedIn}}).then((function(e){i.article=e.data})).catch((function(e){return console.log(e)}))},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.slug;be.a.get("/api/blog/".concat(t,"?prev"),{headers:{"Content-Type":"Application/json","X-CSRFTOKEN":pe.a.get("csrftoken"),Authorization:"Token "+i.isLoggedIn}}).then((function(t){i.messagePrev=t.data.message||t.data.title,i.prevSlug=t.data.slug||e.slug})).catch((function(e){console.log(e.response.message)})),be.a.get("/api/blog/".concat(t,"?next"),{headers:{"Content-Type":"Application/json","X-CSRFTOKEN":pe.a.get("csrftoken"),Authorization:"Token "+i.isLoggedIn}}).then((function(t){i.messageNext=t.data.message||t.data.title,i.nextSlug=t.data.slug||e.slug})).catch((function(e){return console.log(e)})),be.a.get("/api/blog/".concat(t,"?similar"),{headers:{"Content-Type":"Application/json","X-CSRFTOKEN":pe.a.get("csrftoken"),Authorization:"Token "+i.isLoggedIn}}).then((function(e){return e.data})).then((function(e){var t;i.articles=[],(t=i.articles).push.apply(t,Object(ce["a"])(e.map((function(e){return e.created_time=new Date(e.created_time).toLocaleDateString("zh-hans"),e}))))})).catch((function(e){return console.log(e)}))},s=function(e){var t;i.catalogList=[],(t=i.catalogList).push.apply(t,Object(ce["a"])(e.map((function(e){return e}))))},o=function(){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,t=0;i.articles.length>0&&(1==i.articles.length?t=406:2==i.articles.length?t=506:3==i.articles.length&&(t=706));var n=document.documentElement.scrollHeight||document.body.scrollHeight,l=document.documentElement.clientHeight||document.body.clientHeight,r=n-l,u=Number((e/r).toString().match(/^\d+(?:\.\d{0,2})?/));i.progressWidth=100*u+"%",i.isFixed=e>i.offsetTop+t,i.isProcessFixed=e>i.offsetProcessBarTop;var a=document.documentElement.clientHeight,s=document.documentElement.scrollTop;i.show=a<s},c=function(){var e="https://api.uomg.com/api/rand.music?sort=热歌榜&format=json";be.a.get(e).then((function(e){1===e.data.code&&(i.musicName=e.data.data.name,i.musicUrl=e.data.data.url,i.musicPicurl=e.data.data.picurl,i.musicArtistsname=e.data.data.artistsname)})).catch((function(e){console.error(e)}))};Object(l["A"])((function(){window.addEventListener("scroll",o),Object(l["u"])((function(){i.offsetTop=document.querySelector("#boxFixed").offsetTop,i.offsetProcessBarTop=document.querySelector("#processBar").offsetTop})),c()})),Object(l["B"])((function(){window.removeEventListener("scroll",o)}));var d=function(){document.documentElement.scrollTop=0},p=function(){"default"===i.theme||"vuepress"===i.theme?i.theme="github":"github"===i.theme&&(i.theme="vuepress")},h=function(e){return null!==e.author.user?e.author.user.avatar_url:null!==e.author.avatar?e.author.avatar.content:"https://img.paulzzh.com/touhou/random"};return u(),a(),Object(oe["a"])(Object(oe["a"])({},Object(l["Q"])(i)),{},{router:n,getArticle:u,getPrevNext:a,onGetCatalog:s,toPrev:function(){n.replace({name:"details",params:{slug:i.prevSlug}})},toNext:function(){n.replace({name:"details",params:{slug:i.nextSlug}})},initHeight:o,clickTopHandle:d,handleChanged:p,getAvatar:h,box:r})}};n("4c34");const ot=it()(st,[["render",se]]);t["default"]=ot},"9bdd":function(e,t,n){var l=n("825a"),r=n("2a62");e.exports=function(e,t,n,i){try{return i?t(l(n)[0],n[1]):t(n)}catch(u){r(e,"throw",u)}}},a630:function(e,t,n){var l=n("23e7"),r=n("4df4"),i=n("1c7e"),u=!i((function(e){Array.from(e)}));l({target:"Array",stat:!0,forced:u},{from:r})},a9e3:function(e,t,n){"use strict";var l=n("83ab"),r=n("da84"),i=n("94ca"),u=n("6eeb"),a=n("1a2d"),s=n("7156"),o=n("d9b5"),c=n("c04e"),d=n("d039"),p=n("241c").f,h=n("06cf").f,b=n("9bf2").f,f=n("408a"),g=n("58a8").trim,v="Number",m=r[v],D=m.prototype,k=function(e){var t=c(e,"number");return"bigint"===typeof t?t:x(t)},x=function(e){var t,n,l,r,i,u,a,s,d=c(e,"number");if(o(d))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof d&&d.length>2)if(d=g(d),t=d.charCodeAt(0),43===t||45===t){if(n=d.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(d.charCodeAt(1)){case 66:case 98:l=2,r=49;break;case 79:case 111:l=8,r=55;break;default:return+d}for(i=d.slice(2),u=i.length,a=0;a<u;a++)if(s=i.charCodeAt(a),s<48||s>r)return NaN;return parseInt(i,l)}return+d};if(i(v,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var j,y=function(e){var t=arguments.length<1?0:m(k(e)),n=this;return n instanceof y&&d((function(){f(n)}))?s(Object(t),n,y):t},C=l?p(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),O=0;C.length>O;O++)a(m,j=C[O])&&!a(y,j)&&b(y,j,h(m,j));y.prototype=D,D.constructor=y,u(r,v,y)}},ab13:function(e,t,n){var l=n("b622"),r=l("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(l){}}return!1}},d28b:function(e,t,n){var l=n("746f");l("iterator")},d81d:function(e,t,n){"use strict";var l=n("23e7"),r=n("b727").map,i=n("1dde"),u=i("map");l({target:"Array",proto:!0,forced:!u},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},fb6a:function(e,t,n){"use strict";var l=n("23e7"),r=n("e8b5"),i=n("68ee"),u=n("861d"),a=n("23cb"),s=n("07fa"),o=n("fc6a"),c=n("8418"),d=n("b622"),p=n("1dde"),h=p("slice"),b=d("species"),f=[].slice,g=Math.max;l({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,l,d,p=o(this),h=s(p),v=a(e,h),m=a(void 0===t?h:t,h);if(r(p)&&(n=p.constructor,i(n)&&(n===Array||r(n.prototype))?n=void 0:u(n)&&(n=n[b],null===n&&(n=void 0)),n===Array||void 0===n))return f.call(p,v,m);for(l=new(void 0===n?Array:n)(g(m-v,0)),d=0;v<m;v++,d++)v in p&&c(l,d,p[v]);return l.length=d,l}})}}]);
  //# sourceMappingURL=chunk-fc70c6f8.1f633776.js.map