(window.webpackJsonp=window.webpackJsonp||[]).push([[254,5,6,7,16],{"+NIl":function(nt,Qe,te){(function(q){q(te("VrN/"))})(function(q){"use strict";q.defineMode("stex",function(G,D){"use strict";function z(S,b){S.cmdState.push(b)}function U(S){return S.cmdState.length>0?S.cmdState[S.cmdState.length-1]:null}function O(S){var b=S.cmdState.pop();b&&b.closeBracket()}function F(S){for(var b=S.cmdState,f=b.length-1;f>=0;f--){var u=b[f];if(u.name=="DEFAULT")continue;return u}return{styleIdentifier:function(){return null}}}function M(S,b,f){return function(){this.name=S,this.bracketNo=0,this.style=b,this.styles=f,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var R={};R.importmodule=M("importmodule","tag",["string","builtin"]),R.documentclass=M("documentclass","tag",["","atom"]),R.usepackage=M("usepackage","tag",["atom"]),R.begin=M("begin","tag",["atom"]),R.end=M("end","tag",["atom"]),R.label=M("label","tag",["atom"]),R.ref=M("ref","tag",["atom"]),R.eqref=M("eqref","tag",["atom"]),R.cite=M("cite","tag",["atom"]),R.bibitem=M("bibitem","tag",["atom"]),R.Bibitem=M("Bibitem","tag",["atom"]),R.RBibitem=M("RBibitem","tag",["atom"]),R.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function C(S,b){S.f=b}function m(S,b){var f;if(S.match(/^\\[a-zA-Z@]+/)){var u=S.current().slice(1);return f=R.hasOwnProperty(u)?R[u]:R.DEFAULT,f=new f,z(b,f),C(b,k),f.style}if(S.match(/^\\[$&%#{}_]/))return"tag";if(S.match(/^\\[,;!\/\\]/))return"tag";if(S.match("\\["))return C(b,function(s,l){return v(s,l,"\\]")}),"keyword";if(S.match("\\("))return C(b,function(s,l){return v(s,l,"\\)")}),"keyword";if(S.match("$$"))return C(b,function(s,l){return v(s,l,"$$")}),"keyword";if(S.match("$"))return C(b,function(s,l){return v(s,l,"$")}),"keyword";var a=S.next();if(a=="%")return S.skipToEnd(),"comment";if(a=="}"||a=="]"){if(f=U(b),f)f.closeBracket(a),C(b,k);else return"error";return"bracket"}else return a=="{"||a=="["?(f=R.DEFAULT,f=new f,z(b,f),"bracket"):/\d/.test(a)?(S.eatWhile(/[\w.%]/),"atom"):(S.eatWhile(/[\w\-_]/),f=F(b),f.name=="begin"&&(f.argument=S.current()),f.styleIdentifier())}function v(S,b,f){if(S.eatSpace())return null;if(f&&S.match(f))return C(b,m),"keyword";if(S.match(/^\\[a-zA-Z@]+/))return"tag";if(S.match(/^[a-zA-Z]+/))return"variable-2";if(S.match(/^\\[$&%#{}_]/))return"tag";if(S.match(/^\\[,;!\/]/))return"tag";if(S.match(/^[\^_&]/))return"tag";if(S.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(S.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var u=S.next();return u=="{"||u=="}"||u=="["||u=="]"||u=="("||u==")"?"bracket":u=="%"?(S.skipToEnd(),"comment"):"error"}function k(S,b){var f=S.peek(),u;return f=="{"||f=="["?(u=U(b),u.openBracket(f),S.eat(f),C(b,m),"bracket"):/[ \t\r]/.test(f)?(S.eat(f),null):(C(b,m),O(b),m(S,b))}return{startState:function(){var S=D.inMathMode?function(b,f){return v(b,f)}:m;return{cmdState:[],f:S}},copyState:function(S){return{cmdState:S.cmdState.slice(),f:S.f}},token:function(S,b){return b.f(S,b)},blankLine:function(S){S.f=m,S.cmdState.length=0},lineComment:"%"}}),q.defineMIME("text/x-stex","stex"),q.defineMIME("text/x-latex","stex")})},"+ua5":function(nt,Qe,te){},"19Vz":function(nt,Qe,te){(function(q){q(te("VrN/"))})(function(q){q.defineOption("placeholder","",function(M,R,C){var m=C&&C!=q.Init;if(R&&!m)M.on("blur",U),M.on("change",O),M.on("swapDoc",O),q.on(M.getInputField(),"compositionupdate",M.state.placeholderCompose=function(){z(M)}),O(M);else if(!R&&m){M.off("blur",U),M.off("change",O),M.off("swapDoc",O),q.off(M.getInputField(),"compositionupdate",M.state.placeholderCompose),G(M);var v=M.getWrapperElement();v.className=v.className.replace(" CodeMirror-empty","")}R&&!M.hasFocus()&&U(M)});function G(M){M.state.placeholder&&(M.state.placeholder.parentNode.removeChild(M.state.placeholder),M.state.placeholder=null)}function D(M){G(M);var R=M.state.placeholder=document.createElement("pre");R.style.cssText="height: 0; overflow: visible",R.style.direction=M.getOption("direction"),R.className="CodeMirror-placeholder CodeMirror-line-like";var C=M.getOption("placeholder");typeof C=="string"&&(C=document.createTextNode(C)),R.appendChild(C),M.display.lineSpace.insertBefore(R,M.display.lineSpace.firstChild)}function z(M){setTimeout(function(){var R=!1,C=M.getInputField();C.nodeName=="TEXTAREA"?R=!C.value:M.lineCount()==1&&(R=!/[^\u200b]/.test(C.querySelector(".CodeMirror-line").textContent)),R?D(M):G(M)},20)}function U(M){F(M)&&D(M)}function O(M){var R=M.getWrapperElement(),C=F(M);R.className=R.className.replace(" CodeMirror-empty","")+(C?" CodeMirror-empty":""),C?D(M):G(M)}function F(M){return M.lineCount()===1&&M.getLine(0)===""}})},"1eCo":function(nt,Qe,te){(function(q){q(te("VrN/"))})(function(q){"use strict";var G={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},D={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};q.defineMode("xml",function(z,U){var O=z.indentUnit,F={},M=U.htmlMode?G:D;for(var R in M)F[R]=M[R];for(var R in U)F[R]=U[R];var C,m;function v(o,T){function E(N){return T.tokenize=N,N(o,T)}var g=o.next();if(g=="<")return o.eat("!")?o.eat("[")?o.match("CDATA[")?E(b("atom","]]>")):null:o.match("--")?E(b("comment","-->")):o.match("DOCTYPE",!0,!0)?(o.eatWhile(/[\w\._\-]/),E(f(1))):null:o.eat("?")?(o.eatWhile(/[\w\._\-]/),T.tokenize=b("meta","?>"),"meta"):(C=o.eat("/")?"closeTag":"openTag",T.tokenize=k,"tag bracket");if(g=="&"){var _;return o.eat("#")?o.eat("x")?_=o.eatWhile(/[a-fA-F\d]/)&&o.eat(";"):_=o.eatWhile(/[\d]/)&&o.eat(";"):_=o.eatWhile(/[\w\.\-:]/)&&o.eat(";"),_?"atom":"error"}else return o.eatWhile(/[^&<]/),null}v.isInText=!0;function k(o,T){var E=o.next();if(E==">"||E=="/"&&o.eat(">"))return T.tokenize=v,C=E==">"?"endTag":"selfcloseTag","tag bracket";if(E=="=")return C="equals",null;if(E=="<"){T.tokenize=v,T.state=l,T.tagName=T.tagStart=null;var g=T.tokenize(o,T);return g?g+" tag error":"tag error"}else return/[\'\"]/.test(E)?(T.tokenize=S(E),T.stringStartCol=o.column(),T.tokenize(o,T)):(o.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function S(o){var T=function(E,g){for(;!E.eol();)if(E.next()==o){g.tokenize=k;break}return"string"};return T.isInAttribute=!0,T}function b(o,T){return function(E,g){for(;!E.eol();){if(E.match(T)){g.tokenize=v;break}E.next()}return o}}function f(o){return function(T,E){for(var g;(g=T.next())!=null;){if(g=="<")return E.tokenize=f(o+1),E.tokenize(T,E);if(g==">")if(o==1){E.tokenize=v;break}else return E.tokenize=f(o-1),E.tokenize(T,E)}return"meta"}}function u(o,T,E){this.prev=o.context,this.tagName=T,this.indent=o.indented,this.startOfLine=E,(F.doNotIndent.hasOwnProperty(T)||o.context&&o.context.noIndent)&&(this.noIndent=!0)}function a(o){o.context&&(o.context=o.context.prev)}function s(o,T){for(var E;;){if(!o.context)return;if(E=o.context.tagName,!F.contextGrabbers.hasOwnProperty(E)||!F.contextGrabbers[E].hasOwnProperty(T))return;a(o)}}function l(o,T,E){return o=="openTag"?(E.tagStart=T.column(),A):o=="closeTag"?y:l}function A(o,T,E){return o=="word"?(E.tagName=T.current(),m="tag",x):F.allowMissingTagName&&o=="endTag"?(m="tag bracket",x(o,T,E)):(m="error",A)}function y(o,T,E){if(o=="word"){var g=T.current();return E.context&&E.context.tagName!=g&&F.implicitlyClosed.hasOwnProperty(E.context.tagName)&&a(E),E.context&&E.context.tagName==g||F.matchClosing===!1?(m="tag",c):(m="tag error",L)}else return F.allowMissingTagName&&o=="endTag"?(m="tag bracket",c(o,T,E)):(m="error",L)}function c(o,T,E){return o!="endTag"?(m="error",c):(a(E),l)}function L(o,T,E){return m="error",c(o,T,E)}function x(o,T,E){if(o=="word")return m="attribute",h;if(o=="endTag"||o=="selfcloseTag"){var g=E.tagName,_=E.tagStart;return E.tagName=E.tagStart=null,o=="selfcloseTag"||F.autoSelfClosers.hasOwnProperty(g)?s(E,g):(s(E,g),E.context=new u(E,g,_==E.indented)),l}return m="error",x}function h(o,T,E){return o=="equals"?p:(F.allowMissing||(m="error"),x(o,T,E))}function p(o,T,E){return o=="string"?d:o=="word"&&F.allowUnquoted?(m="string",x):(m="error",x(o,T,E))}function d(o,T,E){return o=="string"?d:x(o,T,E)}return{startState:function(o){var T={tokenize:v,state:l,indented:o||0,tagName:null,tagStart:null,context:null};return o!=null&&(T.baseIndent=o),T},token:function(o,T){if(!T.tagName&&o.sol()&&(T.indented=o.indentation()),o.eatSpace())return null;C=null;var E=T.tokenize(o,T);return(E||C)&&E!="comment"&&(m=null,T.state=T.state(C||E,o,T),m&&(E=m=="error"?E+" error":m)),E},indent:function(o,T,E){var g=o.context;if(o.tokenize.isInAttribute)return o.tagStart==o.indented?o.stringStartCol+1:o.indented+O;if(g&&g.noIndent)return q.Pass;if(o.tokenize!=k&&o.tokenize!=v)return E?E.match(/^(\s*)/)[0].length:0;if(o.tagName)return F.multilineTagIndentPastTag!==!1?o.tagStart+o.tagName.length+2:o.tagStart+O*(F.multilineTagIndentFactor||1);if(F.alignCDATA&&/$/,blockCommentStart:"",configuration:F.htmlMode?"html":"xml",helperType:F.htmlMode?"html":"xml",skipAttribute:function(o){o.state==p&&(o.state=x)},xmlCurrentTag:function(o){return o.tagName?{name:o.tagName,close:o.type=="closeTag"}:null},xmlCurrentContext:function(o){for(var T=[],E=o.context;E;E=E.prev)E.tagName&&T.push(E.tagName);return T.reverse()}}}),q.defineMIME("text/xml","xml"),q.defineMIME("application/xml","xml"),q.mimeModes.hasOwnProperty("text/html")||q.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"7Cbv":function(nt,Qe,te){"use strict";var q=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),G=new Uint8Array(16);function D(){if(!q)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return q(G)}var z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function U(k){return typeof k=="string"&&z.test(k)}for(var O=U,F=[],M=0;M<256;++M)F.push((M+256).toString(16).substr(1));function R(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=(F[k[S+0]]+F[k[S+1]]+F[k[S+2]]+F[k[S+3]]+"-"+F[k[S+4]]+F[k[S+5]]+"-"+F[k[S+6]]+F[k[S+7]]+"-"+F[k[S+8]]+F[k[S+9]]+"-"+F[k[S+10]]+F[k[S+11]]+F[k[S+12]]+F[k[S+13]]+F[k[S+14]]+F[k[S+15]]).toLowerCase();if(!O(b))throw TypeError("Stringified UUID is invalid");return b}var C=R;function m(k,S,b){k=k||{};var f=k.random||(k.rng||D)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,S){b=b||0;for(var u=0;u<16;++u)S[b+u]=f[u];return S}return C(f)}var v=Qe.a=m},"7ahc":function(nt,Qe,te){"use strict";te.d(Qe,"a",function(){return A});var q=te("k1fw"),G=te("0Owb"),D=te("+L6B"),z=te("2/Rp"),U=te("y8nQ"),O=te("Vl3Y"),F=te("tJVT"),M=te("OaEy"),R=te("2fM7"),C=te("cDcd"),m=te.n(C),v=te("VrN/"),k=te.n(v),S=te("p77/"),b=te.n(S),f=te("c5Ni"),u=te.n(f),a=R.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},l={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"]};Qe.b=function(y){var c=y.callback,L=y.onCancel,x=Object(C.useState)("python"),h=Object(F.a)(x,2),p=h[0],d=h[1];function o(E){d(l[E][1])}function T(E){c(E)}return m.a.createElement(O.a,Object(G.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:T}),m.a.createElement(O.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},m.a.createElement(R.a,{onChange:o},Object.keys(l).map(function(E){return m.a.createElement(a,{key:E,value:E},l[E][0])}))),m.a.createElement(O.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},m.a.createElement(A,{mode:p})),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(z.a,{type:"ghost",onClick:L},"\u53D6\u6D88")))};function A(y){var c=y.value,L=y.onChange,x=y.mode,h=y.options,p=h===void 0?{}:h,d=Object(C.useRef)(),o=Object(C.useState)(),T=Object(F.a)(o,2),E=T[0],g=T[1];return Object(C.useEffect)(function(){if(E){function _(N){var B=N.getValue();L&&L(B)}return E.on("change",_),function(){E.off("change",_)}}},[E,L]),Object(C.useEffect)(function(){E&&E.setOption("mode",x)},[E,x]),Object(C.useEffect)(function(){E&&((c!==E.getValue()||c==="")&&setTimeout(function(){E.setValue(c||" ")},300))},[E,c]),Object(C.useEffect)(function(){if(d.current&&!E){var _=k.a.fromTextArea(d.current,Object(q.a)({mode:x,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},p));g(_)}},[d.current,E]),m.a.createElement("div",{className:"my-codemirror-container"},m.a.createElement("textarea",{ref:d}))}},"8EBN":function(nt,Qe,te){(function(q){q(te("VrN/"))})(function(q){"use strict";q.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 G=0;G-1&&z.substring(F+1,z.length);if(M)return q.findModeByExtension(M)},q.findModeByName=function(z){z=z.toLowerCase();for(var U=0;U=ne.length?ce.slice(ne.length):ce}).join(`
`)}var S=[],b=[""],f=new m.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function a(){S.length=0,b=[""]}var s={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function l(me,he,se,ne){if(he>=me.length||me[he].level<=se)return he;var ce=me[he];ne.push("- "+ce.text+""),he++;var $=[];return he=l(me,he,ce.level,$),$.length>0&&(ne.push("
"),$.forEach(function(ie){ne.push(ie)}),ne.push("
")),ne.push(" "),he=l(me,he,se,ne),he}function A(){return l(S,0,0,b),b.push("
"),b.join("")}var y={heading:function(he){var se=u.exec(he);if(se)return{type:"heading",raw:se[0],depth:se[1].length,text:se[2]}},fences:function(he){var se=this.rules.block.fences.exec(he);if(se){var ne=se[0],ce=k(ne,se[3]||""),$=se[2]?se[2].trim():se[2];if(["latex","katex","math"].indexOf($)>=0){var ie=x(),Z=ce;ce=ie,h[ie]={type:"block",expression:Z}}return{type:"code",raw:ne,lang:$,text:ce}}}},c=/(?:\${2})([^\n`]+?)(?:\${2})/gi,L=0,x=function(){return"__special_katext_id_".concat(L++,"__")},h={};function p(){return h}function d(){L=0,h={}}function o(me){return me=me.replace(c,function(he,se){var ne=x();return h[ne]={type:"inline",expression:se},ne}),me}var T=f.listitem;f.listitem=function(me){return T(o(me))};var E=f.paragraph;f.paragraph=function(me){return E(o(me))};var g=f.tablecell;f.tablecell=function(me,he){return g(o(me),he)},f.code=function(me,he,se){var ne=(he||"").match(/\S*/)[0];return ne?["latex","katex","math"].indexOf(ne)>=0?"".concat(me,"
"):'
').concat(se?me:Object(v.escape)(me,!0),`
`):''+(se?me:Object(v.escape)(me,!0))+"
"},f.heading=function(me,he,se){var ne=this.options.headerPrefix+se.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return S.push({anchor:ne,level:he,text:me}),"'+me+""},m.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),m.a.use({tokenizer:y,renderer:f});var _=m.a,N=te("SJMd"),B=te("ulZh"),W=te.n(B),P=te("m3rI"),I=te("Oy/b"),H=te("p5ED"),Y=te("8hTe"),ee=te.n(Y),oe=/]*>/g;function Ee(me){var he=document.createElement("div");return he.innerHTML=me,he.childNodes.length===0?"":he.childNodes[0].nodeValue}var pe=Qe.a=function(me){var he=me.value,se=he===void 0?"":he,ne=me.edit,ce=ne===void 0?!1:ne,$=me.className,ie=me.showTextOnly,Z=me.showLines,ye=me.replaces,Ce=me.zoomImg,ve=me.hasMask,we=me.style,Ae=we===void 0?{}:we,Re=me.stylesPrev,Ie=Re===void 0?{}:Re,Me=String(se),De=Object(F.useRef)(),Ve=Object(F.useRef)(),et=Object(F.useState)(""),ze=Object(O.a)(et,2),Xe=ze[0],qe=ze[1],He=Object(F.useState)("office"),Be=Object(O.a)(He,2),Se=Be[0],Ze=Be[1],Je=Object(F.useMemo)(function(){try{var fe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Q=/\"\/api\/attachments\/|\"\/attachments\/download\//g,J=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Me=Me.replace(fe,"("+P.a.API_SERVER+"/api/attachments/").replace(Q,'"'+P.a.API_SERVER+"/api/attachments/").replace(J,'"'+P.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(_e){}var re=_(Me),le=p();if(Me.match(/\[TOC\]/)&&(re=re.replace("[TOC]
",A()),a()),re=re.replace(/(__special_katext_id_\d+__)/g,function(_e,ke){var je=le[ke],it=je.type,Oe=je.expression;return Object(I.renderToString)(Ee(Oe)||"",{displayMode:it==="block",throwOnError:!1,output:"html"})}),re=re.replace(/▁/g,"\u2581\u2581\u2581"),d(),ie){var Te=document.createElement("div");return Te.innerHTML=re,Te.innerText}return setTimeout(function(){return ge()},500),re},[Me]),Le=Object(F.useRef)();s.WebkitLineClamp=Z,Z&&(Ae=Object(U.a)(Object(U.a)({},Ae),s));function Ue(fe){var Q=fe.target;if(Q.tagName.toUpperCase()==="IMG"){if(Ce){var J=Q.getAttribute("src");qe(J),Ze("image")}}else if(Q.tagName.toUpperCase()==="A"){var re=Q.getAttribute("href");if(re.indexOf("office")>-1)fe.preventDefault(),qe(re),Ze("office");else if(re.indexOf("application/pdf")>-1)fe.preventDefault(),qe(re),Ze("pdf");else if(re.indexOf("text/html")>-1)fe.preventDefault(),qe(re),Ze("html");else if(re.startsWith("#")){fe.preventDefault();var le=document.getElementById(re.replace("#",""));le&&le.scrollIntoView(!0)}}}var ge=function(){var Q,J=(Q=Le.current)===null||Q===void 0?void 0:Q.querySelectorAll("video");J==null||J.forEach(function(re){if(re.oncontextmenu=function(){return!1},re.src.indexOf(".m3u8")>-1&&!re.canPlayType("application/vnd.apple.mpegurl")){if(W.a.isSupported()){var le=new W.a;le.loadSource(re.src),le.attachMedia(re)}}})};Object(F.useEffect)(function(){if(Le.current&&Je&&(Je.match(oe)&&window.PR.prettyPrint()),Le.current)return Le.current.addEventListener("click",Ue),function(){Le.current.removeEventListener("click",Ue),d(),a()}},[Je,Le.current,Ue]);var de=function(Q){if(!ce)return;Q.target.nodeName==="IMG"?(De.current.style.display="flex",De.current.style.width=Q.target.clientWidth+"px",De.current.style.height=Q.target.clientHeight+"px",De.current.style.top=Q.target.offsetTop+"px",De.current.style.left=Q.target.offsetLeft+"px",Ve.current.src=Q.target.getAttribute("src")):De.current.style.display="none"};return M.a.createElement("div",{style:{position:"relative"}},M.a.createElement("div",{ref:Le,style:Object(U.a)({},Ae),className:"".concat($||""," markdown-body ").concat(ee.a.mdBody),onMouseOver:de,dangerouslySetInnerHTML:{__html:Je}}),M.a.createElement("div",{ref:De,className:ee.a.button},M.a.createElement(G.a,null,M.a.createElement(z.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),M.a.createElement(z.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),M.a.createElement("img",{ref:Ve,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),M.a.createElement(H.a,{close:!0,data:Xe,type:Xe!=null&&Xe.length?Se:"",style:Object(U.a)({},Ie),onClose:function(){return qe("")}}))}},"9VGf":function(nt,Qe,te){"use strict";te.d(Qe,"a",function(){return D});var q=te("cDcd"),G=te.n(q);function D(z,U){var O=Object(q.useRef)();Object(q.useEffect)(function(){O.current=z}),Object(q.useEffect)(function(){function F(){O.current()}if(U!==null){var M=setInterval(F,U);return function(){return clearInterval(M)}}},[U])}},BU3w:function(nt,Qe,te){"use strict";te.d(Qe,"a",function(){return O});var q=te("MNnm"),G="rc-util-key";function D(F){if(F.attachTo)return F.attachTo;var M=document.querySelector("head");return M||document.body}function z(F){var M,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(q.a)())return null;var C=document.createElement("style");if((M=R.csp)===null||M===void 0?void 0:M.nonce){var m;C.nonce=(m=R.csp)===null||m===void 0?void 0:m.nonce}C.innerHTML=F;var v=D(R),k=v.firstChild;return R.prepend&&v.prepend?v.prepend(C):R.prepend&&k?v.insertBefore(C,k):v.appendChild(C),C}var U=new Map;function O(F,M){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=D(R);if(!U.has(C)){var m=z("",R),v=m.parentNode;U.set(C,v),v.removeChild(m)}var k=Array.from(U.get(C).children).find(function(a){return a.tagName==="STYLE"&&a[G]===M});if(k){var S,b;if(((S=R.csp)===null||S===void 0?void 0:S.nonce)&&k.nonce!==((b=R.csp)===null||b===void 0?void 0:b.nonce)){var f;k.nonce=(f=R.csp)===null||f===void 0?void 0:f.nonce}return k.innerHTML!==F&&(k.innerHTML=F),k}var u=z(F,R);return u[G]=M,u}},Bd2K:function(nt,Qe,te){(function(q){q(te("VrN/"),te("osHv"))})(function(q){q.defineOption("autoCloseTags",!1,function(R,C,m){if(m!=q.Init&&m&&R.removeKeyMap("autoCloseTags"),!C)return;var v={name:"autoCloseTags"};(typeof C!="object"||C.whenClosing!==!1)&&(v["'/'"]=function(k){return O(k)}),(typeof C!="object"||C.whenOpening!==!1)&&(v["'>'"]=function(k){return z(k)}),R.addKeyMap(v)});var G=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],D=["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 z(R){if(R.getOption("disableInput"))return q.Pass;for(var C=R.listSelections(),m=[],v=R.getOption("autoCloseTags"),k=0;kS.ch&&(s=s.slice(0,s.length-b.end+S.ch));var c=s.toLowerCase();if(!s||b.type=="string"&&(b.end!=S.ch||!/[\"\']/.test(b.string.charAt(b.string.length-1))||b.string.length==1)||b.type=="tag"&&a.close||b.string.indexOf("/")==S.ch-b.start-1||A&&F(A,c)>-1||M(R,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(u)||[],s,S,!0))return q.Pass;var L=typeof v=="object"&&v.emptyTags;if(L&&F(L,s)>-1){m[k]={text:"/>",newPos:q.Pos(S.line,S.ch+2)};continue}var x=y&&F(y,c)>-1;m[k]={indent:x,text:">"+(x?`
`:"")+""+s+">",newPos:x?q.Pos(S.line+1,0):q.Pos(S.line,S.ch+1)}}for(var h=typeof v=="object"&&v.dontIndentOnAutoClose,k=C.length-1;k>=0;k--){var p=m[k];R.replaceRange(p.text,C[k].head,C[k].anchor,"+insert");var d=R.listSelections().slice(0);d[k]={head:p.newPos,anchor:p.newPos},R.setSelections(d),!h&&p.indent&&(R.indentLine(p.newPos.line,null,!0),R.indentLine(p.newPos.line+1,null,!0))}}function U(R,C){for(var m=R.listSelections(),v=[],k=C?"/":"",S=R.getOption("autoCloseTags"),b=typeof S=="object"&&S.dontIndentOnSlash,f=0;f"&&(A+=">"),v[f]=A}if(R.replaceSelections(v),m=R.listSelections(),!b)for(var f=0;f=0&&C[u]==m;u--)++f;v=b.to;for(var u=1;u0){for(var C=0;C1&&arguments[1]!==void 0?arguments[1]:"",C=[],m=0;m=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,B))continue;N[B]=g[B]}}return N}function O(g,_){if(g==null)return{};var N={},B=Object.keys(g),W,P;for(P=0;P=0)continue;N[W]=g[W]}return N}function F(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function M(g,_){for(var N=0;N<_.length;N++){var B=_[N];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(g,B.key,B)}}function R(g,_,N){return _&&M(g.prototype,_),N&&M(g,N),g}function C(g,_){return _&&(q(_)==="object"||typeof _=="function")?_:v(g)}function m(g){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)},m(g)}function v(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function k(g,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(_&&_.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),_&&S(g,_)}function S(g,_){return S=Object.setPrototypeOf||function(B,W){return B.__proto__=W,B},S(g,_)}function b(g,_,N){return _ in g?Object.defineProperty(g,_,{value:N,enumerable:!0,configurable:!0,writable:!0}):g[_]=N,g}var f=te("cDcd"),u=te("17x9"),a=te("H38U"),s=te("aRTE");function l(g){for(var _="",N=0;N>6),_+=String.fromCharCode(128|B&63)):B<55296||B>=57344?(_+=String.fromCharCode(224|B>>12),_+=String.fromCharCode(128|B>>6&63),_+=String.fromCharCode(128|B&63)):(N++,B=65536+((B&1023)<<10|g.charCodeAt(N)&1023),_+=String.fromCharCode(240|B>>18),_+=String.fromCharCode(128|B>>12&63),_+=String.fromCharCode(128|B>>6&63),_+=String.fromCharCode(128|B&63))}return _}var A={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},y={},c=4,L=.1;function x(g){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=[];return g.forEach(function(B,W){var P=null;B.forEach(function(I,H){if(!I&&P!==null){N.push("M".concat(P+_," ").concat(W+_,"h").concat(H-P,"v1H").concat(P+_,"z")),P=null;return}if(H===B.length-1){if(!I)return;P===null?N.push("M".concat(H+_,",").concat(W+_," h1v1H").concat(H+_,"z")):N.push("M".concat(P+_,",").concat(W+_," h").concat(H+1-P,"v1H").concat(P+_,"z"));return}I&&P===null&&(P=H)})}),N.join("")}function h(g,_){return g.slice().map(function(N,B){return B<_.y||B>=_.y+_.h?N:N.map(function(W,P){return P<_.x||P>=_.x+_.w?W:!1})})}function p(g,_){var N=g.imageSettings,B=g.size,W=g.includeMargin;if(N==null)return null;var P=W?c:0,I=_.length+P*2,H=Math.floor(B*L),Y=I/B,ee=(N.width||H)*Y,oe=(N.height||H)*Y,Ee=N.x==null?_.length/2-ee/2:N.x*Y,pe=N.y==null?_.length/2-oe/2:N.y*Y,me=null;if(N.excavate){var he=Math.floor(Ee),se=Math.floor(pe),ne=Math.ceil(ee+Ee-he),ce=Math.ceil(oe+pe-se);me={x:he,y:se,w:ne,h:ce}}return{x:Ee,y:pe,h:oe,w:ee,excavation:me}}var d=function(){try{new Path2D().addPath(new Path2D)}catch(g){return!1}return!0}(),o=function(g){k(_,g);function _(){var N,B;F(this,_);for(var W=arguments.length,P=new Array(W),I=0;Ige.length)&&(de=ge.length);for(var fe=0,Q=new Array(de);fe=ge.length?{done:!0}:{done:!1,value:ge[Q++]}}}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 fe=ge[Symbol.iterator](),fe.next.bind(fe)}function O(ge,de){return de={exports:{}},ge(de,de.exports),de.exports}var F=O(function(ge){function de(){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 fe(Q){ge.exports.defaults=Q}ge.exports={defaults:de(),getDefaults:de,changeDefaults:fe}}),M=F.defaults,R=F.getDefaults,C=F.changeDefaults,m=/[&<>"']/,v=/[&<>"']/g,k=/[<>"']|&(?!#?\w+;)/,S=/[<>"']|&(?!#?\w+;)/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(de){return b[de]};function u(ge,de){if(de){if(m.test(ge))return ge.replace(v,f)}else if(k.test(ge))return ge.replace(S,f);return ge}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(ge){return ge.replace(a,function(de,fe){return fe=fe.toLowerCase(),fe==="colon"?":":fe.charAt(0)==="#"?fe.charAt(1)==="x"?String.fromCharCode(parseInt(fe.substring(2),16)):String.fromCharCode(+fe.substring(1)):""})}var l=/(^|[^\[])\^/g;function A(ge,de){ge=ge.source||ge,de=de||"";var fe={replace:function(J,re){return re=re.source||re,re=re.replace(l,"$1"),ge=ge.replace(J,re),fe},getRegex:function(){return new RegExp(ge,de)}};return fe}var y=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function L(ge,de,fe){if(ge){var Q;try{Q=decodeURIComponent(s(fe)).replace(y,"").toLowerCase()}catch(J){return null}if(Q.indexOf("javascript:")===0||Q.indexOf("vbscript:")===0||Q.indexOf("data:")===0)return null}de&&!c.test(fe)&&(fe=o(de,fe));try{fe=encodeURI(fe).replace(/%25/g,"%")}catch(J){return null}return fe}var x={},h=/^[^:]+:\/*[^/]*$/,p=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function o(ge,de){x[" "+ge]||(h.test(ge)?x[" "+ge]=ge+"/":x[" "+ge]=_(ge,"/",!0)),ge=x[" "+ge];var fe=ge.indexOf(":")===-1;return de.substring(0,2)==="//"?fe?de:ge.replace(p,"$1")+de:de.charAt(0)==="/"?fe?de:ge.replace(d,"$1")+de:ge+de}var T={exec:function(){}};function E(ge){for(var de=1,fe,Q;de=0&&Te[ke]==="\\";)_e=!_e;return _e?"|":" |"}),Q=fe.split(/ \|/),J=0;if(Q.length>de)Q.splice(de);else for(;Q.length=Q.length?J.slice(Q.length):J}).join(`
`)}var pe=function(){function ge(fe){this.options=fe||P}var de=ge.prototype;return de.space=function(Q){var J=this.rules.block.newline.exec(Q);if(J)return J[0].length>1?{type:"space",raw:J[0]}:{raw:`
`}},de.code=function(Q,J){var re=this.rules.block.code.exec(Q);if(re){var le=J[J.length-1];if(le&&le.type==="paragraph")return{raw:re[0],text:re[0].trimRight()};var Te=re[0].replace(/^ {4}/gm,"");return{type:"code",raw:re[0],codeBlockStyle:"indented",text:this.options.pedantic?Te:I(Te,`
`)}}},de.fences=function(Q){var J=this.rules.block.fences.exec(Q);if(J){var re=J[0],le=Ee(re,J[3]||"");return{type:"code",raw:re,lang:J[2]?J[2].trim():J[2],text:le}}},de.heading=function(Q){var J=this.rules.block.heading.exec(Q);if(J)return{type:"heading",raw:J[0],depth:J[1].length,text:J[2]}},de.nptable=function(Q){var J=this.rules.block.nptable.exec(Q);if(J){var re={type:"table",header:H(J[1].replace(/^ *| *\| *$/g,"")),align:J[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:J[3]?J[3].replace(/\n$/,"").split(`
`):[],raw:J[0]};if(re.header.length===re.align.length){var le=re.align.length,Te;for(Te=0;Te ?/gm,"");return{type:"blockquote",raw:J[0],text:re}}},de.list=function(Q){var J=this.rules.block.list.exec(Q);if(J){for(var re=J[0],le=J[2],Te=le.length>1,_e=le[le.length-1]===")",ke={type:"list",raw:re,ordered:Te,start:Te?+le.slice(0,-1):"",loose:!1,items:[]},je=J[0].match(this.rules.block.item),it=!1,Oe,ft,ot,rt,Et,st,vt,yt=je.length,Ke=0;Ke1||this.options.smartLists&&ot!==le)&&(rt=je.slice(Ke+1).join(`
`),ke.raw=ke.raw.substring(0,ke.raw.length-rt.length),Ke=yt-1)),Et=it||/\n\n(?!\s*$)/.test(Oe),Ke!==yt-1&&(it=Oe.charAt(Oe.length-1)===`
`,Et||(Et=it)),Et&&(ke.loose=!0),st=/^\[[ xX]\] /.test(Oe),vt=void 0,st&&(vt=Oe[1]!==" ",Oe=Oe.replace(/^\[[ xX]\] +/,"")),ke.items.push({type:"list_item",raw:re,task:st,checked:vt,loose:Et,text:Oe});return ke}},de.html=function(Q){var J=this.rules.block.html.exec(Q);if(J)return{type:this.options.sanitize?"paragraph":"html",raw:J[0],pre:!this.options.sanitizer&&(J[1]==="pre"||J[1]==="script"||J[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(J[0]):Y(J[0]):J[0]}},de.def=function(Q){var J=this.rules.block.def.exec(Q);if(J){J[3]&&(J[3]=J[3].substring(1,J[3].length-1));var re=J[1].toLowerCase().replace(/\s+/g," ");return{tag:re,raw:J[0],href:J[2],title:J[3]}}},de.table=function(Q){var J=this.rules.block.table.exec(Q);if(J){var re={type:"table",header:H(J[1].replace(/^ *| *\| *$/g,"")),align:J[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:J[3]?J[3].replace(/\n$/,"").split(`
`):[]};if(re.header.length===re.align.length){re.raw=J[0];var le=re.align.length,Te;for(Te=0;Te/i.test(le[0])&&(J=!1),!re&&/^<(pre|code|kbd|script)(\s|>)/i.test(le[0])?re=!0:re&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(le[0])&&(re=!1),{type:this.options.sanitize?"text":"html",raw:le[0],inLink:J,inRawBlock:re,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(le[0]):Y(le[0]):le[0]}},de.link=function(Q){var J=this.rules.inline.link.exec(Q);if(J){var re=ee(J[2],"()");if(re>-1){var le=J[0].indexOf("!")===0?5:4,Te=le+J[1].length+re;J[2]=J[2].substring(0,re),J[0]=J[0].substring(0,Te).trim(),J[3]=""}var _e=J[2],ke="";if(this.options.pedantic){var je=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(_e);je?(_e=je[1],ke=je[3]):ke=""}else ke=J[3]?J[3].slice(1,-1):"";_e=_e.trim().replace(/^<([\s\S]*)>$/,"$1");var it=oe(J,{href:_e&&_e.replace(this.rules.inline._escapes,"$1"),title:ke&&ke.replace(this.rules.inline._escapes,"$1")},J[0]);return it}},de.reflink=function(Q,J){var re;if((re=this.rules.inline.reflink.exec(Q))||(re=this.rules.inline.nolink.exec(Q))){var le=(re[2]||re[1]).replace(/\s+/g," ");if(le=J[le.toLowerCase()],!le||!le.href){var Te=re[0].charAt(0);return{type:"text",raw:Te,text:Te}}var _e=oe(re,le,re[0]);return _e}},de.strong=function(Q,J,re){re===void 0&&(re="");var le=this.rules.inline.strong.start.exec(Q);if(le&&(!le[1]||le[1]&&(re===""||this.rules.inline.punctuation.exec(re)))){J=J.slice(-1*Q.length);var Te=le[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Te.lastIndex=0;for(var _e;(le=Te.exec(J))!=null;)if(_e=this.rules.inline.strong.middle.exec(J.slice(0,le.index+3)),_e)return{type:"strong",raw:Q.slice(0,_e[0].length),text:Q.slice(2,_e[0].length-2)}}},de.em=function(Q,J,re){re===void 0&&(re="");var le=this.rules.inline.em.start.exec(Q);if(le&&(!le[1]||le[1]&&(re===""||this.rules.inline.punctuation.exec(re)))){J=J.slice(-1*Q.length);var Te=le[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Te.lastIndex=0;for(var _e;(le=Te.exec(J))!=null;)if(_e=this.rules.inline.em.middle.exec(J.slice(0,le.index+2)),_e)return{type:"em",raw:Q.slice(0,_e[0].length),text:Q.slice(1,_e[0].length-1)}}},de.codespan=function(Q){var J=this.rules.inline.code.exec(Q);if(J){var re=J[2].replace(/\n/g," "),le=/[^ ]/.test(re),Te=re.startsWith(" ")&&re.endsWith(" ");return le&&Te&&(re=re.substring(1,re.length-1)),re=Y(re,!0),{type:"codespan",raw:J[0],text:re}}},de.br=function(Q){var J=this.rules.inline.br.exec(Q);if(J)return{type:"br",raw:J[0]}},de.del=function(Q){var J=this.rules.inline.del.exec(Q);if(J)return{type:"del",raw:J[0],text:J[1]}},de.autolink=function(Q,J){var re=this.rules.inline.autolink.exec(Q);if(re){var le,Te;return re[2]==="@"?(le=Y(this.options.mangle?J(re[1]):re[1]),Te="mailto:"+le):(le=Y(re[1]),Te=le),{type:"link",raw:re[0],text:le,href:Te,tokens:[{type:"text",raw:le,text:le}]}}},de.url=function(Q,J){var re;if(re=this.rules.inline.url.exec(Q)){var le,Te;if(re[2]==="@")le=Y(this.options.mangle?J(re[0]):re[0]),Te="mailto:"+le;else{var _e;do _e=re[0],re[0]=this.rules.inline._backpedal.exec(re[0])[0];while(_e!==re[0]);le=Y(re[0]),re[1]==="www."?Te="http://"+le:Te=le}return{type:"link",raw:re[0],text:le,href:Te,tokens:[{type:"text",raw:le,text:le}]}}},de.inlineText=function(Q,J,re){var le=this.rules.inline.text.exec(Q);if(le){var Te;return J?Te=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(le[0]):Y(le[0]):le[0]:Te=Y(this.options.smartypants?re(le[0]):le[0]),{type:"text",raw:le[0],text:Te}}},ge}(),me=W.noopTest,he=W.edit,se=W.merge,ne={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:me,table:me,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ne._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ne._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ne.def=he(ne.def).replace("label",ne._label).replace("title",ne._title).getRegex(),ne.bullet=/(?:[*+-]|\d{1,9}[.)])/,ne.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ne.item=he(ne.item,"gm").replace(/bull/g,ne.bullet).getRegex(),ne.list=he(ne.list).replace(/bull/g,ne.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ne.def.source+")").getRegex(),ne._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",ne._comment=//,ne.html=he(ne.html,"i").replace("comment",ne._comment).replace("tag",ne._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ne.paragraph=he(ne._paragraph).replace("hr",ne.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",ne._tag).getRegex(),ne.blockquote=he(ne.blockquote).replace("paragraph",ne.paragraph).getRegex(),ne.normal=se({},ne),ne.gfm=se({},ne.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*|$)"}),ne.gfm.nptable=he(ne.gfm.nptable).replace("hr",ne.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",ne._tag).getRegex(),ne.gfm.table=he(ne.gfm.table).replace("hr",ne.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",ne._tag).getRegex(),ne.pedantic=se({},ne.normal,{html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ne._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:me,paragraph:he(ne.normal._paragraph).replace("hr",ne.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ne.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ce={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:me,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:me,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",ce.punctuation=he(ce.punctuation).replace(/punctuation/g,ce._punctuation).getRegex(),ce._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ce._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ce.em.start=he(ce.em.start).replace(/punctuation/g,ce._punctuation).getRegex(),ce.em.middle=he(ce.em.middle).replace(/punctuation/g,ce._punctuation).replace(/overlapSkip/g,ce._overlapSkip).getRegex(),ce.em.endAst=he(ce.em.endAst,"g").replace(/punctuation/g,ce._punctuation).getRegex(),ce.em.endUnd=he(ce.em.endUnd,"g").replace(/punctuation/g,ce._punctuation).getRegex(),ce.strong.start=he(ce.strong.start).replace(/punctuation/g,ce._punctuation).getRegex(),ce.strong.middle=he(ce.strong.middle).replace(/punctuation/g,ce._punctuation).replace(/blockSkip/g,ce._blockSkip).getRegex(),ce.strong.endAst=he(ce.strong.endAst,"g").replace(/punctuation/g,ce._punctuation).getRegex(),ce.strong.endUnd=he(ce.strong.endUnd,"g").replace(/punctuation/g,ce._punctuation).getRegex(),ce.blockSkip=he(ce._blockSkip,"g").getRegex(),ce.overlapSkip=he(ce._overlapSkip,"g").getRegex(),ce._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ce._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ce._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])?)+(?![-_])/,ce.autolink=he(ce.autolink).replace("scheme",ce._scheme).replace("email",ce._email).getRegex(),ce._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ce.tag=he(ce.tag).replace("comment",ne._comment).replace("attribute",ce._attribute).getRegex(),ce._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ce._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ce._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ce.link=he(ce.link).replace("label",ce._label).replace("href",ce._href).replace("title",ce._title).getRegex(),ce.reflink=he(ce.reflink).replace("label",ce._label).getRegex(),ce.reflinkSearch=he(ce.reflinkSearch,"g").replace("reflink",ce.reflink).replace("nolink",ce.nolink).getRegex(),ce.normal=se({},ce),ce.pedantic=se({},ce.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:he(/^!?\[(label)\]\((.*?)\)/).replace("label",ce._label).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ce._label).getRegex()}),ce.gfm=se({},ce.normal,{escape:he(ce.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&&(Q="x"+Q.toString(16)),de+=""+Q+";";return de}var we=function(){function ge(fe){this.tokens=[],this.tokens.links=Object.create(null),this.options=fe||ie,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Q={block:Z.normal,inline:ye.normal};this.options.pedantic?(Q.block=Z.pedantic,Q.inline=ye.pedantic):this.options.gfm&&(Q.block=Z.gfm,this.options.breaks?Q.inline=ye.breaks:Q.inline=ye.gfm),this.tokenizer.rules=Q}ge.lex=function(Q,J){var re=new ge(J);return re.lex(Q)};var de=ge.prototype;return de.lex=function(Q){return Q=Q.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Q,this.tokens,!0),this.inline(this.tokens),this.tokens},de.blockTokens=function(Q,J,re){J===void 0&&(J=[]),re===void 0&&(re=!0),Q=Q.replace(/^ +$/gm,"");for(var le,Te,_e,ke;Q;){if(le=this.tokenizer.space(Q)){Q=Q.substring(le.raw.length),le.type&&J.push(le);continue}if(le=this.tokenizer.code(Q,J)){Q=Q.substring(le.raw.length),le.type?J.push(le):(ke=J[J.length-1],ke.raw+=`
`+le.raw,ke.text+=`
`+le.text);continue}if(le=this.tokenizer.fences(Q)){Q=Q.substring(le.raw.length),J.push(le);continue}if(le=this.tokenizer.heading(Q)){Q=Q.substring(le.raw.length),J.push(le);continue}if(le=this.tokenizer.nptable(Q)){Q=Q.substring(le.raw.length),J.push(le);continue}if(le=this.tokenizer.hr(Q)){Q=Q.substring(le.raw.length),J.push(le);continue}if(le=this.tokenizer.blockquote(Q)){Q=Q.substring(le.raw.length),le.tokens=this.blockTokens(le.text,[],re),J.push(le);continue}if(le=this.tokenizer.list(Q)){for(Q=Q.substring(le.raw.length),_e=le.items.length,Te=0;Te<_e;Te++)le.items[Te].tokens=this.blockTokens(le.items[Te].text,[],!1);J.push(le);continue}if(le=this.tokenizer.html(Q)){Q=Q.substring(le.raw.length),J.push(le);continue}if(re&&(le=this.tokenizer.def(Q))){Q=Q.substring(le.raw.length),this.tokens.links[le.tag]||(this.tokens.links[le.tag]={href:le.href,title:le.title});continue}if(le=this.tokenizer.table(Q)){Q=Q.substring(le.raw.length),J.push(le);continue}if(le=this.tokenizer.lheading(Q)){Q=Q.substring(le.raw.length),J.push(le);continue}if(re&&(le=this.tokenizer.paragraph(Q))){Q=Q.substring(le.raw.length),J.push(le);continue}if(le=this.tokenizer.text(Q,J)){Q=Q.substring(le.raw.length),le.type?J.push(le):(ke=J[J.length-1],ke.raw+=`
`+le.raw,ke.text+=`
`+le.text);continue}if(Q){var je="Infinite loop on byte: "+Q.charCodeAt(0);if(this.options.silent){console.error(je);break}else throw new Error(je)}}return J},de.inline=function(Q){var J,re,le,Te,_e,ke,je=Q.length;for(J=0;J0)for(;(je=this.tokenizer.rules.inline.reflinkSearch.exec(ke))!=null;)it.includes(je[0].slice(je[0].lastIndexOf("[")+1,-1))&&(ke=ke.slice(0,je.index)+"["+"a".repeat(je[0].length-2)+"]"+ke.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(je=this.tokenizer.rules.inline.blockSkip.exec(ke))!=null;)ke=ke.slice(0,je.index)+"["+"a".repeat(je[0].length-2)+"]"+ke.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Q;){if(_e=this.tokenizer.escape(Q)){Q=Q.substring(_e.raw.length),J.push(_e);continue}if(_e=this.tokenizer.tag(Q,re,le)){Q=Q.substring(_e.raw.length),re=_e.inLink,le=_e.inRawBlock,J.push(_e);continue}if(_e=this.tokenizer.link(Q)){Q=Q.substring(_e.raw.length),_e.type==="link"&&(_e.tokens=this.inlineTokens(_e.text,[],!0,le)),J.push(_e);continue}if(_e=this.tokenizer.reflink(Q,this.tokens.links)){Q=Q.substring(_e.raw.length),_e.type==="link"&&(_e.tokens=this.inlineTokens(_e.text,[],!0,le)),J.push(_e);continue}if(_e=this.tokenizer.strong(Q,ke,Te)){Q=Q.substring(_e.raw.length),_e.tokens=this.inlineTokens(_e.text,[],re,le),J.push(_e);continue}if(_e=this.tokenizer.em(Q,ke,Te)){Q=Q.substring(_e.raw.length),_e.tokens=this.inlineTokens(_e.text,[],re,le),J.push(_e);continue}if(_e=this.tokenizer.codespan(Q)){Q=Q.substring(_e.raw.length),J.push(_e);continue}if(_e=this.tokenizer.br(Q)){Q=Q.substring(_e.raw.length),J.push(_e);continue}if(_e=this.tokenizer.del(Q)){Q=Q.substring(_e.raw.length),_e.tokens=this.inlineTokens(_e.text,[],re,le),J.push(_e);continue}if(_e=this.tokenizer.autolink(Q,ve)){Q=Q.substring(_e.raw.length),J.push(_e);continue}if(!re&&(_e=this.tokenizer.url(Q,ve))){Q=Q.substring(_e.raw.length),J.push(_e);continue}if(_e=this.tokenizer.inlineText(Q,le,Ce)){Q=Q.substring(_e.raw.length),Te=_e.raw.slice(-1),J.push(_e);continue}if(Q){var Oe="Infinite loop on byte: "+Q.charCodeAt(0);if(this.options.silent){console.error(Oe);break}else throw new Error(Oe)}}return J},G(ge,null,[{key:"rules",get:function(){return{block:Z,inline:ye}}}]),ge}(),Ae=F.defaults,Re=W.cleanUrl,Ie=W.escape,Me=function(){function ge(fe){this.options=fe||Ae}var de=ge.prototype;return de.code=function(Q,J,re){var le=(J||"").match(/\S*/)[0];if(this.options.highlight){var Te=this.options.highlight(Q,le);Te!=null&&Te!==Q&&(re=!0,Q=Te)}return le?''+(re?Q:Ie(Q,!0))+`
`:""+(re?Q:Ie(Q,!0))+`
`},de.blockquote=function(Q){return`
`+Q+`
`},de.html=function(Q){return Q},de.heading=function(Q,J,re,le){return this.options.headerIds?"
`:""+Q+"
`},de.hr=function(){return this.options.xhtml?`
`:`
`},de.list=function(Q,J,re){var le=J?"ol":"ul",Te=J&&re!==1?' start="'+re+'"':"";return"<"+le+Te+`>
`+Q+""+le+`>
`},de.listitem=function(Q){return""+Q+`
`},de.checkbox=function(Q){return" "},de.paragraph=function(Q){return""+Q+`
`},de.table=function(Q,J){return J&&(J=""+J+""),`
`},de.tablerow=function(Q){return`
`+Q+`
`},de.tablecell=function(Q,J){var re=J.header?"th":"td",le=J.align?"<"+re+' align="'+J.align+'">':"<"+re+">";return le+Q+""+re+`>
`},de.strong=function(Q){return""+Q+""},de.em=function(Q){return""+Q+""},de.codespan=function(Q){return""+Q+""},de.br=function(){return this.options.xhtml?"
":"
"},de.del=function(Q){return""+Q+""},de.link=function(Q,J,re){if(Q=Re(this.options.sanitize,this.options.baseUrl,Q),Q===null)return re;var le='"+re+"",le},de.image=function(Q,J,re){if(Q=Re(this.options.sanitize,this.options.baseUrl,Q),Q===null)return re;var le='
":">",le},de.text=function(Q){return Q},ge}(),De=function(){function ge(){}var de=ge.prototype;return de.strong=function(Q){return Q},de.em=function(Q){return Q},de.codespan=function(Q){return Q},de.del=function(Q){return Q},de.html=function(Q){return Q},de.text=function(Q){return Q},de.link=function(Q,J,re){return""+re},de.image=function(Q,J,re){return""+re},de.br=function(){return""},ge}(),Ve=function(){function ge(){this.seen={}}var de=ge.prototype;return de.slug=function(Q){var J=Q.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(J)){var re=J;do this.seen[re]++,J=re+"-"+this.seen[re];while(this.seen.hasOwnProperty(J))}return this.seen[J]=0,J},ge}(),et=F.defaults,ze=W.unescape,Xe=function(){function ge(fe){this.options=fe||et,this.options.renderer=this.options.renderer||new Me,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new De,this.slugger=new Ve}ge.parse=function(Q,J){var re=new ge(J);return re.parse(Q)};var de=ge.prototype;return de.parse=function(Q,J){J===void 0&&(J=!0);var re="",le,Te,_e,ke,je,it,Oe,ft,ot,rt,Et,st,vt,yt,Ke,Qt,Mt,Bt,kt=Q.length;for(le=0;le0&&Ke.tokens[0].type==="text"?(Ke.tokens[0].text=Bt+" "+Ke.tokens[0].text,Ke.tokens[0].tokens&&Ke.tokens[0].tokens.length>0&&Ke.tokens[0].tokens[0].type==="text"&&(Ke.tokens[0].tokens[0].text=Bt+" "+Ke.tokens[0].tokens[0].text)):Ke.tokens.unshift({type:"text",text:Bt}):yt+=Bt),yt+=this.parse(Ke.tokens,vt),ot+=this.renderer.listitem(yt,Mt,Qt);re+=this.renderer.list(ot,Et,st);continue}case"html":{re+=this.renderer.html(rt.text);continue}case"paragraph":{re+=this.renderer.paragraph(this.parseInline(rt.tokens));continue}case"text":{for(ot=rt.tokens?this.parseInline(rt.tokens):rt.text;le+1An error occurred:
"+Be(_e.message+"",!0)+"
";throw _e}}Le.options=Le.setOptions=function(ge){return qe(Le.defaults,ge),Ze(Le.defaults),Le},Le.getDefaults=Se,Le.defaults=Je,Le.use=function(ge){var de=qe({},ge);if(ge.renderer&&function(){var Q=Le.defaults.renderer||new Me,J=function(Te){var _e=Q[Te];Q[Te]=function(){for(var ke=arguments.length,je=new Array(ke),it=0;it`,triples:"",explode:"[]{}"},D=q.Pos;q.defineOption("autoCloseBrackets",!1,function(b,f,u){u&&u!=q.Init&&(b.removeKeyMap(U),b.state.closeBrackets=null),f&&(O(z(f,"pairs")),b.state.closeBrackets=f,b.addKeyMap(U))});function z(b,f){return f=="pairs"&&typeof b=="string"?b:typeof b=="object"&&b[f]!=null?b[f]:G[f]}var U={Backspace:R,Enter:C};function O(b){for(var f=0;f=0;s--){var A=a[s].head;b.replaceRange("",D(A.line,A.ch-1),D(A.line,A.ch+1),"+delete")}}function C(b){var f=M(b),u=f&&z(f,"explode");if(!u||b.getOption("disableInput"))return q.Pass;for(var a=b.listSelections(),s=0;s0;return{anchor:new D(b.anchor.line,b.anchor.ch+(f?-1:1)),head:new D(b.head.line,b.head.ch+(f?1:-1))}}function v(b,f){var u=M(b);if(!u||b.getOption("disableInput"))return q.Pass;var a=z(u,"pairs"),s=a.indexOf(f);if(s==-1)return q.Pass;for(var l=z(u,"closeBefore"),A=z(u,"triples"),y=a.charAt(s+1)==f,c=b.listSelections(),L=s%2==0,x,h=0;h=0&&b.getRange(d,D(d.line,d.ch+3))==f+f+f?o="skipThree":o="skip";else if(y&&d.ch>1&&A.indexOf(f)>=0&&b.getRange(D(d.line,d.ch-2),d)==f+f){if(d.ch>2&&/\bstring/.test(b.getTokenTypeAt(D(d.line,d.ch-2))))return q.Pass;o="addFour"}else if(y){var E=d.ch==0?" ":b.getRange(D(d.line,d.ch-1),d);if(!q.isWordChar(T)&&E!=f&&!q.isWordChar(E))o="both";else return q.Pass}else if(L&&(T.length===0||/\s/.test(T)||l.indexOf(T)>-1))o="both";else return q.Pass;if(!x)x=o;else if(x!=o)return q.Pass}var g=s%2?a.charAt(s-1):f,_=s%2?f:a.charAt(s+1);b.operation(function(){if(x=="skip")b.execCommand("goCharRight");else if(x=="skipThree")for(var N=0;N<3;N++)b.execCommand("goCharRight");else if(x=="surround"){for(var B=b.getSelections(),N=0;N0&&(ee.percent=ee.loaded/ee.total*100),W.onProgress(ee)});var I=new FormData;W.data&&Object.keys(W.data).forEach(function(Y){var ee=W.data[Y];if(Array.isArray(ee)){ee.forEach(function(oe){I.append(Y+"[]",oe)});return}I.append(Y,W.data[Y])}),W.file instanceof Blob?I.append(W.filename,W.file,W.file.name):I.append(W.filename,W.file),P.onerror=function(ee){W.onError(ee)},P.onload=function(){return P.status<200||P.status>=300?W.onError(U(W,P),O(P)):W.onSuccess(O(P),P)},P.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in P&&(P.withCredentials=!0);var H=W.headers||{};return H["X-Requested-With"]!==null&&P.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(H).forEach(function(Y){H[Y]!==null&&P.setRequestHeader(Y,H[Y])}),P.send(I),{abort:function(){P.abort()}}}var M=+new Date,R=0;function C(){return"rc-upload-"+M+"-"+ ++R}function m(W,P){return W.indexOf(P,W.length-P.length)!==-1}var v=function(W,P){if(W&&P){var I=Array.isArray(P)?P:P.split(","),H=W.name||"",Y=W.type||"",ee=Y.replace(/\/.*$/,"");return I.some(function(oe){var Ee=oe.trim();return Ee.charAt(0)==="."?m(H.toLowerCase(),Ee.toLowerCase()):/\/\*$/.test(Ee)?ee===Ee.replace(/\/.*$/,""):Y===Ee})}return!0};function k(W,P){var I=W.createReader(),H=[];function Y(){I.readEntries(function(ee){var oe=Array.prototype.slice.apply(ee);H=H.concat(oe);var Ee=!oe.length;Ee?P(H):Y()})}Y()}var S=function(P,I,H){var Y=function ee(oe,Ee){Ee=Ee||"",oe.isFile?oe.file(function(pe){H(pe)&&(oe.fullPath&&!pe.webkitRelativePath&&(Object.defineProperties(pe,{webkitRelativePath:{writable:!0}}),pe.webkitRelativePath=oe.fullPath.replace(/^\//,""),Object.defineProperties(pe,{webkitRelativePath:{writable:!1}})),I([pe]))}):oe.isDirectory&&k(oe,function(pe){pe.forEach(function(me){ee(me,""+Ee+oe.name+"/")})})};P.forEach(function(ee){Y(ee.webkitGetAsEntry())})},b=S,f=Object.assign||function(W){for(var P=1;P=0)continue;if(!Object.prototype.hasOwnProperty.call(W,H))continue;I[H]=W[H]}return I}function A(W,P){if(!(W instanceof P))throw new TypeError("Cannot call a class as a function")}function y(W,P){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:W}function c(W,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);W.prototype=Object.create(P&&P.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(W,P):W.__proto__=P)}var L=function(P){return Object.keys(P).reduce(function(I,H){return(H.substr(0,5)==="data-"||H.substr(0,5)==="aria-"||H==="role")&&(I[H]=P[H]),I},{})},x=function(W){c(P,W);function P(){var I,H,Y,ee;A(this,P);for(var oe=arguments.length,Ee=Array(oe),pe=0;pe=7&&this.setupTypeNumber(M),this.dataCache==null&&(this.dataCache=O.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,R)},F.setupPositionProbePattern=function(M,R){for(var C=-1;C<=7;C++){if(M+C<=-1||this.moduleCount<=M+C)continue;for(var m=-1;m<=7;m++){if(R+m<=-1||this.moduleCount<=R+m)continue;0<=C&&C<=6&&(m==0||m==6)||0<=m&&m<=6&&(C==0||C==6)||2<=C&&C<=4&&2<=m&&m<=4?this.modules[M+C][R+m]=!0:this.modules[M+C][R+m]=!1}}},F.getBestMaskPattern=function(){for(var M=0,R=0,C=0;C<8;C++){this.makeImpl(!0,C);var m=z.getLostPoint(this);(C==0||M>m)&&(M=m,R=C)}return R},F.createMovieClip=function(M,R,C){var m=M.createEmptyMovieClip(R,C),v=1;this.make();for(var k=0;k>C&1)==1;this.modules[Math.floor(C/3)][C%3+this.moduleCount-8-3]=m}for(var C=0;C<18;C++){var m=!M&&(R>>C&1)==1;this.modules[C%3+this.moduleCount-8-3][Math.floor(C/3)]=m}},F.setupTypeInfo=function(M,R){for(var C=this.errorCorrectLevel<<3|R,m=z.getBCHTypeInfo(C),v=0;v<15;v++){var k=!M&&(m>>v&1)==1;v<6?this.modules[v][8]=k:v<8?this.modules[v+1][8]=k:this.modules[this.moduleCount-15+v][8]=k}for(var v=0;v<15;v++){var k=!M&&(m>>v&1)==1;v<8?this.modules[8][this.moduleCount-v-1]=k:v<9?this.modules[8][15-v-1+1]=k:this.modules[8][15-v-1]=k}this.modules[this.moduleCount-8][8]=!M},F.mapData=function(M,R){for(var C=-1,m=this.moduleCount-1,v=7,k=0,S=this.moduleCount-1;S>0;S-=2)for(S==6&&S--;;){for(var b=0;b<2;b++)if(this.modules[m][S-b]==null){var f=!1;k>>v&1)==1);var u=z.getMask(R,m,S-b);u&&(f=!f),this.modules[m][S-b]=f,v--,v==-1&&(k++,v=7)}if(m+=C,m<0||this.moduleCount<=m){m-=C,C=-C;break}}},O.PAD0=236,O.PAD1=17,O.createData=function(M,R,C){for(var m=G.getRSBlocks(M,R),v=new D,k=0;kb*8)throw new Error("code length overflow. ("+v.getLengthInBits()+">"+b*8+")");for(v.getLengthInBits()+4<=b*8&&v.put(0,4);v.getLengthInBits()%8!=0;)v.putBit(!1);for(;!(v.getLengthInBits()>=b*8);){if(v.put(O.PAD0,8),v.getLengthInBits()>=b*8)break;v.put(O.PAD1,8)}return O.createBytes(v,m)},O.createBytes=function(M,R){for(var C=0,m=0,v=0,k=new Array(R.length),S=new Array(R.length),b=0;b=0?A.get(y):0}}for(var c=0,a=0;a=0;)F^=U.G15<=0;)F^=U.G18<>>=1;return F},getPatternPosition:function(O){return U.PATTERN_POSITION_TABLE[O-1]},getMask:function(O,F,M){switch(O){case z.PATTERN000:return(F+M)%2==0;case z.PATTERN001:return F%2==0;case z.PATTERN010:return M%3==0;case z.PATTERN011:return(F+M)%3==0;case z.PATTERN100:return(Math.floor(F/2)+Math.floor(M/3))%2==0;case z.PATTERN101:return F*M%2+F*M%3==0;case z.PATTERN110:return(F*M%2+F*M%3)%2==0;case z.PATTERN111:return(F*M%3+(F+M)%2)%2==0;default:throw new Error("bad maskPattern:"+O)}},getErrorCorrectPolynomial:function(O){for(var F=new G([1],0),M=0;M5&&(M+=3+m-5)}for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:1,fe=De.length,Q=0;Q1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(I).map(function(Y,ee){if(!U.isValidElement(Y)||!Y.type)return null;var oe=Y.type.isSelectOptGroup,Ee=Y.key,pe=Y.props,me=pe.children,he=Object(F.a)(pe,["children"]);return H||!oe?x(Y):Object(c.a)(Object(c.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?ee:Ee,"__"),label:Ee},he),{},{options:h(me)})}).filter(function(Y){return Y})}var p=te("2Qr1"),d=te("qNPg"),o=te("U8pU"),T=te("Kwbf"),E=te("WKfj");function g(I){var H=I.mode,Y=I.options,ee=I.children,oe=I.backfill,Ee=I.allowClear,pe=I.placeholder,me=I.getInputElement,he=I.showSearch,se=I.onSearch,ne=I.defaultOpen,ce=I.autoFocus,$=I.labelInValue,ie=I.value,Z=I.inputValue,ye=I.optionLabelProp,Ce=H==="multiple"||H==="tags",ve=he!==void 0?he:Ce||H==="combobox",we=Y||h(ee);if(Object(T.a)(H!=="tags"||we.every(function(Me){return!Me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),H==="tags"||H==="combobox"){var Ae=we.some(function(Me){return Me.options?Me.options.some(function(De){return typeof("value"in De?De.value:De.key)=="number"}):typeof("value"in Me?Me.value:Me.key)=="number"});Object(T.a)(!Ae,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(H!=="combobox"||!ye,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(H==="combobox"||!oe,"`backfill` only works with `combobox` mode."),Object(T.a)(H==="combobox"||!me,"`getInputElement` only work with `combobox` mode."),Object(T.b)(H!=="combobox"||!me||!Ee||!pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),se&&!ve&&H!=="combobox"&&H!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!ne||ce,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ie!=null){var Re=Object(E.d)(ie);Object(T.a)(!$||Re.every(function(Me){return Object(o.a)(Me)==="object"&&("key"in Me||"value"in Me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!Ce||Array.isArray(ie),"`value` should be array when `mode` is `multiple` or `tags`")}if(ee){var Ie=null;Object(L.a)(ee).some(function(Me){if(!U.isValidElement(Me)||!Me.type)return!1;var De=Me.type;if(De.isSelectOption)return!1;if(De.isSelectOptGroup){var Ve=Object(L.a)(Me.props.children).every(function(et){return!U.isValidElement(et)||!Me.type||et.type.isSelectOption?!0:(Ie=et.type,!1)});return!Ve}return Ie=De,!0}),Ie&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(T.a)(Z===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var _=g,N=Object(d.a)({prefixCls:"rc-select",components:{optionList:a},convertChildrenToData:h,flattenOptions:p.d,getLabeledValue:p.e,filterOptions:p.b,isValueDisabled:p.g,findValueOption:p.c,warningProps:_,fillOptionsWithMissingValue:p.a}),B=function(I){Object(D.a)(Y,I);var H=Object(z.a)(Y);function Y(){var ee;return Object(q.a)(this,Y),ee=H.apply(this,arguments),ee.selectRef=U.createRef(),ee.focus=function(){ee.selectRef.current.focus()},ee.blur=function(){ee.selectRef.current.blur()},ee}return Object(G.a)(Y,[{key:"render",value:function(){return U.createElement(N,Object.assign({ref:this.selectRef},this.props))}}]),Y}(U.Component);B.Option=l,B.OptGroup=y;var W=B,P=Qe.c=W},M8RZ:function(nt,Qe,te){"use strict";te.d(Qe,"a",function(){return R});var q=te("fWQN"),G=te("mtLc"),D=te("yKVA"),z=te("879j"),U=te("cDcd"),O=te.n(U),F=te("faye"),M=te.n(F),R=function(C){Object(D.a)(v,C);var m=Object(z.a)(v);function v(k){var S;Object(q.a)(this,v),S=m.call(this,k);var b=window.document;return S.node=b.createElement("div"),b.body.appendChild(S.node),S}return Object(G.a)(v,[{key:"render",value:function(){var S=this.props.children;return Object(F.createPortal)(S,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),v}(O.a.Component)},Ot1p:function(nt,Qe,te){"use strict";var q=te("2qtc"),G=te("kLXV"),D=te("rAM+"),z=te("miYZ"),U=te("tsqr"),O=te("9og8"),F=te("tJVT"),M=te("jrin"),R=te("WmNS"),C=te.n(R),m=te("cDcd"),v=te.n(m),k=te("VrN/"),S=te.n(k),b=te("bdgK"),f=te("p77/"),u=te("Bd2K"),a=te("ELLl"),s=te("19Vz"),l=te("lZu9"),A=te("+NIl"),y=te("kSUc"),c=te("9Bee"),L=function(Oe){var ft=Oe.value,ot=ft===void 0?"":ft,rt=Oe.className,Et=Oe.showTextOnly,st=Oe.showLines,vt=Oe.style,yt=vt===void 0?{}:vt,Ke=Object(m.useMemo)(function(){return""},[ot]);return v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{dangerouslySetInnerHTML:{__html:Ke}}))},x=te("Q9mQ"),h=te("diRs"),p=te("0Owb"),d=te("dejd"),o=te("C+DQ"),T=te("D1Df"),E=te.n(T),g=te("1vsH"),_=te("m3rI"),N=[{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 B(Oe){var ft=Oe.onActionCallback,ot=Oe.title,rt=Oe.icon,Et=Oe.actionName,st=Oe.className,vt=st===void 0?"":st,yt=Oe.children;function Ke(){ft(Et)}return v.a.createElement("a",{title:ot,className:vt,onClick:Ke},v.a.createElement("i",{className:"md-iconfont ".concat(rt)}),yt)}var W=function(Oe){var ft=Oe.watch,ot=Oe.showNullButton,rt=Oe.onActionCallback,Et=Oe.fullScreen,st=Oe.insertTemp,vt=Oe.hidetoolBar,yt=Oe.uuid,Ke=Oe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(g.G)("_educoder_session_login"),"&_educoder_session=").concat(Object(g.G)("_educoder_session"),"&key=").concat(yt,"&api=").concat(encodeURIComponent(_.a.PROXY_SERVER)));var Qt=[].concat(N,[{title:"".concat(ft?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ft?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return v.a.createElement("ul",{className:"markdown-toolbar-container"},!vt&&Qt.map(function(Mt,Bt){return v.a.createElement("li",{key:Bt},Mt.actionName?v.a.createElement(B,Object(p.a)({},Mt,{onActionCallback:rt})):v.a.createElement("span",{className:"v-line"}))}),ot?v.a.createElement("li",null,v.a.createElement(B,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rt},v.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,st&&v.a.createElement("li",null,v.a.createElement(B,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(st),onActionCallback:rt},v.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),v.a.createElement("li",null,v.a.createElement(h.a,{title:"\u6253\u5F00\u624B\u673A\u626B\u4E00\u626B",content:v.a.createElement("div",null,v.a.createElement(E.a,{size:150,fgColor:"#000",value:"https://test2.educoder.net/upload.html?_educoder_session_login=".concat(Object(g.G)("_educoder_session_login"),"&_educoder_session=").concat(Object(g.G)("_educoder_session"),"&key=").concat(yt,"&api=").concat(encodeURIComponent(_.a.PROXY_SERVER))}))},v.a.createElement("span",{className:"fill-tip",onMouseOver:function(){return Ke(!0)}},"\u624B\u673A\u4E0A\u4F20\u6587\u4EF6"))),v.a.createElement("li",{className:"btn-full-screen"},v.a.createElement(B,{icon:"".concat(Et?"icon-shrink":"icon-enlarge"),title:Et?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rt})))},P=te("M8RZ"),I=te("+L6B"),H=te("2/Rp"),Y=te("y8nQ"),ee=te("Vl3Y"),oe=te("5NDa"),Ee=te("5rEg"),pe={labelCol:{span:4},wrapperCol:{span:20}},me=function(Oe){var ft=Oe.callback,ot=Oe.onCancel;function rt(Et){ft(Et)}return v.a.createElement(ee.a,Object(p.a)({},pe,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:rt}),v.a.createElement(ee.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},v.a.createElement(Ee.a,null)),v.a.createElement(ee.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},v.a.createElement(Ee.a,null)),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(H.a,{type:"ghost",onClick:ot},"\u53D6\u6D88")))},he=te("7ahc"),se=te("k1fw"),ne=te("HmJG"),ce=te("BjJ7"),$=ee.a.useForm,ie={width:280,marginRight:10},Z={labelCol:{span:5},wrapperCol:{span:19}},ye=function(Oe){var ft=Oe.callback,ot=Oe.onCancel,rt=$(),Et=Object(F.a)(rt,1),st=Et[0],vt=useRef();function yt(Mt){ft(Object(se.a)(Object(se.a)({},Mt),{},{name:vt.current}))}function Ke(Mt,Bt){if(Mt.status===-1){U.b.error(Mt.message);return}st.setFieldsValue({src:"/api/attachments/".concat(Mt.id),type:Bt.type})}function Qt(Mt){var Bt=Mt.target.files[0];vt.current=Bt.name,ve(Bt,Ke)}return v.a.createElement(ee.a,Object(p.a)({form:st},Z,{className:"upload-image-panel",onFinish:yt}),v.a.createElement(ee.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},v.a.createElement("div",{className:"flex-container"},v.a.createElement(ee.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},v.a.createElement(Ee.a,{style:ie})),v.a.createElement(Ce,{onFileChange:Qt}))),v.a.createElement(ee.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},v.a.createElement(Ee.a,{style:{width:264}})),v.a.createElement(ee.a.Item,{style:{textAlign:"right"}},v.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(H.a,{type:"ghost",onClick:ot},"\u53D6\u6D88")))};function Ce(Oe){var ft=Oe.onFileChange;return v.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",v.a.createElement("input",{type:"file",onChange:ft}))}function ve(Oe,ft){if(!Oe)throw new String("\u6CA1\u6709\u6587\u4EF6");var ot=new FormData;ot.append("editormd-image-file",Oe),ot.append("file_param_name","editormd-image-file"),ot.append("byxhr","true");var rt=new window.XMLHttpRequest;rt.withCredentials=!0,rt.addEventListener("load",function(Et){ft(JSON.parse(Et.target.responseText),Oe)},!1),rt.addEventListener("error",function(Et){console.error(Et)},!1),rt.open("POST","".concat(ce.a,"/api/attachments.json")),rt.send(ot)}var we=te("giR+"),Ae=te("fyUT"),Re=te("7Kak"),Ie=te("9yH6"),Me=Ie.a.Group,De={margin:"0 8px"},Ve=function(Oe){var ft=Oe.callback,ot=Oe.onCancel;function rt(Et){ft(Et)}return v.a.createElement(ee.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:rt},v.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},v.a.createElement("span",{style:De},"\u5355\u5143\u683C\u6570\uFF1A"),v.a.createElement("span",{style:De},"\u884C\u6570"),v.a.createElement(ee.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},v.a.createElement(Ae.a,null)),v.a.createElement("span",{style:De},"\u5217\u6570"),v.a.createElement(ee.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},v.a.createElement(Ae.a,null))),v.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},v.a.createElement("span",{style:De},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),v.a.createElement(ee.a.Item,{name:"align"},v.a.createElement(Me,null,v.a.createElement(Ie.a,{value:"default"},v.a.createElement("i",{className:"fa fa-align-justify"})),v.a.createElement(Ie.a,{value:"left"},v.a.createElement("i",{className:"fa fa-align-left"})),v.a.createElement(Ie.a,{value:"center"},v.a.createElement("i",{className:"fa fa-align-center"})),v.a.createElement(Ie.a,{value:"right"},v.a.createElement("i",{className:"fa fa-align-right"}))))),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(H.a,{type:"ghost",onClick:ot},"\u53D6\u6D88")))},et=te("ErOA"),ze=te("7Cbv"),Xe="link",qe="upload-image",He="code-block",Be="add-table",Se="------------",Ze={default:Se,left:":".concat(Se),center:":".concat(Se,":"),right:"".concat(Se,":")},Je=te("9VGf"),Le,Ue;function ge(){}var de=0,fe=1e4,Q="\u2581",J=`
**\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 re(Oe){return/^\d+$/.test(Oe)?"".concat(Oe,"px"):Oe}var le=navigator.platform.toUpperCase().indexOf("MAC")>=0,Te=le?"Cmd":"Ctrl",_e=["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"],ke=(Le={},Object(M.a)(Le,Te+"-B","bold"),Object(M.a)(Le,Te+"-I","italic"),Le),je=(Ue={},Object(M.a)(Ue,Xe,"\u6DFB\u52A0\u94FE\u63A5"),Object(M.a)(Ue,He,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(M.a)(Ue,qe,"\u6DFB\u52A0\u6587\u4EF6"),Object(M.a)(Ue,Be,"\u6DFB\u52A0\u8868\u683C"),Ue),it=Qe.a=function(Oe){var ft=Oe.defaultValue,ot=ft===void 0?"":ft,rt=Oe.onChange,Et=Oe.width,st=Et===void 0?"100%":Et,vt=Oe.height,yt=vt===void 0?400:vt,Ke=Oe.miniToolbar,Qt=Ke===void 0?!1:Ke,Mt=Oe.isFocus,Bt=Mt===void 0?!1:Mt,kt=Oe.watch,fr=Oe.insertTemp,Zr=Oe.mode,hr=Zr===void 0?"markdown":Zr,vr=Oe.id,qr=vr===void 0?"markdown-editor-id":vr,It=Oe.showResizeBar,ut=It===void 0?!1:It,wr=Oe.noStorage,Vn=wr===void 0?!1:wr,mr=Oe.showNullButton,Ct=mr===void 0?!1:mr,Cr=Oe.hidetoolBar,en=Cr===void 0?!1:Cr,bn=Oe.fullScreen,Fe=bn===void 0?!1:bn,mt=Oe.onBlur,tn=Oe.onCMBeforeChange,rn=Oe.onFullScreen,nn=Oe.className,En=nn===void 0?"":nn,Yn=Oe.disablePaste,gt=Yn===void 0?!1:Yn,Ci=Oe.placeholder,Ai=Ci===void 0?"":Ci,an=Oe.values,lr=an===void 0?"":an,Li=Object(m.useState)(null),$n=Object(F.a)(Li,2),We=$n[0],Qn=$n[1],Di=Object(m.useState)(ot),xn=Object(F.a)(Di,2),on=xn[0],Nr=xn[1],Oi=Object(m.useState)(kt),Jn=Object(F.a)(Oi,2),Rr=Jn[0],Ri=Jn[1],_i=Object(m.useState)(Fe),yr=Object(F.a)(_i,2),Ar=yr[0],ki=yr[1],Tn=Object(m.useState)(""),Fr=Object(F.a)(Tn,2),Br=Fr[0],jr=Fr[1],aa=Object(m.useState)(0),Pi=Object(F.a)(aa,2),_r=Pi[0],Sn=Pi[1],oa=Object(m.useState)(yt),Zn=Object(F.a)(oa,2),qn=Zn[0],sn=Zn[1],wn=Object(m.useState)(!1),Cn=Object(F.a)(wn,2),sa=Cn[0],An=Cn[1],ln=Object(m.useRef)(Object(ze.a)()),Mi=Object(m.useRef)(!1),ei=Object(m.useRef)(),Jt=Object(m.useRef)(),Wr=Object(m.useRef)(),Ln=Object(m.useRef)(),Hr=Object(m.useRef)(),Ii=function(){var lt=Object(O.a)(C.a.mark(function pt(){var ct,xt;return C.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Object(et.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ln.current}});case 2:xt=Rt.sent,xt!=null&&(ct=xt.attachments)!==null&&ct!==void 0&&ct.length&&(console.log("cm:",We,Jt),xt.attachments.map(function(Tt){Tt.content_type.indexOf("image")>-1?We.replaceSelection(".concat(Tt.content_type,")")):Tt.content_type.indexOf("video")>-1?We.replaceSelection('')):Tt.content_type.indexOf("pdf")>-1?We.replaceSelection('').concat(Tt.name,"")):We.replaceSelection("[".concat(Tt.name,"](").concat(_.a.API_SERVER,"/api/attachments/").concat(Tt.id,"?type=").concat(Tt.content_type,")"))}));case 4:case"end":return Rt.stop()}},pt)}));return function(){return lt.apply(this,arguments)}}();Object(m.useEffect)(function(){Nr(lr),We==null||We.setValue(lr)},[lr]),Object(m.useEffect)(function(){rn==null||rn(Ar)},[Ar]),Object(m.useEffect)(function(){if(Jt.current){var lt=S.a.fromTextArea(Jt.current,{mode:hr,lineNumbers:!Qt,lineWrapping:!0,value:ot,autoCloseTags:!0,autoCloseBrackets:!0});Bt&<.focus();function pt(ct,xt){if(gt){xt.preventDefault();return}var wt=xt.clipboardData;if(wt){var Rt=wt.types.toString(),Tt=wt.items;if(Rt==="Files"||wt.types.indexOf("Files")>-1){if(xt.preventDefault(),hr=="stex")return;try{var Nt,Kt=Tt[1];((Nt=Tt[0])===null||Nt===void 0?void 0:Nt.kind)==="file"&&(Kt=Tt[0]);var St=Kt.getAsFile(),Pr=St.name.split(".").pop();ve(St,function(Lt){if(Lt.id){var er,Ot,br;(St==null||((er=St.type)===null||er===void 0)?void 0:er.indexOf("image"))>-1?lt.replaceSelection(".concat(Lt.content_type,")")):(St==null||((Ot=St.type)===null||Ot===void 0)?void 0:Ot.indexOf("video"))>-1?lt.replaceSelection('')):(St==null||((br=St.type)===null||br===void 0)?void 0:br.indexOf("pdf"))>-1?lt.replaceSelection('').concat(St.name,"")):_e.includes(Pr)?lt.replaceSelection('').concat(St.name,"")):lt.replaceSelection("[".concat(St.name,"](").concat(_.a.API_SERVER,"/api/attachments/").concat(Lt.id,"?type=").concat(Lt.content_type,")"))}else(Lt==null?void 0:Lt.status)===401&&(document.location.href="/user/login")})}catch(Lt){U.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return lt.on("paste",pt),lt.on("dragleave",function(ct,xt){Wr.current.classList.remove("mouse-hover-md")}),lt.on("dragover",function(ct,xt){Wr.current.classList.add("mouse-hover-md")}),lt.on("drop",function(ct,xt){Wr.current.classList.add("mouse-hover-md");var wt;if(wt=xt.dataTransfer.files,wt.length>0){xt.preventDefault(),xt.stopPropagation();for(var Rt=function(Kt){var St=wt[Kt],Pr=St.name.split(".").pop();ve(St,function(Lt){if(Lt.id){var er,Ot,br;(St==null||((er=St.type)===null||er===void 0)?void 0:er.indexOf("image"))>-1?lt.replaceSelection(".concat(Lt.content_type,")")):(St==null||((Ot=St.type)===null||Ot===void 0)?void 0:Ot.indexOf("video"))>-1?lt.replaceSelection('')):(St==null||((br=St.type)===null||br===void 0)?void 0:br.indexOf("pdf"))>-1?lt.replaceSelection('').concat(St.name,"")):_e.includes(Pr)?lt.replaceSelection('').concat(St.name,"")):lt.replaceSelection("[".concat(St.name,"](").concat(_.a.API_SERVER,"/api/attachments/").concat(Lt.id,"?type=").concat(Lt.content_type,")"))}else(Lt==null?void 0:Lt.status)===401&&(document.location.href="/user/login")})},Tt=0;Tt0||Tt.target.offsetWidth>0)&&(Er(),We.setSize("100%","100%"),We.refresh())}}catch(Nt){wt.e(Nt)}finally{wt.f()}});return ct.observe(Jt.current.parentElement),ct}if(We){var pt=lt();return function(){pt.unobserve(Jt.current.parentElement)}}},[We,Er]),Object(m.useEffect)(function(){if(We){for(var lt=[],pt=function(){var Tt=xt[ct];wt=Object(F.a)(Tt,2);var Nt=wt[0],Kt=wt[1],St=Object(M.a)({},Nt,function(){Dn(Kt)});lt.push(St),We.addKeyMap(St)},ct=0,xt=Object.entries(ke);ct0){var lt=new Date().getTime(),pt=window.sessionStorage.getItem(qr);lt>=_r+fe&&(!pt||pt!==on)&&(window.sessionStorage.setItem(qr,on),An(!0))}},fe),Object(m.useEffect)(function(){Ri(kt)},[We,kt]),Object(m.useEffect)(function(){We&&(Bt&&We.focus())},[We,Bt]),Object(m.useEffect)(function(){if(Rr&&We){var lt=We.getScrollerElement();function pt(ct){var xt=ct.target;if(Hr.current){var wt=xt.scrollTop/xt.scrollHeight;Hr.current.scrollTop=Hr.current.scrollHeight*wt}}return lt.addEventListener("scroll",pt),function(){lt.removeEventListener("scroll",pt)}}},[We,Rr]),Object(m.useEffect)(function(){if(We&&tn){function lt(pt,ct){tn(pt,ct)}return We.on("beforeChange",lt),function(){We.off("beforeChange",lt)}}},[We,tn]),Object(m.useEffect)(function(){if(We&&mt){function lt(){mt(We.getValue())}return We.on("blur",lt),function(){We.off("blur",lt)}}},[We,mt]),Object(m.useEffect)(function(){if(We){function lt(pt){var ct=pt.getValue();Nr(ct),Sn(new Date().getTime()),pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),rt&&rt(ct)}return We.on("change",lt),function(){We.off("change",lt)}}},[We,rt]),Object(m.useEffect)(function(){We&&(ot==null?(We.setValue(""),Nr("")):ot!==We.getValue()&&(We.setValue(ot),Nr(ot),We.setCursor(We.lineCount(),0)))},[We,ot]);var Dn=Object(m.useCallback)(function(lt){var pt=We.getCursor(),ct=We.getSelection(),xt=ct.split(`
`);switch(lt){case"bold":return We.replaceSelection("**"+ct+"**"),ct===""&&We.setCursor(pt.line,pt.ch+2),We.focus();case"italic":return We.replaceSelection("*"+ct+"*"),ct===""&&We.setCursor(pt.line,pt.ch+1),We.focus();case"code":return We.replaceSelection("`"+ct+"`"),ct===""&&We.setCursor(pt.line,pt.ch+1),We.focus();case"inline-latex":return We.replaceSelection("`$$"+ct+"$$`"),ct===""&&We.setCursor(pt.line,pt.ch+3),We.focus();case"latex":return We.replaceSelection("```latex\n"+ct+"\n```"),We.setCursor(pt.line+1,ct.length+1),We.focus();case"line-break":return We.replaceSelection(`
`),We.focus();case"list-ul":return ct===""?We.replaceSelection("- "+ct):We.replaceSelection(xt.map(function(wt){return wt===""?"":"- ".concat(wt)}).join(`
`)),We.focus();case"list-ol":return ct===""?We.replaceSelection("1. "+ct):We.replaceSelection(xt.map(function(wt,Rt){return wt===""?"":"".concat(Rt+1,". ").concat(wt)}).join(`
`)),We.focus();case"add-null-ch":return ct===""&&We.setCursor(pt.line,pt.ch+1),We.replaceSelection(Q),We.focus();case"inster-template-1":return ct===""&&We.setCursor(pt.line,pt.ch),We.replaceSelection(J),We.focus();case"eraser":return We.setValue(""),We.focus();case"trigger-watch":return Ri(!Rr),We.focus();case"trigger-full-screen":return ki(!Ar),We.focus();case Xe:jr(Xe);return;case He:jr(He);return;case qe:jr(qe);return;case Be:jr(Be);return;default:throw new Error}},[We,Rr,Ar]),ur=Object(m.useCallback)(function(lt){jr("");switch(Br){case Xe:var pt=lt.title,ct=lt.link;return We.replaceSelection("[".concat(pt,"](").concat(ct,")")),We.focus();case He:var xt=lt.language,wt=lt.content;return We.replaceSelection(["```"+xt,wt,"```"].join(`
`)),We.focus();case qe:var Rt=lt.src,Tt=lt.alt;return Tt?We.replaceSelection(".concat(Rt,' "').concat(Tt,'" )')):We.replaceSelection("")),We.focus();case Be:for(var Nt=lt.row,Kt=lt.col,St=lt.align,Pr=`
`,Lt=0;Lt300&&(Nt=300);var Kt=yt+Nt+"px";sn(Kt)}}return lt.addEventListener("mousedown",xt),document.addEventListener("mousemove",Rt),document.addEventListener("mouseup",wt),function(){lt.removeEventListener("mousedown",xt),document.removeEventListener("mousemove",Rt),document.removeEventListener("mouseup",wt)}}},[We,Ln]),Object(m.useEffect)(function(){sn(yt)},[yt]);var Kr=re(st),la=re(qn),ua={width:Kr,height:la},$a=Object(m.useMemo)(function(){if(_r){var lt=new Date(_r),pt=lt.getHours(),ct=lt.getMinutes(),xt=lt.getSeconds();return pt=pt<10?"0"+pt:pt,ct=ct<10?"0"+ct:ct,xt=xt<10?"0"+xt:xt,"".concat(pt,":").concat(ct,":").concat(xt)}return 0},[_r]);function Qa(){window.sessionStorage.removeItem(qr),An(!1),Sn(0)}function da(){An(!1),Sn(0),We.setValue(window.sessionStorage.getItem(qr))}function Ui(lt,pt){var ct=We.getValue();ct=ct.replace(lt,pt),Nr(ct),We==null||We.setValue(ct)}return v.a.createElement(m.Fragment,null,v.a.createElement("div",{className:"markdown-editor-wrapper",ref:Wr},v.a.createElement("div",{className:"markdown-editor-container ".concat(En," ").concat(Rr?"on-preview":""," ").concat(Qt?"mini":""," ").concat(Ar?"full-screen":""),style:ua},v.a.createElement(W,{insertTemp:fr,watch:Rr,fullScreen:Ar,showNullButton:Ct,onActionCallback:Dn,hidetoolBar:en,uuid:ln.current,setOpenPhones:function(){Mi.current=!0}}),v.a.createElement("div",{className:"markdown-editor-body"},v.a.createElement("div",{className:"codemirror-container"},v.a.createElement("textarea",{ref:Jt,placeholder:Ai})),Rr?v.a.createElement("div",{ref:Hr,className:"preview-container"},hr==="stex"&&v.a.createElement(L,{value:on}),hr!=="stex"&&v.a.createElement(c.a,{edit:!0,value:on,replaces:Ui})):null))),ut?v.a.createElement("a",{ref:Ln,className:"editor-resize"}):null,v.a.createElement(P.a,null,je[Br]?v.a.createElement(G.a,{centered:!0,title:je[Br],visible:!0,onCancel:kr,footer:null,className:"markdown-popup-form"},On):null))}},SJMd:function(nt,Qe){/**
* @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 te,q,G,D=!1,z,U;window.PR_SHOULD_USE_CONTINUATION=!0;var O,F;(function(){var M=window,R=["break,continue,do,else,for,if,return,while"],C=[R,"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"],m=[C,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],v=[m,"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"],k=[m,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],S=[m,"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"],b="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",f=[m,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],u="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",a=[R,"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"],s=[R,"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"],l=[R,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],A=[v,S,k,f,u,a,s,l],y=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,c="str",L="kwd",x="com",h="typ",p="lit",d="pun",o="pln",T="tag",E="dec",g="src",_="atn",N="atv",B="nocode",W="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function P(ve){for(var we=0,Ae=!1,Re=!1,Ie=0,Me=ve.length;Ie122||(Q<65||fe>90||Ze.push([Math.max(65,fe)|32,Math.min(Q,90)|32]),Q<97||fe>122||Ze.push([Math.max(97,fe)&~32,Math.min(Q,122)&~32]))}}Ze.sort(function(Te,_e){return Te[0]-_e[0]||_e[1]-Te[1]});for(var J=[],re=[],Ue=0;Uele[0]&&(le[1]+1>le[0]&&Le.push("-"),Le.push(ze(le[1])))}return Le.push("]"),Le.join("")}function qe(Be){for(var Se=Be.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")),Ze=Se.length,Je=[],Le=0,Ue=0;Le=2&&fe==="["?Se[Le]=Xe(ge):fe!=="\\"&&(Se[Le]=ge.replace(/[a-zA-Z]/g,function(re){var le=re.charCodeAt(0);return"["+String.fromCharCode(le&~32,le|32)+"]"}))}return Se.join("")}for(var He=[],Ie=0,Me=ve.length;Ie=0;)Ae[He.charAt(Be)]=qe;var Se=qe[1],Ze=""+Se;et.hasOwnProperty(Ze)||(Ve.push(Se),et[Ze]=null)}Ve.push(/[\0-\uffff]/),Re=P(Ve)})();var Ie=we.length,Me=function(De){for(var Ve=De.sourceCode,et=De.basePos,ze=De.sourceNode,Xe=[et,o],qe=0,He=Ve.match(Re)||[],Be={},Se=0,Ze=He.length;Se=5&&Le.substring(0,5)==="lang-",ge&&!(Ue&&typeof Ue[1]=="string")&&(ge=!1,Le=g),ge||(Be[Je]=Le)}var Q=qe;if(qe+=Je.length,!ge)Xe.push(et+Q,Le);else{var J=Ue[1],re=Je.indexOf(J),le=re+J.length;Ue[2]&&(le=Je.length-Ue[2].length,re=le-J.length);var Te=Le.substring(5);H(ze,et+Q,Je.substring(0,re),Me,Xe),H(ze,et+Q+re,J,ce(Te,J),Xe),H(ze,et+Q+le,Je.substring(le),Me,Xe)}}De.decorations=Xe};return Me}function Ee(ve){var we=[],Ae=[];ve.tripleQuotedStrings?we.push([c,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ve.multiLineStrings?we.push([c,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):we.push([c,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ve.verbatimStrings&&Ae.push([c,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Re=ve.hashComments;Re&&(ve.cStyleComments?(Re>1?we.push([x,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):we.push([x,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ae.push([c,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):we.push([x,/^#[^\r\n]*/,null,"#"])),ve.cStyleComments&&(Ae.push([x,/^\/\/[^\r\n]*/,null]),Ae.push([x,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ie=ve.regexLiterals;if(Ie){var Me=Ie>1?"":`
\r`,De=Me?".":"[\\S\\s]",Ve="/(?=[^/*"+Me+"])(?:[^/\\x5B\\x5C"+Me+"]|\\x5C"+De+"|\\x5B(?:[^\\x5C\\x5D"+Me+"]|\\x5C"+De+")*(?:\\x5D|$))+/";Ae.push(["lang-regex",RegExp("^"+W+"("+Ve+")")])}var et=ve.types;et&&Ae.push([h,et]);var ze=(""+ve.keywords).replace(/^ | $/g,"");ze.length&&Ae.push([L,new RegExp("^(?:"+ze.replace(/[\s,]+/g,"|")+")\\b"),null]),we.push([o,/^\s+/,null,` \r
\xA0`]);var Xe="^.[^\\s\\w.$@'\"`/\\\\]*";return ve.regexLiterals&&(Xe+="(?!s*/)"),Ae.push([p,/^@[a-z_$][a-z_$@0-9]*/i,null],[h,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[o,/^[a-z_$][a-z_$@0-9]*/i,null],[p,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[o,/^\\[\s\S]?/,null],[d,new RegExp(Xe),null]),oe(we,Ae)}var pe=Ee({keywords:A,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function me(ve,we,Ae){for(var Re=/(?:^|\s)nocode(?:\s|$)/,Ie=/\r\n?|\n/,Me=ve.ownerDocument,De=Me.createElement("li");ve.firstChild;)De.appendChild(ve.firstChild);var Ve=[De];function et(Se){var Ze=Se.nodeType;if(Ze==1&&!Re.test(Se.className))if(Se.nodeName==="br")ze(Se),Se.parentNode&&Se.parentNode.removeChild(Se);else for(var Je=Se.firstChild;Je;Je=Je.nextSibling)et(Je);else if((Ze==3||Ze==4)&&Ae){var Le=Se.nodeValue,Ue=Le.match(Ie);if(Ue){var ge=Le.substring(0,Ue.index);Se.nodeValue=ge;var de=Le.substring(Ue.index+Ue[0].length);if(de){var fe=Se.parentNode;fe.insertBefore(Me.createTextNode(de),Se.nextSibling)}ze(Se),ge||Se.parentNode.removeChild(Se)}}}function ze(Se){for(;!Se.nextSibling;)if(Se=Se.parentNode,!Se)return;function Ze(Ue,ge){var de=ge?Ue.cloneNode(!1):Ue,fe=Ue.parentNode;if(fe){var Q=Ze(fe,1),J=Ue.nextSibling;Q.appendChild(de);for(var re=J;re;re=J)J=re.nextSibling,Q.appendChild(re)}return de}for(var Je=Ze(Se.nextSibling,0),Le;(Le=Je.parentNode)&&Le.nodeType===1;)Je=Le;Ve.push(Je)}for(var Xe=0;Xe=fe&&(et+=2),Me>=Q&&(qe+=2)}}finally{Le&&(Le.style.display=Ue)}}var se={};function ne(ve,we){for(var Ae=we.length;--Ae>=0;){var Re=we[Ae];se.hasOwnProperty(Re)?M.console&&console.warn("cannot override language handler %s",Re):se[Re]=ve}}function ce(ve,we){return ve&&se.hasOwnProperty(ve)||(ve=/^\s*]*(?:>|$)/],[x,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[d,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^