(window.webpackJsonp=window.webpackJsonp||[]).push([[194,7,8],{"+NIl":function(Je,Be,H){(function(ne){ne(H("VrN/"))})(function(ne){"use strict";ne.defineMode("stex",function(G,D){"use strict";function K(S,b){S.cmdState.push(b)}function k(S){return S.cmdState.length>0?S.cmdState[S.cmdState.length-1]:null}function P(S){var b=S.cmdState.pop();b&&b.closeBracket()}function N(S){for(var b=S.cmdState,x=b.length-1;x>=0;x--){var f=b[x];if(f.name=="DEFAULT")continue;return f}return{styleIdentifier:function(){return null}}}function M(S,b,x){return function(){this.name=S,this.bracketNo=0,this.style=b,this.styles=x,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var O={};O.importmodule=M("importmodule","tag",["string","builtin"]),O.documentclass=M("documentclass","tag",["","atom"]),O.usepackage=M("usepackage","tag",["atom"]),O.begin=M("begin","tag",["atom"]),O.end=M("end","tag",["atom"]),O.label=M("label","tag",["atom"]),O.ref=M("ref","tag",["atom"]),O.eqref=M("eqref","tag",["atom"]),O.cite=M("cite","tag",["atom"]),O.bibitem=M("bibitem","tag",["atom"]),O.Bibitem=M("Bibitem","tag",["atom"]),O.RBibitem=M("RBibitem","tag",["atom"]),O.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function A(S,b){S.f=b}function T(S,b){var x;if(S.match(/^\\[a-zA-Z@]+/)){var f=S.current().slice(1);return x=O.hasOwnProperty(f)?O[f]:O.DEFAULT,x=new x,K(b,x),A(b,R),x.style}if(S.match(/^\\[$&%#{}_]/))return"tag";if(S.match(/^\\[,;!\/\\]/))return"tag";if(S.match("\\["))return A(b,function(i,c){return C(i,c,"\\]")}),"keyword";if(S.match("\\("))return A(b,function(i,c){return C(i,c,"\\)")}),"keyword";if(S.match("$$"))return A(b,function(i,c){return C(i,c,"$$")}),"keyword";if(S.match("$"))return A(b,function(i,c){return C(i,c,"$")}),"keyword";var l=S.next();if(l=="%")return S.skipToEnd(),"comment";if(l=="}"||l=="]"){if(x=k(b),x)x.closeBracket(l),A(b,R);else return"error";return"bracket"}else return l=="{"||l=="["?(x=O.DEFAULT,x=new x,K(b,x),"bracket"):/\d/.test(l)?(S.eatWhile(/[\w.%]/),"atom"):(S.eatWhile(/[\w\-_]/),x=N(b),x.name=="begin"&&(x.argument=S.current()),x.styleIdentifier())}function C(S,b,x){if(S.eatSpace())return null;if(x&&S.match(x))return A(b,T),"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 f=S.next();return f=="{"||f=="}"||f=="["||f=="]"||f=="("||f==")"?"bracket":f=="%"?(S.skipToEnd(),"comment"):"error"}function R(S,b){var x=S.peek(),f;return x=="{"||x=="["?(f=k(b),f.openBracket(x),S.eat(x),A(b,T),"bracket"):/[ \t\r]/.test(x)?(S.eat(x),null):(A(b,T),P(b),T(S,b))}return{startState:function(){var S=D.inMathMode?function(b,x){return C(b,x)}:T;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=T,S.cmdState.length=0},lineComment:"%"}}),ne.defineMIME("text/x-stex","stex"),ne.defineMIME("text/x-latex","stex")})},"+RXH":function(Je,Be,H){Je.exports=H.p+"static/shu.a39bf729.svg"},"+yhJ":function(Je,Be,H){Je.exports=H.p+"static/xixi.d492fb65.svg"},"0eGx":function(Je,Be,H){Je.exports=H.p+"static/zhong.c1924b73.svg"},"19Vz":function(Je,Be,H){(function(ne){ne(H("VrN/"))})(function(ne){ne.defineOption("placeholder","",function(M,O,A){var T=A&&A!=ne.Init;if(O&&!T)M.on("blur",k),M.on("change",P),M.on("swapDoc",P),ne.on(M.getInputField(),"compositionupdate",M.state.placeholderCompose=function(){K(M)}),P(M);else if(!O&&T){M.off("blur",k),M.off("change",P),M.off("swapDoc",P),ne.off(M.getInputField(),"compositionupdate",M.state.placeholderCompose),G(M);var C=M.getWrapperElement();C.className=C.className.replace(" CodeMirror-empty","")}O&&!M.hasFocus()&&k(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 O=M.state.placeholder=document.createElement("pre");O.style.cssText="height: 0; overflow: visible",O.style.direction=M.getOption("direction"),O.className="CodeMirror-placeholder CodeMirror-line-like";var A=M.getOption("placeholder");typeof A=="string"&&(A=document.createTextNode(A)),O.appendChild(A),M.display.lineSpace.insertBefore(O,M.display.lineSpace.firstChild)}function K(M){setTimeout(function(){var O=!1,A=M.getInputField();A.nodeName=="TEXTAREA"?O=!A.value:M.lineCount()==1&&(O=!/[^\u200b]/.test(A.querySelector(".CodeMirror-line").textContent)),O?D(M):G(M)},20)}function k(M){N(M)&&D(M)}function P(M){var O=M.getWrapperElement(),A=N(M);O.className=O.className.replace(" CodeMirror-empty","")+(A?" CodeMirror-empty":""),A?D(M):G(M)}function N(M){return M.lineCount()===1&&M.getLine(0)===""}})},"1eCo":function(Je,Be,H){(function(ne){ne(H("VrN/"))})(function(ne){"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};ne.defineMode("xml",function(K,k){var P=K.indentUnit,N={},M=k.htmlMode?G:D;for(var O in M)N[O]=M[O];for(var O in k)N[O]=k[O];var A,T;function C(o,g){function p(F){return g.tokenize=F,F(o,g)}var E=o.next();if(E=="<")return o.eat("!")?o.eat("[")?o.match("CDATA[")?p(b("atom","]]>")):null:o.match("--")?p(b("comment","-->")):o.match("DOCTYPE",!0,!0)?(o.eatWhile(/[\w\._\-]/),p(x(1))):null:o.eat("?")?(o.eatWhile(/[\w\._\-]/),g.tokenize=b("meta","?>"),"meta"):(A=o.eat("/")?"closeTag":"openTag",g.tokenize=R,"tag bracket");if(E=="&"){var L;return o.eat("#")?o.eat("x")?L=o.eatWhile(/[a-fA-F\d]/)&&o.eat(";"):L=o.eatWhile(/[\d]/)&&o.eat(";"):L=o.eatWhile(/[\w\.\-:]/)&&o.eat(";"),L?"atom":"error"}else return o.eatWhile(/[^&<]/),null}C.isInText=!0;function R(o,g){var p=o.next();if(p==">"||p=="/"&&o.eat(">"))return g.tokenize=C,A=p==">"?"endTag":"selfcloseTag","tag bracket";if(p=="=")return A="equals",null;if(p=="<"){g.tokenize=C,g.state=c,g.tagName=g.tagStart=null;var E=g.tokenize(o,g);return E?E+" tag error":"tag error"}else return/[\'\"]/.test(p)?(g.tokenize=S(p),g.stringStartCol=o.column(),g.tokenize(o,g)):(o.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function S(o){var g=function(p,E){for(;!p.eol();)if(p.next()==o){E.tokenize=R;break}return"string"};return g.isInAttribute=!0,g}function b(o,g){return function(p,E){for(;!p.eol();){if(p.match(g)){E.tokenize=C;break}p.next()}return o}}function x(o){return function(g,p){for(var E;(E=g.next())!=null;){if(E=="<")return p.tokenize=x(o+1),p.tokenize(g,p);if(E==">")if(o==1){p.tokenize=C;break}else return p.tokenize=x(o-1),p.tokenize(g,p)}return"meta"}}function f(o,g,p){this.prev=o.context,this.tagName=g,this.indent=o.indented,this.startOfLine=p,(N.doNotIndent.hasOwnProperty(g)||o.context&&o.context.noIndent)&&(this.noIndent=!0)}function l(o){o.context&&(o.context=o.context.prev)}function i(o,g){for(var p;;){if(!o.context)return;if(p=o.context.tagName,!N.contextGrabbers.hasOwnProperty(p)||!N.contextGrabbers[p].hasOwnProperty(g))return;l(o)}}function c(o,g,p){return o=="openTag"?(p.tagStart=g.column(),_):o=="closeTag"?v:c}function _(o,g,p){return o=="word"?(p.tagName=g.current(),T="tag",y):N.allowMissingTagName&&o=="endTag"?(T="tag bracket",y(o,g,p)):(T="error",_)}function v(o,g,p){if(o=="word"){var E=g.current();return p.context&&p.context.tagName!=E&&N.implicitlyClosed.hasOwnProperty(p.context.tagName)&&l(p),p.context&&p.context.tagName==E||N.matchClosing===!1?(T="tag",m):(T="tag error",u)}else return N.allowMissingTagName&&o=="endTag"?(T="tag bracket",m(o,g,p)):(T="error",u)}function m(o,g,p){return o!="endTag"?(T="error",m):(l(p),c)}function u(o,g,p){return T="error",m(o,g,p)}function y(o,g,p){if(o=="word")return T="attribute",d;if(o=="endTag"||o=="selfcloseTag"){var E=p.tagName,L=p.tagStart;return p.tagName=p.tagStart=null,o=="selfcloseTag"||N.autoSelfClosers.hasOwnProperty(E)?i(p,E):(i(p,E),p.context=new f(p,E,L==p.indented)),c}return T="error",y}function d(o,g,p){return o=="equals"?h:(N.allowMissing||(T="error"),y(o,g,p))}function h(o,g,p){return o=="string"?s:o=="word"&&N.allowUnquoted?(T="string",y):(T="error",y(o,g,p))}function s(o,g,p){return o=="string"?s:y(o,g,p)}return{startState:function(o){var g={tokenize:C,state:c,indented:o||0,tagName:null,tagStart:null,context:null};return o!=null&&(g.baseIndent=o),g},token:function(o,g){if(!g.tagName&&o.sol()&&(g.indented=o.indentation()),o.eatSpace())return null;A=null;var p=g.tokenize(o,g);return(p||A)&&p!="comment"&&(T=null,g.state=g.state(A||p,o,g),T&&(p=T=="error"?p+" error":T)),p},indent:function(o,g,p){var E=o.context;if(o.tokenize.isInAttribute)return o.tagStart==o.indented?o.stringStartCol+1:o.indented+P;if(E&&E.noIndent)return ne.Pass;if(o.tokenize!=R&&o.tokenize!=C)return p?p.match(/^(\s*)/)[0].length:0;if(o.tagName)return N.multilineTagIndentPastTag!==!1?o.tagStart+o.tagName.length+2:o.tagStart+P*(N.multilineTagIndentFactor||1);if(N.alignCDATA&&/$/,blockCommentStart:"",configuration:N.htmlMode?"html":"xml",helperType:N.htmlMode?"html":"xml",skipAttribute:function(o){o.state==h&&(o.state=y)},xmlCurrentTag:function(o){return o.tagName?{name:o.tagName,close:o.type=="closeTag"}:null},xmlCurrentContext:function(o){for(var g=[],p=o.context;p;p=p.prev)p.tagName&&g.push(p.tagName);return g.reverse()}}}),ne.defineMIME("text/xml","xml"),ne.defineMIME("application/xml","xml"),ne.mimeModes.hasOwnProperty("text/html")||ne.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"2sxD":function(Je,Be,H){Je.exports={list:"list___3_VOx",head:"head___37dUf",name:"name___1VbnU",right:"right___gDdSx",body:"body___1wO_8",top:"top___cjRoo",bottom:"bottom___O44ku",l:"l___3de2t",ListGroup:"ListGroup___22jzr",a:"a___3Rx6Z",b:"b___S9Ybp",c:"c___3CVXw",c1:"c1___3b8Zq",radio:"radio___LnwQZ",d:"d___2-cs-"}},"51dB":function(Je,Be,H){Je.exports=H.p+"static/sc.c1696770.svg"},"5MlY":function(Je,Be,H){Je.exports=H.p+"static/sm.8ccb50bf.svg"},"6+eU":function(Je,Be,H){"use strict";H.d(Be,"a",function(){return m});var ne=H("wx14"),G=H("rePB"),D=H("VTBJ"),K=H("1OyB"),k=H("vuIU"),P=H("Ji7U"),N=H("LK+K"),M=H("cDcd"),O=H.n(M),A=H("TSYQ"),T=H.n(A),C=function(y){var d,h="".concat(y.rootPrefixCls,"-item"),s=T()(h,"".concat(h,"-").concat(y.page),(d={},Object(G.a)(d,"".concat(h,"-active"),y.active),Object(G.a)(d,y.className,!!y.className),Object(G.a)(d,"".concat(h,"-disabled"),!y.page),d)),o=function(){y.onClick(y.page)},g=function(E){y.onKeyPress(E,y.onClick,y.page)};return O.a.createElement("li",{title:y.showTitle?y.page:null,className:s,onClick:o,onKeyPress:g,tabIndex:"0"},y.itemRender(y.page,"page",O.a.createElement("a",{rel:"nofollow"},y.page)))},R=C,S={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},b=function(u){Object(P.a)(d,u);var y=Object(N.a)(d);function d(){var h;Object(K.a)(this,d);for(var s=arguments.length,o=new Array(s),g=0;g=0||p.relatedTarget.className.indexOf("".concat(j,"-next"))>=0))return;h.setState({goInputText:""}),F(h.getValidValue())},h.go=function(p){var E=h.state.goInputText;if(E==="")return;(p.keyCode===S.ENTER||p.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(k.a)(d,[{key:"getValidValue",value:function(){var s=this.state,o=s.goInputText,g=s.current;return!o||isNaN(o)?g:Number(o)}},{key:"getPageSizeOptions",value:function(){var s=this.props,o=s.pageSize,g=s.pageSizeOptions;return g.some(function(p){return p.toString()===o.toString()})?g:g.concat([o.toString()]).sort(function(p,E){var L=isNaN(Number(p))?0:Number(p),F=isNaN(Number(E))?0:Number(E);return L-F})}},{key:"render",value:function(){var s=this,o=this.props,g=o.pageSize,p=o.locale,E=o.rootPrefixCls,L=o.changeSize,F=o.quickGo,j=o.goButton,V=o.selectComponentClass,B=o.buildOptionText,I=o.selectPrefixCls,$=o.disabled,ie=this.state.goInputText,ue="".concat(E,"-options"),fe=V,ve=null,pe=null,te=null;if(!L&&!F)return null;var ee=this.getPageSizeOptions();if(L&&fe){var se=ee.map(function(Q,J){return O.a.createElement(fe.Option,{key:J,value:Q.toString()},(B||s.buildOptionText)(Q))});ve=O.a.createElement(fe,{disabled:$,prefixCls:I,showSearch:!1,className:"".concat(ue,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(g||ee[0]).toString(),onChange:this.changeSize,getPopupContainer:function(J){return J.parentNode}},se)}return F&&(j&&(te=typeof j=="boolean"?O.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:$,className:"".concat(ue,"-quick-jumper-button")},p.jump_to_confirm):O.a.createElement("span",{onClick:this.go,onKeyUp:this.go},j)),pe=O.a.createElement("div",{className:"".concat(ue,"-quick-jumper")},p.jump_to,O.a.createElement("input",{disabled:$,type:"text",value:ie,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),p.page,te)),O.a.createElement("li",{className:"".concat(ue)},ve,pe)}}]),d}(O.a.Component);b.defaultProps={pageSizeOptions:["10","20","50","100"]};var x=b,f=H("N2Kk");function l(){}function i(u){return typeof u=="number"&&isFinite(u)&&Math.floor(u)===u}function c(u,y,d){return d}function _(u,y,d){var h=typeof u=="undefined"?y.pageSize:u;return Math.floor((d.total-1)/h)+1}var v=function(u){Object(P.a)(d,u);var y=Object(N.a)(d);function d(h){var s;Object(K.a)(this,d),s=y.call(this,h),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(_(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(L,F){var j=s.props.prefixCls,V=L||O.a.createElement("button",{type:"button","aria-label":F,className:"".concat(j,"-item-link")});return typeof L=="function"&&(V=O.a.createElement(L,Object(D.a)({},s.props))),V},s.savePaginationNode=function(L){s.paginationNode=L},s.isValid=function(L){return i(L)&&L!==s.state.current},s.shouldDisplayQuickJumper=function(){var L=s.props,F=L.showQuickJumper,j=L.pageSize,V=L.total;return V<=j?!1:F},s.handleKeyDown=function(L){(L.keyCode===S.ARROW_UP||L.keyCode===S.ARROW_DOWN)&&L.preventDefault()},s.handleKeyUp=function(L){var F=s.getValidValue(L),j=s.state.currentInputValue;F!==j&&s.setState({currentInputValue:F}),L.keyCode===S.ENTER?s.handleChange(F):L.keyCode===S.ARROW_UP?s.handleChange(F-1):L.keyCode===S.ARROW_DOWN&&s.handleChange(F+1)},s.changePageSize=function(L){var F=s.state.current,j=_(L,s.state,s.props);F=F>j?j:F,j===0&&(F=s.state.current),typeof L=="number"&&("pageSize"in s.props||s.setState({pageSize:L}),"current"in s.props||s.setState({current:F,currentInputValue:F})),s.props.onShowSizeChange(F,L),"onChange"in s.props&&s.props.onChange&&s.props.onChange(F,L)},s.handleChange=function(L){var F=s.props.disabled,j=L;if(s.isValid(j)&&!F){var V=_(void 0,s.state,s.props);j>V?j=V:j<1&&(j=1),"current"in s.props||s.setState({current:j,currentInputValue:j});var B=s.state.pageSize;return s.props.onChange(j,B),j}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current<_(void 0,s.state,s.props)},s.runIfEnter=function(L,F){if(L.key==="Enter"||L.charCode===13){for(var j=arguments.length,V=new Array(j>2?j-2:0),B=2;B=g?E=g:E=Number(o),E}},{key:"getShowSizeChanger",value:function(){var s=this.props,o=s.showSizeChanger,g=s.total,p=s.totalBoundaryShowSizeChanger;return typeof o!="undefined"?o:g>p}},{key:"renderPrev",value:function(s){var o=this.props,g=o.prevIcon,p=o.itemRender,E=p(s,"prev",this.getItemIcon(g,"prev page")),L=!this.hasPrev();return Object(M.isValidElement)(E)?Object(M.cloneElement)(E,{disabled:L}):E}},{key:"renderNext",value:function(s){var o=this.props,g=o.nextIcon,p=o.itemRender,E=p(s,"next",this.getItemIcon(g,"next page")),L=!this.hasNext();return Object(M.isValidElement)(E)?Object(M.cloneElement)(E,{disabled:L}):E}},{key:"render",value:function(){var s=this,o=this.props,g=o.prefixCls,p=o.className,E=o.style,L=o.disabled,F=o.hideOnSinglePage,j=o.total,V=o.locale,B=o.showQuickJumper,I=o.showLessItems,$=o.showTitle,ie=o.showTotal,ue=o.simple,fe=o.itemRender,ve=o.showPrevNextJumpers,pe=o.jumpPrevIcon,te=o.jumpNextIcon,ee=o.selectComponentClass,se=o.selectPrefixCls,Q=o.pageSizeOptions,J=this.state,he=J.current,Ce=J.pageSize,De=J.currentInputValue;if(F===!0&&j<=Ce)return null;var we=_(void 0,this.state,this.props),Me=[],Te=null,_e=null,Pe=null,je=null,Qe=null,Ie=B&&B.goButton,Ae=I?1:2,et=he-1>0?he-1:0,qe=he+1=Ae*2&&he!==1+2&&(Me[0]=Object(M.cloneElement)(Me[0],{className:"".concat(g,"-item-after-jump-prev")}),Me.unshift(Te)),we-he>=Ae*2&&he!==we-2&&(Me[Me.length-1]=Object(M.cloneElement)(Me[Me.length-1],{className:"".concat(g,"-item-before-jump-next")}),Me.push(_e)),Et!==1&&Me.unshift(Pe),dt!==we&&Me.push(je)}var me=null;ie&&(me=O.a.createElement("li",{className:"".concat(g,"-total-text")},ie(j,[j===0?0:(he-1)*Ce+1,he*Ce>j?j:he*Ce])));var le=!this.hasPrev()||!we,de=!this.hasNext()||!we;return O.a.createElement("ul",Object(ne.a)({className:T()(g,p,Object(G.a)({},"".concat(g,"-disabled"),L)),style:E,unselectable:"unselectable",ref:this.savePaginationNode},lt),me,O.a.createElement("li",{title:$?V.prev_page:null,onClick:this.prev,tabIndex:le?null:0,onKeyPress:this.runIfEnterPrev,className:T()("".concat(g,"-prev"),Object(G.a)({},"".concat(g,"-disabled"),le)),"aria-disabled":le},this.renderPrev(et)),Me,O.a.createElement("li",{title:$?V.next_page:null,onClick:this.next,tabIndex:de?null:0,onKeyPress:this.runIfEnterNext,className:T()("".concat(g,"-next"),Object(G.a)({},"".concat(g,"-disabled"),de)),"aria-disabled":de},this.renderNext(qe)),O.a.createElement(x,{disabled:L,locale:V,rootPrefixCls:g,selectComponentClass:ee,selectPrefixCls:se,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:he,pageSize:Ce,pageSizeOptions:Q,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ie}))}}],[{key:"getDerivedStateFromProps",value:function(s,o){var g={};if("current"in s&&(g.current=s.current,s.current!==o.current&&(g.currentInputValue=g.current)),"pageSize"in s&&s.pageSize!==o.pageSize){var p=o.current,E=_(s.pageSize,o,s);p=p>E?E:p,"current"in s||(g.current=p,g.currentInputValue=p),g.pageSize=s.pageSize}return g}}]),d}(O.a.Component);v.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:l,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:l,locale:f.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var m=v},"6K3P":function(Je,Be,H){Je.exports=H.p+"static/jinshi.9b74f304.svg"},"7Cbv":function(Je,Be,H){"use strict";var ne=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(!ne)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ne(G)}var K=/^(?:[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 k(R){return typeof R=="string"&&K.test(R)}for(var P=k,N=[],M=0;M<256;++M)N.push((M+256).toString(16).substr(1));function O(R){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=(N[R[S+0]]+N[R[S+1]]+N[R[S+2]]+N[R[S+3]]+"-"+N[R[S+4]]+N[R[S+5]]+"-"+N[R[S+6]]+N[R[S+7]]+"-"+N[R[S+8]]+N[R[S+9]]+"-"+N[R[S+10]]+N[R[S+11]]+N[R[S+12]]+N[R[S+13]]+N[R[S+14]]+N[R[S+15]]).toLowerCase();if(!P(b))throw TypeError("Stringified UUID is invalid");return b}var A=O;function T(R,S,b){R=R||{};var x=R.random||(R.rng||D)();if(x[6]=x[6]&15|64,x[8]=x[8]&63|128,S){b=b||0;for(var f=0;f<16;++f)S[b+f]=x[f];return S}return A(x)}var C=Be.a=T},"7ahc":function(Je,Be,H){"use strict";H.d(Be,"a",function(){return _});var ne=H("k1fw"),G=H("0Owb"),D=H("+L6B"),K=H("2/Rp"),k=H("y8nQ"),P=H("Vl3Y"),N=H("tJVT"),M=H("OaEy"),O=H("2fM7"),A=H("cDcd"),T=H.n(A),C=H("VrN/"),R=H.n(C),S=H("p77/"),b=H.n(S),x=H("c5Ni"),f=H.n(x),l=O.a.Option,i={labelCol:{span:4},wrapperCol:{span:20}},c={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"]};Be.b=function(v){var m=v.callback,u=v.onCancel,y=Object(A.useState)("python"),d=Object(N.a)(y,2),h=d[0],s=d[1];function o(p){s(c[p][1])}function g(p){m(p)}return T.a.createElement(P.a,Object(G.a)({},i,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:g}),T.a.createElement(P.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},T.a.createElement(O.a,{onChange:o},Object.keys(c).map(function(p){return T.a.createElement(l,{key:p,value:p},c[p][0])}))),T.a.createElement(P.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},T.a.createElement(_,{mode:h})),T.a.createElement("div",{className:"flex-container flex-end"},T.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),T.a.createElement(K.a,{type:"ghost",onClick:u},"\u53D6\u6D88")))};function _(v){var m=v.value,u=v.onChange,y=v.mode,d=v.options,h=d===void 0?{}:d,s=Object(A.useRef)(),o=Object(A.useState)(),g=Object(N.a)(o,2),p=g[0],E=g[1];return Object(A.useEffect)(function(){if(p){function L(F){var j=F.getValue();u&&u(j)}return p.on("change",L),function(){p.off("change",L)}}},[p,u]),Object(A.useEffect)(function(){p&&p.setOption("mode",y)},[p,y]),Object(A.useEffect)(function(){p&&((m!==p.getValue()||m==="")&&setTimeout(function(){p.setValue(m||" ")},300))},[p,m]),Object(A.useEffect)(function(){if(s.current&&!p){var L=R.a.fromTextArea(s.current,Object(ne.a)({mode:y,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},h));E(L)}},[s.current,p]),T.a.createElement("div",{className:"my-codemirror-container"},T.a.createElement("textarea",{ref:s}))}},"7ixt":function(Je,Be,H){"use strict";H.d(Be,"a",function(){return D});var ne={adjustX:1,adjustY:1},G=[0,0],D={left:{points:["cr","cl"],overflow:ne,offset:[-4,0],targetOffset:G},right:{points:["cl","cr"],overflow:ne,offset:[4,0],targetOffset:G},top:{points:["bc","tc"],overflow:ne,offset:[0,-4],targetOffset:G},bottom:{points:["tc","bc"],overflow:ne,offset:[0,4],targetOffset:G},topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-4],targetOffset:G},leftTop:{points:["tr","tl"],overflow:ne,offset:[-4,0],targetOffset:G},topRight:{points:["br","tr"],overflow:ne,offset:[0,-4],targetOffset:G},rightTop:{points:["tl","tr"],overflow:ne,offset:[4,0],targetOffset:G},bottomRight:{points:["tr","br"],overflow:ne,offset:[0,4],targetOffset:G},rightBottom:{points:["bl","br"],overflow:ne,offset:[4,0],targetOffset:G},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,4],targetOffset:G},leftBottom:{points:["br","bl"],overflow:ne,offset:[-4,0],targetOffset:G}},K=D},"7qnI":function(Je,Be,H){"use strict";var ne=H("5Dmo"),G=H("3S7+"),D=H("fWQN"),K=H("mtLc"),k=H("yKVA"),P=H("879j"),N=H("5NDa"),M=H("5rEg"),O=H("cDcd"),A=H.n(O),T=H("O2Wb"),C=H.n(T),R=M.a.TextArea,S=function(b){Object(k.a)(f,b);var x=Object(P.a)(f);function f(){return Object(D.a)(this,f),x.apply(this,arguments)}return Object(K.a)(f,[{key:"render",value:function(){var i=this,c=this.props,_=c.index,v=c.onAnswerChange,m=c.addChildAnswer,u=c.exerciseIsPublish,y=c.answers,d=c.activeOptionErrorIndex,h=c.flex,s=h===void 0?"0 0 1000px":h;return A.a.createElement("div",{className:C.a.flex},A.a.createElement("div",{className:"".concat(C.a.color666," mb5 mt6"),style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",_+1,"):"),A.a.createElement("div",{className:"".concat(C.a.flex," ").concat(C.a.flex1),style:{flexDirection:"column"}},y.map(function(o,g){var p="".concat(_,"-").concat(g);return A.a.createElement("div",{className:"".concat(C.a.flex," ").concat(C.a.flex1),key:g},A.a.createElement("div",{className:C.a.flex1,style:{flex:s}},A.a.createElement("div",null,A.a.createElement(R,{className:p===d?C.a.error:"",spellCheck:!1,rows:4,value:o||"",defaultValue:"\u8BF7\u8F93\u5165\u53C2\u8003\u7B54\u6848".concat(g==0?"":"(\u53EF\u9009)"),onChange:function(L){return v(_,g,L.target.value)},style:{minHeight:95}}))),!u&&A.a.createElement(A.a.Fragment,null,g!=0&&A.a.createElement(G.a,{title:"\u5220\u9664"},A.a.createElement("i",{className:"".concat(C.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return i.props.deleteChildAnswer(_,g)},style:{float:"right"}})),g===0&&A.a.createElement(G.a,{title:"\u5220\u9664"},A.a.createElement("i",{className:"".concat(C.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return i.props.deleteChildAnswermain(_,g)},style:{float:"right"}})),A.a.createElement(G.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},A.a.createElement("i",{className:"".concat(C.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return m(_)},style:{float:"right",visibility:g==y.length-1?"":"hidden"}}))))})))}}]),f}(O.Component);Be.a=S},"815F":function(Je,Be,H){"use strict";H.d(Be,"e",function(){return N}),H.d(Be,"c",function(){return O}),H.d(Be,"d",function(){return A}),H.d(Be,"a",function(){return C}),H.d(Be,"f",function(){return R}),H.d(Be,"b",function(){return S});var ne=H("KQm4"),G=H("VTBJ"),D=H("Ff2n"),K=H("Zm9Q"),k=H("Kwbf"),P=H("OZM5");function N(b,x){return b!=null?b:x}function M(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=new Map;function f(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(l||[]).forEach(function(c){var _=c.key,v=c.children;Object(k.a)(_!=null,"Tree node must have a certain key: [".concat(i).concat(_,"]"));var m=String(_);Object(k.a)(!x.has(m)||_===null||_===void 0,"Same 'key' exist in the Tree: ".concat(m)),x.set(m,!0),f(v,"".concat(i).concat(m," > "))})}f(b)}function O(b){function x(f){var l=Object(K.a)(f);return l.map(function(i){if(!Object(P.i)(i))return Object(k.a)(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var c=i.key,_=i.props,v=_.children,m=Object(D.a)(_,["children"]),u=Object(G.a)({key:c},m),y=x(v);return y.length&&(u.children=y),u}).filter(function(i){return i})}return x(b)}function A(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=new Set(x===!0?[]:x),l=[];function i(c){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(v,m){var u=Object(P.h)(_?_.pos:"0",m),y=N(v.key,u),d=Object(G.a)(Object(G.a)({},v),{},{parent:_,pos:u,children:null,data:v,isStart:[].concat(Object(ne.a)(_?_.isStart:[]),[m===0]),isEnd:[].concat(Object(ne.a)(_?_.isEnd:[]),[m===c.length-1])});return l.push(d),x===!0||f.has(y)?d.children=i(v.children||[],d):d.children=[],d})}return i(b),l}function T(b,x,f){var l;f?typeof f=="string"?l=function(_){return _[f]}:typeof f=="function"&&(l=function(_){return f(_)}):l=function(_,v){return N(_.key,v)};function i(c,_,v){var m=c?c.children:b,u=c?Object(P.h)(v.pos,_):"0";if(c){var y=l(c,u),d={node:c,index:_,pos:u,key:y,parentPos:v.node?v.pos:null,level:v.level+1};x(d)}m&&m.forEach(function(h,s){i(h,s,{node:c,pos:u,level:v?v.level+1:-1})})}i(null)}function C(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=x.initWrapper,l=x.processEntity,i=x.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,_={},v={},m={posEntities:_,keyEntities:v};return f&&(m=f(m)||m),T(b,function(u){var y=u.node,d=u.index,h=u.pos,s=u.key,o=u.parentPos,g=u.level,p={node:y,index:d,key:s,pos:h,level:g},E=N(s,h);_[h]=p,v[E]=p,p.parent=_[o],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),l&&l(p,m)},c),i&&i(m),m}function R(b,x){var f=x.expandedKeys,l=x.selectedKeys,i=x.loadedKeys,c=x.loadingKeys,_=x.checkedKeys,v=x.halfCheckedKeys,m=x.dragOverNodeKey,u=x.dropPosition,y=x.keyEntities,d=y[b],h={eventKey:b,expanded:f.indexOf(b)!==-1,selected:l.indexOf(b)!==-1,loaded:i.indexOf(b)!==-1,loading:c.indexOf(b)!==-1,checked:_.indexOf(b)!==-1,halfChecked:v.indexOf(b)!==-1,pos:String(d?d.pos:""),dragOver:m===b&&u===0,dragOverGapTop:m===b&&u===-1,dragOverGapBottom:m===b&&u===1};return h}function S(b){var x=b.data,f=b.expanded,l=b.selected,i=b.checked,c=b.loaded,_=b.loading,v=b.halfChecked,m=b.dragOver,u=b.dragOverGapTop,y=b.dragOverGapBottom,d=b.pos,h=b.active,s=Object(G.a)(Object(G.a)({},x),{},{expanded:f,selected:l,checked:i,loaded:c,loading:_,halfChecked:v,dragOver:m,dragOverGapTop:u,dragOverGapBottom:y,pos:d,active:h});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(k.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),b}}),s}},"8EBN":function(Je,Be,H){(function(ne){ne(H("VrN/"))})(function(ne){"use strict";ne.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&&K.substring(N+1,K.length);if(M)return ne.findModeByExtension(M)},ne.findModeByName=function(K){K=K.toLowerCase();for(var k=0;k=Q.length?J.slice(Q.length):J}).join(`
`)}var S=[],b=[""],x=new T.a.Renderer,f=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function l(){S.length=0,b=[""]}var i={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function c(te,ee,se,Q){if(ee>=te.length||te[ee].level<=se)return ee;var J=te[ee];Q.push("- "+J.text+""),ee++;var he=[];return ee=c(te,ee,J.level,he),he.length>0&&(Q.push("
"),he.forEach(function(Ce){Q.push(Ce)}),Q.push("
")),Q.push(" "),ee=c(te,ee,se,Q),ee}function _(){return c(S,0,0,b),b.push("
"),b.join("")}var v={heading:function(ee){var se=f.exec(ee);if(se)return{type:"heading",raw:se[0],depth:se[1].length,text:se[2]}},fences:function(ee){var se=this.rules.block.fences.exec(ee);if(se){var Q=se[0],J=R(Q,se[3]||""),he=se[2]?se[2].trim():se[2];if(["latex","katex","math"].indexOf(he)>=0){var Ce=y(),De=J;J=Ce,d[Ce]={type:"block",expression:De}}return{type:"code",raw:Q,lang:he,text:J}}}},m=/(?:\${2})([^\n`]+?)(?:\${2})/gi,u=0,y=function(){return"__special_katext_id_".concat(u++,"__")},d={};function h(){return d}function s(){u=0,d={}}function o(te){return te=te.replace(m,function(ee,se){var Q=y();return d[Q]={type:"inline",expression:se},Q}),te}var g=x.listitem;x.listitem=function(te){return g(o(te))};var p=x.paragraph;x.paragraph=function(te){return p(o(te))};var E=x.tablecell;x.tablecell=function(te,ee){return E(o(te),ee)},x.code=function(te,ee,se){var Q=(ee||"").match(/\S*/)[0];return Q?["latex","katex","math"].indexOf(Q)>=0?"".concat(te,"
"):'
').concat(se?te:Object(C.escape)(te,!0),`
`):''+(se?te:Object(C.escape)(te,!0))+"
"},x.heading=function(te,ee,se){var Q=this.options.headerPrefix+se.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return S.push({anchor:Q,level:ee,text:te}),"'+te+""},T.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),T.a.use({tokenizer:v,renderer:x});var L=T.a,F=H("SJMd"),j=H("ulZh"),V=H.n(j),B=H("m3rI"),I=H("Oy/b"),$=H("p5ED"),ie=H("8hTe"),ue=H.n(ie),fe=/]*>/g;function ve(te){var ee=document.createElement("div");return ee.innerHTML=te,ee.childNodes.length===0?"":ee.childNodes[0].nodeValue}var pe=Be.a=function(te){var ee=te.value,se=ee===void 0?"":ee,Q=te.edit,J=Q===void 0?!1:Q,he=te.className,Ce=te.showTextOnly,De=te.showLines,we=te.replaces,Me=te.zoomImg,Te=te.hasMask,_e=te.style,Pe=_e===void 0?{}:_e,je=te.stylesPrev,Qe=je===void 0?{}:je,Ie=String(se),Ae=Object(N.useRef)(),et=Object(N.useRef)(),qe=Object(N.useState)(""),lt=Object(P.a)(qe,2),$e=lt[0],ft=lt[1],ut=Object(N.useState)("office"),st=Object(P.a)(ut,2),Se=st[0],Et=st[1],dt=Object(N.useMemo)(function(){try{var de=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Y=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Z=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ie=Ie.replace(de,"("+B.a.API_SERVER+"/api/attachments/").replace(Y,'"'+B.a.API_SERVER+"/api/attachments/").replace(Z,'"'+B.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(Ee){}var q=L(Ie),ae=h();if(Ie.match(/\[TOC\]/)&&(q=q.replace("[TOC]
",_()),l()),q=q.replace(/(__special_katext_id_\d+__)/g,function(Ee,xe){var Ve=ae[xe],Le=Ve.type,We=Ve.expression;return Object(I.renderToString)(ve(We)||"",{displayMode:Le==="block",throwOnError:!1,output:"html"})}),q=q.replace(/▁/g,"\u2581\u2581\u2581"),s(),Ce){var re=document.createElement("div");return re.innerHTML=q,re.innerText}return setTimeout(function(){return me()},500),q},[Ie]),Re=Object(N.useRef)();i.WebkitLineClamp=De,De&&(Pe=Object(k.a)(Object(k.a)({},Pe),i));function He(de){var Y=de.target;if(Y.tagName.toUpperCase()==="IMG"){if(Me){var Z=Y.getAttribute("src");ft(Z),Et("image")}}else if(Y.tagName.toUpperCase()==="A"){var q=Y.getAttribute("href");if(q.indexOf("office")>-1)de.preventDefault(),ft(q),Et("office");else if(q.indexOf("application/pdf")>-1)de.preventDefault(),ft(q),Et("pdf");else if(q.indexOf("text/html")>-1)de.preventDefault(),ft(q),Et("html");else if(q.startsWith("#")){de.preventDefault();var ae=document.getElementById(q.replace("#",""));ae&&ae.scrollIntoView(!0)}}}var me=function(){var Y,Z=(Y=Re.current)===null||Y===void 0?void 0:Y.querySelectorAll("video");Z==null||Z.forEach(function(q){if(q.oncontextmenu=function(){return!1},q.src.indexOf(".m3u8")>-1&&!q.canPlayType("application/vnd.apple.mpegurl")){if(V.a.isSupported()){var ae=new V.a;ae.loadSource(q.src),ae.attachMedia(q)}}})};Object(N.useEffect)(function(){if(Re.current&&dt&&(dt.match(fe)&&window.PR.prettyPrint()),Re.current)return Re.current.addEventListener("click",He),function(){Re.current.removeEventListener("click",He),s(),l()}},[dt,Re.current,He]);var le=function(Y){if(!J)return;Y.target.nodeName==="IMG"?(Ae.current.style.display="flex",Ae.current.style.width=Y.target.clientWidth+"px",Ae.current.style.height=Y.target.clientHeight+"px",Ae.current.style.top=Y.target.offsetTop+"px",Ae.current.style.left=Y.target.offsetLeft+"px",et.current.src=Y.target.getAttribute("src")):Ae.current.style.display="none"};return M.a.createElement("div",{style:{position:"relative"}},M.a.createElement("div",{ref:Re,style:Object(k.a)({},Pe),className:"".concat(he||""," markdown-body ").concat(ue.a.mdBody),onMouseOver:le,dangerouslySetInnerHTML:{__html:dt}}),M.a.createElement("div",{ref:Ae,className:ue.a.button},M.a.createElement(G.a,null,M.a.createElement(K.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),M.a.createElement(K.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),M.a.createElement("img",{ref:et,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),M.a.createElement($.a,{close:!0,data:$e,type:$e!=null&&$e.length?Se:"",style:Object(k.a)({},Qe),onClose:function(){return ft("")}}))}},"9VGf":function(Je,Be,H){"use strict";H.d(Be,"a",function(){return D});var ne=H("cDcd"),G=H.n(ne);function D(K,k){var P=Object(ne.useRef)();Object(ne.useEffect)(function(){P.current=K}),Object(ne.useEffect)(function(){function N(){P.current()}if(k!==null){var M=setInterval(N,k);return function(){return clearInterval(M)}}},[k])}},"A+k2":function(Je,Be,H){Je.exports={tabs:"tabs___2hYAP",active:"active___2Xkwd"}},Bd2K:function(Je,Be,H){(function(ne){ne(H("VrN/"),H("osHv"))})(function(ne){ne.defineOption("autoCloseTags",!1,function(O,A,T){if(T!=ne.Init&&T&&O.removeKeyMap("autoCloseTags"),!A)return;var C={name:"autoCloseTags"};(typeof A!="object"||A.whenClosing!==!1)&&(C["'/'"]=function(R){return P(R)}),(typeof A!="object"||A.whenOpening!==!1)&&(C["'>'"]=function(R){return K(R)}),O.addKeyMap(C)});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 K(O){if(O.getOption("disableInput"))return ne.Pass;for(var A=O.listSelections(),T=[],C=O.getOption("autoCloseTags"),R=0;RS.ch&&(i=i.slice(0,i.length-b.end+S.ch));var m=i.toLowerCase();if(!i||b.type=="string"&&(b.end!=S.ch||!/[\"\']/.test(b.string.charAt(b.string.length-1))||b.string.length==1)||b.type=="tag"&&l.close||b.string.indexOf("/")==S.ch-b.start-1||_&&N(_,m)>-1||M(O,x.mode.xmlCurrentContext&&x.mode.xmlCurrentContext(f)||[],i,S,!0))return ne.Pass;var u=typeof C=="object"&&C.emptyTags;if(u&&N(u,i)>-1){T[R]={text:"/>",newPos:ne.Pos(S.line,S.ch+2)};continue}var y=v&&N(v,m)>-1;T[R]={indent:y,text:">"+(y?`
`:"")+""+i+">",newPos:y?ne.Pos(S.line+1,0):ne.Pos(S.line,S.ch+1)}}for(var d=typeof C=="object"&&C.dontIndentOnAutoClose,R=A.length-1;R>=0;R--){var h=T[R];O.replaceRange(h.text,A[R].head,A[R].anchor,"+insert");var s=O.listSelections().slice(0);s[R]={head:h.newPos,anchor:h.newPos},O.setSelections(s),!d&&h.indent&&(O.indentLine(h.newPos.line,null,!0),O.indentLine(h.newPos.line+1,null,!0))}}function k(O,A){for(var T=O.listSelections(),C=[],R=A?"/":"",S=O.getOption("autoCloseTags"),b=typeof S=="object"&&S.dontIndentOnSlash,x=0;x"&&(_+=">"),C[x]=_}if(O.replaceSelections(C),T=O.listSelections(),!b)for(var x=0;x=0&&A[f]==T;f--)++x;C=b.to;for(var f=1;f0){for(var A=0;A1&&arguments[1]!==void 0?arguments[1]:"",A=[],T=0;Tme.length)&&(le=me.length);for(var de=0,Y=new Array(le);de=me.length?{done:!0}:{done:!1,value:me[Y++]}}}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 de=me[Symbol.iterator](),de.next.bind(de)}function P(me,le){return le={exports:{}},me(le,le.exports),le.exports}var N=P(function(me){function le(){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 de(Y){me.exports.defaults=Y}me.exports={defaults:le(),getDefaults:le,changeDefaults:de}}),M=N.defaults,O=N.getDefaults,A=N.changeDefaults,T=/[&<>"']/,C=/[&<>"']/g,R=/[<>"']|&(?!#?\w+;)/,S=/[<>"']|&(?!#?\w+;)/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},x=function(le){return b[le]};function f(me,le){if(le){if(T.test(me))return me.replace(C,x)}else if(R.test(me))return me.replace(S,x);return me}var l=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function i(me){return me.replace(l,function(le,de){return de=de.toLowerCase(),de==="colon"?":":de.charAt(0)==="#"?de.charAt(1)==="x"?String.fromCharCode(parseInt(de.substring(2),16)):String.fromCharCode(+de.substring(1)):""})}var c=/(^|[^\[])\^/g;function _(me,le){me=me.source||me,le=le||"";var de={replace:function(Z,q){return q=q.source||q,q=q.replace(c,"$1"),me=me.replace(Z,q),de},getRegex:function(){return new RegExp(me,le)}};return de}var v=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function u(me,le,de){if(me){var Y;try{Y=decodeURIComponent(i(de)).replace(v,"").toLowerCase()}catch(Z){return null}if(Y.indexOf("javascript:")===0||Y.indexOf("vbscript:")===0||Y.indexOf("data:")===0)return null}le&&!m.test(de)&&(de=o(le,de));try{de=encodeURI(de).replace(/%25/g,"%")}catch(Z){return null}return de}var y={},d=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function o(me,le){y[" "+me]||(d.test(me)?y[" "+me]=me+"/":y[" "+me]=L(me,"/",!0)),me=y[" "+me];var de=me.indexOf(":")===-1;return le.substring(0,2)==="//"?de?le:me.replace(h,"$1")+le:le.charAt(0)==="/"?de?le:me.replace(s,"$1")+le:me+le}var g={exec:function(){}};function p(me){for(var le=1,de,Y;le=0&&re[xe]==="\\";)Ee=!Ee;return Ee?"|":" |"}),Y=de.split(/ \|/),Z=0;if(Y.length>le)Y.splice(le);else for(;Y.length=Y.length?Z.slice(Y.length):Z}).join(`
`)}var pe=function(){function me(de){this.options=de||B}var le=me.prototype;return le.space=function(Y){var Z=this.rules.block.newline.exec(Y);if(Z)return Z[0].length>1?{type:"space",raw:Z[0]}:{raw:`
`}},le.code=function(Y,Z){var q=this.rules.block.code.exec(Y);if(q){var ae=Z[Z.length-1];if(ae&&ae.type==="paragraph")return{raw:q[0],text:q[0].trimRight()};var re=q[0].replace(/^ {4}/gm,"");return{type:"code",raw:q[0],codeBlockStyle:"indented",text:this.options.pedantic?re:I(re,`
`)}}},le.fences=function(Y){var Z=this.rules.block.fences.exec(Y);if(Z){var q=Z[0],ae=ve(q,Z[3]||"");return{type:"code",raw:q,lang:Z[2]?Z[2].trim():Z[2],text:ae}}},le.heading=function(Y){var Z=this.rules.block.heading.exec(Y);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},le.nptable=function(Y){var Z=this.rules.block.nptable.exec(Y);if(Z){var q={type:"table",header:$(Z[1].replace(/^ *| *\| *$/g,"")),align:Z[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Z[3]?Z[3].replace(/\n$/,"").split(`
`):[],raw:Z[0]};if(q.header.length===q.align.length){var ae=q.align.length,re;for(re=0;re ?/gm,"");return{type:"blockquote",raw:Z[0],text:q}}},le.list=function(Y){var Z=this.rules.block.list.exec(Y);if(Z){for(var q=Z[0],ae=Z[2],re=ae.length>1,Ee=ae[ae.length-1]===")",xe={type:"list",raw:q,ordered:re,start:re?+ae.slice(0,-1):"",loose:!1,items:[]},Ve=Z[0].match(this.rules.block.item),Le=!1,We,Ot,Ze,ht,Ut,Ke,It,Zt=Ve.length,At=0;At1||this.options.smartLists&&Ze!==ae)&&(ht=Ve.slice(At+1).join(`
`),xe.raw=xe.raw.substring(0,xe.raw.length-ht.length),At=Zt-1)),Ut=Le||/\n\n(?!\s*$)/.test(We),At!==Zt-1&&(Le=We.charAt(We.length-1)===`
`,Ut||(Ut=Le)),Ut&&(xe.loose=!0),Ke=/^\[[ xX]\] /.test(We),It=void 0,Ke&&(It=We[1]!==" ",We=We.replace(/^\[[ xX]\] +/,"")),xe.items.push({type:"list_item",raw:q,task:Ke,checked:It,loose:Ut,text:We});return xe}},le.html=function(Y){var Z=this.rules.block.html.exec(Y);if(Z)return{type:this.options.sanitize?"paragraph":"html",raw:Z[0],pre:!this.options.sanitizer&&(Z[1]==="pre"||Z[1]==="script"||Z[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Z[0]):ie(Z[0]):Z[0]}},le.def=function(Y){var Z=this.rules.block.def.exec(Y);if(Z){Z[3]&&(Z[3]=Z[3].substring(1,Z[3].length-1));var q=Z[1].toLowerCase().replace(/\s+/g," ");return{tag:q,raw:Z[0],href:Z[2],title:Z[3]}}},le.table=function(Y){var Z=this.rules.block.table.exec(Y);if(Z){var q={type:"table",header:$(Z[1].replace(/^ *| *\| *$/g,"")),align:Z[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Z[3]?Z[3].replace(/\n$/,"").split(`
`):[]};if(q.header.length===q.align.length){q.raw=Z[0];var ae=q.align.length,re;for(re=0;re/i.test(ae[0])&&(Z=!1),!q&&/^<(pre|code|kbd|script)(\s|>)/i.test(ae[0])?q=!0:q&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ae[0])&&(q=!1),{type:this.options.sanitize?"text":"html",raw:ae[0],inLink:Z,inRawBlock:q,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ae[0]):ie(ae[0]):ae[0]}},le.link=function(Y){var Z=this.rules.inline.link.exec(Y);if(Z){var q=ue(Z[2],"()");if(q>-1){var ae=Z[0].indexOf("!")===0?5:4,re=ae+Z[1].length+q;Z[2]=Z[2].substring(0,q),Z[0]=Z[0].substring(0,re).trim(),Z[3]=""}var Ee=Z[2],xe="";if(this.options.pedantic){var Ve=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ee);Ve?(Ee=Ve[1],xe=Ve[3]):xe=""}else xe=Z[3]?Z[3].slice(1,-1):"";Ee=Ee.trim().replace(/^<([\s\S]*)>$/,"$1");var Le=fe(Z,{href:Ee&&Ee.replace(this.rules.inline._escapes,"$1"),title:xe&&xe.replace(this.rules.inline._escapes,"$1")},Z[0]);return Le}},le.reflink=function(Y,Z){var q;if((q=this.rules.inline.reflink.exec(Y))||(q=this.rules.inline.nolink.exec(Y))){var ae=(q[2]||q[1]).replace(/\s+/g," ");if(ae=Z[ae.toLowerCase()],!ae||!ae.href){var re=q[0].charAt(0);return{type:"text",raw:re,text:re}}var Ee=fe(q,ae,q[0]);return Ee}},le.strong=function(Y,Z,q){q===void 0&&(q="");var ae=this.rules.inline.strong.start.exec(Y);if(ae&&(!ae[1]||ae[1]&&(q===""||this.rules.inline.punctuation.exec(q)))){Z=Z.slice(-1*Y.length);var re=ae[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;re.lastIndex=0;for(var Ee;(ae=re.exec(Z))!=null;)if(Ee=this.rules.inline.strong.middle.exec(Z.slice(0,ae.index+3)),Ee)return{type:"strong",raw:Y.slice(0,Ee[0].length),text:Y.slice(2,Ee[0].length-2)}}},le.em=function(Y,Z,q){q===void 0&&(q="");var ae=this.rules.inline.em.start.exec(Y);if(ae&&(!ae[1]||ae[1]&&(q===""||this.rules.inline.punctuation.exec(q)))){Z=Z.slice(-1*Y.length);var re=ae[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;re.lastIndex=0;for(var Ee;(ae=re.exec(Z))!=null;)if(Ee=this.rules.inline.em.middle.exec(Z.slice(0,ae.index+2)),Ee)return{type:"em",raw:Y.slice(0,Ee[0].length),text:Y.slice(1,Ee[0].length-1)}}},le.codespan=function(Y){var Z=this.rules.inline.code.exec(Y);if(Z){var q=Z[2].replace(/\n/g," "),ae=/[^ ]/.test(q),re=q.startsWith(" ")&&q.endsWith(" ");return ae&&re&&(q=q.substring(1,q.length-1)),q=ie(q,!0),{type:"codespan",raw:Z[0],text:q}}},le.br=function(Y){var Z=this.rules.inline.br.exec(Y);if(Z)return{type:"br",raw:Z[0]}},le.del=function(Y){var Z=this.rules.inline.del.exec(Y);if(Z)return{type:"del",raw:Z[0],text:Z[1]}},le.autolink=function(Y,Z){var q=this.rules.inline.autolink.exec(Y);if(q){var ae,re;return q[2]==="@"?(ae=ie(this.options.mangle?Z(q[1]):q[1]),re="mailto:"+ae):(ae=ie(q[1]),re=ae),{type:"link",raw:q[0],text:ae,href:re,tokens:[{type:"text",raw:ae,text:ae}]}}},le.url=function(Y,Z){var q;if(q=this.rules.inline.url.exec(Y)){var ae,re;if(q[2]==="@")ae=ie(this.options.mangle?Z(q[0]):q[0]),re="mailto:"+ae;else{var Ee;do Ee=q[0],q[0]=this.rules.inline._backpedal.exec(q[0])[0];while(Ee!==q[0]);ae=ie(q[0]),q[1]==="www."?re="http://"+ae:re=ae}return{type:"link",raw:q[0],text:ae,href:re,tokens:[{type:"text",raw:ae,text:ae}]}}},le.inlineText=function(Y,Z,q){var ae=this.rules.inline.text.exec(Y);if(ae){var re;return Z?re=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ae[0]):ie(ae[0]):ae[0]:re=ie(this.options.smartypants?q(ae[0]):ae[0]),{type:"text",raw:ae[0],text:re}}},me}(),te=V.noopTest,ee=V.edit,se=V.merge,Q={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:te,table:te,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Q._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Q._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Q.def=ee(Q.def).replace("label",Q._label).replace("title",Q._title).getRegex(),Q.bullet=/(?:[*+-]|\d{1,9}[.)])/,Q.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Q.item=ee(Q.item,"gm").replace(/bull/g,Q.bullet).getRegex(),Q.list=ee(Q.list).replace(/bull/g,Q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Q.def.source+")").getRegex(),Q._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",Q._comment=//,Q.html=ee(Q.html,"i").replace("comment",Q._comment).replace("tag",Q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q.paragraph=ee(Q._paragraph).replace("hr",Q.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",Q._tag).getRegex(),Q.blockquote=ee(Q.blockquote).replace("paragraph",Q.paragraph).getRegex(),Q.normal=se({},Q),Q.gfm=se({},Q.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*|$)"}),Q.gfm.nptable=ee(Q.gfm.nptable).replace("hr",Q.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",Q._tag).getRegex(),Q.gfm.table=ee(Q.gfm.table).replace("hr",Q.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",Q._tag).getRegex(),Q.pedantic=se({},Q.normal,{html:ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Q._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:te,paragraph:ee(Q.normal._paragraph).replace("hr",Q.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var J={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:te,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:te,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",J.punctuation=ee(J.punctuation).replace(/punctuation/g,J._punctuation).getRegex(),J._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",J._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",J.em.start=ee(J.em.start).replace(/punctuation/g,J._punctuation).getRegex(),J.em.middle=ee(J.em.middle).replace(/punctuation/g,J._punctuation).replace(/overlapSkip/g,J._overlapSkip).getRegex(),J.em.endAst=ee(J.em.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.em.endUnd=ee(J.em.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.start=ee(J.strong.start).replace(/punctuation/g,J._punctuation).getRegex(),J.strong.middle=ee(J.strong.middle).replace(/punctuation/g,J._punctuation).replace(/blockSkip/g,J._blockSkip).getRegex(),J.strong.endAst=ee(J.strong.endAst,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.strong.endUnd=ee(J.strong.endUnd,"g").replace(/punctuation/g,J._punctuation).getRegex(),J.blockSkip=ee(J._blockSkip,"g").getRegex(),J.overlapSkip=ee(J._overlapSkip,"g").getRegex(),J._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,J._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,J._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])?)+(?![-_])/,J.autolink=ee(J.autolink).replace("scheme",J._scheme).replace("email",J._email).getRegex(),J._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,J.tag=ee(J.tag).replace("comment",Q._comment).replace("attribute",J._attribute).getRegex(),J._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,J._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,J._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,J.link=ee(J.link).replace("label",J._label).replace("href",J._href).replace("title",J._title).getRegex(),J.reflink=ee(J.reflink).replace("label",J._label).getRegex(),J.reflinkSearch=ee(J.reflinkSearch,"g").replace("reflink",J.reflink).replace("nolink",J.nolink).getRegex(),J.normal=se({},J),J.pedantic=se({},J.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:ee(/^!?\[(label)\]\((.*?)\)/).replace("label",J._label).getRegex(),reflink:ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",J._label).getRegex()}),J.gfm=se({},J.normal,{escape:ee(J.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&&(Y="x"+Y.toString(16)),le+=""+Y+";";return le}var _e=function(){function me(de){this.tokens=[],this.tokens.links=Object.create(null),this.options=de||Ce,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Y={block:De.normal,inline:we.normal};this.options.pedantic?(Y.block=De.pedantic,Y.inline=we.pedantic):this.options.gfm&&(Y.block=De.gfm,this.options.breaks?Y.inline=we.breaks:Y.inline=we.gfm),this.tokenizer.rules=Y}me.lex=function(Y,Z){var q=new me(Z);return q.lex(Y)};var le=me.prototype;return le.lex=function(Y){return Y=Y.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Y,this.tokens,!0),this.inline(this.tokens),this.tokens},le.blockTokens=function(Y,Z,q){Z===void 0&&(Z=[]),q===void 0&&(q=!0),Y=Y.replace(/^ +$/gm,"");for(var ae,re,Ee,xe;Y;){if(ae=this.tokenizer.space(Y)){Y=Y.substring(ae.raw.length),ae.type&&Z.push(ae);continue}if(ae=this.tokenizer.code(Y,Z)){Y=Y.substring(ae.raw.length),ae.type?Z.push(ae):(xe=Z[Z.length-1],xe.raw+=`
`+ae.raw,xe.text+=`
`+ae.text);continue}if(ae=this.tokenizer.fences(Y)){Y=Y.substring(ae.raw.length),Z.push(ae);continue}if(ae=this.tokenizer.heading(Y)){Y=Y.substring(ae.raw.length),Z.push(ae);continue}if(ae=this.tokenizer.nptable(Y)){Y=Y.substring(ae.raw.length),Z.push(ae);continue}if(ae=this.tokenizer.hr(Y)){Y=Y.substring(ae.raw.length),Z.push(ae);continue}if(ae=this.tokenizer.blockquote(Y)){Y=Y.substring(ae.raw.length),ae.tokens=this.blockTokens(ae.text,[],q),Z.push(ae);continue}if(ae=this.tokenizer.list(Y)){for(Y=Y.substring(ae.raw.length),Ee=ae.items.length,re=0;re0)for(;(Ve=this.tokenizer.rules.inline.reflinkSearch.exec(xe))!=null;)Le.includes(Ve[0].slice(Ve[0].lastIndexOf("[")+1,-1))&&(xe=xe.slice(0,Ve.index)+"["+"a".repeat(Ve[0].length-2)+"]"+xe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ve=this.tokenizer.rules.inline.blockSkip.exec(xe))!=null;)xe=xe.slice(0,Ve.index)+"["+"a".repeat(Ve[0].length-2)+"]"+xe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Y;){if(Ee=this.tokenizer.escape(Y)){Y=Y.substring(Ee.raw.length),Z.push(Ee);continue}if(Ee=this.tokenizer.tag(Y,q,ae)){Y=Y.substring(Ee.raw.length),q=Ee.inLink,ae=Ee.inRawBlock,Z.push(Ee);continue}if(Ee=this.tokenizer.link(Y)){Y=Y.substring(Ee.raw.length),Ee.type==="link"&&(Ee.tokens=this.inlineTokens(Ee.text,[],!0,ae)),Z.push(Ee);continue}if(Ee=this.tokenizer.reflink(Y,this.tokens.links)){Y=Y.substring(Ee.raw.length),Ee.type==="link"&&(Ee.tokens=this.inlineTokens(Ee.text,[],!0,ae)),Z.push(Ee);continue}if(Ee=this.tokenizer.strong(Y,xe,re)){Y=Y.substring(Ee.raw.length),Ee.tokens=this.inlineTokens(Ee.text,[],q,ae),Z.push(Ee);continue}if(Ee=this.tokenizer.em(Y,xe,re)){Y=Y.substring(Ee.raw.length),Ee.tokens=this.inlineTokens(Ee.text,[],q,ae),Z.push(Ee);continue}if(Ee=this.tokenizer.codespan(Y)){Y=Y.substring(Ee.raw.length),Z.push(Ee);continue}if(Ee=this.tokenizer.br(Y)){Y=Y.substring(Ee.raw.length),Z.push(Ee);continue}if(Ee=this.tokenizer.del(Y)){Y=Y.substring(Ee.raw.length),Ee.tokens=this.inlineTokens(Ee.text,[],q,ae),Z.push(Ee);continue}if(Ee=this.tokenizer.autolink(Y,Te)){Y=Y.substring(Ee.raw.length),Z.push(Ee);continue}if(!q&&(Ee=this.tokenizer.url(Y,Te))){Y=Y.substring(Ee.raw.length),Z.push(Ee);continue}if(Ee=this.tokenizer.inlineText(Y,ae,Me)){Y=Y.substring(Ee.raw.length),re=Ee.raw.slice(-1),Z.push(Ee);continue}if(Y){var We="Infinite loop on byte: "+Y.charCodeAt(0);if(this.options.silent){console.error(We);break}else throw new Error(We)}}return Z},G(me,null,[{key:"rules",get:function(){return{block:De,inline:we}}}]),me}(),Pe=N.defaults,je=V.cleanUrl,Qe=V.escape,Ie=function(){function me(de){this.options=de||Pe}var le=me.prototype;return le.code=function(Y,Z,q){var ae=(Z||"").match(/\S*/)[0];if(this.options.highlight){var re=this.options.highlight(Y,ae);re!=null&&re!==Y&&(q=!0,Y=re)}return ae?''+(q?Y:Qe(Y,!0))+`
`:""+(q?Y:Qe(Y,!0))+`
`},le.blockquote=function(Y){return`
`+Y+`
`},le.html=function(Y){return Y},le.heading=function(Y,Z,q,ae){return this.options.headerIds?"
`:""+Y+"
`},le.hr=function(){return this.options.xhtml?`
`:`
`},le.list=function(Y,Z,q){var ae=Z?"ol":"ul",re=Z&&q!==1?' start="'+q+'"':"";return"<"+ae+re+`>
`+Y+""+ae+`>
`},le.listitem=function(Y){return""+Y+`
`},le.checkbox=function(Y){return" "},le.paragraph=function(Y){return""+Y+`
`},le.table=function(Y,Z){return Z&&(Z=""+Z+""),`
`},le.tablerow=function(Y){return`
`+Y+`
`},le.tablecell=function(Y,Z){var q=Z.header?"th":"td",ae=Z.align?"<"+q+' align="'+Z.align+'">':"<"+q+">";return ae+Y+""+q+`>
`},le.strong=function(Y){return""+Y+""},le.em=function(Y){return""+Y+""},le.codespan=function(Y){return""+Y+""},le.br=function(){return this.options.xhtml?"
":"
"},le.del=function(Y){return""+Y+""},le.link=function(Y,Z,q){if(Y=je(this.options.sanitize,this.options.baseUrl,Y),Y===null)return q;var ae='"+q+"",ae},le.image=function(Y,Z,q){if(Y=je(this.options.sanitize,this.options.baseUrl,Y),Y===null)return q;var ae='
":">",ae},le.text=function(Y){return Y},me}(),Ae=function(){function me(){}var le=me.prototype;return le.strong=function(Y){return Y},le.em=function(Y){return Y},le.codespan=function(Y){return Y},le.del=function(Y){return Y},le.html=function(Y){return Y},le.text=function(Y){return Y},le.link=function(Y,Z,q){return""+q},le.image=function(Y,Z,q){return""+q},le.br=function(){return""},me}(),et=function(){function me(){this.seen={}}var le=me.prototype;return le.slug=function(Y){var Z=Y.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Z)){var q=Z;do this.seen[q]++,Z=q+"-"+this.seen[q];while(this.seen.hasOwnProperty(Z))}return this.seen[Z]=0,Z},me}(),qe=N.defaults,lt=V.unescape,$e=function(){function me(de){this.options=de||qe,this.options.renderer=this.options.renderer||new Ie,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new et}me.parse=function(Y,Z){var q=new me(Z);return q.parse(Y)};var le=me.prototype;return le.parse=function(Y,Z){Z===void 0&&(Z=!0);var q="",ae,re,Ee,xe,Ve,Le,We,Ot,Ze,ht,Ut,Ke,It,Zt,At,Yt,Kt,Pt,Rt=Y.length;for(ae=0;ae
"+st(Ee.message+"",!0)+"
";throw Ee}}Re.options=Re.setOptions=function(me){return ft(Re.defaults,me),Et(Re.defaults),Re},Re.getDefaults=Se,Re.defaults=dt,Re.use=function(me){var le=ft({},me);if(me.renderer&&function(){var Y=Re.defaults.renderer||new Ie,Z=function(re){var Ee=Y[re];Y[re]=function(){for(var xe=arguments.length,Ve=new Array(xe),Le=0;LePt.length){var bt=Object(Ae.xor)(_t,Pt);console.log(bt,"newLevel"),Tt=Tt.filter(function(tt){return!bt.includes(tt)})}Ve(Tt),Ke(Pt.length===(Le==null||((pt=Le.tag_disciplines)===null||pt===void 0)?void 0:pt.length))},Zt=function(Pt){var Rt,pt=Le==null||((Rt=Le.tag_disciplines)===null||Rt===void 0)?void 0:Rt.map(function(Mt){return Mt.id});Ve(Pt.target.checked?Object(Ae.uniq)([].concat(Object(V.a)(xe),Object(V.a)(pt))):xe==null?void 0:xe.filter(function(Mt){return!pt.includes(Mt)})),Ke(Pt.target.checked)};console.log(Le,"options");var At=function(){var Pt,Rt,pt=(Le==null?void 0:Le.tag_disciplines)||[];if(We){var Mt;pt=(Mt=pt)===null||Mt===void 0?void 0:Mt.filter(function(_t){var Tt;return _t==null||((Tt=_t.name)===null||Tt===void 0)?void 0:Tt.includes(We)})}return pt=(Pt=pt)===null||Pt===void 0?void 0:Pt.map(function(_t){return Object(A.a)(Object(A.a)({},_t),{},{label:"".concat(_t.name,"(".concat(_t==null?void 0:_t.item_count,")")),value:_t.id})}),pt=(Rt=pt)===null||Rt===void 0?void 0:Rt.filter(function(_t){return _t.item_count!==0}),pt},Yt=function(){var Pt=!1;if(!We)Pt=!0;else{var Rt;(Rt=Le.tag_disciplines)===null||Rt===void 0||Rt.forEach(function(pt){if(!Pt){var Mt;Pt=((Mt=pt.name)===null||Mt===void 0?void 0:Mt.includes(We))&&pt.item_count!==0}})}return Pt};return(Le==null?void 0:Le.item_count)===0||!Yt()?i.a.createElement(i.a.Fragment,null):i.a.createElement("div",{className:Ie.a.cInput},i.a.createElement("div",{className:Ie.a.cl},i.a.createElement(p.a,{checked:Ut,onChange:Zt},i.a.createElement("span",{className:Ie.a.box},i.a.createElement("span",{className:"font14 c-light-primary"},i.a.createElement("span",{title:Le==null?void 0:Le.name,className:Ie.a.box1}," ",Le==null?void 0:Le.name),i.a.createElement("span",null," ","(".concat(Le==null?void 0:Le.item_count,")"))),i.a.createElement("i",{className:"iconfont icon-lujing font12 ml5"})))),i.a.createElement("div",{className:Ie.a.cr},i.a.createElement(et,{options:At(),value:xe,onChange:It})))},lt=qe,$e=H("ErOA"),ft=H("ozfa"),ut=H("MJZm"),st=H("0Owb"),Se=H("tmPe"),Et=H.n(Se),dt=function(re){var Ee=re.value,xe=re.onChange,Ve=re.defaultValue,Le=re.treeData,We=Le===void 0?[]:Le,Ot=Object(je.a)(re,["value","onChange","defaultValue","treeData"]);return i.a.createElement("div",{className:Et.a.customTree},i.a.createElement(ut.a,Object(st.a)({multiple:!0,showIcon:!0,selectedKeys:Ee,defaultExpandedKeys:Ve,treeData:We,onSelect:xe},Ot)))},Re=dt,He=H("sbIO"),me=b.a.Search,le=function(re){var Ee,xe=re.formValue,Ve=re.setFatherTabs,Le=re.tabs,We=re.editData,Ot=re.dispatch,Ze=Object(c.i)().id,ht=Object(l.useState)(["mine"]),Ut=Object(R.a)(ht,2),Ke=Ut[0],It=Ut[1],Zt=Object(l.useState)(!0),At=Object(R.a)(Zt,2),Yt=At[0],Kt=At[1],Pt=Object(l.useState)(!1),Rt=Object(R.a)(Pt,2),pt=Rt[0],Mt=Rt[1],_t=Object(l.useState)(!1),Tt=Object(R.a)(_t,2),bt=Tt[0],tt=Tt[1],Fe=Object(l.useState)(""),Jt=Object(R.a)(Fe,2),Wt=Jt[0],qt=Jt[1],Vt=Object(l.useState)(!1),un=Object(R.a)(Vt,2),$t=un[0],rt=un[1],Ne=Object(l.useState)(!1),vt=Object(R.a)(Ne,2),In=vt[0],fr=vt[1],gr=Object(l.useState)({}),Tn=Object(R.a)(gr,2),Ht=Tn[0],wt=Tn[1],Sn=Object(l.useState)([]),Ge=Object(R.a)(Sn,2),sn=Ge[0],Dn=Ge[1],Kr=Object(l.useState)([]),Hr=Object(R.a)(Kr,2),Un=Hr[0],aa=Hr[1],ia=Object(l.useState)([]),yr=Object(R.a)(ia,2),kr=yr[0],oa=yr[1],qr=Object(l.useState)([]),Er=Object(R.a)(qr,2),Nn=Er[0],ea=Er[1],sa=Object(l.useState)(null),Wn=Object(R.a)(sa,2),mt=Wn[0],ye=Wn[1],Xe=Object(l.useRef)([]),Lt=Object(l.useState)(!1),xt=Object(R.a)(Lt,2),Ct=xt[0],Nt=xt[1],En=Object(l.useState)([]),bn=Object(R.a)(En,2),nn=bn[0],Ln=bn[1],Pn=Object(l.useState)([0]),er=Object(R.a)(Pn,2),Fn=er[0],Ir=er[1],Qn=Object(l.useState)([]),Cn=Object(R.a)(Qn,2),hr=Cn[0],wr=Cn[1],Ar=Object(l.useRef)([]),Na=Object(l.useState)(!1),br=Object(R.a)(Na,2),Fa=br[0],ta=br[1],Ta=Object(l.useState)([]),Vr=Object(R.a)(Ta,2),mn=Vr[0],Xr=Vr[1],Br=Object(l.useState)([]),fa=Object(R.a)(Br,2),$r=fa[0],la=fa[1],na=Object(l.useRef)([]),kt=Object(l.useState)([]),zt=Object(R.a)(kt,2),Bt=zt[0],en=zt[1],on=Object(l.useState)(!1),pn=Object(R.a)(on,2),an=pn[0],Kn=pn[1],tr=Object(l.useRef)([]),rn=Object(l.useState)(0),Gr=Object(R.a)(rn,2),dn=Gr[0],Vn=Gr[1],Hn=hr==null?void 0:hr.filter(function(it){return nn==null?void 0:nn.includes(it.id)}),Ur=$r==null?void 0:$r.filter(function(it){return mn==null?void 0:mn.includes(it.id)});Object(l.useEffect)(function(){Sa()},[]),Object(l.useEffect)(function(){return Le===1&&(Ot({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),Ot({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1})),function(){Ot({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),Ot({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}},[Le]),Object(l.useEffect)(function(){Ze?We&&Zn():(Ba(Ke),ha(),Kt(!1))},[We]),Object(l.useEffect)(function(){Wt&&Ji()},[Wt]);var Ji=function(){var Ye=null;Un==null||Un.forEach(function(ke){var Oe;(Oe=ke.sub_disciplines)===null||Oe===void 0||Oe.forEach(function(ot){var at;(at=ot.tag_disciplines)===null||at===void 0||at.forEach(function(ct){var jt,Qt=((jt=ct.name)===null||jt===void 0?void 0:jt.includes(Wt))&&ct.item_count!==0;Qt&&!Ye&&(Ye=ke.id)})})}),Ye&&ye(Ye)},Qi=function(Ye){function ke(Oe){var ot=Oe.children,at=Array.isArray(ot)&&ot.length>0,ct=Oe==null?void 0:Oe.group_id;return tr.current.push({name:Oe==null?void 0:Oe.name,id:ct,count:Oe==null?void 0:Oe.count}),{title:i.a.createElement("div",{title:Oe==null?void 0:Oe.name,className:I.a.name},Oe==null?void 0:Oe.name,"\uFF08".concat(Oe==null?void 0:Oe.count,"\uFF09")),value:ct,name:Oe==null?void 0:Oe.name,key:ct,count:Oe==null?void 0:Oe.count,id:ct,icon:i.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:at?ot==null?void 0:ot.map(function(jt){return ke(jt)}):[]}}return Ye==null?void 0:Ye.map(function(Oe){return ke(Oe)})},Sa=function(){var it=Object(O.a)(f.a.mark(function Ye(){var ke,Oe;return f.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object($.A)({});case 2:ke=at.sent,tr.current=[{id:0,name:"\u6839\u76EE\u5F55",count:ke==null?void 0:ke.root_count}],ke!=null&&ke.data&&(Oe=[{title:i.a.createElement("div",{title:"\u6839\u76EE\u5F55",className:I.a.name},"\u6839\u76EE\u5F55","\uFF08".concat((ke==null?void 0:ke.root_count)||0,"\uFF09")),value:0,id:0,key:0,count:ke==null?void 0:ke.root_count,name:"\u6839\u76EE\u5F55",icon:i.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Qi(ke.data||[])}],wr(tr.current),en(Oe));case 5:case"end":return at.stop()}},Ye)}));return function(){return it.apply(this,arguments)}}(),Zn=function(){var it=Object(O.a)(f.a.mark(function Ye(){var ke,Oe,ot,at,ct,jt,Qt,vn,fn,gn,cn,Gn,wn,An,nr,Xn,Bn,rr;return f.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return gn=We==null||((ke=We.tag_disciplines)===null||ke===void 0)?void 0:ke.map(function(ln){return ln.tag_discipline_id}),cn=We==null||((Oe=We.groups)===null||Oe===void 0)?void 0:Oe.map(function(ln){return ln.id}),Gn={source:We==null||((ot=We.examination_bank)===null||ot===void 0)?void 0:ot.source,group_ids:cn,tag_discipline_ids:gn,teach_group_ids:We==null?void 0:We.teach_group_ids},Xt.next=5,Object($e.a)("/api/examination_intelligent_settings/form_paper.json",{method:"post",body:Gn});case 5:if(wn=Xt.sent,!((wn==null?void 0:wn.status)===-1)){Xt.next=8;break}return Xt.abrupt("return");case 8:An=wn==null?void 0:wn.filter(function(ln){var Mn;return!!(ln!=null&&(Mn=ln.item_banks)!==null&&Mn!==void 0&&Mn.length)}),An=An.map(function(ln){return Object(A.a)(Object(A.a)({},ln),{},{scoreTotal:0,score:0,questionTotal:0})}),An=(at=An)===null||at===void 0?void 0:at.map(function(ln,Mn){var ar,$n,_r;return Object(A.a)(Object(A.a)({},ln),{},{score:(We==null||((ar=We.score_settings)===null||ar===void 0||(($n=ar.find(function(Tr){return Tr.item_type===(ln==null?void 0:ln.item_type)}))===null||$n===void 0))?void 0:$n.score)||0,item_banks:ln==null||((_r=ln.item_banks)===null||_r===void 0)?void 0:_r.map(function(Tr){var xn;return Object(A.a)(Object(A.a)({},Tr),{},{tag_disciplines:Tr==null||((xn=Tr.tag_disciplines)===null||xn===void 0)?void 0:xn.map(function(Rn){var ir;return Object(A.a)(Object(A.a)({},Rn),{},{difficulties:Rn==null||((ir=Rn.difficulties)===null||ir===void 0)?void 0:ir.map(function(mr){var or=We==null?void 0:We.contents.find(function(Dr){return Dr.item_type===ln.item_type&&Dr.sub_discipline_id===Tr.sub_discipline_id&&Dr.tag_discipline_id===Rn.tag_discipline_id&&Dr.difficulty===mr.difficulty});return or?Object(A.a)(Object(A.a)({},mr),{},{num:or==null?void 0:or.quanlity}):Object(A.a)({},mr)})})})})})})}),nr=Ca(An),Xn=nr.panel,Bn=nr.score_num_item,An=(ct=An)===null||ct===void 0?void 0:ct.map(function(ln,Mn){var ar,$n=(Xn==null||((ar=Xn[Mn])===null||ar===void 0)?void 0:ar.reduce(function(_r,Tr){return _r+Tr},0))||0;return Object(A.a)(Object(A.a)({},ln),{},{scoreTotal:$n*(Bn[Mn]||0),questionTotal:$n})}),rr=[],We==null||((jt=We.sort_by_item_type)===null||jt===void 0)||jt.forEach(function(ln){var Mn=An.find(function(ar){var $n,_r=($n=wa.find(function(Tr){return Tr.type===(ar==null?void 0:ar.item_type)}))===null||$n===void 0?void 0:$n.name;return _r===ln});rr.push(Mn)}),rr=Object(Ae.compact)(rr),Ba(We==null||((Qt=We.examination_bank)===null||Qt===void 0)?void 0:Qt.source),ha(),It(We==null||((vn=We.examination_bank)===null||vn===void 0)?void 0:vn.source),ea(gn),Xe.current=gn,Ln(cn),Xr((We==null?void 0:We.teach_group_ids)||[]),Vn(We==null||((fn=We.groups)===null||fn===void 0)?void 0:fn.map(function(ln){return ln.count}).reduce(function(ln,Mn){return ln+Mn},0)),Ar.current=cn,Ir(cn!=null&&cn.length?cn:[0]),Dn(Object(Ae.cloneDeep)(rr)),Kt(!1);case 29:case"end":return Xt.stop()}},Ye)}));return function(){return it.apply(this,arguments)}}(),Zi=function(){var it=Object(O.a)(f.a.mark(function Ye(){var ke;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:ke={source:Ke,group_ids:nn,tag_discipline_ids:Nn,teach_group_ids:mn},ua(ke),Xe.current=Nn,rt(!1);case 4:case"end":return ot.stop()}},Ye)}));return function(){return it.apply(this,arguments)}}(),Ba=function(){var it=Object(O.a)(f.a.mark(function Ye(ke){var Oe,ot,at,ct,jt,Qt;return f.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:return fn.next=2,Object($e.a)("/api/disciplines.json",{method:"get",params:{source:"question",question_source:ke}});case 2:at=fn.sent,ct=[],at==null||((Oe=at.disciplines)===null||Oe===void 0)||Oe.forEach(function(gn){var cn;gn==null||((cn=gn.sub_disciplines)===null||cn===void 0)||cn.forEach(function(Gn){ct=ct.concat((Gn==null?void 0:Gn.tag_disciplines)||[])})}),jt=null,Qt=at==null||((ot=at.disciplines)===null||ot===void 0)?void 0:ot.map(function(gn){var cn,Gn=gn==null||((cn=gn.sub_disciplines)===null||cn===void 0)?void 0:cn.reduce(function(wn,An){return wn+An.item_count},0);return!jt&&Gn!==0&&(jt=gn.id),Object(A.a)(Object(A.a)({},gn),{},{item_count:Gn})}),console.log(Qt,48767874),aa(Qt),oa(ct),ye(jt);case 11:case"end":return fn.stop()}},Ye)}));return function(ke){return it.apply(this,arguments)}}(),ha=function(){var it=Object(O.a)(f.a.mark(function Ye(){var ke;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return ot.next=2,Object($e.a)("/api/teach_groups.json",{method:"get",params:{is_random_exam:!0}});case 2:ke=ot.sent,la((ke==null?void 0:ke.groups)||[]);case 4:case"end":return ot.stop()}},Ye)}));return function(){return it.apply(this,arguments)}}(),ua=function(){var it=Object(O.a)(f.a.mark(function Ye(ke){var Oe,ot;return f.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Kt(!0),ct.next=3,Object($e.a)("/api/examination_intelligent_settings/form_paper.json",{method:"post",body:ke});case 3:Oe=ct.sent,ot=Oe==null?void 0:Oe.filter(function(jt){var Qt;return!!(jt!=null&&(Qt=jt.item_banks)!==null&&Qt!==void 0&&Qt.length)}),ot=ot.map(function(jt){return Object(A.a)(Object(A.a)({},jt),{},{scoreTotal:0,score:0,questionTotal:0})}),Dn(ot),Kt(!1);case 8:case"end":return ct.stop()}},Ye)}));return function(ke){return it.apply(this,arguments)}}(),wi=function(){ea(Xe.current),rt(!1),qt("")},qi=function(Ye){ea(Ye)},ti=function(){for(var Ye=kr==null?void 0:kr.filter(function(vn){return Nn==null?void 0:Nn.includes(vn.id)}),ke=Object(V.a)(Ye),Oe=0,ot=[],at=0;at1&&Ye!==0&&(ke=ma(Oe,Ye,Ye-1)),Dn(ke)},ja=function(Ye){var ke=[],Oe=Object(Ae.cloneDeep)(sn);Oe.length>1&&Ye!==Oe.length-1&&(ke=ma(Oe,Ye,Ye+1)),Dn(ke)},Aa=function(){var it=Object(O.a)(f.a.mark(function Ye(ke){var Oe,ot,at,ct;return f.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:if(at=Object(V.a)(Ke),Ke.includes(ke)?at=at.filter(function(vn){return vn!==ke}):at.push(ke),!(at.length===0)){Qt.next=5;break}return j.b.warn("\u8BD5\u9898\u6765\u6E90\u4E3A\u5FC5\u9009\u9879"),Qt.abrupt("return");case 5:(Oe=at)!==null&&Oe!==void 0&&Oe.includes("mine")||(Ln([]),Ar.current=[]),(ot=at)!==null&&ot!==void 0&&ot.includes("teach_groups")||(Xr([]),na.current=[]),It(at),Ba(at),ea([]),Xe.current=[],ct={source:at,group_ids:Ar.current,tag_discipline_ids:[],teach_group_ids:na.current},ua(ct);case 13:case"end":return Qt.stop()}},Ye)}));return function(ke){return it.apply(this,arguments)}}(),Ri=function(Ye){var ke={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!Ye)return;var Oe=Ye||{},ot=Oe.exam,at=Oe.single_questions,ct=Oe.multiple_questions,jt=Oe.judgement_questions,Qt=Oe.program_questions,vn=Oe.completion_questions,fn=Oe.subjective_questions,gn=Oe.practical_questions,cn=Oe.combination_questions,Gn=[Object(A.a)({type:"SINGLE",name:"\u5355\u9009\u9898"},at),Object(A.a)({type:"MULTIPLE",name:"\u591A\u9009\u9898"},ct),Object(A.a)({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},vn),Object(A.a)({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},jt),Object(A.a)({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},fn),Object(A.a)({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},Qt),Object(A.a)({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},gn),Object(A.a)({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},cn)],wn=[],An=0,nr=0,Xn=Gn.filter(function(Bn){return Bn.questions_count>0}).map(function(Bn,rr){var xr;return(xr=Bn.questions)===null||xr===void 0||xr.forEach(function(Xt){wn.push(Xt.id),An=An+Xt.score,nr=nr+1}),Object(A.a)(Object(A.a)({},Bn),{number:ke[rr+1]})});return{all_questions_count:nr,all_score:An,questionList:Xn,ids:wn,exam:ot}},zr=function(Ye){var ke,Oe,ot=Object(Ae.cloneDeep)(Ht),at=Object(Ae.cloneDeep)(sn);ot.questionList=ot==null||((ke=ot.questionList)===null||ke===void 0)?void 0:ke.map(function(ct){return ct.type===Ye.type?Object(A.a)(Object(A.a)({},ct),{},{questions_score:Ye.scoreTotal}):ct}),at=(Oe=at)===null||Oe===void 0?void 0:Oe.map(function(ct){return ct.item_type===Ye.type?Object(A.a)(Object(A.a)({},ct),{},{score:Ye.score,scoreTotal:Ye.scoreTotal}):ct}),Dn(at),wt(ot),console.log(Ye,Ht,sn)},Jr=Un==null||((Ee=Un.find(function(it){return it.id===mt}))===null||Ee===void 0)?void 0:Ee.sub_disciplines,Da=ti();return In?i.a.createElement(He.a,{loading:pt,submit:Di,goBack:function(){return fr(!1)},data:Ht,onTypeScore:zr,onExchange:ni}):i.a.createElement("section",{className:I.a.wrap,style:{display:Le?"flex":"none"}},i.a.createElement("div",{id:"id_left",className:I.a.left,onMouseEnter:function(Ye){var ke=document.getElementById("id_left");ke.style.overflowY="auto"},onMouseLeave:function(Ye){var ke=document.getElementById("id_left");ke.style.overflowY="hidden"}},i.a.createElement(G.a,{loading:Yt,active:!0,paragraph:{rows:5}},sn.map(function(it,Ye){var ke;return i.a.createElement("div",{className:I.a.list,key:Ye},i.a.createElement("div",{className:I.a.name},i.a.createElement("b",null),i.a.createElement("span",null,(ke=wa.find(function(Oe){return Oe.type===(it==null?void 0:it.item_type)}))===null||ke===void 0?void 0:ke.name)),i.a.createElement("aside",null,i.a.createElement("div",null,"\u5171",i.a.createElement("span",{className:I.a.b},it.questionTotal),"\u9898",i.a.createElement("span",{className:I.a.l},"|"),"\u5171",i.a.createElement("span",{className:I.a.r},it.scoreTotal),"\u5206"),i.a.createElement("div",null,Ye>0?i.a.createElement(L.a,{getPopupContainer:function(ot){return document.getElementById("id_left")},title:"\u4E0A\u79FB"},i.a.createElement("span",{onClick:function(){return Yr(Ye)},className:"mb20",style:{transform:"rotate(270deg)"}}," ",i.a.createElement("i",{className:"icon-jiantou1"}))):i.a.createElement("span",{className:"mb20",style:{transform:"rotate(270deg)",cursor:"not-allowed"}}," ",i.a.createElement("i",{className:"icon-jiantou1"})),Ye"),i.a.createElement("span",{className:"current",onClick:function(){return _.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93>"),i.a.createElement("span",{style:{color:"#bebebe"}},"\u968F\u673A\u7EC4\u5377")),Ze===0&&i.a.createElement(h,{value:Ze,onChange:qt}),Ze===0&&i.a.createElement("section",{className:m.a.oneWrap},i.a.createElement("div",{className:m.a.title},i.a.createElement("b",null),i.a.createElement("span",null,"\u57FA\u672C\u4FE1\u606F"),i.a.createElement("div",null,"STEP1")," "),i.a.createElement(C.a,{className:m.a.formWrap,form:It,layout:"horizontal",onValuesChange:Jt},i.a.createElement(C.a.Item,{label:"\u8BD5\u5377\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"},{pattern:/^(?!(\s+$))/,message:"\u8F93\u5165\u6846\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},i.a.createElement(b.a,{className:m.a.in,bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\uFF0C\u6700\u591A60\u4E2A\u5B57",maxLength:60})),i.a.createElement("div",{style:{position:"relative"}},i.a.createElement(C.a.Item,{label:"\u7B54\u9898\u65F6\u957F:",name:"time",rules:[{required:!0,message:"\u7B54\u9898\u65F6\u957F\u4E0D\u80FD\u4E3A\u7A7A"}]},i.a.createElement(M.a,{min:1,parser:Vt,max:9999,placeholder:"\u8BF7\u8F93\u5165\u7B54\u9898\u65F6\u957F",style:{width:190}})),i.a.createElement("span",{style:{position:"absolute",top:26,left:310}},"\u5206\u949F")),i.a.createElement(C.a.Item,{label:"\u8BD5\u9898\u96BE\u5EA6",name:"difficulty",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},i.a.createElement(P.a.Group,{style:{display:"flex",width:286,justifyContent:"space-between"},size:"large"},i.a.createElement(P.a.Button,{className:m.a.rb,value:1},"\u7B80\u5355"),i.a.createElement(P.a.Button,{className:m.a.rb,value:2},"\u9002\u4E2D"),i.a.createElement(P.a.Button,{className:m.a.rb,value:3},"\u56F0\u96BE"))),i.a.createElement(C.a.Item,{label:"\u8003\u8BD5\u987B\u77E5",name:"exam_notes"},i.a.createElement(Y,{placeholder:"\u8003\u751F\u5FC5\u987B\u4E25\u683C\u9075\u5B88\u8003\u573A\u7EAA\u5F8B\uFF0C\u4E0D\u51C6\u5192\u540D\u9876\u66FF\uFF0C\u4E0D\u51C6\u6709\u4EFB\u4F55\u4F5C\u5F0A\u884C\u4E3A\u3002\u5982\u53D1\u73B0\u8FDD\u7EAA\uFF0C\u5E76\u7ED9\u4E88\u4E25\u5389\u5904\u5206\u3002",rows:4,maxLength:300}))),i.a.createElement("div",{className:m.a.btns},i.a.createElement(K.a,{className:"mr40",onClick:function(){return _.d.push("/paperlibrary")}},"\u8FD4\u56DE"),i.a.createElement(K.a,{type:"primary",onClick:Object(O.a)(f.a.mark(function un(){return f.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,It.validateFields();case 2:ht(1);case 3:case"end":return rt.stop()}},un)}))},"\u4E0B\u4E00\u6B65"))),i.a.createElement(de,{tabs:Ze,dispatch:Le,editData:bt,setFatherTabs:ht,formValue:Yt})))},q=Be.default=Object(_.a)(function(ae){var re=ae.paperlibrary,Ee=ae.user,xe=ae.globalSetting;return{paperlibrary:re,user:Ee,globalSetting:xe}})(Z)},"E/GV":function(Je,Be,H){Je.exports=H.p+"static/swenjianjia.1640bf70.svg"},ELLl:function(Je,Be,H){(function(ne){ne(H("VrN/"))})(function(ne){var G={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},D=ne.Pos;ne.defineOption("autoCloseBrackets",!1,function(b,x,f){f&&f!=ne.Init&&(b.removeKeyMap(k),b.state.closeBrackets=null),x&&(P(K(x,"pairs")),b.state.closeBrackets=x,b.addKeyMap(k))});function K(b,x){return x=="pairs"&&typeof b=="string"?b:typeof b=="object"&&b[x]!=null?b[x]:G[x]}var k={Backspace:O,Enter:A};function P(b){for(var x=0;x=0;i--){var _=l[i].head;b.replaceRange("",D(_.line,_.ch-1),D(_.line,_.ch+1),"+delete")}}function A(b){var x=M(b),f=x&&K(x,"explode");if(!f||b.getOption("disableInput"))return ne.Pass;for(var l=b.listSelections(),i=0;i0;return{anchor:new D(b.anchor.line,b.anchor.ch+(x?-1:1)),head:new D(b.head.line,b.head.ch+(x?1:-1))}}function C(b,x){var f=M(b);if(!f||b.getOption("disableInput"))return ne.Pass;var l=K(f,"pairs"),i=l.indexOf(x);if(i==-1)return ne.Pass;for(var c=K(f,"closeBefore"),_=K(f,"triples"),v=l.charAt(i+1)==x,m=b.listSelections(),u=i%2==0,y,d=0;d=0&&b.getRange(s,D(s.line,s.ch+3))==x+x+x?o="skipThree":o="skip";else if(v&&s.ch>1&&_.indexOf(x)>=0&&b.getRange(D(s.line,s.ch-2),s)==x+x){if(s.ch>2&&/\bstring/.test(b.getTokenTypeAt(D(s.line,s.ch-2))))return ne.Pass;o="addFour"}else if(v){var p=s.ch==0?" ":b.getRange(D(s.line,s.ch-1),s);if(!ne.isWordChar(g)&&p!=x&&!ne.isWordChar(p))o="both";else return ne.Pass}else if(u&&(g.length===0||/\s/.test(g)||c.indexOf(g)>-1))o="both";else return ne.Pass;if(!y)y=o;else if(y!=o)return ne.Pass}var E=i%2?l.charAt(i-1):x,L=i%2?x:l.charAt(i+1);b.operation(function(){if(y=="skip")b.execCommand("goCharRight");else if(y=="skipThree")for(var F=0;F<3;F++)b.execCommand("goCharRight");else if(y=="surround"){for(var j=b.getSelections(),F=0;F1&&arguments[1]!==void 0?arguments[1]:1,de=Ae.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;return Object(u.a)(I).map(function(ie,ue){if(!k.isValidElement(ie)||!ie.type)return null;var fe=ie.type.isSelectOptGroup,ve=ie.key,pe=ie.props,te=pe.children,ee=Object(N.a)(pe,["children"]);return $||!fe?y(ie):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(ve===null?ue:ve,"__"),label:ve},ee),{},{options:d(te)})}).filter(function(ie){return ie})}var h=H("2Qr1"),s=H("qNPg"),o=H("U8pU"),g=H("Kwbf"),p=H("WKfj");function E(I){var $=I.mode,ie=I.options,ue=I.children,fe=I.backfill,ve=I.allowClear,pe=I.placeholder,te=I.getInputElement,ee=I.showSearch,se=I.onSearch,Q=I.defaultOpen,J=I.autoFocus,he=I.labelInValue,Ce=I.value,De=I.inputValue,we=I.optionLabelProp,Me=$==="multiple"||$==="tags",Te=ee!==void 0?ee:Me||$==="combobox",_e=ie||d(ue);if(Object(g.a)($!=="tags"||_e.every(function(Ie){return!Ie.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),$==="tags"||$==="combobox"){var Pe=_e.some(function(Ie){return Ie.options?Ie.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in Ie?Ie.value:Ie.key)=="number"});Object(g.a)(!Pe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(g.a)($!=="combobox"||!we,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(g.a)($==="combobox"||!fe,"`backfill` only works with `combobox` mode."),Object(g.a)($==="combobox"||!te,"`getInputElement` only work with `combobox` mode."),Object(g.b)($!=="combobox"||!te||!ve||!pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),se&&!Te&&$!=="combobox"&&$!=="tags"&&Object(g.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(g.b)(!Q||J,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ce!=null){var je=Object(p.d)(Ce);Object(g.a)(!he||je.every(function(Ie){return Object(o.a)(Ie)==="object"&&("key"in Ie||"value"in Ie)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(g.a)(!Me||Array.isArray(Ce),"`value` should be array when `mode` is `multiple` or `tags`")}if(ue){var Qe=null;Object(u.a)(ue).some(function(Ie){if(!k.isValidElement(Ie)||!Ie.type)return!1;var Ae=Ie.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var et=Object(u.a)(Ie.props.children).every(function(qe){return!k.isValidElement(qe)||!Ie.type||qe.type.isSelectOption?!0:(Qe=qe.type,!1)});return!et}return Qe=Ae,!0}),Qe&&Object(g.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Qe.displayName||Qe.name||Qe,"`.")),Object(g.a)(De===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=E,F=Object(s.a)({prefixCls:"rc-select",components:{optionList:l},convertChildrenToData:d,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:L,fillOptionsWithMissingValue:h.a}),j=function(I){Object(D.a)(ie,I);var $=Object(K.a)(ie);function ie(){var ue;return Object(ne.a)(this,ie),ue=$.apply(this,arguments),ue.selectRef=k.createRef(),ue.focus=function(){ue.selectRef.current.focus()},ue.blur=function(){ue.selectRef.current.blur()},ue}return Object(G.a)(ie,[{key:"render",value:function(){return k.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),ie}(k.Component);j.Option=c,j.OptGroup=v;var V=j,B=Be.c=V},M8RZ:function(Je,Be,H){"use strict";H.d(Be,"a",function(){return O});var ne=H("fWQN"),G=H("mtLc"),D=H("yKVA"),K=H("879j"),k=H("cDcd"),P=H.n(k),N=H("faye"),M=H.n(N),O=function(A){Object(D.a)(C,A);var T=Object(K.a)(C);function C(R){var S;Object(ne.a)(this,C),S=T.call(this,R);var b=window.document;return S.node=b.createElement("div"),b.body.appendChild(S.node),S}return Object(G.a)(C,[{key:"render",value:function(){var S=this.props.children;return Object(N.createPortal)(S,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),C}(P.a.Component)},NvD2:function(Je,Be,H){"use strict";H.d(Be,"a",function(){return P});var ne=H("Kwbf");function G(N,M){var O=new Set;return N.forEach(function(A){M.has(A)||O.add(A)}),O}function D(N){var M=N||{},O=M.disabled,A=M.disableCheckbox,T=M.checkable;return!!(O||A)||T===!1}function K(N,M,O,A){for(var T=new Set(N),C=new Set,R=0;R<=O;R+=1){var S=M.get(R)||new Set;S.forEach(function(l){var i=l.key,c=l.node,_=l.children,v=_===void 0?[]:_;T.has(i)&&!A(c)&&v.filter(function(m){return!A(m.node)}).forEach(function(m){T.add(m.key)})})}for(var b=new Set,x=O;x>=0;x-=1){var f=M.get(x)||new Set;f.forEach(function(l){var i=l.parent,c=l.node;if(A(c)||!l.parent||b.has(l.parent.key))return;if(A(l.parent.node)){b.add(i.key);return}var _=!0,v=!1;(i.children||[]).filter(function(m){return!A(m.node)}).forEach(function(m){var u=m.key,y=T.has(u);_&&!y&&(_=!1),!v&&(y||C.has(u))&&(v=!0)}),_&&T.add(i.key),v&&C.add(i.key),b.add(i.key)})}return{checkedKeys:Array.from(T),halfCheckedKeys:Array.from(G(C,T))}}function k(N,M,O,A,T){for(var C=new Set(N),R=new Set(M),S=0;S<=A;S+=1){var b=O.get(S)||new Set;b.forEach(function(i){var c=i.key,_=i.node,v=i.children,m=v===void 0?[]:v;!C.has(c)&&!R.has(c)&&!T(_)&&m.filter(function(u){return!T(u.node)}).forEach(function(u){C.delete(u.key)})})}R=new Set;for(var x=new Set,f=A;f>=0;f-=1){var l=O.get(f)||new Set;l.forEach(function(i){var c=i.parent,_=i.node;if(T(_)||!i.parent||x.has(i.parent.key))return;if(T(i.parent.node)){x.add(c.key);return}var v=!0,m=!1;(c.children||[]).filter(function(u){return!T(u.node)}).forEach(function(u){var y=u.key,d=C.has(y);v&&!d&&(v=!1),!m&&(d||R.has(y))&&(m=!0)}),v||C.delete(c.key),m&&R.add(c.key),x.add(c.key)})}return{checkedKeys:Array.from(C),halfCheckedKeys:Array.from(G(R,C))}}function P(N,M,O,A){var T=[],C;A?C=A:C=D;var R=new Set(N.filter(function(f){var l=!!O[f];return l||T.push(f),l})),S=new Map,b=0;Object.keys(O).forEach(function(f){var l=O[f],i=l.level,c=S.get(i);c||(c=new Set,S.set(i,c)),c.add(l),b=Math.max(b,i)}),Object(ne.a)(!T.length,"Tree missing follow keys: ".concat(T.slice(0,100).map(function(f){return"'".concat(f,"'")}).join(", ")));var x;return M===!0?x=K(R,S,b,C):x=k(R,M.halfCheckedKeys,S,b,C),x}},O2Wb:function(Je,Be,H){Je.exports={flex:"flex___2gmSR",flex1:"flex1___3Tu1g",color666:"color666___2uyGL",error:"error___yJ86W",deleteIcon:"deleteIcon___1D2tg",addIcon:"addIcon___2VIYB"}},OLES:function(Je,Be,H){"use strict";var ne=H("U8pU"),G=H("VTBJ"),D=H("Ff2n"),K=H("cDcd"),k=H("uciX"),P=H("7ixt"),N=function(R){var S=R.overlay,b=R.prefixCls,x=R.id,f=R.overlayInnerStyle;return K.createElement("div",{className:"".concat(b,"-inner"),id:x,role:"tooltip",style:f},typeof S=="function"?S():S)},M=N,O=function(R,S){var b=R.overlayClassName,x=R.trigger,f=x===void 0?["hover"]:x,l=R.mouseEnterDelay,i=l===void 0?0:l,c=R.mouseLeaveDelay,_=c===void 0?.1:c,v=R.overlayStyle,m=R.prefixCls,u=m===void 0?"rc-tooltip":m,y=R.children,d=R.onVisibleChange,h=R.afterVisibleChange,s=R.transitionName,o=R.animation,g=R.placement,p=g===void 0?"right":g,E=R.align,L=E===void 0?{}:E,F=R.destroyTooltipOnHide,j=F===void 0?!1:F,V=R.defaultVisible,B=R.getTooltipContainer,I=R.overlayInnerStyle,$=Object(D.a)(R,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ie=Object(K.useRef)(null);Object(K.useImperativeHandle)(S,function(){return ie.current});var ue=Object(G.a)({},$);"visible"in R&&(ue.popupVisible=R.visible);var fe=function(){var se=R.arrowContent,Q=se===void 0?null:se,J=R.overlay,he=R.id;return[K.createElement("div",{className:"".concat(u,"-arrow"),key:"arrow"},Q),K.createElement(M,{key:"content",prefixCls:u,id:he,overlay:J,overlayInnerStyle:I})]},ve=!1,pe=!1;if(typeof j=="boolean")ve=j;else if(j&&Object(ne.a)(j)==="object"){var te=j.keepParent;ve=te===!0,pe=te===!1}return K.createElement(k.a,Object.assign({popupClassName:b,prefixCls:u,popup:fe,action:f,builtinPlacements:P.a,popupPlacement:p,ref:ie,popupAlign:L,getPopupContainer:B,onPopupVisibleChange:d,afterPopupVisibleChange:h,popupTransitionName:s,popupAnimation:o,defaultPopupVisible:V,destroyPopupOnHide:ve,autoDestroy:pe,mouseLeaveDelay:_,popupStyle:v,mouseEnterDelay:i},ue),y)},A=Object(K.forwardRef)(O),T=Be.a=A},OZM5:function(Je,Be,H){"use strict";H.d(Be,"b",function(){return A}),H.d(Be,"a",function(){return T}),H.d(Be,"k",function(){return C}),H.d(Be,"h",function(){return R}),H.d(Be,"i",function(){return S}),H.d(Be,"g",function(){return b}),H.d(Be,"c",function(){return x}),H.d(Be,"d",function(){return f}),H.d(Be,"j",function(){return c}),H.d(Be,"e",function(){return _}),H.d(Be,"f",function(){return v});var ne=H("KQm4"),G=H("U8pU"),D=H("Ff2n"),K=H("cDcd"),k=H.n(K),P=H("Kwbf"),N=H("WaYH"),M=.25,O=2;function A(m,u){var y=m.slice(),d=y.indexOf(u);return d>=0&&y.splice(d,1),y}function T(m,u){var y=m.slice();return y.indexOf(u)===-1&&y.push(u),y}function C(m){return m.split("-")}function R(m,u){return"".concat(m,"-").concat(u)}function S(m){return m&&m.type&&m.type.isTreeNode}function b(m,u){var y=[m],d=u[m];function h(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(o){var g=o.key,p=o.children;y.push(g),h(p)})}return h(d.children),y}function x(m,u){var y=m.clientY,d=u.selectHandle.getBoundingClientRect(),h=d.top,s=d.bottom,o=d.height,g=Math.max(o*M,O);return y<=h+g?-1:y>=s-g?1:0}function f(m,u){if(!m)return;var y=u.multiple;return y?m.slice():m.length?[m[0]]:m}var l=function(u){return u};function i(m,u){if(!m)return[];var y=u||{},d=y.processProps,h=d===void 0?l:d,s=Array.isArray(m)?m:[m];return s.map(function(o){var g=o.children,p=Object(D.a)(o,["children"]),E=i(g,u);return k.a.createElement(N.a,Object.assign({},h(p)),E)})}function c(m){if(!m)return null;var u;if(Array.isArray(m))u={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(G.a)(m)==="object")u={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(P.a)(!1,"`checkedKeys` is not an array or an object"),null;return u}function _(m,u){var y=new Set;function d(h){if(y.has(h))return;var s=u[h];if(!s)return;y.add(h);var o=s.parent,g=s.node;if(g.disabled)return;o&&d(o.key)}return(m||[]).forEach(function(h){d(h)}),Object(ne.a)(y)}function v(m){var u={};return Object.keys(m).forEach(function(y){(y.startsWith("data-")||y.startsWith("aria-"))&&(u[y]=m[y])}),u}},Ot1p:function(Je,Be,H){"use strict";var ne=H("2qtc"),G=H("kLXV"),D=H("rAM+"),K=H("miYZ"),k=H("tsqr"),P=H("9og8"),N=H("tJVT"),M=H("jrin"),O=H("WmNS"),A=H.n(O),T=H("cDcd"),C=H.n(T),R=H("VrN/"),S=H.n(R),b=H("bdgK"),x=H("p77/"),f=H("Bd2K"),l=H("ELLl"),i=H("19Vz"),c=H("lZu9"),_=H("+NIl"),v=H("kSUc"),m=H("9Bee"),u=function(re){var Ee=re.value,xe=Ee===void 0?"":Ee,Ve=re.className,Le=re.showTextOnly,We=re.showLines,Ot=re.style,Ze=Ot===void 0?{}:Ot,ht=Object(T.useMemo)(function(){return""},[xe]);return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{dangerouslySetInnerHTML:{__html:ht}}))},y=H("0Owb"),d=H("dejd"),h=H("C+DQ"),s=H("1vsH"),o=H("m3rI"),g=[{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 p(re){var Ee=re.onActionCallback,xe=re.title,Ve=re.icon,Le=re.actionName,We=re.className,Ot=We===void 0?"":We,Ze=re.children;function ht(){Ee(Le)}return C.a.createElement("a",{title:xe,className:Ot,onClick:ht},C.a.createElement("i",{className:"md-iconfont ".concat(Ve)}),Ze)}var E=function(re){var Ee=re.watch,xe=re.showNullButton,Ve=re.onActionCallback,Le=re.fullScreen,We=re.insertTemp,Ot=re.hidetoolBar,Ze=re.uuid,ht=re.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(s.G)("_educoder_session_login"),"&_educoder_session=").concat(Object(s.G)("_educoder_session"),"&key=").concat(Ze,"&api=").concat(encodeURIComponent(o.a.PROXY_SERVER)));var Ut=[].concat(g,[{title:"".concat(Ee?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Ee?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return C.a.createElement("ul",{className:"markdown-toolbar-container"},!Ot&&Ut.map(function(Ke,It){return C.a.createElement("li",{key:It},Ke.actionName?C.a.createElement(p,Object(y.a)({},Ke,{onActionCallback:Ve})):C.a.createElement("span",{className:"v-line"}))}),xe?C.a.createElement("li",null,C.a.createElement(p,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ve},C.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,We&&C.a.createElement("li",null,C.a.createElement(p,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(We),onActionCallback:Ve},C.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),C.a.createElement("li",{className:"btn-full-screen"},C.a.createElement(p,{icon:"".concat(Le?"icon-shrink":"icon-enlarge"),title:Le?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ve})))},L=H("M8RZ"),F=H("+L6B"),j=H("2/Rp"),V=H("y8nQ"),B=H("Vl3Y"),I=H("5NDa"),$=H("5rEg"),ie={labelCol:{span:4},wrapperCol:{span:20}},ue=function(re){var Ee=re.callback,xe=re.onCancel;function Ve(Le){Ee(Le)}return C.a.createElement(B.a,Object(y.a)({},ie,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ve}),C.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},C.a.createElement($.a,null)),C.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},C.a.createElement($.a,null)),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(j.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),C.a.createElement(j.a,{type:"ghost",onClick:xe},"\u53D6\u6D88")))},fe=H("7ahc"),ve=H("HmJG"),pe=H("BjJ7"),te=B.a.useForm,ee={width:280,marginRight:10},se={labelCol:{span:5},wrapperCol:{span:19}},Q=function(re){var Ee=re.callback,xe=re.onCancel,Ve=te(),Le=Object(N.a)(Ve,1),We=Le[0];function Ot(Ut){Ee(Ut)}function Ze(Ut,Ke){if(Ut.status===-1){k.b.error(Ut.message);return}We.setFieldsValue({src:"/api/attachments/".concat(Ut.id),type:Ke.type})}function ht(Ut){var Ke=Ut.target.files[0];he(Ke,Ze)}return C.a.createElement(B.a,Object(y.a)({form:We},se,{className:"upload-image-panel",onFinish:Ot}),C.a.createElement(B.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},C.a.createElement("div",{className:"flex-container"},C.a.createElement(B.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},C.a.createElement($.a,{style:ee})),C.a.createElement(J,{onFileChange:ht}))),C.a.createElement(B.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},C.a.createElement($.a,{style:{width:264}})),C.a.createElement(B.a.Item,{style:{textAlign:"right"}},C.a.createElement(j.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),C.a.createElement(j.a,{type:"ghost",onClick:xe},"\u53D6\u6D88")))};function J(re){var Ee=re.onFileChange;return C.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",C.a.createElement("input",{type:"file",onChange:Ee}))}function he(re,Ee){if(!re)throw new String("\u6CA1\u6709\u6587\u4EF6");var xe=new FormData;xe.append("editormd-image-file",re),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var Ve=new window.XMLHttpRequest;Ve.withCredentials=!0,Ve.addEventListener("load",function(Le){Ee(JSON.parse(Le.target.responseText),re)},!1),Ve.addEventListener("error",function(Le){console.error(Le)},!1),Ve.open("POST","".concat(pe.a,"/api/attachments.json")),Ve.send(xe)}var Ce=H("giR+"),De=H("fyUT"),we=H("7Kak"),Me=H("9yH6"),Te=Me.a.Group,_e={margin:"0 8px"},Pe=function(re){var Ee=re.callback,xe=re.onCancel;function Ve(Le){Ee(Le)}return C.a.createElement(B.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ve},C.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},C.a.createElement("span",{style:_e},"\u5355\u5143\u683C\u6570\uFF1A"),C.a.createElement("span",{style:_e},"\u884C\u6570"),C.a.createElement(B.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},C.a.createElement(De.a,null)),C.a.createElement("span",{style:_e},"\u5217\u6570"),C.a.createElement(B.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},C.a.createElement(De.a,null))),C.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},C.a.createElement("span",{style:_e},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),C.a.createElement(B.a.Item,{name:"align"},C.a.createElement(Te,null,C.a.createElement(Me.a,{value:"default"},C.a.createElement("i",{className:"fa fa-align-justify"})),C.a.createElement(Me.a,{value:"left"},C.a.createElement("i",{className:"fa fa-align-left"})),C.a.createElement(Me.a,{value:"center"},C.a.createElement("i",{className:"fa fa-align-center"})),C.a.createElement(Me.a,{value:"right"},C.a.createElement("i",{className:"fa fa-align-right"}))))),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(j.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),C.a.createElement(j.a,{type:"ghost",onClick:xe},"\u53D6\u6D88")))},je=H("ErOA"),Qe=H("7Cbv"),Ie="link",Ae="upload-image",et="code-block",qe="add-table",lt="------------",$e={default:lt,left:":".concat(lt),center:":".concat(lt,":"),right:"".concat(lt,":")},ft=H("9VGf"),ut,st;function Se(){}var Et=0,dt=1e4,Re="\u2581",He=`
**\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 me(re){return/^\d+$/.test(re)?"".concat(re,"px"):re}var le=navigator.platform.toUpperCase().indexOf("MAC")>=0,de=le?"Cmd":"Ctrl",Y=["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"],Z=(ut={},Object(M.a)(ut,de+"-B","bold"),Object(M.a)(ut,de+"-I","italic"),ut),q=(st={},Object(M.a)(st,Ie,"\u6DFB\u52A0\u94FE\u63A5"),Object(M.a)(st,et,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(M.a)(st,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(M.a)(st,qe,"\u6DFB\u52A0\u8868\u683C"),st),ae=Be.a=function(re){var Ee=re.defaultValue,xe=Ee===void 0?"":Ee,Ve=re.onChange,Le=re.width,We=Le===void 0?"100%":Le,Ot=re.height,Ze=Ot===void 0?400:Ot,ht=re.miniToolbar,Ut=ht===void 0?!1:ht,Ke=re.isFocus,It=Ke===void 0?!1:Ke,Zt=re.watch,At=re.insertTemp,Yt=re.mode,Kt=Yt===void 0?"markdown":Yt,Pt=re.id,Rt=Pt===void 0?"markdown-editor-id":Pt,pt=re.showResizeBar,Mt=pt===void 0?!1:pt,_t=re.noStorage,Tt=_t===void 0?!1:_t,bt=re.showNullButton,tt=bt===void 0?!1:bt,Fe=re.hidetoolBar,Jt=Fe===void 0?!1:Fe,Wt=re.fullScreen,qt=Wt===void 0?!1:Wt,Vt=re.onBlur,un=re.onCMBeforeChange,$t=re.onFullScreen,rt=re.className,Ne=rt===void 0?"":rt,vt=re.disablePaste,In=vt===void 0?!1:vt,fr=re.placeholder,gr=fr===void 0?"":fr,Tn=re.values,Ht=Tn===void 0?"":Tn,wt=Object(T.useState)(null),Sn=Object(N.a)(wt,2),Ge=Sn[0],sn=Sn[1],Dn=Object(T.useState)(xe),Kr=Object(N.a)(Dn,2),Hr=Kr[0],Un=Kr[1],aa=Object(T.useState)(Zt),ia=Object(N.a)(aa,2),yr=ia[0],kr=ia[1],oa=Object(T.useState)(qt),qr=Object(N.a)(oa,2),Er=qr[0],Nn=qr[1],ea=Object(T.useState)(""),sa=Object(N.a)(ea,2),Wn=sa[0],mt=sa[1],ye=Object(T.useState)(0),Xe=Object(N.a)(ye,2),Lt=Xe[0],xt=Xe[1],Ct=Object(T.useState)(Ze),Nt=Object(N.a)(Ct,2),En=Nt[0],bn=Nt[1],nn=Object(T.useState)(!1),Ln=Object(N.a)(nn,2),Pn=Ln[0],er=Ln[1],Fn=Object(T.useRef)(Object(Qe.a)()),Ir=Object(T.useRef)(!1),Qn=Object(T.useRef)(),Cn=Object(T.useRef)(),hr=Object(T.useRef)(),wr=Object(T.useRef)(),Ar=Object(T.useRef)(),Na=function(){var kt=Object(P.a)(A.a.mark(function zt(){var Bt,en;return A.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return pn.next=2,Object(je.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Fn.current}});case 2:en=pn.sent,en!=null&&(Bt=en.attachments)!==null&&Bt!==void 0&&Bt.length&&(console.log("cm:",Ge,Cn),en.attachments.map(function(an){an.content_type.indexOf("image")>-1?Ge.replaceSelection(".concat(an.content_type,")")):an.content_type.indexOf("video")>-1?Ge.replaceSelection('')):an.content_type.indexOf("pdf")>-1?Ge.replaceSelection('').concat(an.name,"")):Ge.replaceSelection("[".concat(an.name,"](").concat(o.a.API_SERVER,"/api/attachments/").concat(an.id,"?type=").concat(an.content_type,")"))}));case 4:case"end":return pn.stop()}},zt)}));return function(){return kt.apply(this,arguments)}}();Object(T.useEffect)(function(){Un(Ht),Ge==null||Ge.setValue(Ht)},[Ht]),Object(T.useEffect)(function(){$t==null||$t(Er)},[Er]),Object(T.useEffect)(function(){if(Cn.current){var kt=S.a.fromTextArea(Cn.current,{mode:Kt,lineNumbers:!Ut,lineWrapping:!0,value:xe,autoCloseTags:!0,autoCloseBrackets:!0});It&&kt.focus();function zt(Bt,en){if(In){en.preventDefault();return}var on=en.clipboardData;if(on){var pn=on.types.toString(),an=on.items;if(pn==="Files"||on.types.indexOf("Files")>-1){if(en.preventDefault(),Kt=="stex")return;try{var Kn,tr=an[1];((Kn=an[0])===null||Kn===void 0?void 0:Kn.kind)==="file"&&(tr=an[0]);var rn=tr.getAsFile(),Gr=rn.name.split(".").pop();he(rn,function(dn){if(dn.id){var Vn,Hn,Ur;(rn==null||((Vn=rn.type)===null||Vn===void 0)?void 0:Vn.indexOf("image"))>-1?kt.replaceSelection(".concat(dn.content_type,")")):(rn==null||((Hn=rn.type)===null||Hn===void 0)?void 0:Hn.indexOf("video"))>-1?kt.replaceSelection('')):(rn==null||((Ur=rn.type)===null||Ur===void 0)?void 0:Ur.indexOf("pdf"))>-1?kt.replaceSelection('').concat(rn.name,"")):Y.includes(Gr)?kt.replaceSelection('').concat(rn.name,"")):kt.replaceSelection("[".concat(rn.name,"](").concat(o.a.API_SERVER,"/api/attachments/").concat(dn.id,"?type=").concat(dn.content_type,")"))}else(dn==null?void 0:dn.status)===401&&(document.location.href="/user/login")})}catch(dn){k.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return kt.on("paste",zt),kt.on("dragleave",function(Bt,en){hr.current.classList.remove("mouse-hover-md")}),kt.on("dragover",function(Bt,en){hr.current.classList.add("mouse-hover-md")}),kt.on("drop",function(Bt,en){hr.current.classList.add("mouse-hover-md");var on;if(on=en.dataTransfer.files,on.length>0){en.preventDefault(),en.stopPropagation();for(var pn=function(tr){var rn=on[tr],Gr=rn.name.split(".").pop();he(rn,function(dn){if(dn.id){var Vn,Hn,Ur;(rn==null||((Vn=rn.type)===null||Vn===void 0)?void 0:Vn.indexOf("image"))>-1?kt.replaceSelection(".concat(dn.content_type,")")):(rn==null||((Hn=rn.type)===null||Hn===void 0)?void 0:Hn.indexOf("video"))>-1?kt.replaceSelection('')):(rn==null||((Ur=rn.type)===null||Ur===void 0)?void 0:Ur.indexOf("pdf"))>-1?kt.replaceSelection('').concat(rn.name,"")):Y.includes(Gr)?kt.replaceSelection('').concat(rn.name,"")):kt.replaceSelection("[".concat(rn.name,"](").concat(o.a.API_SERVER,"/api/attachments/").concat(dn.id,"?type=").concat(dn.content_type,")"))}else(dn==null?void 0:dn.status)===401&&(document.location.href="/user/login")})},an=0;an0||an.target.offsetWidth>0)&&(br(),Ge.setSize("100%","100%"),Ge.refresh())}}catch(Kn){on.e(Kn)}finally{on.f()}});return Bt.observe(Cn.current.parentElement),Bt}if(Ge){var zt=kt();return function(){zt.unobserve(Cn.current.parentElement)}}},[Ge,br]),Object(T.useEffect)(function(){if(Ge){for(var kt=[],zt=function(){var an=en[Bt];on=Object(N.a)(an,2);var Kn=on[0],tr=on[1],rn=Object(M.a)({},Kn,function(){Fa(tr)});kt.push(rn),Ge.addKeyMap(rn)},Bt=0,en=Object.entries(Z);Bt0){var kt=new Date().getTime(),zt=window.sessionStorage.getItem(Rt);kt>=Lt+dt&&(!zt||zt!==Hr)&&(window.sessionStorage.setItem(Rt,Hr),er(!0))}},dt),Object(T.useEffect)(function(){kr(Zt)},[Ge,Zt]),Object(T.useEffect)(function(){Ge&&(It&&Ge.focus())},[Ge,It]),Object(T.useEffect)(function(){if(yr&&Ge){var kt=Ge.getScrollerElement();function zt(Bt){var en=Bt.target;if(Ar.current){var on=en.scrollTop/en.scrollHeight;Ar.current.scrollTop=Ar.current.scrollHeight*on}}return kt.addEventListener("scroll",zt),function(){kt.removeEventListener("scroll",zt)}}},[Ge,yr]),Object(T.useEffect)(function(){if(Ge&&un){function kt(zt,Bt){un(zt,Bt)}return Ge.on("beforeChange",kt),function(){Ge.off("beforeChange",kt)}}},[Ge,un]),Object(T.useEffect)(function(){if(Ge&&Vt){function kt(){Vt(Ge.getValue())}return Ge.on("blur",kt),function(){Ge.off("blur",kt)}}},[Ge,Vt]),Object(T.useEffect)(function(){if(Ge){function kt(zt){var Bt=zt.getValue();Un(Bt),xt(new Date().getTime()),zt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ve&&Ve(Bt)}return Ge.on("change",kt),function(){Ge.off("change",kt)}}},[Ge,Ve]),Object(T.useEffect)(function(){Ge&&(xe==null?(Ge.setValue(""),Un("")):xe!==Ge.getValue()&&(Ge.setValue(xe),Un(xe),Ge.setCursor(Ge.lineCount(),0)))},[Ge,xe]);var Fa=Object(T.useCallback)(function(kt){var zt=Ge.getCursor(),Bt=Ge.getSelection(),en=Bt.split(`
`);switch(kt){case"bold":return Ge.replaceSelection("**"+Bt+"**"),Bt===""&&Ge.setCursor(zt.line,zt.ch+2),Ge.focus();case"italic":return Ge.replaceSelection("*"+Bt+"*"),Bt===""&&Ge.setCursor(zt.line,zt.ch+1),Ge.focus();case"code":return Ge.replaceSelection("`"+Bt+"`"),Bt===""&&Ge.setCursor(zt.line,zt.ch+1),Ge.focus();case"inline-latex":return Ge.replaceSelection("`$$"+Bt+"$$`"),Bt===""&&Ge.setCursor(zt.line,zt.ch+3),Ge.focus();case"latex":return Ge.replaceSelection("```latex\n"+Bt+"\n```"),Ge.setCursor(zt.line+1,Bt.length+1),Ge.focus();case"line-break":return Ge.replaceSelection(`
`),Ge.focus();case"list-ul":return Bt===""?Ge.replaceSelection("- "+Bt):Ge.replaceSelection(en.map(function(on){return on===""?"":"- ".concat(on)}).join(`
`)),Ge.focus();case"list-ol":return Bt===""?Ge.replaceSelection("1. "+Bt):Ge.replaceSelection(en.map(function(on,pn){return on===""?"":"".concat(pn+1,". ").concat(on)}).join(`
`)),Ge.focus();case"add-null-ch":return Bt===""&&Ge.setCursor(zt.line,zt.ch+1),Ge.replaceSelection(Re),Ge.focus();case"inster-template-1":return Bt===""&&Ge.setCursor(zt.line,zt.ch),Ge.replaceSelection(He),Ge.focus();case"eraser":return Ge.setValue(""),Ge.focus();case"trigger-watch":return kr(!yr),Ge.focus();case"trigger-full-screen":return Nn(!Er),Ge.focus();case Ie:mt(Ie);return;case et:mt(et);return;case Ae:mt(Ae);return;case qe:mt(qe);return;default:throw new Error}},[Ge,yr,Er]),ta=Object(T.useCallback)(function(kt){mt("");switch(Wn){case Ie:var zt=kt.title,Bt=kt.link;return Ge.replaceSelection("[".concat(zt,"](").concat(Bt,")")),Ge.focus();case et:var en=kt.language,on=kt.content;return Ge.replaceSelection(["```"+en,on,"```"].join(`
`)),Ge.focus();case Ae:var pn=kt.src,an=kt.alt;return an?Ge.replaceSelection(".concat(pn,' "').concat(an,'" )')):Ge.replaceSelection("")),Ge.focus();case qe:for(var Kn=kt.row,tr=kt.col,rn=kt.align,Gr=`
`,dn=0;dn300&&(Kn=300);var tr=Ze+Kn+"px";bn(tr)}}return kt.addEventListener("mousedown",en),document.addEventListener("mousemove",pn),document.addEventListener("mouseup",on),function(){kt.removeEventListener("mousedown",en),document.removeEventListener("mousemove",pn),document.removeEventListener("mouseup",on)}}},[Ge,wr]),Object(T.useEffect)(function(){bn(Ze)},[Ze]);var mn=me(We),Xr=me(En),Br={width:mn,height:Xr},fa=Object(T.useMemo)(function(){if(Lt){var kt=new Date(Lt),zt=kt.getHours(),Bt=kt.getMinutes(),en=kt.getSeconds();return zt=zt<10?"0"+zt:zt,Bt=Bt<10?"0"+Bt:Bt,en=en<10?"0"+en:en,"".concat(zt,":").concat(Bt,":").concat(en)}return 0},[Lt]);function $r(){window.sessionStorage.removeItem(Rt),er(!1),xt(0)}function la(){er(!1),xt(0),Ge.setValue(window.sessionStorage.getItem(Rt))}function na(kt,zt){var Bt=Ge.getValue();Bt=Bt.replace(kt,zt),Un(Bt),Ge==null||Ge.setValue(Bt)}return C.a.createElement(T.Fragment,null,C.a.createElement("div",{className:"markdown-editor-wrapper",ref:hr},C.a.createElement("div",{className:"markdown-editor-container ".concat(Ne," ").concat(yr?"on-preview":""," ").concat(Ut?"mini":""," ").concat(Er?"full-screen":""),style:Br},C.a.createElement(E,{insertTemp:At,watch:yr,fullScreen:Er,showNullButton:tt,onActionCallback:Fa,hidetoolBar:Jt,uuid:Fn.current,setOpenPhones:function(){Ir.current=!0}}),C.a.createElement("div",{className:"markdown-editor-body"},C.a.createElement("div",{className:"codemirror-container"},C.a.createElement("textarea",{ref:Cn,placeholder:gr})),yr?C.a.createElement("div",{ref:Ar,className:"preview-container"},Kt==="stex"&&C.a.createElement(u,{value:Hr}),Kt!=="stex"&&C.a.createElement(m.a,{edit:!0,value:Hr,replaces:na})):null))),Mt?C.a.createElement("a",{ref:wr,className:"editor-resize"}):null,C.a.createElement(L.a,null,q[Wn]?C.a.createElement(G.a,{centered:!0,title:q[Wn],visible:!0,onCancel:Vr,footer:null,className:"markdown-popup-form"},Ta):null))}},PGNT:function(Je,Be,H){Je.exports={wrap:"wrap___orWmH",modal:"modal___142IN",titleWrap:"titleWrap___2UWGN",required:"required___lXOtq",title:"title___2wqMf",colorGray:"colorGray___3FkLm",choiceWrap:"choiceWrap___3pbic",answer:"answer___30LSv",activeAnswer:"activeAnswer___3ayAN",deleteIcon:"deleteIcon___2HHly",addIcon:"addIcon___29vcx",editorWrap:"editorWrap___ANVP6",htmlWrap:"htmlWrap___38sLf",radio:"radio___15wok",color333:"color333___sNPjh",color999:"color999___1ofkl",fold:"fold___6rnoE",head:"head___2muph"}},PsQE:function(Je,Be,H){Je.exports={flex_box_center:"flex_box_center___2PkN_",flex_space_between:"flex_space_between___36cDA",flex_box_vertical_center:"flex_box_vertical_center___2c88u",flex_box_center_end:"flex_box_center_end___14cXO",flex_box_column:"flex_box_column___3nalt",wrap:"wrap___3xZrs",left:"left___19hOK",title:"title___3Ti2k",total:"total___3MRC5",list:"list___3pdfL",name:"name___2IcTs",b:"b___2W0Sn",r:"r___2Tpj8",l:"l___1rMKQ",tag:"tag___jj2X5",right:"right___16831",examName:"examName___2TmgX",t:"t___1CJZd",num:"num___1qX6C",topWarp:"topWarp___3WuSr",head:"head___3z9Hq",so:"so___m2B6Z",btn:"btn___20VL7",content:"content___2tTuo",titleWrap:"titleWrap___1cYdQ",single:"single___1BKtz",analysis:"analysis___1qm4Y",text:"text___1JQUf",btnsElse:"btnsElse___2IzAs",btnsWrap:"btnsWrap___3ib37",btns:"btns___2DbBT",modalColumn:"modalColumn___1zs36",modalRow:"modalRow___14b2N",sup:"sup___1CIjI",popover:"popover___Mmcvb"}},QSKd:function(Je,Be,H){Je.exports=H.p+"static/wenhao.50b63ac4.svg"},"RZ/O":function(Je,Be,H){Je.exports=H.p+"static/bi.9c9b0364.svg"},SJMd:function(Je,Be){/**
* @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 H,ne,G,D=!1,K,k;window.PR_SHOULD_USE_CONTINUATION=!0;var P,N;(function(){var M=window,O=["break,continue,do,else,for,if,return,while"],A=[O,"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"],T=[A,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],C=[T,"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"],R=[T,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],S=[T,"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",x=[T,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],f="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",l=[O,"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"],i=[O,"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"],c=[O,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],_=[C,S,R,x,f,l,i,c],v=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,m="str",u="kwd",y="com",d="typ",h="lit",s="pun",o="pln",g="tag",p="dec",E="src",L="atn",F="atv",j="nocode",V="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(Te){for(var _e=0,Pe=!1,je=!1,Qe=0,Ie=Te.length;Qe122||(Y<65||de>90||Et.push([Math.max(65,de)|32,Math.min(Y,90)|32]),Y<97||de>122||Et.push([Math.max(97,de)&~32,Math.min(Y,122)&~32]))}}Et.sort(function(re,Ee){return re[0]-Ee[0]||Ee[1]-re[1]});for(var Z=[],q=[],He=0;Heae[0]&&(ae[1]+1>ae[0]&&Re.push("-"),Re.push(lt(ae[1])))}return Re.push("]"),Re.join("")}function ft(st){for(var Se=st.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")),Et=Se.length,dt=[],Re=0,He=0;Re=2&&de==="["?Se[Re]=$e(me):de!=="\\"&&(Se[Re]=me.replace(/[a-zA-Z]/g,function(q){var ae=q.charCodeAt(0);return"["+String.fromCharCode(ae&~32,ae|32)+"]"}))}return Se.join("")}for(var ut=[],Qe=0,Ie=Te.length;Qe=0;)Pe[ut.charAt(st)]=ft;var Se=ft[1],Et=""+Se;qe.hasOwnProperty(Et)||(et.push(Se),qe[Et]=null)}et.push(/[\0-\uffff]/),je=B(et)})();var Qe=_e.length,Ie=function(Ae){for(var et=Ae.sourceCode,qe=Ae.basePos,lt=Ae.sourceNode,$e=[qe,o],ft=0,ut=et.match(je)||[],st={},Se=0,Et=ut.length;Se=5&&Re.substring(0,5)==="lang-",me&&!(He&&typeof He[1]=="string")&&(me=!1,Re=E),me||(st[dt]=Re)}var Y=ft;if(ft+=dt.length,!me)$e.push(qe+Y,Re);else{var Z=He[1],q=dt.indexOf(Z),ae=q+Z.length;He[2]&&(ae=dt.length-He[2].length,q=ae-Z.length);var re=Re.substring(5);$(lt,qe+Y,dt.substring(0,q),Ie,$e),$(lt,qe+Y+q,Z,J(re,Z),$e),$(lt,qe+Y+ae,dt.substring(ae),Ie,$e)}}Ae.decorations=$e};return Ie}function ve(Te){var _e=[],Pe=[];Te.tripleQuotedStrings?_e.push([m,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Te.multiLineStrings?_e.push([m,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):_e.push([m,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Te.verbatimStrings&&Pe.push([m,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var je=Te.hashComments;je&&(Te.cStyleComments?(je>1?_e.push([y,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):_e.push([y,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Pe.push([m,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):_e.push([y,/^#[^\r\n]*/,null,"#"])),Te.cStyleComments&&(Pe.push([y,/^\/\/[^\r\n]*/,null]),Pe.push([y,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Qe=Te.regexLiterals;if(Qe){var Ie=Qe>1?"":`
\r`,Ae=Ie?".":"[\\S\\s]",et="/(?=[^/*"+Ie+"])(?:[^/\\x5B\\x5C"+Ie+"]|\\x5C"+Ae+"|\\x5B(?:[^\\x5C\\x5D"+Ie+"]|\\x5C"+Ae+")*(?:\\x5D|$))+/";Pe.push(["lang-regex",RegExp("^"+V+"("+et+")")])}var qe=Te.types;qe&&Pe.push([d,qe]);var lt=(""+Te.keywords).replace(/^ | $/g,"");lt.length&&Pe.push([u,new RegExp("^(?:"+lt.replace(/[\s,]+/g,"|")+")\\b"),null]),_e.push([o,/^\s+/,null,` \r
\xA0`]);var $e="^.[^\\s\\w.$@'\"`/\\\\]*";return Te.regexLiterals&&($e+="(?!s*/)"),Pe.push([h,/^@[a-z_$][a-z_$@0-9]*/i,null],[d,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[o,/^[a-z_$][a-z_$@0-9]*/i,null],[h,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[o,/^\\[\s\S]?/,null],[s,new RegExp($e),null]),fe(_e,Pe)}var pe=ve({keywords:_,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function te(Te,_e,Pe){for(var je=/(?:^|\s)nocode(?:\s|$)/,Qe=/\r\n?|\n/,Ie=Te.ownerDocument,Ae=Ie.createElement("li");Te.firstChild;)Ae.appendChild(Te.firstChild);var et=[Ae];function qe(Se){var Et=Se.nodeType;if(Et==1&&!je.test(Se.className))if(Se.nodeName==="br")lt(Se),Se.parentNode&&Se.parentNode.removeChild(Se);else for(var dt=Se.firstChild;dt;dt=dt.nextSibling)qe(dt);else if((Et==3||Et==4)&&Pe){var Re=Se.nodeValue,He=Re.match(Qe);if(He){var me=Re.substring(0,He.index);Se.nodeValue=me;var le=Re.substring(He.index+He[0].length);if(le){var de=Se.parentNode;de.insertBefore(Ie.createTextNode(le),Se.nextSibling)}lt(Se),me||Se.parentNode.removeChild(Se)}}}function lt(Se){for(;!Se.nextSibling;)if(Se=Se.parentNode,!Se)return;function Et(He,me){var le=me?He.cloneNode(!1):He,de=He.parentNode;if(de){var Y=Et(de,1),Z=He.nextSibling;Y.appendChild(le);for(var q=Z;q;q=Z)Z=q.nextSibling,Y.appendChild(q)}return le}for(var dt=Et(Se.nextSibling,0),Re;(Re=dt.parentNode)&&Re.nodeType===1;)dt=Re;et.push(dt)}for(var $e=0;$e=de&&(qe+=2),Ie>=Y&&(ft+=2)}}finally{Re&&(Re.style.display=He)}}var se={};function Q(Te,_e){for(var Pe=_e.length;--Pe>=0;){var je=_e[Pe];se.hasOwnProperty(je)?M.console&&console.warn("cannot override language handler %s",je):se[je]=Te}}function J(Te,_e){return Te&&se.hasOwnProperty(Te)||(Te=/^\s*]*(?:>|$)/],[y,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[s,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^