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