(window.webpackJsonp=window.webpackJsonp||[]).push([[156,6,7],{"+NIl":function(ht,Je,k){(function(F){F(k("VrN/"))})(function(F){"use strict";F.defineMode("stex",function(ge,se){"use strict";function Ae(le,G){le.cmdState.push(G)}function Ee(le){return le.cmdState.length>0?le.cmdState[le.cmdState.length-1]:null}function X(le){var G=le.cmdState.pop();G&&G.closeBracket()}function D(le){for(var G=le.cmdState,j=G.length-1;j>=0;j--){var I=G[j];if(I.name=="DEFAULT")continue;return I}return{styleIdentifier:function(){return null}}}function L(le,G,j){return function(){this.name=le,this.bracketNo=0,this.style=G,this.styles=j,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var T={};T.importmodule=L("importmodule","tag",["string","builtin"]),T.documentclass=L("documentclass","tag",["","atom"]),T.usepackage=L("usepackage","tag",["atom"]),T.begin=L("begin","tag",["atom"]),T.end=L("end","tag",["atom"]),T.label=L("label","tag",["atom"]),T.ref=L("ref","tag",["atom"]),T.eqref=L("eqref","tag",["atom"]),T.cite=L("cite","tag",["atom"]),T.bibitem=L("bibitem","tag",["atom"]),T.Bibitem=L("Bibitem","tag",["atom"]),T.RBibitem=L("RBibitem","tag",["atom"]),T.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function H(le,G){le.f=G}function K(le,G){var j;if(le.match(/^\\[a-zA-Z@]+/)){var I=le.current().slice(1);return j=T.hasOwnProperty(I)?T[I]:T.DEFAULT,j=new j,Ae(G,j),H(G,Ce),j.style}if(le.match(/^\\[$&%#{}_]/))return"tag";if(le.match(/^\\[,;!\/\\]/))return"tag";if(le.match("\\["))return H(G,function(ae,_e){return q(ae,_e,"\\]")}),"keyword";if(le.match("\\("))return H(G,function(ae,_e){return q(ae,_e,"\\)")}),"keyword";if(le.match("$$"))return H(G,function(ae,_e){return q(ae,_e,"$$")}),"keyword";if(le.match("$"))return H(G,function(ae,_e){return q(ae,_e,"$")}),"keyword";var oe=le.next();if(oe=="%")return le.skipToEnd(),"comment";if(oe=="}"||oe=="]"){if(j=Ee(G),j)j.closeBracket(oe),H(G,Ce);else return"error";return"bracket"}else return oe=="{"||oe=="["?(j=T.DEFAULT,j=new j,Ae(G,j),"bracket"):/\d/.test(oe)?(le.eatWhile(/[\w.%]/),"atom"):(le.eatWhile(/[\w\-_]/),j=D(G),j.name=="begin"&&(j.argument=le.current()),j.styleIdentifier())}function q(le,G,j){if(le.eatSpace())return null;if(j&&le.match(j))return H(G,K),"keyword";if(le.match(/^\\[a-zA-Z@]+/))return"tag";if(le.match(/^[a-zA-Z]+/))return"variable-2";if(le.match(/^\\[$&%#{}_]/))return"tag";if(le.match(/^\\[,;!\/]/))return"tag";if(le.match(/^[\^_&]/))return"tag";if(le.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(le.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var I=le.next();return I=="{"||I=="}"||I=="["||I=="]"||I=="("||I==")"?"bracket":I=="%"?(le.skipToEnd(),"comment"):"error"}function Ce(le,G){var j=le.peek(),I;return j=="{"||j=="["?(I=Ee(G),I.openBracket(j),le.eat(j),H(G,K),"bracket"):/[ \t\r]/.test(j)?(le.eat(j),null):(H(G,K),X(G),K(le,G))}return{startState:function(){var le=se.inMathMode?function(G,j){return q(G,j)}:K;return{cmdState:[],f:le}},copyState:function(le){return{cmdState:le.cmdState.slice(),f:le.f}},token:function(le,G){return G.f(le,G)},blankLine:function(le){le.f=K,le.cmdState.length=0},lineComment:"%"}}),F.defineMIME("text/x-stex","stex"),F.defineMIME("text/x-latex","stex")})},"19Vz":function(ht,Je,k){(function(F){F(k("VrN/"))})(function(F){F.defineOption("placeholder","",function(L,T,H){var K=H&&H!=F.Init;if(T&&!K)L.on("blur",Ee),L.on("change",X),L.on("swapDoc",X),F.on(L.getInputField(),"compositionupdate",L.state.placeholderCompose=function(){Ae(L)}),X(L);else if(!T&&K){L.off("blur",Ee),L.off("change",X),L.off("swapDoc",X),F.off(L.getInputField(),"compositionupdate",L.state.placeholderCompose),ge(L);var q=L.getWrapperElement();q.className=q.className.replace(" CodeMirror-empty","")}T&&!L.hasFocus()&&Ee(L)});function ge(L){L.state.placeholder&&(L.state.placeholder.parentNode.removeChild(L.state.placeholder),L.state.placeholder=null)}function se(L){ge(L);var T=L.state.placeholder=document.createElement("pre");T.style.cssText="height: 0; overflow: visible",T.style.direction=L.getOption("direction"),T.className="CodeMirror-placeholder CodeMirror-line-like";var H=L.getOption("placeholder");typeof H=="string"&&(H=document.createTextNode(H)),T.appendChild(H),L.display.lineSpace.insertBefore(T,L.display.lineSpace.firstChild)}function Ae(L){setTimeout(function(){var T=!1,H=L.getInputField();H.nodeName=="TEXTAREA"?T=!H.value:L.lineCount()==1&&(T=!/[^\u200b]/.test(H.querySelector(".CodeMirror-line").textContent)),T?se(L):ge(L)},20)}function Ee(L){D(L)&&se(L)}function X(L){var T=L.getWrapperElement(),H=D(L);T.className=T.className.replace(" CodeMirror-empty","")+(H?" CodeMirror-empty":""),H?se(L):ge(L)}function D(L){return L.lineCount()===1&&L.getLine(0)===""}})},"1eCo":function(ht,Je,k){(function(F){F(k("VrN/"))})(function(F){"use strict";var ge={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},se={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};F.defineMode("xml",function(Ae,Ee){var X=Ae.indentUnit,D={},L=Ee.htmlMode?ge:se;for(var T in L)D[T]=L[T];for(var T in Ee)D[T]=Ee[T];var H,K;function q(b,J){function z(P){return J.tokenize=P,P(b,J)}var x=b.next();if(x=="<")return b.eat("!")?b.eat("[")?b.match("CDATA[")?z(G("atom","]]>")):null:b.match("--")?z(G("comment","-->")):b.match("DOCTYPE",!0,!0)?(b.eatWhile(/[\w\._\-]/),z(j(1))):null:b.eat("?")?(b.eatWhile(/[\w\._\-]/),J.tokenize=G("meta","?>"),"meta"):(H=b.eat("/")?"closeTag":"openTag",J.tokenize=Ce,"tag bracket");if(x=="&"){var ee;return b.eat("#")?b.eat("x")?ee=b.eatWhile(/[a-fA-F\d]/)&&b.eat(";"):ee=b.eatWhile(/[\d]/)&&b.eat(";"):ee=b.eatWhile(/[\w\.\-:]/)&&b.eat(";"),ee?"atom":"error"}else return b.eatWhile(/[^&<]/),null}q.isInText=!0;function Ce(b,J){var z=b.next();if(z==">"||z=="/"&&b.eat(">"))return J.tokenize=q,H=z==">"?"endTag":"selfcloseTag","tag bracket";if(z=="=")return H="equals",null;if(z=="<"){J.tokenize=q,J.state=_e,J.tagName=J.tagStart=null;var x=J.tokenize(b,J);return x?x+" tag error":"tag error"}else return/[\'\"]/.test(z)?(J.tokenize=le(z),J.stringStartCol=b.column(),J.tokenize(b,J)):(b.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function le(b){var J=function(z,x){for(;!z.eol();)if(z.next()==b){x.tokenize=Ce;break}return"string"};return J.isInAttribute=!0,J}function G(b,J){return function(z,x){for(;!z.eol();){if(z.match(J)){x.tokenize=q;break}z.next()}return b}}function j(b){return function(J,z){for(var x;(x=J.next())!=null;){if(x=="<")return z.tokenize=j(b+1),z.tokenize(J,z);if(x==">")if(b==1){z.tokenize=q;break}else return z.tokenize=j(b-1),z.tokenize(J,z)}return"meta"}}function I(b,J,z){this.prev=b.context,this.tagName=J,this.indent=b.indented,this.startOfLine=z,(D.doNotIndent.hasOwnProperty(J)||b.context&&b.context.noIndent)&&(this.noIndent=!0)}function oe(b){b.context&&(b.context=b.context.prev)}function ae(b,J){for(var z;;){if(!b.context)return;if(z=b.context.tagName,!D.contextGrabbers.hasOwnProperty(z)||!D.contextGrabbers[z].hasOwnProperty(J))return;oe(b)}}function _e(b,J,z){return b=="openTag"?(z.tagStart=J.column(),He):b=="closeTag"?pe:_e}function He(b,J,z){return b=="word"?(z.tagName=J.current(),K="tag",me):D.allowMissingTagName&&b=="endTag"?(K="tag bracket",me(b,J,z)):(K="error",He)}function pe(b,J,z){if(b=="word"){var x=J.current();return z.context&&z.context.tagName!=x&&D.implicitlyClosed.hasOwnProperty(z.context.tagName)&&oe(z),z.context&&z.context.tagName==x||D.matchClosing===!1?(K="tag",ke):(K="tag error",je)}else return D.allowMissingTagName&&b=="endTag"?(K="tag bracket",ke(b,J,z)):(K="error",je)}function ke(b,J,z){return b!="endTag"?(K="error",ke):(oe(z),_e)}function je(b,J,z){return K="error",ke(b,J,z)}function me(b,J,z){if(b=="word")return K="attribute",he;if(b=="endTag"||b=="selfcloseTag"){var x=z.tagName,ee=z.tagStart;return z.tagName=z.tagStart=null,b=="selfcloseTag"||D.autoSelfClosers.hasOwnProperty(x)?ae(z,x):(ae(z,x),z.context=new I(z,x,ee==z.indented)),_e}return K="error",me}function he(b,J,z){return b=="equals"?Oe:(D.allowMissing||(K="error"),me(b,J,z))}function Oe(b,J,z){return b=="string"?V:b=="word"&&D.allowUnquoted?(K="string",me):(K="error",me(b,J,z))}function V(b,J,z){return b=="string"?V:me(b,J,z)}return{startState:function(b){var J={tokenize:q,state:_e,indented:b||0,tagName:null,tagStart:null,context:null};return b!=null&&(J.baseIndent=b),J},token:function(b,J){if(!J.tagName&&b.sol()&&(J.indented=b.indentation()),b.eatSpace())return null;H=null;var z=J.tokenize(b,J);return(z||H)&&z!="comment"&&(K=null,J.state=J.state(H||z,b,J),K&&(z=K=="error"?z+" error":K)),z},indent:function(b,J,z){var x=b.context;if(b.tokenize.isInAttribute)return b.tagStart==b.indented?b.stringStartCol+1:b.indented+X;if(x&&x.noIndent)return F.Pass;if(b.tokenize!=Ce&&b.tokenize!=q)return z?z.match(/^(\s*)/)[0].length:0;if(b.tagName)return D.multilineTagIndentPastTag!==!1?b.tagStart+b.tagName.length+2:b.tagStart+X*(D.multilineTagIndentFactor||1);if(D.alignCDATA&&/$/,blockCommentStart:"",configuration:D.htmlMode?"html":"xml",helperType:D.htmlMode?"html":"xml",skipAttribute:function(b){b.state==Oe&&(b.state=me)},xmlCurrentTag:function(b){return b.tagName?{name:b.tagName,close:b.type=="closeTag"}:null},xmlCurrentContext:function(b){for(var J=[],z=b.context;z;z=z.prev)z.tagName&&J.push(z.tagName);return J.reverse()}}}),F.defineMIME("text/xml","xml"),F.defineMIME("application/xml","xml"),F.mimeModes.hasOwnProperty("text/html")||F.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"7ahc":function(ht,Je,k){"use strict";k.d(Je,"a",function(){return He});var F=k("k1fw"),ge=k("0Owb"),se=k("+L6B"),Ae=k("2/Rp"),Ee=k("y8nQ"),X=k("Vl3Y"),D=k("tJVT"),L=k("OaEy"),T=k("2fM7"),H=k("q1tI"),K=k.n(H),q=k("VrN/"),Ce=k.n(q),le=k("p77/"),G=k.n(le),j=k("c5Ni"),I=k.n(j),oe=T.a.Option,ae={labelCol:{span:4},wrapperCol:{span:20}},_e={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Je.b=function(pe){var ke=pe.callback,je=pe.onCancel,me=Object(H.useState)("python"),he=Object(D.a)(me,2),Oe=he[0],V=he[1];function b(z){V(_e[z][1])}function J(z){ke(z)}return K.a.createElement(X.a,Object(ge.a)({},ae,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:J}),K.a.createElement(X.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},K.a.createElement(T.a,{onChange:b},Object.keys(_e).map(function(z){return K.a.createElement(oe,{key:z,value:z},_e[z][0])}))),K.a.createElement(X.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},K.a.createElement(He,{mode:Oe})),K.a.createElement("div",{className:"flex-container flex-end"},K.a.createElement(Ae.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),K.a.createElement(Ae.a,{type:"ghost",onClick:je},"\u53D6\u6D88")))};function He(pe){var ke=pe.value,je=pe.onChange,me=pe.mode,he=pe.options,Oe=he===void 0?{}:he,V=Object(H.useRef)(),b=Object(H.useState)(),J=Object(D.a)(b,2),z=J[0],x=J[1];return Object(H.useEffect)(function(){if(z){function ee(P){var O=P.getValue();je&&je(O)}return z.on("change",ee),function(){z.off("change",ee)}}},[z,je]),Object(H.useEffect)(function(){z&&z.setOption("mode",me)},[z,me]),Object(H.useEffect)(function(){z&&((ke!==z.getValue()||ke==="")&&setTimeout(function(){z.setValue(ke||" ")},300))},[z,ke]),Object(H.useEffect)(function(){if(V.current&&!z){var ee=Ce.a.fromTextArea(V.current,Object(F.a)({mode:me,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Oe));x(ee)}},[V.current,z]),K.a.createElement("div",{className:"my-codemirror-container"},K.a.createElement("textarea",{ref:V}))}},"7ixt":function(ht,Je,k){"use strict";k.d(Je,"a",function(){return se});var F={adjustX:1,adjustY:1},ge=[0,0],se={left:{points:["cr","cl"],overflow:F,offset:[-4,0],targetOffset:ge},right:{points:["cl","cr"],overflow:F,offset:[4,0],targetOffset:ge},top:{points:["bc","tc"],overflow:F,offset:[0,-4],targetOffset:ge},bottom:{points:["tc","bc"],overflow:F,offset:[0,4],targetOffset:ge},topLeft:{points:["bl","tl"],overflow:F,offset:[0,-4],targetOffset:ge},leftTop:{points:["tr","tl"],overflow:F,offset:[-4,0],targetOffset:ge},topRight:{points:["br","tr"],overflow:F,offset:[0,-4],targetOffset:ge},rightTop:{points:["tl","tr"],overflow:F,offset:[4,0],targetOffset:ge},bottomRight:{points:["tr","br"],overflow:F,offset:[0,4],targetOffset:ge},rightBottom:{points:["bl","br"],overflow:F,offset:[4,0],targetOffset:ge},bottomLeft:{points:["tl","bl"],overflow:F,offset:[0,4],targetOffset:ge},leftBottom:{points:["br","bl"],overflow:F,offset:[-4,0],targetOffset:ge}},Ae=se},"8EBN":function(ht,Je,k){(function(F){F(k("VrN/"))})(function(F){"use strict";F.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ge=0;ge-1&&Ae.substring(D+1,Ae.length);if(L)return F.findModeByExtension(L)},F.findModeByName=function(Ae){Ae=Ae.toLowerCase();for(var Ee=0;Ee=ue.length?ye.slice(ue.length):ye}).join(`
`)}var H=[],K=[""],q=new D.a.Renderer,Ce=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){H.length=0,K=[""]}var G={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function j(m,w,R,ue){if(w>=m.length||m[w].level<=R)return w;var ye=m[w];ue.push("- "+ye.text+""),w++;var ne=[];return w=j(m,w,ye.level,ne),ne.length>0&&(ue.push("
"),ne.forEach(function(be){ue.push(be)}),ue.push("
")),ue.push(" "),w=j(m,w,R,ue),w}function I(){return j(H,0,0,K),K.push("
"),K.join("")}var oe={heading:function(w){var R=Ce.exec(w);if(R)return{type:"heading",raw:R[0],depth:R[1].length,text:R[2]}},fences:function(w){var R=this.rules.block.fences.exec(w);if(R){var ue=R[0],ye=T(ue,R[3]||""),ne=R[2]?R[2].trim():R[2];if(["latex","katex","math"].indexOf(ne)>=0){var be=He(),ce=ye;ye=be,pe[be]={type:"block",expression:ce}}return{type:"code",raw:ue,lang:ne,text:ye}}}},ae=/(?:\${2})([^\n`]+?)(?:\${2})/gi,_e=0,He=function(){return"__special_katext_id_".concat(_e++,"__")},pe={};function ke(){return pe}function je(){_e=0,pe={}}function me(m){return m=m.replace(ae,function(w,R){var ue=He();return pe[ue]={type:"inline",expression:R},ue}),m}var he=q.listitem;q.listitem=function(m){return he(me(m))};var Oe=q.paragraph;q.paragraph=function(m){return Oe(me(m))};var V=q.tablecell;q.tablecell=function(m,w){return V(me(m),w)},q.code=function(m,w,R){var ue=(w||"").match(/\S*/)[0];return ue?["latex","katex","math"].indexOf(ue)>=0?"".concat(m,"
"):'
').concat(R?m:Object(L.escape)(m,!0),`
`):''+(R?m:Object(L.escape)(m,!0))+"
"},q.heading=function(m,w,R){var ue=this.options.headerPrefix+R.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return H.push({anchor:ue,level:w,text:m}),"'+m+""},D.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),D.a.use({tokenizer:oe,renderer:q});var b=D.a,J=k("SJMd"),z=k("ulZh"),x=k.n(z),ee=k("m3rI"),P=k("Oy/b"),O=k("p5ED"),S=/]*>/g;function c(m){var w=document.createElement("div");return w.innerHTML=m,w.childNodes.length===0?"":w.childNodes[0].nodeValue}var s=Je.a=function(m){var w,R=m.value,ue=R===void 0?"":R,ye=m.className,ne=m.showTextOnly,be=m.showLines,ce=m.style,Q=ce===void 0?{}:ce,W=m.stylesPrev,re=W===void 0?{}:W,p=(w=String(ue))===null||w===void 0?void 0:w.replace(/|<\/script>/gi,"").replace(/on\w+="[^"]*"/gi,""),_=Object(se.useState)(""),g=Object(ge.a)(_,2),N=g[0],te=g[1],B=Object(se.useMemo)(function(){try{var Le=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,we=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Re=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;p=p.replace(Le,"("+ee.a.API_SERVER+"/api/attachments/").replace(we,'"'+ee.a.API_SERVER+"/api/attachments/").replace(Re,'"'+ee.a.API_SERVER+"/files/uploads/").replace(/\r\n/g,`
`),p=p.replace(new RegExp("(?[TOC]
",I()),le()),Ve=Ve.replace(/(__special_katext_id_\d+__)/g,function(Ze,ct){var rt=Xe[ct],Ye=rt.type,ve=rt.expression;return Object(P.renderToString)(c(ve)||"",{displayMode:Ye==="block",throwOnError:!1,output:"html"})}),Ve=Ve.replace(/▁/g,"\u2581\u2581\u2581"),je(),ne){var Ke=document.createElement("div");return Ke.innerHTML=Ve,Ke.innerText}return setTimeout(function(){return Ie()},500),Ve},[p]),ie=Object(se.useRef)();G.WebkitLineClamp=be,be&&(Q=Object(F.a)(Object(F.a)({},Q),G));function Te(Le){var we=Le.target;if(we.tagName.toUpperCase()==="A"){var Re=we.getAttribute("href");if(Re.indexOf("office")>-1)Le.preventDefault(),te(Re);else if(Re.startsWith("#")){Le.preventDefault();var Ve=document.getElementById(Re.replace("#",""));Ve&&Ve.scrollIntoView(!0)}}}var Ie=function(){var we,Re=(we=ie.current)===null||we===void 0?void 0:we.querySelectorAll("video");Re==null||Re.forEach(function(Ve){if(Ve.oncontextmenu=function(){return!1},Ve.src.indexOf(".m3u8")>-1&&!Ve.canPlayType("application/vnd.apple.mpegurl")){if(x.a.isSupported()){var Xe=new x.a;Xe.loadSource(Ve.src),Xe.attachMedia(Ve)}}})};return Object(se.useEffect)(function(){if(ie.current&&B&&(B.match(S)&&window.PR.prettyPrint()),ie.current)return ie.current.addEventListener("click",Te),function(){ie.current.removeEventListener("click",Te),je(),le()}},[B,ie.current,Te]),Ae.a.createElement(Ae.a.Fragment,null,Ae.a.createElement("div",{ref:ie,style:Object(F.a)({},Q),className:"".concat(ye||""," markdown-body "),dangerouslySetInnerHTML:{__html:B}}),Ae.a.createElement(O.a,{close:!0,data:N,type:N!=null&&N.length?"office":"",style:Object(F.a)({},re),onClose:function(){return te("")}}))}},"9VGf":function(ht,Je,k){"use strict";k.d(Je,"a",function(){return se});var F=k("q1tI"),ge=k.n(F);function se(Ae,Ee){var X=Object(F.useRef)();Object(F.useEffect)(function(){X.current=Ae}),Object(F.useEffect)(function(){function D(){X.current()}if(Ee!==null){var L=setInterval(D,Ee);return function(){return clearInterval(L)}}},[Ee])}},"9ivq":function(ht,Je,k){},Bd2K:function(ht,Je,k){(function(F){F(k("VrN/"),k("osHv"))})(function(F){F.defineOption("autoCloseTags",!1,function(T,H,K){if(K!=F.Init&&K&&T.removeKeyMap("autoCloseTags"),!H)return;var q={name:"autoCloseTags"};(typeof H!="object"||H.whenClosing!==!1)&&(q["'/'"]=function(Ce){return X(Ce)}),(typeof H!="object"||H.whenOpening!==!1)&&(q["'>'"]=function(Ce){return Ae(Ce)}),T.addKeyMap(q)});var ge=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],se=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ae(T){if(T.getOption("disableInput"))return F.Pass;for(var H=T.listSelections(),K=[],q=T.getOption("autoCloseTags"),Ce=0;Cele.ch&&(ae=ae.slice(0,ae.length-G.end+le.ch));var ke=ae.toLowerCase();if(!ae||G.type=="string"&&(G.end!=le.ch||!/[\"\']/.test(G.string.charAt(G.string.length-1))||G.string.length==1)||G.type=="tag"&&oe.close||G.string.indexOf("/")==le.ch-G.start-1||He&&D(He,ke)>-1||L(T,j.mode.xmlCurrentContext&&j.mode.xmlCurrentContext(I)||[],ae,le,!0))return F.Pass;var je=typeof q=="object"&&q.emptyTags;if(je&&D(je,ae)>-1){K[Ce]={text:"/>",newPos:F.Pos(le.line,le.ch+2)};continue}var me=pe&&D(pe,ke)>-1;K[Ce]={indent:me,text:">"+(me?`
`:"")+""+ae+">",newPos:me?F.Pos(le.line+1,0):F.Pos(le.line,le.ch+1)}}for(var he=typeof q=="object"&&q.dontIndentOnAutoClose,Ce=H.length-1;Ce>=0;Ce--){var Oe=K[Ce];T.replaceRange(Oe.text,H[Ce].head,H[Ce].anchor,"+insert");var V=T.listSelections().slice(0);V[Ce]={head:Oe.newPos,anchor:Oe.newPos},T.setSelections(V),!he&&Oe.indent&&(T.indentLine(Oe.newPos.line,null,!0),T.indentLine(Oe.newPos.line+1,null,!0))}}function Ee(T,H){for(var K=T.listSelections(),q=[],Ce=H?"/":"",le=T.getOption("autoCloseTags"),G=typeof le=="object"&&le.dontIndentOnSlash,j=0;j"&&(He+=">"),q[j]=He}if(T.replaceSelections(q),K=T.listSelections(),!G)for(var j=0;j=0&&H[I]==K;I--)++j;q=G.to;for(var I=1;I0){for(var H=0;H1&&arguments[1]!==void 0?arguments[1]:"",H=[],K=0;KU.length)&&(M=U.length);for(var E=0,f=new Array(M);E=U.length?{done:!0}:{done:!1,value:U[f++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return E=U[Symbol.iterator](),E.next.bind(E)}function X(U,M){return M={exports:{}},U(M,M.exports),M.exports}var D=X(function(U){function M(){return{baseUrl:null,breaks:!1,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 E(f){U.exports.defaults=f}U.exports={defaults:M(),getDefaults:M,changeDefaults:E}}),L=D.defaults,T=D.getDefaults,H=D.changeDefaults,K=/[&<>"']/,q=/[&<>"']/g,Ce=/[<>"']|&(?!#?\w+;)/,le=/[<>"']|&(?!#?\w+;)/g,G={"&":"&","<":"<",">":">",'"':""","'":"'"},j=function(M){return G[M]};function I(U,M){if(M){if(K.test(U))return U.replace(q,j)}else if(Ce.test(U))return U.replace(le,j);return U}var oe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ae(U){return U.replace(oe,function(M,E){return E=E.toLowerCase(),E==="colon"?":":E.charAt(0)==="#"?E.charAt(1)==="x"?String.fromCharCode(parseInt(E.substring(2),16)):String.fromCharCode(+E.substring(1)):""})}var _e=/(^|[^\[])\^/g;function He(U,M){U=U.source||U,M=M||"";var E={replace:function(h,v){return v=v.source||v,v=v.replace(_e,"$1"),U=U.replace(h,v),E},getRegex:function(){return new RegExp(U,M)}};return E}var pe=/[^\w:]/g,ke=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function je(U,M,E){if(U){var f;try{f=decodeURIComponent(ae(E)).replace(pe,"").toLowerCase()}catch(h){return null}if(f.indexOf("javascript:")===0||f.indexOf("vbscript:")===0||f.indexOf("data:")===0)return null}M&&!ke.test(E)&&(E=b(M,E));try{E=encodeURI(E).replace(/%25/g,"%")}catch(h){return null}return E}var me={},he=/^[^:]+:\/*[^/]*$/,Oe=/^([^:]+:)[\s\S]*$/,V=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(U,M){me[" "+U]||(he.test(U)?me[" "+U]=U+"/":me[" "+U]=ee(U,"/",!0)),U=me[" "+U];var E=U.indexOf(":")===-1;return M.substring(0,2)==="//"?E?M:U.replace(Oe,"$1")+M:M.charAt(0)==="/"?E?M:U.replace(V,"$1")+M:U+M}var J={exec:function(){}};function z(U){for(var M=1,E,f;M=0&&Y[Me]==="\\";)de=!de;return de?"|":" |"}),f=E.split(/ \|/),h=0;if(f.length>M)f.splice(M);else for(;f.length=f.length?h.slice(f.length):h}).join(`
`)}var ne=function(){function U(E){this.options=E||c}var M=U.prototype;return M.space=function(f){var h=this.rules.block.newline.exec(f);if(h)return h[0].length>1?{type:"space",raw:h[0]}:{raw:`
`}},M.code=function(f,h){var v=this.rules.block.code.exec(f);if(v){var y=h[h.length-1];if(y&&y.type==="paragraph")return{raw:v[0],text:v[0].trimRight()};var Y=v[0].replace(/^ {4}/gm,"");return{type:"code",raw:v[0],codeBlockStyle:"indented",text:this.options.pedantic?Y:s(Y,`
`)}}},M.fences=function(f){var h=this.rules.block.fences.exec(f);if(h){var v=h[0],y=ye(v,h[3]||"");return{type:"code",raw:v,lang:h[2]?h[2].trim():h[2],text:y}}},M.heading=function(f){var h=this.rules.block.heading.exec(f);if(h)return{type:"heading",raw:h[0],depth:h[1].length,text:h[2]}},M.nptable=function(f){var h=this.rules.block.nptable.exec(f);if(h){var v={type:"table",header:m(h[1].replace(/^ *| *\| *$/g,"")),align:h[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:h[3]?h[3].replace(/\n$/,"").split(`
`):[],raw:h[0]};if(v.header.length===v.align.length){var y=v.align.length,Y;for(Y=0;Y ?/gm,"");return{type:"blockquote",raw:h[0],text:v}}},M.list=function(f){var h=this.rules.block.list.exec(f);if(h){for(var v=h[0],y=h[2],Y=y.length>1,de=y[y.length-1]===")",Me={type:"list",raw:v,ordered:Y,start:Y?+y.slice(0,-1):"",loose:!1,items:[]},Ge=h[0].match(this.rules.block.item),$e=!1,ze,vt,bt,lt,Dt,Ct,Et,Tt=Ge.length,yt=0;yt1||this.options.smartLists&&bt!==y)&&(lt=Ge.slice(yt+1).join(`
`),Me.raw=Me.raw.substring(0,Me.raw.length-lt.length),yt=Tt-1)),Dt=$e||/\n\n(?!\s*$)/.test(ze),yt!==Tt-1&&($e=ze.charAt(ze.length-1)===`
`,Dt||(Dt=$e)),Dt&&(Me.loose=!0),Ct=/^\[[ xX]\] /.test(ze),Et=void 0,Ct&&(Et=ze[1]!==" ",ze=ze.replace(/^\[[ xX]\] +/,"")),Me.items.push({type:"list_item",raw:v,task:Ct,checked:Et,loose:Dt,text:ze});return Me}},M.html=function(f){var h=this.rules.block.html.exec(f);if(h)return{type:this.options.sanitize?"paragraph":"html",raw:h[0],pre:!this.options.sanitizer&&(h[1]==="pre"||h[1]==="script"||h[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(h[0]):w(h[0]):h[0]}},M.def=function(f){var h=this.rules.block.def.exec(f);if(h){h[3]&&(h[3]=h[3].substring(1,h[3].length-1));var v=h[1].toLowerCase().replace(/\s+/g," ");return{tag:v,raw:h[0],href:h[2],title:h[3]}}},M.table=function(f){var h=this.rules.block.table.exec(f);if(h){var v={type:"table",header:m(h[1].replace(/^ *| *\| *$/g,"")),align:h[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:h[3]?h[3].replace(/\n$/,"").split(`
`):[]};if(v.header.length===v.align.length){v.raw=h[0];var y=v.align.length,Y;for(Y=0;Y/i.test(y[0])&&(h=!1),!v&&/^<(pre|code|kbd|script)(\s|>)/i.test(y[0])?v=!0:v&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(y[0])&&(v=!1),{type:this.options.sanitize?"text":"html",raw:y[0],inLink:h,inRawBlock:v,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(y[0]):w(y[0]):y[0]}},M.link=function(f){var h=this.rules.inline.link.exec(f);if(h){var v=R(h[2],"()");if(v>-1){var y=h[0].indexOf("!")===0?5:4,Y=y+h[1].length+v;h[2]=h[2].substring(0,v),h[0]=h[0].substring(0,Y).trim(),h[3]=""}var de=h[2],Me="";if(this.options.pedantic){var Ge=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(de);Ge?(de=Ge[1],Me=Ge[3]):Me=""}else Me=h[3]?h[3].slice(1,-1):"";de=de.trim().replace(/^<([\s\S]*)>$/,"$1");var $e=ue(h,{href:de&&de.replace(this.rules.inline._escapes,"$1"),title:Me&&Me.replace(this.rules.inline._escapes,"$1")},h[0]);return $e}},M.reflink=function(f,h){var v;if((v=this.rules.inline.reflink.exec(f))||(v=this.rules.inline.nolink.exec(f))){var y=(v[2]||v[1]).replace(/\s+/g," ");if(y=h[y.toLowerCase()],!y||!y.href){var Y=v[0].charAt(0);return{type:"text",raw:Y,text:Y}}var de=ue(v,y,v[0]);return de}},M.strong=function(f,h,v){v===void 0&&(v="");var y=this.rules.inline.strong.start.exec(f);if(y&&(!y[1]||y[1]&&(v===""||this.rules.inline.punctuation.exec(v)))){h=h.slice(-1*f.length);var Y=y[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Y.lastIndex=0;for(var de;(y=Y.exec(h))!=null;)if(de=this.rules.inline.strong.middle.exec(h.slice(0,y.index+3)),de)return{type:"strong",raw:f.slice(0,de[0].length),text:f.slice(2,de[0].length-2)}}},M.em=function(f,h,v){v===void 0&&(v="");var y=this.rules.inline.em.start.exec(f);if(y&&(!y[1]||y[1]&&(v===""||this.rules.inline.punctuation.exec(v)))){h=h.slice(-1*f.length);var Y=y[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Y.lastIndex=0;for(var de;(y=Y.exec(h))!=null;)if(de=this.rules.inline.em.middle.exec(h.slice(0,y.index+2)),de)return{type:"em",raw:f.slice(0,de[0].length),text:f.slice(1,de[0].length-1)}}},M.codespan=function(f){var h=this.rules.inline.code.exec(f);if(h){var v=h[2].replace(/\n/g," "),y=/[^ ]/.test(v),Y=v.startsWith(" ")&&v.endsWith(" ");return y&&Y&&(v=v.substring(1,v.length-1)),v=w(v,!0),{type:"codespan",raw:h[0],text:v}}},M.br=function(f){var h=this.rules.inline.br.exec(f);if(h)return{type:"br",raw:h[0]}},M.del=function(f){var h=this.rules.inline.del.exec(f);if(h)return{type:"del",raw:h[0],text:h[1]}},M.autolink=function(f,h){var v=this.rules.inline.autolink.exec(f);if(v){var y,Y;return v[2]==="@"?(y=w(this.options.mangle?h(v[1]):v[1]),Y="mailto:"+y):(y=w(v[1]),Y=y),{type:"link",raw:v[0],text:y,href:Y,tokens:[{type:"text",raw:y,text:y}]}}},M.url=function(f,h){var v;if(v=this.rules.inline.url.exec(f)){var y,Y;if(v[2]==="@")y=w(this.options.mangle?h(v[0]):v[0]),Y="mailto:"+y;else{var de;do de=v[0],v[0]=this.rules.inline._backpedal.exec(v[0])[0];while(de!==v[0]);y=w(v[0]),v[1]==="www."?Y="http://"+y:Y=y}return{type:"link",raw:v[0],text:y,href:Y,tokens:[{type:"text",raw:y,text:y}]}}},M.inlineText=function(f,h,v){var y=this.rules.inline.text.exec(f);if(y){var Y;return h?Y=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(y[0]):w(y[0]):y[0]:Y=w(this.options.smartypants?v(y[0]):y[0]),{type:"text",raw:y[0],text:Y}}},U}(),be=S.noopTest,ce=S.edit,Q=S.merge,W={newline:/^\n+/,code:/^( {4}[^\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}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:be,table:be,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};W._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,W._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,W.def=ce(W.def).replace("label",W._label).replace("title",W._title).getRegex(),W.bullet=/(?:[*+-]|\d{1,9}[.)])/,W.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,W.item=ce(W.item,"gm").replace(/bull/g,W.bullet).getRegex(),W.list=ce(W.list).replace(/bull/g,W.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+W.def.source+")").getRegex(),W._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",W._comment=//,W.html=ce(W.html,"i").replace("comment",W._comment).replace("tag",W._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),W.paragraph=ce(W._paragraph).replace("hr",W.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|!--)").replace("tag",W._tag).getRegex(),W.blockquote=ce(W.blockquote).replace("paragraph",W.paragraph).getRegex(),W.normal=Q({},W),W.gfm=Q({},W.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),W.gfm.nptable=ce(W.gfm.nptable).replace("hr",W.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|!--)").replace("tag",W._tag).getRegex(),W.gfm.table=ce(W.gfm.table).replace("hr",W.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|!--)").replace("tag",W._tag).getRegex(),W.pedantic=Q({},W.normal,{html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",W._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]+?) *(?:#+ *)?(?:\n+|$)/,fences:be,paragraph:ce(W.normal._paragraph).replace("hr",W.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",W.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var re={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:be,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:be,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",re.punctuation=ce(re.punctuation).replace(/punctuation/g,re._punctuation).getRegex(),re._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",re._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",re.em.start=ce(re.em.start).replace(/punctuation/g,re._punctuation).getRegex(),re.em.middle=ce(re.em.middle).replace(/punctuation/g,re._punctuation).replace(/overlapSkip/g,re._overlapSkip).getRegex(),re.em.endAst=ce(re.em.endAst,"g").replace(/punctuation/g,re._punctuation).getRegex(),re.em.endUnd=ce(re.em.endUnd,"g").replace(/punctuation/g,re._punctuation).getRegex(),re.strong.start=ce(re.strong.start).replace(/punctuation/g,re._punctuation).getRegex(),re.strong.middle=ce(re.strong.middle).replace(/punctuation/g,re._punctuation).replace(/blockSkip/g,re._blockSkip).getRegex(),re.strong.endAst=ce(re.strong.endAst,"g").replace(/punctuation/g,re._punctuation).getRegex(),re.strong.endUnd=ce(re.strong.endUnd,"g").replace(/punctuation/g,re._punctuation).getRegex(),re.blockSkip=ce(re._blockSkip,"g").getRegex(),re.overlapSkip=ce(re._overlapSkip,"g").getRegex(),re._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,re._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,re._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])?)+(?![-_])/,re.autolink=ce(re.autolink).replace("scheme",re._scheme).replace("email",re._email).getRegex(),re._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,re.tag=ce(re.tag).replace("comment",W._comment).replace("attribute",re._attribute).getRegex(),re._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,re._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,re._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,re.link=ce(re.link).replace("label",re._label).replace("href",re._href).replace("title",re._title).getRegex(),re.reflink=ce(re.reflink).replace("label",re._label).getRegex(),re.reflinkSearch=ce(re.reflinkSearch,"g").replace("reflink",re.reflink).replace("nolink",re.nolink).getRegex(),re.normal=Q({},re),re.pedantic=Q({},re.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:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",re._label).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",re._label).getRegex()}),re.gfm=Q({},re.normal,{escape:ce(re.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)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(f="x"+f.toString(16)),M+=""+f+";";return M}var ie=function(){function U(E){this.tokens=[],this.tokens.links=Object.create(null),this.options=E||_,this.options.tokenizer=this.options.tokenizer||new ne,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var f={block:g.normal,inline:N.normal};this.options.pedantic?(f.block=g.pedantic,f.inline=N.pedantic):this.options.gfm&&(f.block=g.gfm,this.options.breaks?f.inline=N.breaks:f.inline=N.gfm),this.tokenizer.rules=f}U.lex=function(f,h){var v=new U(h);return v.lex(f)};var M=U.prototype;return M.lex=function(f){return f=f.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(f,this.tokens,!0),this.inline(this.tokens),this.tokens},M.blockTokens=function(f,h,v){h===void 0&&(h=[]),v===void 0&&(v=!0),f=f.replace(/^ +$/gm,"");for(var y,Y,de,Me;f;){if(y=this.tokenizer.space(f)){f=f.substring(y.raw.length),y.type&&h.push(y);continue}if(y=this.tokenizer.code(f,h)){f=f.substring(y.raw.length),y.type?h.push(y):(Me=h[h.length-1],Me.raw+=`
`+y.raw,Me.text+=`
`+y.text);continue}if(y=this.tokenizer.fences(f)){f=f.substring(y.raw.length),h.push(y);continue}if(y=this.tokenizer.heading(f)){f=f.substring(y.raw.length),h.push(y);continue}if(y=this.tokenizer.nptable(f)){f=f.substring(y.raw.length),h.push(y);continue}if(y=this.tokenizer.hr(f)){f=f.substring(y.raw.length),h.push(y);continue}if(y=this.tokenizer.blockquote(f)){f=f.substring(y.raw.length),y.tokens=this.blockTokens(y.text,[],v),h.push(y);continue}if(y=this.tokenizer.list(f)){for(f=f.substring(y.raw.length),de=y.items.length,Y=0;Y0)for(;(Ge=this.tokenizer.rules.inline.reflinkSearch.exec(Me))!=null;)$e.includes(Ge[0].slice(Ge[0].lastIndexOf("[")+1,-1))&&(Me=Me.slice(0,Ge.index)+"["+"a".repeat(Ge[0].length-2)+"]"+Me.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ge=this.tokenizer.rules.inline.blockSkip.exec(Me))!=null;)Me=Me.slice(0,Ge.index)+"["+"a".repeat(Ge[0].length-2)+"]"+Me.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;f;){if(de=this.tokenizer.escape(f)){f=f.substring(de.raw.length),h.push(de);continue}if(de=this.tokenizer.tag(f,v,y)){f=f.substring(de.raw.length),v=de.inLink,y=de.inRawBlock,h.push(de);continue}if(de=this.tokenizer.link(f)){f=f.substring(de.raw.length),de.type==="link"&&(de.tokens=this.inlineTokens(de.text,[],!0,y)),h.push(de);continue}if(de=this.tokenizer.reflink(f,this.tokens.links)){f=f.substring(de.raw.length),de.type==="link"&&(de.tokens=this.inlineTokens(de.text,[],!0,y)),h.push(de);continue}if(de=this.tokenizer.strong(f,Me,Y)){f=f.substring(de.raw.length),de.tokens=this.inlineTokens(de.text,[],v,y),h.push(de);continue}if(de=this.tokenizer.em(f,Me,Y)){f=f.substring(de.raw.length),de.tokens=this.inlineTokens(de.text,[],v,y),h.push(de);continue}if(de=this.tokenizer.codespan(f)){f=f.substring(de.raw.length),h.push(de);continue}if(de=this.tokenizer.br(f)){f=f.substring(de.raw.length),h.push(de);continue}if(de=this.tokenizer.del(f)){f=f.substring(de.raw.length),de.tokens=this.inlineTokens(de.text,[],v,y),h.push(de);continue}if(de=this.tokenizer.autolink(f,B)){f=f.substring(de.raw.length),h.push(de);continue}if(!v&&(de=this.tokenizer.url(f,B))){f=f.substring(de.raw.length),h.push(de);continue}if(de=this.tokenizer.inlineText(f,y,te)){f=f.substring(de.raw.length),Y=de.raw.slice(-1),h.push(de);continue}if(f){var ze="Infinite loop on byte: "+f.charCodeAt(0);if(this.options.silent){console.error(ze);break}else throw new Error(ze)}}return h},ge(U,null,[{key:"rules",get:function(){return{block:g,inline:N}}}]),U}(),Te=D.defaults,Ie=S.cleanUrl,Le=S.escape,we=function(){function U(E){this.options=E||Te}var M=U.prototype;return M.code=function(f,h,v){var y=(h||"").match(/\S*/)[0];if(this.options.highlight){var Y=this.options.highlight(f,y);Y!=null&&Y!==f&&(v=!0,f=Y)}return y?''+(v?f:Le(f,!0))+`
`:""+(v?f:Le(f,!0))+`
`},M.blockquote=function(f){return`
`+f+`
`},M.html=function(f){return f},M.heading=function(f,h,v,y){return this.options.headerIds?"
`:""+f+"
`},M.hr=function(){return this.options.xhtml?`
`:`
`},M.list=function(f,h,v){var y=h?"ol":"ul",Y=h&&v!==1?' start="'+v+'"':"";return"<"+y+Y+`>
`+f+""+y+`>
`},M.listitem=function(f){return""+f+`
`},M.checkbox=function(f){return" "},M.paragraph=function(f){return""+f+`
`},M.table=function(f,h){return h&&(h=""+h+""),`
`},M.tablerow=function(f){return`
`+f+`
`},M.tablecell=function(f,h){var v=h.header?"th":"td",y=h.align?"<"+v+' align="'+h.align+'">':"<"+v+">";return y+f+""+v+`>
`},M.strong=function(f){return""+f+""},M.em=function(f){return""+f+""},M.codespan=function(f){return""+f+""},M.br=function(){return this.options.xhtml?"
":"
"},M.del=function(f){return""+f+""},M.link=function(f,h,v){if(f=Ie(this.options.sanitize,this.options.baseUrl,f),f===null)return v;var y='"+v+"",y},M.image=function(f,h,v){if(f=Ie(this.options.sanitize,this.options.baseUrl,f),f===null)return v;var y='
":">",y},M.text=function(f){return f},U}(),Re=function(){function U(){}var M=U.prototype;return M.strong=function(f){return f},M.em=function(f){return f},M.codespan=function(f){return f},M.del=function(f){return f},M.html=function(f){return f},M.text=function(f){return f},M.link=function(f,h,v){return""+v},M.image=function(f,h,v){return""+v},M.br=function(){return""},U}(),Ve=function(){function U(){this.seen={}}var M=U.prototype;return M.slug=function(f){var h=f.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(h)){var v=h;do this.seen[v]++,h=v+"-"+this.seen[v];while(this.seen.hasOwnProperty(h))}return this.seen[h]=0,h},U}(),Xe=D.defaults,Ke=S.unescape,Ze=function(){function U(E){this.options=E||Xe,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Re,this.slugger=new Ve}U.parse=function(f,h){var v=new U(h);return v.parse(f)};var M=U.prototype;return M.parse=function(f,h){h===void 0&&(h=!0);var v="",y,Y,de,Me,Ge,$e,ze,vt,bt,lt,Dt,Ct,Et,Tt,yt,Gt,Cn,sn,kn=f.length;for(y=0;y0&&yt.tokens[0].type==="text"?(yt.tokens[0].text=sn+" "+yt.tokens[0].text,yt.tokens[0].tokens&&yt.tokens[0].tokens.length>0&&yt.tokens[0].tokens[0].type==="text"&&(yt.tokens[0].tokens[0].text=sn+" "+yt.tokens[0].tokens[0].text)):yt.tokens.unshift({type:"text",text:sn}):Tt+=sn),Tt+=this.parse(yt.tokens,Et),bt+=this.renderer.listitem(Tt,Cn,Gt);v+=this.renderer.list(bt,Dt,Ct);continue}case"html":{v+=this.renderer.html(lt.text);continue}case"paragraph":{v+=this.renderer.paragraph(this.parseInline(lt.tokens));continue}case"text":{for(bt=lt.tokens?this.parseInline(lt.tokens):lt.text;y+1An error occurred:"+Ye(de.message+"",!0)+"
";throw de}}Se.options=Se.setOptions=function(U){return ct(Se.defaults,U),it(Se.defaults),Se},Se.getDefaults=ve,Se.defaults=Qe,Se.use=function(U){var M=ct({},U);if(U.renderer&&function(){var f=Se.defaults.renderer||new we,h=function(Y){var de=f[Y];f[Y]=function(){for(var Me=arguments.length,Ge=new Array(Me),$e=0;$e`,triples:"",explode:"[]{}"},se=F.Pos;F.defineOption("autoCloseBrackets",!1,function(G,j,I){I&&I!=F.Init&&(G.removeKeyMap(Ee),G.state.closeBrackets=null),j&&(X(Ae(j,"pairs")),G.state.closeBrackets=j,G.addKeyMap(Ee))});function Ae(G,j){return j=="pairs"&&typeof G=="string"?G:typeof G=="object"&&G[j]!=null?G[j]:ge[j]}var Ee={Backspace:T,Enter:H};function X(G){for(var j=0;j=0;ae--){var He=oe[ae].head;G.replaceRange("",se(He.line,He.ch-1),se(He.line,He.ch+1),"+delete")}}function H(G){var j=L(G),I=j&&Ae(j,"explode");if(!I||G.getOption("disableInput"))return F.Pass;for(var oe=G.listSelections(),ae=0;ae0;return{anchor:new se(G.anchor.line,G.anchor.ch+(j?-1:1)),head:new se(G.head.line,G.head.ch+(j?1:-1))}}function q(G,j){var I=L(G);if(!I||G.getOption("disableInput"))return F.Pass;var oe=Ae(I,"pairs"),ae=oe.indexOf(j);if(ae==-1)return F.Pass;for(var _e=Ae(I,"closeBefore"),He=Ae(I,"triples"),pe=oe.charAt(ae+1)==j,ke=G.listSelections(),je=ae%2==0,me,he=0;he=0&&G.getRange(V,se(V.line,V.ch+3))==j+j+j?b="skipThree":b="skip";else if(pe&&V.ch>1&&He.indexOf(j)>=0&&G.getRange(se(V.line,V.ch-2),V)==j+j){if(V.ch>2&&/\bstring/.test(G.getTokenTypeAt(se(V.line,V.ch-2))))return F.Pass;b="addFour"}else if(pe){var z=V.ch==0?" ":G.getRange(se(V.line,V.ch-1),V);if(!F.isWordChar(J)&&z!=j&&!F.isWordChar(z))b="both";else return F.Pass}else if(je&&(J.length===0||/\s/.test(J)||_e.indexOf(J)>-1))b="both";else return F.Pass;if(!me)me=b;else if(me!=b)return F.Pass}var x=ae%2?oe.charAt(ae-1):j,ee=ae%2?j:oe.charAt(ae+1);G.operation(function(){if(me=="skip")G.execCommand("goCharRight");else if(me=="skipThree")for(var P=0;P<3;P++)G.execCommand("goCharRight");else if(me=="surround"){for(var O=G.getSelections(),P=0;P0&&(R.percent=R.loaded/R.total*100),S.onProgress(R)});var s=new FormData;S.data&&Object.keys(S.data).forEach(function(w){var R=S.data[w];if(Array.isArray(R)){R.forEach(function(ue){s.append(w+"[]",ue)});return}s.append(w,S.data[w])}),S.file instanceof Blob?s.append(S.filename,S.file,S.file.name):s.append(S.filename,S.file),c.onerror=function(R){S.onError(R)},c.onload=function(){return c.status<200||c.status>=300?S.onError(Ee(S,c),X(c)):S.onSuccess(X(c),c)},c.open(S.method,S.action,!0),S.withCredentials&&"withCredentials"in c&&(c.withCredentials=!0);var m=S.headers||{};return m["X-Requested-With"]!==null&&c.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(m).forEach(function(w){m[w]!==null&&c.setRequestHeader(w,m[w])}),c.send(s),{abort:function(){c.abort()}}}var L=+new Date,T=0;function H(){return"rc-upload-"+L+"-"+ ++T}function K(S,c){return S.indexOf(c,S.length-c.length)!==-1}var q=function(S,c){if(S&&c){var s=Array.isArray(c)?c:c.split(","),m=S.name||"",w=S.type||"",R=w.replace(/\/.*$/,"");return s.some(function(ue){var ye=ue.trim();return ye.charAt(0)==="."?K(m.toLowerCase(),ye.toLowerCase()):/\/\*$/.test(ye)?R===ye.replace(/\/.*$/,""):w===ye})}return!0};function Ce(S,c){var s=S.createReader(),m=[];function w(){s.readEntries(function(R){var ue=Array.prototype.slice.apply(R);m=m.concat(ue);var ye=!ue.length;ye?c(m):w()})}w()}var le=function(c,s,m){var w=function R(ue,ye){ye=ye||"",ue.isFile?ue.file(function(ne){m(ne)&&(ue.fullPath&&!ne.webkitRelativePath&&(Object.defineProperties(ne,{webkitRelativePath:{writable:!0}}),ne.webkitRelativePath=ue.fullPath.replace(/^\//,""),Object.defineProperties(ne,{webkitRelativePath:{writable:!1}})),s([ne]))}):ue.isDirectory&&Ce(ue,function(ne){ne.forEach(function(be){R(be,""+ye+ue.name+"/")})})};c.forEach(function(R){w(R.webkitGetAsEntry())})},G=le,j=Object.assign||function(S){for(var c=1;c=0)continue;if(!Object.prototype.hasOwnProperty.call(S,m))continue;s[m]=S[m]}return s}function He(S,c){if(!(S instanceof c))throw new TypeError("Cannot call a class as a function")}function pe(S,c){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:S}function ke(S,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);S.prototype=Object.create(c&&c.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(S,c):S.__proto__=c)}var je=function(c){return Object.keys(c).reduce(function(s,m){return(m.substr(0,5)==="data-"||m.substr(0,5)==="aria-"||m==="role")&&(s[m]=c[m]),s},{})},me=function(S){ke(c,S);function c(){var s,m,w,R;He(this,c);for(var ue=arguments.length,ye=Array(ue),ne=0;ne1&&arguments[1]!==void 0?arguments[1]:1,E=Re.length,f=0;f1&&arguments[1]!==void 0?arguments[1]:!1;return Object(je.a)(s).map(function(w,R){if(!Ee.isValidElement(w)||!w.type)return null;var ue=w.type.isSelectOptGroup,ye=w.key,ne=w.props,be=ne.children,ce=Object(D.a)(ne,["children"]);return m||!ue?me(w):Object(ke.a)(Object(ke.a)({key:"__RC_SELECT_GRP__".concat(ye===null?R:ye,"__"),label:ye},ce),{},{options:he(be)})}).filter(function(w){return w})}var Oe=k("2Qr1"),V=k("qNPg"),b=k("U8pU"),J=k("Kwbf"),z=k("WKfj");function x(s){var m=s.mode,w=s.options,R=s.children,ue=s.backfill,ye=s.allowClear,ne=s.placeholder,be=s.getInputElement,ce=s.showSearch,Q=s.onSearch,W=s.defaultOpen,re=s.autoFocus,p=s.labelInValue,_=s.value,g=s.inputValue,N=s.optionLabelProp,te=m==="multiple"||m==="tags",B=ce!==void 0?ce:te||m==="combobox",ie=w||he(R);if(Object(J.a)(m!=="tags"||ie.every(function(we){return!we.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),m==="tags"||m==="combobox"){var Te=ie.some(function(we){return we.options?we.options.some(function(Re){return typeof("value"in Re?Re.value:Re.key)=="number"}):typeof("value"in we?we.value:we.key)=="number"});Object(J.a)(!Te,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(J.a)(m!=="combobox"||!N,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(J.a)(m==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(J.a)(m==="combobox"||!be,"`getInputElement` only work with `combobox` mode."),Object(J.b)(m!=="combobox"||!be||!ye||!ne,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Q&&!B&&m!=="combobox"&&m!=="tags"&&Object(J.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(J.b)(!W||re,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_!=null){var Ie=Object(z.d)(_);Object(J.a)(!p||Ie.every(function(we){return Object(b.a)(we)==="object"&&("key"in we||"value"in we)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(J.a)(!te||Array.isArray(_),"`value` should be array when `mode` is `multiple` or `tags`")}if(R){var Le=null;Object(je.a)(R).some(function(we){if(!Ee.isValidElement(we)||!we.type)return!1;var Re=we.type;if(Re.isSelectOption)return!1;if(Re.isSelectOptGroup){var Ve=Object(je.a)(we.props.children).every(function(Xe){return!Ee.isValidElement(Xe)||!we.type||Xe.type.isSelectOption?!0:(Le=Xe.type,!1)});return!Ve}return Le=Re,!0}),Le&&Object(J.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Le.displayName||Le.name||Le,"`.")),Object(J.a)(g===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ee=x,P=Object(V.a)({prefixCls:"rc-select",components:{optionList:oe},convertChildrenToData:he,flattenOptions:Oe.d,getLabeledValue:Oe.e,filterOptions:Oe.b,isValueDisabled:Oe.g,findValueOption:Oe.c,warningProps:ee,fillOptionsWithMissingValue:Oe.a}),O=function(s){Object(se.a)(w,s);var m=Object(Ae.a)(w);function w(){var R;return Object(F.a)(this,w),R=m.apply(this,arguments),R.selectRef=Ee.createRef(),R.focus=function(){R.selectRef.current.focus()},R.blur=function(){R.selectRef.current.blur()},R}return Object(ge.a)(w,[{key:"render",value:function(){return Ee.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),w}(Ee.Component);O.Option=_e,O.OptGroup=pe;var S=O,c=Je.c=S},M8RZ:function(ht,Je,k){"use strict";k.d(Je,"a",function(){return T});var F=k("fWQN"),ge=k("mtLc"),se=k("yKVA"),Ae=k("879j"),Ee=k("q1tI"),X=k.n(Ee),D=k("i8i4"),L=k.n(D),T=function(H){Object(se.a)(q,H);var K=Object(Ae.a)(q);function q(Ce){var le;Object(F.a)(this,q),le=K.call(this,Ce);var G=window.document;return le.node=G.createElement("div"),G.body.appendChild(le.node),le}return Object(ge.a)(q,[{key:"render",value:function(){var le=this.props.children;return Object(D.createPortal)(le,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),q}(X.a.Component)},OLES:function(ht,Je,k){"use strict";var F=k("U8pU"),ge=k("VTBJ"),se=k("Ff2n"),Ae=k("q1tI"),Ee=k("uciX"),X=k("7ixt"),D=function(Ce){var le=Ce.overlay,G=Ce.prefixCls,j=Ce.id,I=Ce.overlayInnerStyle;return Ae.createElement("div",{className:"".concat(G,"-inner"),id:j,role:"tooltip",style:I},typeof le=="function"?le():le)},L=D,T=function(Ce,le){var G=Ce.overlayClassName,j=Ce.trigger,I=j===void 0?["hover"]:j,oe=Ce.mouseEnterDelay,ae=oe===void 0?0:oe,_e=Ce.mouseLeaveDelay,He=_e===void 0?.1:_e,pe=Ce.overlayStyle,ke=Ce.prefixCls,je=ke===void 0?"rc-tooltip":ke,me=Ce.children,he=Ce.onVisibleChange,Oe=Ce.afterVisibleChange,V=Ce.transitionName,b=Ce.animation,J=Ce.placement,z=J===void 0?"right":J,x=Ce.align,ee=x===void 0?{}:x,P=Ce.destroyTooltipOnHide,O=P===void 0?!1:P,S=Ce.defaultVisible,c=Ce.getTooltipContainer,s=Ce.overlayInnerStyle,m=Object(se.a)(Ce,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),w=Object(Ae.useRef)(null);Object(Ae.useImperativeHandle)(le,function(){return w.current});var R=Object(ge.a)({},m);"visible"in Ce&&(R.popupVisible=Ce.visible);var ue=function(){var Q=Ce.arrowContent,W=Q===void 0?null:Q,re=Ce.overlay,p=Ce.id;return[Ae.createElement("div",{className:"".concat(je,"-arrow"),key:"arrow"},W),Ae.createElement(L,{key:"content",prefixCls:je,id:p,overlay:re,overlayInnerStyle:s})]},ye=!1,ne=!1;if(typeof O=="boolean")ye=O;else if(O&&Object(F.a)(O)==="object"){var be=O.keepParent;ye=be===!0,ne=be===!1}return Ae.createElement(Ee.a,Object.assign({popupClassName:G,prefixCls:je,popup:ue,action:I,builtinPlacements:X.a,popupPlacement:z,ref:w,popupAlign:ee,getPopupContainer:c,onPopupVisibleChange:he,afterPopupVisibleChange:Oe,popupTransitionName:V,popupAnimation:b,defaultPopupVisible:S,destroyPopupOnHide:ye,autoDestroy:ne,mouseLeaveDelay:He,popupStyle:pe,mouseEnterDelay:ae},R),me)},H=Object(Ae.forwardRef)(T),K=Je.a=H},Ot1p:function(ht,Je,k){"use strict";var F=k("2qtc"),ge=k("kLXV"),se=k("rAM+"),Ae=k("miYZ"),Ee=k("tsqr"),X=k("tJVT"),D=k("jrin"),L=k("q1tI"),T=k.n(L),H=k("VrN/"),K=k.n(H),q=k("bdgK"),Ce=k("p77/"),le=k("Bd2K"),G=k("ELLl"),j=k("19Vz"),I=k("lZu9"),oe=k("+NIl"),ae=k("kSUc"),_e=k("9Bee"),He=function(E){var f=E.value,h=f===void 0?"":f,v=E.className,y=E.showTextOnly,Y=E.showLines,de=E.style,Me=de===void 0?{}:de,Ge=Object(L.useMemo)(function(){return""},[h]);return T.a.createElement(T.a.Fragment,null,T.a.createElement("div",{dangerouslySetInnerHTML:{__html:Ge}}))},pe=k("0Owb"),ke=k("dejd"),je=k("C+DQ"),me=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function he(E){var f=E.onActionCallback,h=E.title,v=E.icon,y=E.actionName,Y=E.className,de=Y===void 0?"":Y,Me=E.children;function Ge(){f(y)}return T.a.createElement("a",{title:h,className:de,onClick:Ge},T.a.createElement("i",{className:"md-iconfont ".concat(v)}),Me)}var Oe=function(E){var f=E.watch,h=E.showNullButton,v=E.onActionCallback,y=E.fullScreen,Y=E.insertTemp,de=E.hidetoolBar,Me=[].concat(me,[{title:"".concat(f?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(f?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return T.a.createElement("ul",{className:"markdown-toolbar-container"},!de&&Me.map(function(Ge,$e){return T.a.createElement("li",{key:$e},Ge.actionName?T.a.createElement(he,Object(pe.a)({},Ge,{onActionCallback:v})):T.a.createElement("span",{className:"v-line"}))}),h?T.a.createElement("li",null,T.a.createElement(he,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:v},T.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Y&&T.a.createElement("li",null,T.a.createElement(he,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Y),onActionCallback:v},T.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),T.a.createElement("li",{className:"btn-full-screen"},T.a.createElement(he,{icon:"".concat(y?"icon-shrink":"icon-enlarge"),title:y?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:v})))},V=k("M8RZ"),b=k("+L6B"),J=k("2/Rp"),z=k("y8nQ"),x=k("Vl3Y"),ee=k("5NDa"),P=k("5rEg"),O={labelCol:{span:4},wrapperCol:{span:20}},S=function(E){var f=E.callback,h=E.onCancel;function v(y){f(y)}return T.a.createElement(x.a,Object(pe.a)({},O,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:v}),T.a.createElement(x.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},T.a.createElement(P.a,null)),T.a.createElement(x.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},T.a.createElement(P.a,null)),T.a.createElement("div",{className:"flex-container flex-end"},T.a.createElement(J.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),T.a.createElement(J.a,{type:"ghost",onClick:h},"\u53D6\u6D88")))},c=k("7ahc"),s=k("HmJG"),m=k("BjJ7"),w=x.a.useForm,R={width:280,marginRight:10},ue={labelCol:{span:5},wrapperCol:{span:19}},ye=function(E){var f=E.callback,h=E.onCancel,v=w(),y=Object(X.a)(v,1),Y=y[0];function de($e){f($e)}function Me($e,ze){Y.setFieldsValue({src:"/api/attachments/".concat($e.id),type:ze.type})}function Ge($e){var ze=$e.target.files[0];be(ze,Me)}return T.a.createElement(x.a,Object(pe.a)({form:Y},ue,{className:"upload-image-panel",onFinish:de}),T.a.createElement(x.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},T.a.createElement("div",{className:"flex-container"},T.a.createElement(x.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},T.a.createElement(P.a,{style:R})),T.a.createElement(ne,{onFileChange:Ge}))),T.a.createElement(x.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},T.a.createElement(P.a,{style:{width:264}})),T.a.createElement(x.a.Item,{style:{textAlign:"right"}},T.a.createElement(J.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),T.a.createElement(J.a,{type:"ghost",onClick:h},"\u53D6\u6D88")))};function ne(E){var f=E.onFileChange;return T.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",T.a.createElement("input",{type:"file",onChange:f}))}function be(E,f){if(!E)throw new String("\u6CA1\u6709\u6587\u4EF6");var h=new FormData;h.append("editormd-image-file",E),h.append("file_param_name","editormd-image-file"),h.append("byxhr","true");var v=new window.XMLHttpRequest;v.withCredentials=!0,v.addEventListener("load",function(y){f(JSON.parse(y.target.responseText),E)},!1),v.addEventListener("error",function(y){console.error(y)},!1),v.open("POST","".concat(m.a,"/api/attachments.json")),v.send(h)}var ce=k("giR+"),Q=k("fyUT"),W=k("7Kak"),re=k("9yH6"),p=re.a.Group,_={margin:"0 8px"},g=function(E){var f=E.callback,h=E.onCancel;function v(y){f(y)}return T.a.createElement(x.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:v},T.a.createElement("div",{className:"flex-container"},T.a.createElement("span",{style:_},"\u5355\u5143\u683C\u6570\uFF1A"),T.a.createElement("span",{style:_},"\u884C\u6570"),T.a.createElement(x.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},T.a.createElement(Q.a,null)),T.a.createElement("span",{style:_},"\u5217\u6570"),T.a.createElement(x.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},T.a.createElement(Q.a,null))),T.a.createElement("div",{className:"flex-container",style:{marginTop:12}},T.a.createElement("span",{style:_},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),T.a.createElement(x.a.Item,{name:"align"},T.a.createElement(p,null,T.a.createElement(re.a,{value:"default"},T.a.createElement("i",{className:"fa fa-align-justify"})),T.a.createElement(re.a,{value:"left"},T.a.createElement("i",{className:"fa fa-align-left"})),T.a.createElement(re.a,{value:"center"},T.a.createElement("i",{className:"fa fa-align-center"})),T.a.createElement(re.a,{value:"right"},T.a.createElement("i",{className:"fa fa-align-right"}))))),T.a.createElement("div",{className:"flex-container flex-end"},T.a.createElement(J.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),T.a.createElement(J.a,{type:"ghost",onClick:h},"\u53D6\u6D88")))},N=k("m3rI"),te=k("wMS7"),B=k.n(te),ie="link",Te="upload-image",Ie="code-block",Le="add-table",we="------------",Re={default:we,left:":".concat(we),center:":".concat(we,":"),right:"".concat(we,":")},Ve=k("9VGf"),Xe,Ke;function Ze(){}var ct=0,rt=1e4,Ye="\u2581",ve=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function it(E){return/^\d+$/.test(E)?"".concat(E,"px"):E}var Qe=navigator.platform.toUpperCase().indexOf("MAC")>=0,Se=Qe?"Cmd":"Ctrl",Ne=(Xe={},Object(D.a)(Xe,Se+"-B","bold"),Object(D.a)(Xe,Se+"-I","italic"),Xe),U=(Ke={},Object(D.a)(Ke,ie,"\u6DFB\u52A0\u94FE\u63A5"),Object(D.a)(Ke,Ie,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(D.a)(Ke,Te,"\u6DFB\u52A0\u56FE\u7247"),Object(D.a)(Ke,Le,"\u6DFB\u52A0\u8868\u683C"),Ke),M=Je.a=function(E){var f=E.defaultValue,h=f===void 0?"":f,v=E.onChange,y=E.width,Y=y===void 0?"100%":y,de=E.height,Me=de===void 0?400:de,Ge=E.miniToolbar,$e=Ge===void 0?!1:Ge,ze=E.isFocus,vt=ze===void 0?!1:ze,bt=E.watch,lt=E.insertTemp,Dt=E.mode,Ct=Dt===void 0?"markdown":Dt,Et=E.id,Tt=Et===void 0?"markdown-editor-id":Et,yt=E.showResizeBar,Gt=yt===void 0?!1:yt,Cn=E.noStorage,sn=Cn===void 0?!1:Cn,kn=E.showNullButton,nn=kn===void 0?!1:kn,nr=E.hidetoolBar,On=nr===void 0?!1:nr,Rn=E.fullScreen,Hn=Rn===void 0?!1:Rn,Lt=E.onBlur,tt=E.onCMBeforeChange,Qt=E.onFullScreen,Xn=E.className,hn=Xn===void 0?"":Xn,wt=E.disablePaste,Sn=wt===void 0?!1:wt,Pn=E.placeholder,Ln=Pn===void 0?"":Pn,Pe=E.values,dt=Pe===void 0?"":Pe,Tn=Object(L.useState)(null),Mn=Object(X.a)(Tn,2),Fe=Mn[0],Kn=Mn[1],_r=Object(L.useState)(h),ut=Object(X.a)(_r,2),ln=ut[0],zn=ut[1],$n=Object(L.useState)(bt),un=Object(X.a)($n,2),Dn=un[0],st=un[1],fe=Object(L.useState)(Hn),et=Object(X.a)(fe,2),at=et[0],St=et[1],cn=Object(L.useState)(""),Kt=Object(X.a)(cn,2),jt=Kt[0],Rt=Kt[1],Ar=Object(L.useState)(0),xn=Object(X.a)(Ar,2),Nn=xn[0],pn=xn[1],Si=Object(L.useState)(Me),Ti=Object(X.a)(Si,2),pr=Ti[0],rr=Ti[1],Zi=Object(L.useState)(!1),_i=Object(X.a)(Zi,2),Fa=_i[0],qr=_i[1],Vn=Object(L.useRef)(),Or=Object(L.useRef)(),Lr=Object(L.useRef)(),mr=Object(L.useRef)();Object(L.useEffect)(function(){zn(dt),Fe==null||Fe.setValue(dt)},[dt]),Object(L.useEffect)(function(){Qt==null||Qt(at)},[at]),Object(L.useEffect)(function(){if(Vn.current){var pt=K.a.fromTextArea(Vn.current,{mode:Ct,lineNumbers:!$e,lineWrapping:!0,value:h,autoCloseTags:!0,autoCloseBrackets:!0});vt&&pt.focus();function mt(gt,kt){if(Sn){kt.preventDefault();return}var At=kt.clipboardData;if(At){var Pt=At.types.toString(),Ut=At.items,$t=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];if(Pt==="Files"||At.types.indexOf("Files")>-1){if(kt.preventDefault(),Ct=="stex")return;try{var Vt,qn=Ut[1];((Vt=Ut[0])===null||Vt===void 0?void 0:Vt.kind)==="file"&&(qn=Ut[0]);var zt=qn.getAsFile(),ar=zt.name.split(".").pop();be(zt,function(rn){if(rn.id){var Jn,Zn,Qr;(zt==null||((Jn=zt.type)===null||Jn===void 0)?void 0:Jn.indexOf("image"))>-1?pt.replaceSelection(".concat(rn.content_type,")")):(zt==null||((Zn=zt.type)===null||Zn===void 0)?void 0:Zn.indexOf("video"))>-1?pt.replaceSelection('')):(zt==null||((Qr=zt.type)===null||Qr===void 0)?void 0:Qr.indexOf("pdf"))>-1?pt.replaceSelection('').concat(zt.name,"")):$t.includes(ar)?pt.replaceSelection('').concat(zt.name,"")):pt.replaceSelection("[".concat(zt.name,"](").concat(N.a.API_SERVER,"/api/attachments/").concat(rn.id,"?type=").concat(rn.content_type,")"))}else(rn==null?void 0:rn.status)===401&&(document.location.href="/user/login")})}catch(rn){Ee.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return pt.on("paste",mt),Kn(pt),function(){pt.off("paste",mt)}}},[]);var Jr=Object(L.useCallback)(function(){if(Or.current)try{}catch(pt){console.log(pt,"---- to set md editor body height")}},[pr,Or,at]);Object(L.useEffect)(function(){function pt(){var gt=new q.default(function(kt){var At=Object(se.a)(kt),Pt;try{for(At.s();!(Pt=At.n()).done;){var Ut=Pt.value;(Ut.target.offsetHeight>0||Ut.target.offsetWidth>0)&&(Jr(),Fe.setSize("100%","100%"),Fe.refresh())}}catch($t){At.e($t)}finally{At.f()}});return gt.observe(Vn.current.parentElement),gt}if(Fe){var mt=pt();return function(){mt.unobserve(Vn.current.parentElement)}}},[Fe,Jr]),Object(L.useEffect)(function(){if(Fe){for(var pt=[],mt=function(){var Ut=kt[gt];At=Object(X.a)(Ut,2);var $t=At[0],Vt=At[1],qn=Object(D.a)({},$t,function(){gr(Vt)});pt.push(qn),Fe.addKeyMap(qn)},gt=0,kt=Object.entries(Ne);gt0){var pt=new Date().getTime(),mt=window.sessionStorage.getItem(Tt);pt>=Nn+rt&&(!mt||mt!==ln)&&(window.sessionStorage.setItem(Tt,ln),qr(!0))}},rt),Object(L.useEffect)(function(){st(bt)},[Fe,bt]),Object(L.useEffect)(function(){Fe&&(vt&&Fe.focus())},[Fe,vt]),Object(L.useEffect)(function(){if(Dn&&Fe){var pt=Fe.getScrollerElement();function mt(gt){var kt=gt.target;if(mr.current){var At=kt.scrollTop/kt.scrollHeight;mr.current.scrollTop=mr.current.scrollHeight*At}}return pt.addEventListener("scroll",mt),function(){pt.removeEventListener("scroll",mt)}}},[Fe,Dn]),Object(L.useEffect)(function(){if(Fe&&tt){function pt(mt,gt){tt(mt,gt)}return Fe.on("beforeChange",pt),function(){Fe.off("beforeChange",pt)}}},[Fe,tt]),Object(L.useEffect)(function(){if(Fe&&Lt){function pt(){Lt(Fe.getValue())}return Fe.on("blur",pt),function(){Fe.off("blur",pt)}}},[Fe,Lt]),Object(L.useEffect)(function(){if(Fe){function pt(mt){var gt=B.a.sanitize(mt.getValue());zn(gt),pn(new Date().getTime()),mt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),v&&v(gt)}return Fe.on("change",pt),function(){Fe.off("change",pt)}}},[Fe,v]),Object(L.useEffect)(function(){Fe&&(h==null?(Fe.setValue(""),zn("")):h!==Fe.getValue()&&(Fe.setValue(h),zn(h),Fe.setCursor(Fe.lineCount(),0)))},[Fe,h]);var gr=Object(L.useCallback)(function(pt){var mt=Fe.getCursor(),gt=Fe.getSelection(),kt=gt.split(`
`);switch(pt){case"bold":return Fe.replaceSelection("**"+gt+"**"),gt===""&&Fe.setCursor(mt.line,mt.ch+2),Fe.focus();case"italic":return Fe.replaceSelection("*"+gt+"*"),gt===""&&Fe.setCursor(mt.line,mt.ch+1),Fe.focus();case"code":return Fe.replaceSelection("`"+gt+"`"),gt===""&&Fe.setCursor(mt.line,mt.ch+1),Fe.focus();case"inline-latex":return Fe.replaceSelection("`$$"+gt+"$$`"),gt===""&&Fe.setCursor(mt.line,mt.ch+3),Fe.focus();case"latex":return Fe.replaceSelection("```latex\n"+gt+"\n```"),Fe.setCursor(mt.line+1,gt.length+1),Fe.focus();case"line-break":return Fe.replaceSelection(`
`),Fe.focus();case"list-ul":return gt===""?Fe.replaceSelection("- "+gt):Fe.replaceSelection(kt.map(function(At){return At===""?"":"- ".concat(At)}).join(`
`)),Fe.focus();case"list-ol":return gt===""?Fe.replaceSelection("1. "+gt):Fe.replaceSelection(kt.map(function(At,Pt){return At===""?"":"".concat(Pt+1,". ").concat(At)}).join(`
`)),Fe.focus();case"add-null-ch":return gt===""&&Fe.setCursor(mt.line,mt.ch+1),Fe.replaceSelection(Ye),Fe.focus();case"inster-template-1":return gt===""&&Fe.setCursor(mt.line,mt.ch),Fe.replaceSelection(ve),Fe.focus();case"eraser":return Fe.setValue(""),Fe.focus();case"trigger-watch":return st(!Dn),Fe.focus();case"trigger-full-screen":return St(!at),Fe.focus();case ie:Rt(ie);return;case Ie:Rt(Ie);return;case Te:Rt(Te);return;case Le:Rt(Le);return;default:throw new Error}},[Fe,Dn,at]),Yn=Object(L.useCallback)(function(pt){Rt("");switch(jt){case ie:var mt=pt.title,gt=pt.link;return Fe.replaceSelection("[".concat(mt,"](").concat(gt,")")),Fe.focus();case Ie:var kt=pt.language,At=pt.content;return Fe.replaceSelection(["```"+kt,At,"```"].join(`
`)),Fe.focus();case Te:var Pt=pt.src,Ut=pt.alt;return Fe.replaceSelection(".concat(Pt,' "').concat(Ut,'" )')),Fe.focus();case Le:for(var $t=pt.row,Vt=pt.col,qn=pt.align,zt=`
`,ar=0;ar<$t;ar++){for(var rn=[],Jn=[],Zn=0;Zn300&&($t=300);var Vt=Me+$t+"px";rr(Vt)}}return pt.addEventListener("mousedown",kt),document.addEventListener("mousemove",Pt),document.addEventListener("mouseup",At),function(){pt.removeEventListener("mousedown",kt),document.removeEventListener("mousemove",Pt),document.removeEventListener("mouseup",At)}}},[Fe,Lr]),Object(L.useEffect)(function(){rr(Me)},[Me]);var Ai=it(Y),Mr=it(pr),Qi={width:Ai,height:Mr},ea=Object(L.useMemo)(function(){if(Nn){var pt=new Date(Nn),mt=pt.getHours(),gt=pt.getMinutes(),kt=pt.getSeconds();return mt=mt<10?"0"+mt:mt,gt=gt<10?"0"+gt:gt,kt=kt<10?"0"+kt:kt,"".concat(mt,":").concat(gt,":").concat(kt)}return 0},[Nn]);function jn(){window.sessionStorage.removeItem(Tt),qr(!1),pn(0)}function Ha(){qr(!1),pn(0),Fe.setValue(window.sessionStorage.getItem(Tt))}return T.a.createElement(L.Fragment,null,T.a.createElement("div",{className:"markdown-editor-wrapper",ref:Or},T.a.createElement("div",{className:"markdown-editor-container ".concat(hn," ").concat(Dn?"on-preview":""," ").concat($e?"mini":""," ").concat(at?"full-screen":""),style:Qi},T.a.createElement(Oe,{insertTemp:lt,watch:Dn,fullScreen:at,showNullButton:nn,onActionCallback:gr,hidetoolBar:On}),T.a.createElement("div",{className:"markdown-editor-body"},T.a.createElement("div",{className:"codemirror-container"},T.a.createElement("textarea",{ref:Vn,placeholder:Ln})),Dn?T.a.createElement("div",{ref:mr,className:"preview-container"},Ct==="stex"&&T.a.createElement(He,{value:ln}),Ct!=="stex"&&T.a.createElement(_e.a,{value:ln})):null))),Gt?T.a.createElement("a",{ref:Lr,className:"editor-resize"}):null,T.a.createElement(V.a,null,U[jt]?T.a.createElement(ge.a,{centered:!0,title:U[jt],visible:!0,onCancel:ir,footer:null},Zr):null))}},SJMd:function(ht,Je){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var k,F,ge,se=!1,Ae,Ee;window.PR_SHOULD_USE_CONTINUATION=!0;var X,D;(function(){var L=window,T=["break,continue,do,else,for,if,return,while"],H=[T,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],K=[H,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],q=[K,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],Ce=[K,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],le=[K,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],G="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",j=[K,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],I="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",oe=[T,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],ae=[T,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],_e=[T,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],He=[q,le,Ce,j,I,oe,ae,_e],pe=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ke="str",je="kwd",me="com",he="typ",Oe="lit",V="pun",b="pln",J="tag",z="dec",x="src",ee="atn",P="atv",O="nocode",S="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function c(B){for(var ie=0,Te=!1,Ie=!1,Le=0,we=B.length;Le122||(f<65||E>90||it.push([Math.max(65,E)|32,Math.min(f,90)|32]),f<97||E>122||it.push([Math.max(97,E)&~32,Math.min(f,122)&~32]))}}it.sort(function(Y,de){return Y[0]-de[0]||de[1]-Y[1]});for(var h=[],v=[],Ne=0;Ney[0]&&(y[1]+1>y[0]&&Se.push("-"),Se.push(Ke(y[1])))}return Se.push("]"),Se.join("")}function ct(Ye){for(var ve=Ye.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),it=ve.length,Qe=[],Se=0,Ne=0;Se=2&&E==="["?ve[Se]=Ze(U):E!=="\\"&&(ve[Se]=U.replace(/[a-zA-Z]/g,function(v){var y=v.charCodeAt(0);return"["+String.fromCharCode(y&~32,y|32)+"]"}))}return ve.join("")}for(var rt=[],Le=0,we=B.length;Le=0;)Te[rt.charAt(Ye)]=ct;var ve=ct[1],it=""+ve;Xe.hasOwnProperty(it)||(Ve.push(ve),Xe[it]=null)}Ve.push(/[\0-\uffff]/),Ie=c(Ve)})();var Le=ie.length,we=function(Re){for(var Ve=Re.sourceCode,Xe=Re.basePos,Ke=Re.sourceNode,Ze=[Xe,b],ct=0,rt=Ve.match(Ie)||[],Ye={},ve=0,it=rt.length;ve=5&&Se.substring(0,5)==="lang-",U&&!(Ne&&typeof Ne[1]=="string")&&(U=!1,Se=x),U||(Ye[Qe]=Se)}var f=ct;if(ct+=Qe.length,!U)Ze.push(Xe+f,Se);else{var h=Ne[1],v=Qe.indexOf(h),y=v+h.length;Ne[2]&&(y=Qe.length-Ne[2].length,v=y-h.length);var Y=Se.substring(5);m(Ke,Xe+f,Qe.substring(0,v),we,Ze),m(Ke,Xe+f+v,h,re(Y,h),Ze),m(Ke,Xe+f+y,Qe.substring(y),we,Ze)}}Re.decorations=Ze};return we}function ye(B){var ie=[],Te=[];B.tripleQuotedStrings?ie.push([ke,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):B.multiLineStrings?ie.push([ke,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ie.push([ke,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),B.verbatimStrings&&Te.push([ke,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Ie=B.hashComments;Ie&&(B.cStyleComments?(Ie>1?ie.push([me,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ie.push([me,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Te.push([ke,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ie.push([me,/^#[^\r\n]*/,null,"#"])),B.cStyleComments&&(Te.push([me,/^\/\/[^\r\n]*/,null]),Te.push([me,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Le=B.regexLiterals;if(Le){var we=Le>1?"":`
\r`,Re=we?".":"[\\S\\s]",Ve="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+Re+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+Re+")*(?:\\x5D|$))+/";Te.push(["lang-regex",RegExp("^"+S+"("+Ve+")")])}var Xe=B.types;Xe&&Te.push([he,Xe]);var Ke=(""+B.keywords).replace(/^ | $/g,"");Ke.length&&Te.push([je,new RegExp("^(?:"+Ke.replace(/[\s,]+/g,"|")+")\\b"),null]),ie.push([b,/^\s+/,null,` \r
\xA0`]);var Ze="^.[^\\s\\w.$@'\"`/\\\\]*";return B.regexLiterals&&(Ze+="(?!s*/)"),Te.push([Oe,/^@[a-z_$][a-z_$@0-9]*/i,null],[he,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[b,/^[a-z_$][a-z_$@0-9]*/i,null],[Oe,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[b,/^\\[\s\S]?/,null],[V,new RegExp(Ze),null]),ue(ie,Te)}var ne=ye({keywords:He,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function be(B,ie,Te){for(var Ie=/(?:^|\s)nocode(?:\s|$)/,Le=/\r\n?|\n/,we=B.ownerDocument,Re=we.createElement("li");B.firstChild;)Re.appendChild(B.firstChild);var Ve=[Re];function Xe(ve){var it=ve.nodeType;if(it==1&&!Ie.test(ve.className))if(ve.nodeName==="br")Ke(ve),ve.parentNode&&ve.parentNode.removeChild(ve);else for(var Qe=ve.firstChild;Qe;Qe=Qe.nextSibling)Xe(Qe);else if((it==3||it==4)&&Te){var Se=ve.nodeValue,Ne=Se.match(Le);if(Ne){var U=Se.substring(0,Ne.index);ve.nodeValue=U;var M=Se.substring(Ne.index+Ne[0].length);if(M){var E=ve.parentNode;E.insertBefore(we.createTextNode(M),ve.nextSibling)}Ke(ve),U||ve.parentNode.removeChild(ve)}}}function Ke(ve){for(;!ve.nextSibling;)if(ve=ve.parentNode,!ve)return;function it(Ne,U){var M=U?Ne.cloneNode(!1):Ne,E=Ne.parentNode;if(E){var f=it(E,1),h=Ne.nextSibling;f.appendChild(M);for(var v=h;v;v=h)h=v.nextSibling,f.appendChild(v)}return M}for(var Qe=it(ve.nextSibling,0),Se;(Se=Qe.parentNode)&&Se.nodeType===1;)Qe=Se;Ve.push(Qe)}for(var Ze=0;Ze=E&&(Xe+=2),we>=f&&(ct+=2)}}finally{Se&&(Se.style.display=Ne)}}var Q={};function W(B,ie){for(var Te=ie.length;--Te>=0;){var Ie=ie[Te];Q.hasOwnProperty(Ie)?L.console&&console.warn("cannot override language handler %s",Ie):Q[Ie]=B}}function re(B,ie){return B&&Q.hasOwnProperty(B)||(B=/^\s*]*(?:>|$)/],[me,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[V,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^