You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Paths__New.378db674.asyn...

123 lines
492 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[175,6,7,16],{"+NIl":function(ot,Ve,p){(function(X){X(p("VrN/"))})(function(X){"use strict";X.defineMode("stex",function(Oe,xe){"use strict";function Ne(ie,I){ie.cmdState.push(I)}function Ee(ie){return ie.cmdState.length>0?ie.cmdState[ie.cmdState.length-1]:null}function ce(ie){var I=ie.cmdState.pop();I&&I.closeBracket()}function B(ie){for(var I=ie.cmdState,j=I.length-1;j>=0;j--){var H=I[j];if(H.name=="DEFAULT")continue;return H}return{styleIdentifier:function(){return null}}}function D(ie,I,j){return function(){this.name=ie,this.bracketNo=0,this.style=I,this.styles=j,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var w={};w.importmodule=D("importmodule","tag",["string","builtin"]),w.documentclass=D("documentclass","tag",["","atom"]),w.usepackage=D("usepackage","tag",["atom"]),w.begin=D("begin","tag",["atom"]),w.end=D("end","tag",["atom"]),w.label=D("label","tag",["atom"]),w.ref=D("ref","tag",["atom"]),w.eqref=D("eqref","tag",["atom"]),w.cite=D("cite","tag",["atom"]),w.bibitem=D("bibitem","tag",["atom"]),w.Bibitem=D("Bibitem","tag",["atom"]),w.RBibitem=D("RBibitem","tag",["atom"]),w.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function te(ie,I){ie.f=I}function Q(ie,I){var j;if(ie.match(/^\\[a-zA-Z@]+/)){var H=ie.current().slice(1);return j=w.hasOwnProperty(H)?w[H]:w.DEFAULT,j=new j,Ne(I,j),te(I,De),j.style}if(ie.match(/^\\[$&%#{}_]/))return"tag";if(ie.match(/^\\[,;!\/\\]/))return"tag";if(ie.match("\\["))return te(I,function(ne,Se){return ve(ne,Se,"\\]")}),"keyword";if(ie.match("\\("))return te(I,function(ne,Se){return ve(ne,Se,"\\)")}),"keyword";if(ie.match("$$"))return te(I,function(ne,Se){return ve(ne,Se,"$$")}),"keyword";if(ie.match("$"))return te(I,function(ne,Se){return ve(ne,Se,"$")}),"keyword";var ae=ie.next();if(ae=="%")return ie.skipToEnd(),"comment";if(ae=="}"||ae=="]"){if(j=Ee(I),j)j.closeBracket(ae),te(I,De);else return"error";return"bracket"}else return ae=="{"||ae=="["?(j=w.DEFAULT,j=new j,Ne(I,j),"bracket"):/\d/.test(ae)?(ie.eatWhile(/[\w.%]/),"atom"):(ie.eatWhile(/[\w\-_]/),j=B(I),j.name=="begin"&&(j.argument=ie.current()),j.styleIdentifier())}function ve(ie,I,j){if(ie.eatSpace())return null;if(j&&ie.match(j))return te(I,Q),"keyword";if(ie.match(/^\\[a-zA-Z@]+/))return"tag";if(ie.match(/^[a-zA-Z]+/))return"variable-2";if(ie.match(/^\\[$&%#{}_]/))return"tag";if(ie.match(/^\\[,;!\/]/))return"tag";if(ie.match(/^[\^_&]/))return"tag";if(ie.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ie.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var H=ie.next();return H=="{"||H=="}"||H=="["||H=="]"||H=="("||H==")"?"bracket":H=="%"?(ie.skipToEnd(),"comment"):"error"}function De(ie,I){var j=ie.peek(),H;return j=="{"||j=="["?(H=Ee(I),H.openBracket(j),ie.eat(j),te(I,Q),"bracket"):/[ \t\r]/.test(j)?(ie.eat(j),null):(te(I,Q),ce(I),Q(ie,I))}return{startState:function(){var ie=xe.inMathMode?function(I,j){return ve(I,j)}:Q;return{cmdState:[],f:ie}},copyState:function(ie){return{cmdState:ie.cmdState.slice(),f:ie.f}},token:function(ie,I){return I.f(ie,I)},blankLine:function(ie){ie.f=Q,ie.cmdState.length=0},lineComment:"%"}}),X.defineMIME("text/x-stex","stex"),X.defineMIME("text/x-latex","stex")})},"19Vz":function(ot,Ve,p){(function(X){X(p("VrN/"))})(function(X){X.defineOption("placeholder","",function(D,w,te){var Q=te&&te!=X.Init;if(w&&!Q)D.on("blur",Ee),D.on("change",ce),D.on("swapDoc",ce),X.on(D.getInputField(),"compositionupdate",D.state.placeholderCompose=function(){Ne(D)}),ce(D);else if(!w&&Q){D.off("blur",Ee),D.off("change",ce),D.off("swapDoc",ce),X.off(D.getInputField(),"compositionupdate",D.state.placeholderCompose),Oe(D);var ve=D.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}w&&!D.hasFocus()&&Ee(D)});function Oe(D){D.state.placeholder&&(D.state.placeholder.parentNode.removeChild(D.state.placeholder),D.state.placeholder=null)}function xe(D){Oe(D);var w=D.state.placeholder=document.createElement("pre");w.style.cssText="height: 0; overflow: visible",w.style.direction=D.getOption("direction"),w.className="CodeMirror-placeholder CodeMirror-line-like";var te=D.getOption("placeholder");typeof te=="string"&&(te=document.createTextNode(te)),w.appendChild(te),D.display.lineSpace.insertBefore(w,D.display.lineSpace.firstChild)}function Ne(D){setTimeout(function(){var w=!1,te=D.getInputField();te.nodeName=="TEXTAREA"?w=!te.value:D.lineCount()==1&&(w=!/[^\u200b]/.test(te.querySelector(".CodeMirror-line").textContent)),w?xe(D):Oe(D)},20)}function Ee(D){B(D)&&xe(D)}function ce(D){var w=D.getWrapperElement(),te=B(D);w.className=w.className.replace(" CodeMirror-empty","")+(te?" CodeMirror-empty":""),te?xe(D):Oe(D)}function B(D){return D.lineCount()===1&&D.getLine(0)===""}})},"1eCo":function(ot,Ve,p){(function(X){X(p("VrN/"))})(function(X){"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},xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};X.defineMode("xml",function(Ne,Ee){var ce=Ne.indentUnit,B={},D=Ee.htmlMode?Oe:xe;for(var w in D)B[w]=D[w];for(var w in Ee)B[w]=Ee[w];var te,Q;function ve(C,re){function $(Y){return re.tokenize=Y,Y(C,re)}var k=C.next();if(k=="<")return C.eat("!")?C.eat("[")?C.match("CDATA[")?$(I("atom","]]>")):null:C.match("--")?$(I("comment","-->")):C.match("DOCTYPE",!0,!0)?(C.eatWhile(/[\w\._\-]/),$(j(1))):null:C.eat("?")?(C.eatWhile(/[\w\._\-]/),re.tokenize=I("meta","?>"),"meta"):(te=C.eat("/")?"closeTag":"openTag",re.tokenize=De,"tag bracket");if(k=="&"){var N;return C.eat("#")?C.eat("x")?N=C.eatWhile(/[a-fA-F\d]/)&&C.eat(";"):N=C.eatWhile(/[\d]/)&&C.eat(";"):N=C.eatWhile(/[\w\.\-:]/)&&C.eat(";"),N?"atom":"error"}else return C.eatWhile(/[^&<]/),null}ve.isInText=!0;function De(C,re){var $=C.next();if($==">"||$=="/"&&C.eat(">"))return re.tokenize=ve,te=$==">"?"endTag":"selfcloseTag","tag bracket";if($=="=")return te="equals",null;if($=="<"){re.tokenize=ve,re.state=Se,re.tagName=re.tagStart=null;var k=re.tokenize(C,re);return k?k+" tag error":"tag error"}else return/[\'\"]/.test($)?(re.tokenize=ie($),re.stringStartCol=C.column(),re.tokenize(C,re)):(C.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ie(C){var re=function($,k){for(;!$.eol();)if($.next()==C){k.tokenize=De;break}return"string"};return re.isInAttribute=!0,re}function I(C,re){return function($,k){for(;!$.eol();){if($.match(re)){k.tokenize=ve;break}$.next()}return C}}function j(C){return function(re,$){for(var k;(k=re.next())!=null;){if(k=="<")return $.tokenize=j(C+1),$.tokenize(re,$);if(k==">")if(C==1){$.tokenize=ve;break}else return $.tokenize=j(C-1),$.tokenize(re,$)}return"meta"}}function H(C,re,$){this.prev=C.context,this.tagName=re,this.indent=C.indented,this.startOfLine=$,(B.doNotIndent.hasOwnProperty(re)||C.context&&C.context.noIndent)&&(this.noIndent=!0)}function ae(C){C.context&&(C.context=C.context.prev)}function ne(C,re){for(var $;;){if(!C.context)return;if($=C.context.tagName,!B.contextGrabbers.hasOwnProperty($)||!B.contextGrabbers[$].hasOwnProperty(re))return;ae(C)}}function Se(C,re,$){return C=="openTag"?($.tagStart=re.column(),Re):C=="closeTag"?de:Se}function Re(C,re,$){return C=="word"?($.tagName=re.current(),Q="tag",oe):B.allowMissingTagName&&C=="endTag"?(Q="tag bracket",oe(C,re,$)):(Q="error",Re)}function de(C,re,$){if(C=="word"){var k=re.current();return $.context&&$.context.tagName!=k&&B.implicitlyClosed.hasOwnProperty($.context.tagName)&&ae($),$.context&&$.context.tagName==k||B.matchClosing===!1?(Q="tag",ee):(Q="tag error",he)}else return B.allowMissingTagName&&C=="endTag"?(Q="tag bracket",ee(C,re,$)):(Q="error",he)}function ee(C,re,$){return C!="endTag"?(Q="error",ee):(ae($),Se)}function he(C,re,$){return Q="error",ee(C,re,$)}function oe(C,re,$){if(C=="word")return Q="attribute",L;if(C=="endTag"||C=="selfcloseTag"){var k=$.tagName,N=$.tagStart;return $.tagName=$.tagStart=null,C=="selfcloseTag"||B.autoSelfClosers.hasOwnProperty(k)?ne($,k):(ne($,k),$.context=new H($,k,N==$.indented)),Se}return Q="error",oe}function L(C,re,$){return C=="equals"?J:(B.allowMissing||(Q="error"),oe(C,re,$))}function J(C,re,$){return C=="string"?V:C=="word"&&B.allowUnquoted?(Q="string",oe):(Q="error",oe(C,re,$))}function V(C,re,$){return C=="string"?V:oe(C,re,$)}return{startState:function(C){var re={tokenize:ve,state:Se,indented:C||0,tagName:null,tagStart:null,context:null};return C!=null&&(re.baseIndent=C),re},token:function(C,re){if(!re.tagName&&C.sol()&&(re.indented=C.indentation()),C.eatSpace())return null;te=null;var $=re.tokenize(C,re);return($||te)&&$!="comment"&&(Q=null,re.state=re.state(te||$,C,re),Q&&($=Q=="error"?$+" error":Q)),$},indent:function(C,re,$){var k=C.context;if(C.tokenize.isInAttribute)return C.tagStart==C.indented?C.stringStartCol+1:C.indented+ce;if(k&&k.noIndent)return X.Pass;if(C.tokenize!=De&&C.tokenize!=ve)return $?$.match(/^(\s*)/)[0].length:0;if(C.tagName)return B.multilineTagIndentPastTag!==!1?C.tagStart+C.tagName.length+2:C.tagStart+ce*(B.multilineTagIndentFactor||1);if(B.alignCDATA&&/<!\[CDATA\[/.test(re))return 0;var N=re&&/^<(\/)?([\w_:\.-]*)/.exec(re);if(N&&N[1])for(;k;)if(k.tagName==N[2]){k=k.prev;break}else if(B.implicitlyClosed.hasOwnProperty(k.tagName))k=k.prev;else break;else if(N)for(;k;){var Y=B.contextGrabbers[k.tagName];if(Y&&Y.hasOwnProperty(N[2]))k=k.prev;else break}for(;k&&k.prev&&!k.startOfLine;)k=k.prev;return k?k.indent+ce:C.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:B.htmlMode?"html":"xml",helperType:B.htmlMode?"html":"xml",skipAttribute:function(C){C.state==J&&(C.state=oe)},xmlCurrentTag:function(C){return C.tagName?{name:C.tagName,close:C.type=="closeTag"}:null},xmlCurrentContext:function(C){for(var re=[],$=C.context;$;$=$.prev)$.tagName&&re.push($.tagName);return re.reverse()}}}),X.defineMIME("text/xml","xml"),X.defineMIME("application/xml","xml"),X.mimeModes.hasOwnProperty("text/html")||X.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"7ahc":function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return Re});var X=p("k1fw"),Oe=p("0Owb"),xe=p("+L6B"),Ne=p("2/Rp"),Ee=p("y8nQ"),ce=p("Vl3Y"),B=p("tJVT"),D=p("OaEy"),w=p("2fM7"),te=p("cDcd"),Q=p.n(te),ve=p("VrN/"),De=p.n(ve),ie=p("p77/"),I=p.n(ie),j=p("c5Ni"),H=p.n(j),ae=w.a.Option,ne={labelCol:{span:4},wrapperCol:{span:20}},Se={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"]};Ve.b=function(de){var ee=de.callback,he=de.onCancel,oe=Object(te.useState)("python"),L=Object(B.a)(oe,2),J=L[0],V=L[1];function C($){V(Se[$][1])}function re($){ee($)}return Q.a.createElement(ce.a,Object(Oe.a)({},ne,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:re}),Q.a.createElement(ce.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Q.a.createElement(w.a,{onChange:C},Object.keys(Se).map(function($){return Q.a.createElement(ae,{key:$,value:$},Se[$][0])}))),Q.a.createElement(ce.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Q.a.createElement(Re,{mode:J})),Q.a.createElement("div",{className:"flex-container flex-end"},Q.a.createElement(Ne.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Q.a.createElement(Ne.a,{type:"ghost",onClick:he},"\u53D6\u6D88")))};function Re(de){var ee=de.value,he=de.onChange,oe=de.mode,L=de.options,J=L===void 0?{}:L,V=Object(te.useRef)(),C=Object(te.useState)(),re=Object(B.a)(C,2),$=re[0],k=re[1];return Object(te.useEffect)(function(){if($){function N(Y){var K=Y.getValue();he&&he(K)}return $.on("change",N),function(){$.off("change",N)}}},[$,he]),Object(te.useEffect)(function(){$&&$.setOption("mode",oe)},[$,oe]),Object(te.useEffect)(function(){$&&((ee!==$.getValue()||ee==="")&&setTimeout(function(){$.setValue(ee||" ")},300))},[$,ee]),Object(te.useEffect)(function(){if(V.current&&!$){var N=De.a.fromTextArea(V.current,Object(X.a)({mode:oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},J));k(N)}},[V.current,$]),Q.a.createElement("div",{className:"my-codemirror-container"},Q.a.createElement("textarea",{ref:V}))}},"7ixt":function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return xe});var X={adjustX:1,adjustY:1},Oe=[0,0],xe={left:{points:["cr","cl"],overflow:X,offset:[-4,0],targetOffset:Oe},right:{points:["cl","cr"],overflow:X,offset:[4,0],targetOffset:Oe},top:{points:["bc","tc"],overflow:X,offset:[0,-4],targetOffset:Oe},bottom:{points:["tc","bc"],overflow:X,offset:[0,4],targetOffset:Oe},topLeft:{points:["bl","tl"],overflow:X,offset:[0,-4],targetOffset:Oe},leftTop:{points:["tr","tl"],overflow:X,offset:[-4,0],targetOffset:Oe},topRight:{points:["br","tr"],overflow:X,offset:[0,-4],targetOffset:Oe},rightTop:{points:["tl","tr"],overflow:X,offset:[4,0],targetOffset:Oe},bottomRight:{points:["tr","br"],overflow:X,offset:[0,4],targetOffset:Oe},rightBottom:{points:["bl","br"],overflow:X,offset:[4,0],targetOffset:Oe},bottomLeft:{points:["tl","bl"],overflow:X,offset:[0,4],targetOffset:Oe},leftBottom:{points:["br","bl"],overflow:X,offset:[-4,0],targetOffset:Oe}},Ne=xe},"815F":function(ot,Ve,p){"use strict";p.d(Ve,"e",function(){return B}),p.d(Ve,"c",function(){return w}),p.d(Ve,"d",function(){return te}),p.d(Ve,"a",function(){return ve}),p.d(Ve,"f",function(){return De}),p.d(Ve,"b",function(){return ie});var X=p("KQm4"),Oe=p("VTBJ"),xe=p("Ff2n"),Ne=p("Zm9Q"),Ee=p("Kwbf"),ce=p("OZM5");function B(I,j){return I!=null?I:j}function D(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=new Map;function H(ae){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ae||[]).forEach(function(Se){var Re=Se.key,de=Se.children;Object(Ee.a)(Re!=null,"Tree node must have a certain key: [".concat(ne).concat(Re,"]"));var ee=String(Re);Object(Ee.a)(!j.has(ee)||Re===null||Re===void 0,"Same 'key' exist in the Tree: ".concat(ee)),j.set(ee,!0),H(de,"".concat(ne).concat(ee," > "))})}H(I)}function w(I){function j(H){var ae=Object(Ne.a)(H);return ae.map(function(ne){if(!Object(ce.i)(ne))return Object(Ee.a)(!ne,"Tree/TreeNode can only accept TreeNode as children."),null;var Se=ne.key,Re=ne.props,de=Re.children,ee=Object(xe.a)(Re,["children"]),he=Object(Oe.a)({key:Se},ee),oe=j(de);return oe.length&&(he.children=oe),he}).filter(function(ne){return ne})}return j(I)}function te(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],H=new Set(j===!0?[]:j),ae=[];function ne(Se){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Se.map(function(de,ee){var he=Object(ce.h)(Re?Re.pos:"0",ee),oe=B(de.key,he),L=Object(Oe.a)(Object(Oe.a)({},de),{},{parent:Re,pos:he,children:null,data:de,isStart:[].concat(Object(X.a)(Re?Re.isStart:[]),[ee===0]),isEnd:[].concat(Object(X.a)(Re?Re.isEnd:[]),[ee===Se.length-1])});return ae.push(L),j===!0||H.has(oe)?L.children=ne(de.children||[],L):L.children=[],L})}return ne(I),ae}function Q(I,j,H){var ae;H?typeof H=="string"?ae=function(Re){return Re[H]}:typeof H=="function"&&(ae=function(Re){return H(Re)}):ae=function(Re,de){return B(Re.key,de)};function ne(Se,Re,de){var ee=Se?Se.children:I,he=Se?Object(ce.h)(de.pos,Re):"0";if(Se){var oe=ae(Se,he),L={node:Se,index:Re,pos:he,key:oe,parentPos:de.node?de.pos:null,level:de.level+1};j(L)}ee&&ee.forEach(function(J,V){ne(J,V,{node:Se,pos:he,level:de?de.level+1:-1})})}ne(null)}function ve(I){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=j.initWrapper,ae=j.processEntity,ne=j.onProcessFinished,Se=arguments.length>2?arguments[2]:void 0,Re={},de={},ee={posEntities:Re,keyEntities:de};return H&&(ee=H(ee)||ee),Q(I,function(he){var oe=he.node,L=he.index,J=he.pos,V=he.key,C=he.parentPos,re=he.level,$={node:oe,index:L,key:V,pos:J,level:re},k=B(V,J);Re[J]=$,de[k]=$,$.parent=Re[C],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),ae&&ae($,ee)},Se),ne&&ne(ee),ee}function De(I,j){var H=j.expandedKeys,ae=j.selectedKeys,ne=j.loadedKeys,Se=j.loadingKeys,Re=j.checkedKeys,de=j.halfCheckedKeys,ee=j.dragOverNodeKey,he=j.dropPosition,oe=j.keyEntities,L=oe[I],J={eventKey:I,expanded:H.indexOf(I)!==-1,selected:ae.indexOf(I)!==-1,loaded:ne.indexOf(I)!==-1,loading:Se.indexOf(I)!==-1,checked:Re.indexOf(I)!==-1,halfChecked:de.indexOf(I)!==-1,pos:String(L?L.pos:""),dragOver:ee===I&&he===0,dragOverGapTop:ee===I&&he===-1,dragOverGapBottom:ee===I&&he===1};return J}function ie(I){var j=I.data,H=I.expanded,ae=I.selected,ne=I.checked,Se=I.loaded,Re=I.loading,de=I.halfChecked,ee=I.dragOver,he=I.dragOverGapTop,oe=I.dragOverGapBottom,L=I.pos,J=I.active,V=Object(Oe.a)(Object(Oe.a)({},j),{},{expanded:H,selected:ae,checked:ne,loaded:Se,loading:Re,halfChecked:de,dragOver:ee,dragOverGapTop:he,dragOverGapBottom:oe,pos:L,active:J});return"props"in V||Object.defineProperty(V,"props",{get:function(){return Object(Ee.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),I}}),V}},"8EBN":function(ot,Ve,p){(function(X){X(p("VrN/"))})(function(X){"use strict";X.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<X.modeInfo.length;Oe++){var xe=X.modeInfo[Oe];xe.mimes&&(xe.mime=xe.mimes[0])}X.findModeByMIME=function(Ne){Ne=Ne.toLowerCase();for(var Ee=0;Ee<X.modeInfo.length;Ee++){var ce=X.modeInfo[Ee];if(ce.mime==Ne)return ce;if(ce.mimes){for(var B=0;B<ce.mimes.length;B++)if(ce.mimes[B]==Ne)return ce}}if(/\+xml$/.test(Ne))return X.findModeByMIME("application/xml");if(/\+json$/.test(Ne))return X.findModeByMIME("application/json")},X.findModeByExtension=function(Ne){Ne=Ne.toLowerCase();for(var Ee=0;Ee<X.modeInfo.length;Ee++){var ce=X.modeInfo[Ee];if(ce.ext){for(var B=0;B<ce.ext.length;B++)if(ce.ext[B]==Ne)return ce}}},X.findModeByFileName=function(Ne){for(var Ee=0;Ee<X.modeInfo.length;Ee++){var ce=X.modeInfo[Ee];if(ce.file&&ce.file.test(Ne))return ce}var B=Ne.lastIndexOf("."),D=B>-1&&Ne.substring(B+1,Ne.length);if(D)return X.findModeByExtension(D)},X.findModeByName=function(Ne){Ne=Ne.toLowerCase();for(var Ee=0;Ee<X.modeInfo.length;Ee++){var ce=X.modeInfo[Ee];if(ce.name.toLowerCase()==Ne)return ce;if(ce.alias){for(var B=0;B<ce.alias.length;B++)if(ce.alias[B].toLowerCase()==Ne)return ce}}}})},"8Jsi":function(ot,Ve,p){"use strict";p.d(Ve,"d",function(){return C}),p.d(Ve,"a",function(){return g}),p.d(Ve,"b",function(){return Z}),p.d(Ve,"c",function(){return S});var X=p("1OyB"),Oe=p("vuIU"),xe=p("Ji7U"),Ne=p("LK+K"),Ee=p("KQm4"),ce=p("U8pU"),B=p("ODXe"),D=p("VTBJ"),w=p("cDcd"),te=p("qNPg"),Q=p("2Qr1"),ve=p("815F"),De=p("NvD2"),ie=p("wPlo"),I=p("6cGi"),j=p("Kwbf"),H=p("4IlW"),ae=p("YrtM"),ne=p("fAei"),Se=w.createContext(null);function Re(se,Te){if(!se)return!0;var Me=se.data,Pe=Me.disabled,We=Me.disableCheckbox;switch(Te){case"select":return Pe;case"checkbox":return Pe||We}return!1}function de(se,Te){var Me=w.useCallback(function(We){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",be=arguments.length>2?arguments[2]:void 0,He=se.get(We);return!be&&Re(He,Ue)?null:He},[se]),Pe=w.useCallback(function(We){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",be=arguments.length>2?arguments[2]:void 0,He=Te.get(We);return!be&&Re(He,Ue)?null:He},[Te]);return[Me,Pe]}function ee(se){return w.useMemo(function(){var Te=new Map,Me=new Map;return se.forEach(function(Pe){Te.set(Pe.key,Pe),Me.set(Pe.data.value,Pe)}),[Te,Me]},[se])}var he={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},oe=function(Te,Me){var Pe=Te.prefixCls,We=Te.height,Ue=Te.itemHeight,be=Te.virtual,He=Te.options,Be=Te.flattenOptions,we=Te.multiple,je=Te.searchValue,A=Te.onSelect,M=Te.onToggleOpen,z=Te.open,m=Te.notFoundContent,y=Te.onMouseEnter,E=w.useContext(Se),T=E.checkable,ue=E.checkedKeys,ye=E.halfCheckedKeys,Ke=E.treeExpandedKeys,nt=E.treeDefaultExpandAll,lt=E.treeDefaultExpandedKeys,tt=E.onTreeExpand,Ct=E.treeIcon,mt=E.showTreeIcon,rt=E.switcherIcon,At=E.treeLine,bt=E.treeNodeFilterProp,vt=E.loadData,gt=E.treeLoadedKeys,dt=E.treeMotion,kt=E.onTreeLoad,Nt=w.useRef(),Bt=Object(ae.a)(function(){return He},[z,He],function(Xt,Ut){return Ut[0]&&Xt[1]!==Ut[1]}),Qt=ee(Be),Ot=Object(B.a)(Qt,2),Sn=Ot[0],Kt=Ot[1],jt=de(Sn,Kt),ln=Object(B.a)(jt,2),St=ln[0],qe=ln[1],zt=w.useMemo(function(){return ue.map(function(Xt){var Ut=qe(Xt);return Ut?Ut.key:null})},[ue]),bn=w.useMemo(function(){return T?{checked:zt,halfChecked:ye}:null},[zt,ye,T]);w.useEffect(function(){if(z&&!we&&zt.length){var Xt;(Xt=Nt.current)===null||Xt===void 0||Xt.scrollTo({key:zt[0]})}},[z]);var sn=String(je).toLowerCase(),wt=function(Ut){return sn?String(Ut[bt]).toLowerCase().includes(sn):!1},un=w.useState(lt),Gt=Object(B.a)(un,2),$n=Gt[0],ze=Gt[1],ft=w.useState(null),$e=Object(B.a)(ft,2),Un=$e[0],Yn=$e[1],Ln=w.useMemo(function(){return Ke?Object(Ee.a)(Ke):je?Un:$n},[$n,Un,sn,Ke]);w.useEffect(function(){je&&Yn(Be.map(function(Xt){return Xt.key}))},[je]);var Jn=function(Ut){ze(Ut),Yn(Ut),tt&&tt(Ut)},ut=function(Ut){Ut.preventDefault()},Bn=function(Ut,It){var yt=It.node.key,Ft=St(yt,T?"checkbox":"select");Ft!==null&&A(Ft.data.value,{selected:!ue.includes(Ft.data.value)}),we||M(!1)},qn=w.useState(null),cn=Object(B.a)(qn,2),qt=cn[0],ra=cn[1],On=St(qt);if(w.useImperativeHandle(Me,function(){return{onKeyDown:function(Ut){var It,yt=Ut.which;switch(yt){case H.a.UP:case H.a.DOWN:case H.a.LEFT:case H.a.RIGHT:(It=Nt.current)===null||It===void 0||It.onKeyDown(Ut);break;case H.a.ENTER:{On!==null&&Bn(null,{node:{key:qt},selected:!ue.includes(On.data.value)});break}case H.a.ESC:M(!1)}},onKeyUp:function(){}}}),Bt.length===0)return w.createElement("div",{role:"listbox",className:"".concat(Pe,"-empty"),onMouseDown:ut},m);var rn={};return gt&&(rn.loadedKeys=gt),Ln&&(rn.expandedKeys=Ln),w.createElement("div",{onMouseDown:ut,onMouseEnter:y},On&&z&&w.createElement("span",{style:he,"aria-live":"assertive"},On.data.value),w.createElement(ne.b,Object.assign({ref:Nt,focusable:!1,prefixCls:"".concat(Pe,"-tree"),treeData:Bt,height:We,itemHeight:Ue,virtual:be,multiple:we,icon:Ct,showIcon:mt,switcherIcon:rt,showLine:At,loadData:je?null:vt,motion:dt,checkable:T,checkStrictly:!0,checkedKeys:bn,selectedKeys:T?[]:zt,defaultExpandAll:nt},rn,{onActiveChange:ra,onSelect:Bn,onCheck:Bn,onExpand:Jn,onLoad:kt,filterTreeNode:wt})))},L=w.forwardRef(oe);L.displayName="OptionList";var J=L,V=function(){return null},C=V,re=p("Ff2n"),$=p("Zm9Q");function k(se){return Object($.a)(se).map(function(Te){if(!w.isValidElement(Te)||!Te.type)return null;var Me=Te.key,Pe=Te.props,We=Pe.children,Ue=Pe.value,be=Object(re.a)(Pe,["children","value"]),He=Object(D.a)({key:Me,value:Ue},be),Be=k(We);return Be.length&&(He.children=Be),He}).filter(function(Te){return Te})}function N(se){if(!se)return se;var Te=Object(D.a)({},se);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return Object(j.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Te}}),Te}function Y(se,Te,Me,Pe,We){var Ue=null,be=null;function He(){function Be(we){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return we.map(function(M,z){var m="".concat(je,"-").concat(z),y=Me.includes(M.value),E=Be(M.children||[],m,y),T=w.createElement(C,Object.assign({},M),E.map(function(ye){return ye.node}));if(Te===M.value&&(Ue=T),y){var ue={pos:m,node:T,children:E};return A||be.push(ue),ue}return null}).filter(function(M){return M})}be||(be=[],Be(Pe),be.sort(function(we,je){var A=we.node.props.value,M=je.node.props.value,z=Me.indexOf(A),m=Me.indexOf(M);return z-m}))}Object.defineProperty(se,"triggerNode",{get:function(){return Object(j.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),He(),Ue}}),Object.defineProperty(se,"allCheckedNodes",{get:function(){return Object(j.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),He(),We?be:be.map(function(we){var je=we.node;return je})}})}function K(se){return Array.isArray(se)?se:se!==void 0?[se]:[]}function W(se,Te){var Me=new Map;return Te.forEach(function(Pe){var We=Pe.data;Me.set(We.value,We)}),se.map(function(Pe){return N(Me.get(Pe))})}function u(se,Te){var Me=W([se],Te)[0];return Me?Me.disabled:!1}function s(se){return se.disabled||se.disableCheckbox||se.checkable===!1}function x(se){for(var Te=se.parent,Me=0,Pe=Te;Pe;)Pe=Pe.parent,Me+=1;return Me}function R(se){function Te(Pe){return(Pe||[]).map(function(We){var Ue=We.value,be=We.key,He=We.children,Be=Object(D.a)(Object(D.a)({},We),{},{key:"key"in We?be:Ue});return He&&(Be.children=Te(He)),Be})}var Me=Object(ve.d)(Te(se),!0);return Me.map(function(Pe){return{key:Pe.data.key,data:Pe.data,level:x(Pe)}})}function q(se){return function(Te,Me){var Pe=Me[se];return String(Pe).toLowerCase().includes(String(Te).toLowerCase())}}function ge(se,Te,Me){var Pe=Me.optionFilterProp,We=Me.filterOption;if(We===!1)return Te;var Ue;typeof We=="function"?Ue=We:Ue=q(Pe);function be(He){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return He.map(function(we){var je=we.children,A=Be||Ue(se,N(we)),M=be(je||[],A);return A||M.length?Object(D.a)(Object(D.a)({},we),{},{children:M}):null}).filter(function(we){return we})}return be(Te)}function fe(se,Te,Me,Pe){var We=new Map;return K(Te).forEach(function(Ue){Ue&&Object(ce.a)(Ue)==="object"&&"value"in Ue&&We.set(Ue.value,Ue)}),se.map(function(Ue){var be={value:Ue},He=Me(Ue,"select",!0),Be=He?Pe(He.data):Ue;if(We.has(Ue)){var we=We.get(Ue);be.label="label"in we?we.label:Be,"halfChecked"in we&&(be.halfChecked=we.halfChecked)}else be.label=Be;return be})}function pe(se,Te){var Me=new Set(se);return Me.add(Te),Array.from(Me)}function P(se,Te){var Me=new Set(se);return Me.delete(Te),Array.from(Me)}function v(se){var Te=se.searchPlaceholder,Me=se.treeCheckStrictly,Pe=se.treeCheckable,We=se.labelInValue,Ue=se.value,be=se.multiple;Object(j.a)(!Te,"`searchPlaceholder` has been removed."),Me&&We===!1&&Object(j.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(We||Me)&&Object(j.a)(K(Ue).every(function(He){return He&&Object(ce.a)(He)==="object"&&"value"in He}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Me||be||Pe?Object(j.a)(!Ue||Array.isArray(Ue),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(j.a)(!Array.isArray(Ue),"`value` should not be array when `TreeSelect` is single mode.")}var O=v,b=10;function _(se,Te){var Me=Te.id,Pe=Te.pId,We=Te.rootPId,Ue={},be=[],He=se.map(function(Be){var we=Object(D.a)({},Be),je=we[Me];return Ue[je]=we,we.key=we.key||je,we});return He.forEach(function(Be){var we=Be[Pe],je=Ue[we];je&&(je.children=je.children||[],je.children.push(Be)),(we===We||!je&&We===null)&&be.push(Be)}),be}function d(se,Te){var Me=0,Pe=new Set;function We(Ue){return(Ue||[]).map(function(be){var He=be.key,Be=be.value,we=be.children,je=Object(re.a)(be,["key","value","children"]),A="value"in be?Be:He,M=Object(D.a)(Object(D.a)({},je),{},{key:He!=null?He:A,value:A,title:Te(be)});return"children"in be&&(M.children=We(we)),M})}return We(se)}function f(se,Te,Me){var Pe=Me.getLabelProp,We=Me.simpleMode,Ue=w.useRef({});return se?(Ue.current.formatTreeData=Ue.current.treeData===se?Ue.current.formatTreeData:d(We?_(se,Object(D.a)({id:"id",pId:"pId",rootPId:null},We!==!0?We:{})):se,Pe),Ue.current.treeData=se):Ue.current.formatTreeData=Ue.current.children===Te?Ue.current.formatTreeData:d(k(Te),Pe),Ue.current.formatTreeData}var g="SHOW_ALL",S="SHOW_PARENT",Z="SHOW_CHILD";function F(se,Te,Me){var Pe=new Set(se);return Te===Z?se.filter(function(We){var Ue=Me[We];return!(Ue&&Ue.children&&Ue.children.every(function(be){var He=be.node;return s(He)||Pe.has(He.key)}))}):Te===S?se.filter(function(We){var Ue=Me[We],be=Ue?Ue.parent:null;return!(be&&!s(be.node)&&Pe.has(be.node.key))}):se}function le(se,Te){var Me=Te.value,Pe=Te.getEntityByValue,We=Te.getEntityByKey,Ue=Te.treeConduction,be=Te.showCheckedStrategy,He=Te.conductKeyEntities,Be=Te.getLabelProp;return w.useMemo(function(){var we=se;if(Ue){var je=F(se.map(function(A){var M=Pe(A);return M?M.key:A}),be,He);we=je.map(function(A){var M=We(A);return M?M.data.value:A})}return fe(we,Me,Pe,Be)},[se,Me,Ue,be,Pe])}var ke=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ae=Object(te.a)({prefixCls:"rc-tree-select",components:{optionList:J},convertChildrenToData:function(){return null},flattenOptions:R,getLabeledValue:Q.e,filterOptions:ge,isValueDisabled:u,findValueOption:W,omitDOMProps:function(Te){var Me=Object(D.a)({},Te);return ke.forEach(function(Pe){delete Me[Pe]}),Me}});Ae.displayName="Select";var Ie=w.forwardRef(function(se,Te){var Me=se.multiple,Pe=se.treeCheckable,We=se.treeCheckStrictly,Ue=se.showCheckedStrategy,be=Ue===void 0?"SHOW_CHILD":Ue,He=se.labelInValue,Be=se.loadData,we=se.treeLoadedKeys,je=se.treeNodeFilterProp,A=je===void 0?"value":je,M=se.treeNodeLabelProp,z=se.treeDataSimpleMode,m=se.treeData,y=se.treeExpandedKeys,E=se.treeDefaultExpandedKeys,T=se.treeDefaultExpandAll,ue=se.children,ye=se.treeIcon,Ke=se.showTreeIcon,nt=se.switcherIcon,lt=se.treeLine,tt=se.treeMotion,Ct=se.filterTreeNode,mt=se.dropdownPopupAlign,rt=se.onChange,At=se.onTreeExpand,bt=se.onTreeLoad,vt=se.onDropdownVisibleChange,gt=se.onSelect,dt=se.onDeselect,kt=Pe||We,Nt=Me||kt,Bt=Pe&&!We,Qt=We||He,Ot=w.useRef(null);w.useImperativeHandle(Te,function(){return{focus:Ot.current.focus,blur:Ot.current.blur}});var Sn=function(yt){return m&&yt.label||yt.title},Kt=function(yt){return M?yt[M]:Sn(yt)},jt=f(m,ue,{getLabelProp:Sn,simpleMode:z}),ln=Object(w.useMemo)(function(){return R(jt)},[jt]),St=ee(ln),qe=Object(B.a)(St,2),zt=qe[0],bn=qe[1],sn=de(zt,bn),wt=Object(B.a)(sn,2),un=wt[0],Gt=wt[1],$n=Object(w.useMemo)(function(){return Bt?Object(ve.a)(jt):{keyEntities:null}},[jt,Pe,We]),ze=$n.keyEntities,ft=Object(I.a)(se.defaultValue,{value:se.value}),$e=Object(B.a)(ft,2),Un=$e[0],Yn=$e[1],Ln=function(yt){var Ft=[],yn=[];return yt.forEach(function(en){Gt(en)?yn.push(en):Ft.push(en)}),{missingRawValues:Ft,existRawValues:yn}},Jn=Object(w.useMemo)(function(){var It=[],yt=[];if(K(Un).forEach(function(Ht){if(Ht&&Object(ce.a)(Ht)==="object"&&"value"in Ht)if(Ht.halfChecked&&We){var _n=Gt(Ht.value);It.push(_n?_n.key:Ht.value)}else yt.push(Ht.value);else yt.push(Ht)}),Bt){var Ft=Ln(yt),yn=Ft.missingRawValues,en=Ft.existRawValues,dn=en.map(function(Ht){return Gt(Ht).key}),Tn=Object(De.a)(dn,!0,ze),In=Tn.checkedKeys,tn=Tn.halfCheckedKeys;return[[].concat(Object(Ee.a)(yn),Object(Ee.a)(In.map(function(Ht){return un(Ht).data.value}))),tn]}return[yt,It]},[Un,Nt,Qt,Pe,We]),ut=Object(B.a)(Jn,2),Bn=ut[0],qn=ut[1],cn=le(Bn,{treeConduction:Bt,value:Un,showCheckedStrategy:be,conductKeyEntities:ze,getEntityByValue:Gt,getEntityByKey:un,getLabelProp:Kt}),qt=function(yt,Ft,yn){if(Yn(Nt?yt:yt[0]),rt){var en=yt;if(Bt&&be!=="SHOW_ALL"){var dn=yt.map(function(mn){var fn=Gt(mn);return fn?fn.key:mn}),Tn=F(dn,be,ze);en=Tn.map(function(mn){var fn=un(mn);return fn?fn.data.value:mn})}var In=Ft||{triggerValue:void 0,selected:void 0},tn=In.triggerValue,Ht=In.selected,_n=Qt?fe(en,Un,Gt,Kt):en;if(We){var Kn=qn.map(function(mn){var fn=un(mn);return fn?fn.data.value:mn}).filter(function(mn){return!en.includes(mn)});_n=[].concat(Object(Ee.a)(_n),Object(Ee.a)(fe(Kn,Un,Gt,Kt)))}var nn={preValue:cn,triggerValue:tn},La=!0;(We||yn==="selection"&&!Ht)&&(La=!1),Y(nn,tn,yt,jt,La),kt?nn.checked=Ht:nn.selected=Ht,rt(Nt?_n:_n[0],Qt?null:en.map(function(mn){var fn=Gt(mn);return fn?Kt(fn.data):null}),nn)}},ra=function(yt,Ft,yn){var en=yt;if(!Nt)qt([yt],{selected:!0,triggerValue:yt},yn);else{var dn=pe(Bn,yt);if(Bt){var Tn=Ln(dn),In=Tn.missingRawValues,tn=Tn.existRawValues,Ht=tn.map(function(nn){return Gt(nn).key}),_n=Object(De.a)(Ht,!0,ze),Kn=_n.checkedKeys;dn=[].concat(Object(Ee.a)(In),Object(Ee.a)(Kn.map(function(nn){return un(nn).data.value})))}qt(dn,{selected:!0,triggerValue:yt},yn)}gt&&gt(en,Ft)},On=function(yt,Ft,yn){var en=yt,dn=P(Bn,yt);if(Bt){var Tn=Ln(dn),In=Tn.missingRawValues,tn=Tn.existRawValues,Ht=tn.map(function(nn){return Gt(nn).key}),_n=Object(De.a)(Ht,{checked:!1,halfCheckedKeys:qn},ze),Kn=_n.checkedKeys;dn=[].concat(Object(Ee.a)(In),Object(Ee.a)(Kn.map(function(nn){return un(nn).data.value})))}qt(dn,{selected:!1,triggerValue:yt},yn),dt&&dt(en,Ft)},rn=function(){qt([],null,"clear")},Xt=w.useCallback(function(It){if(vt){var yt={};Object.defineProperty(yt,"documentClickClose",{get:function(){return Object(j.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),vt(It,yt)}},[vt]),Ut={optionLabelProp:null,optionFilterProp:A,dropdownAlign:mt,internalProps:{mark:ie.a,onClear:rn,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:ra,onRawDeselect:On}};return"filterTreeNode"in se&&(Ut.filterOption=Ct),w.createElement(Se.Provider,{value:{checkable:kt,loadData:Be,treeLoadedKeys:we,onTreeLoad:bt,checkedKeys:Bn,halfCheckedKeys:qn,treeDefaultExpandAll:T,treeExpandedKeys:y,treeDefaultExpandedKeys:E,onTreeExpand:At,treeIcon:ye,treeMotion:tt,showTreeIcon:Ke,switcherIcon:nt,treeLine:lt,treeNodeFilterProp:A}},w.createElement(Ae,Object.assign({ref:Ot,mode:Nt?"multiple":null},se,Ut,{value:cn,labelInValue:!0,options:jt,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Xt})))}),Le=function(se){Object(xe.a)(Me,se);var Te=Object(Ne.a)(Me);function Me(){var Pe;return Object(X.a)(this,Me),Pe=Te.apply(this,arguments),Pe.selectRef=w.createRef(),Pe.focus=function(){Pe.selectRef.current.focus()},Pe.blur=function(){Pe.selectRef.current.blur()},Pe}return Object(Oe.a)(Me,[{key:"render",value:function(){return w.createElement(Ie,Object.assign({ref:this.selectRef},this.props))}}]),Me}(w.Component);Le.TreeNode=C,Le.SHOW_ALL=g,Le.SHOW_PARENT=S,Le.SHOW_CHILD=Z;var _e=Le,Ge=Ve.e=_e},"8pgt":function(ot,Ve,p){ot.exports={flexRow:"flexRow___2kcn2",flexColumn:"flexColumn___2bS_0",formWrap:"formWrap___3t-wi",example:"example___2J2YZ",footerWrap:"footerWrap___3u6gg"}},"9Bee":function(ot,Ve,p){"use strict";var X=p("k1fw"),Oe=p("tJVT"),xe=p("cDcd"),Ne=p.n(xe),Ee=p("vg9a"),ce=p("DlQD"),B=p.n(ce),D=p("rUJ1");function w(x,R){var q=x.match(/^(\s+)(?:```)/);if(q===null)return R;var ge=q[1];return R.split(`
`).map(function(fe){var pe=fe.match(/^\s+/);if(pe===null)return fe;var P=Object(Oe.a)(pe,1),v=P[0];return v.length>=ge.length?fe.slice(ge.length):fe}).join(`
`)}var te=[],Q=["<ul>"],ve=new B.a.Renderer,De=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ie(){te.length=0,Q=["<ul>"]}var I={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function j(x,R,q,ge){if(R>=x.length||x[R].level<=q)return R;var fe=x[R];ge.push("<li><a href='#"+fe.anchor+"'>"+fe.text+"</a>"),R++;var pe=[];return R=j(x,R,fe.level,pe),pe.length>0&&(ge.push("<ul>"),pe.forEach(function(P){ge.push(P)}),ge.push("</ul>")),ge.push("</li>"),R=j(x,R,q,ge),R}function H(){return j(te,0,0,Q),Q.push("</ul>"),Q.join("")}var ae={heading:function(R){var q=De.exec(R);if(q)return{type:"heading",raw:q[0],depth:q[1].length,text:q[2]}},fences:function(R){var q=this.rules.block.fences.exec(R);if(q){var ge=q[0],fe=w(ge,q[3]||""),pe=q[2]?q[2].trim():q[2];if(["latex","katex","math"].indexOf(pe)>=0){var P=Re(),v=fe;fe=P,de[P]={type:"block",expression:v}}return{type:"code",raw:ge,lang:pe,text:fe}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi,Se=0,Re=function(){return"__special_katext_id_".concat(Se++,"__")},de={};function ee(){return de}function he(){Se=0,de={}}function oe(x){return x=x.replace(ne,function(R,q){var ge=Re();return de[ge]={type:"inline",expression:q},ge}),x}var L=ve.listitem;ve.listitem=function(x){return L(oe(x))};var J=ve.paragraph;ve.paragraph=function(x){return J(oe(x))};var V=ve.tablecell;ve.tablecell=function(x,R){return V(oe(x),R)},ve.code=function(x,R,q){var ge=(R||"").match(/\S*/)[0];return ge?["latex","katex","math"].indexOf(ge)>=0?"<p class='editormd-tex'>".concat(x,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(R,'">').concat(q?x:Object(D.escape)(x,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(q?x:Object(D.escape)(x,!0))+"</code></pre>"},ve.heading=function(x,R,q){var ge=this.options.headerPrefix+q.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return te.push({anchor:ge,level:R,text:x}),"<h"+R+' id="'+ge+'">'+x+"</h"+R+">"},B.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),B.a.use({tokenizer:ae,renderer:ve});var C=B.a,re=p("SJMd"),$=p("ulZh"),k=p.n($),N=p("m3rI"),Y=p("Oy/b"),K=p("p5ED"),W=/<pre[^>]*>/g;function u(x){var R=document.createElement("div");return R.innerHTML=x,R.childNodes.length===0?"":R.childNodes[0].nodeValue}var s=Ve.a=function(x){var R=x.value,q=R===void 0?"":R,ge=x.className,fe=x.showTextOnly,pe=x.showLines,P=x.style,v=P===void 0?{}:P,O=x.stylesPrev,b=O===void 0?{}:O,_=String(q),d=Object(xe.useState)(""),f=Object(Oe.a)(d,2),g=f[0],S=f[1],Z=Object(xe.useMemo)(function(){try{var Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ie=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Le=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;_=_.replace(Ae,"("+N.a.API_SERVER+"/api/attachments/").replace(Ie,'"'+N.a.API_SERVER+"/api/attachments/").replace(Le,'"'+N.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),_=_.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
`)}catch(Te){}var _e=C(_),Ge=ee();if(_.match(/\[TOC\]/)&&(_e=_e.replace("<p>[TOC]</p>",H()),ie()),_e=_e.replace(/(__special_katext_id_\d+__)/g,function(Te,Me){var Pe=Ge[Me],We=Pe.type,Ue=Pe.expression;return Object(Y.renderToString)(u(Ue)||"",{displayMode:We==="block",throwOnError:!1,output:"html"})}),_e=_e.replace(/▁/g,"\u2581\u2581\u2581"),he(),fe){var se=document.createElement("div");return se.innerHTML=_e,se.innerText}return setTimeout(function(){return ke()},500),_e},[_]),F=Object(xe.useRef)();I.WebkitLineClamp=pe,pe&&(v=Object(X.a)(Object(X.a)({},v),I));function le(Ae){var Ie=Ae.target;if(Ie.tagName.toUpperCase()==="A"){var Le=Ie.getAttribute("href");if(Le.indexOf("office")>-1)Ae.preventDefault(),S(Le);else if(Le.startsWith("#")){Ae.preventDefault();var _e=document.getElementById(Le.replace("#",""));_e&&_e.scrollIntoView(!0)}}}var ke=function(){var Ie,Le=(Ie=F.current)===null||Ie===void 0?void 0:Ie.querySelectorAll("video");Le==null||Le.forEach(function(_e){if(_e.oncontextmenu=function(){return!1},_e.src.indexOf(".m3u8")>-1&&!_e.canPlayType("application/vnd.apple.mpegurl")){if(k.a.isSupported()){var Ge=new k.a;Ge.loadSource(_e.src),Ge.attachMedia(_e)}}})};return Object(xe.useEffect)(function(){if(F.current&&Z&&(Z.match(W)&&window.PR.prettyPrint()),F.current)return F.current.addEventListener("click",le),function(){F.current.removeEventListener("click",le),he(),ie()}},[Z,F.current,le]),Ne.a.createElement(Ne.a.Fragment,null,Ne.a.createElement("div",{ref:F,style:Object(X.a)({},v),className:"".concat(ge||""," markdown-body "),dangerouslySetInnerHTML:{__html:Z}}),Ne.a.createElement(K.a,{close:!0,data:g,type:g!=null&&g.length?"office":"",style:Object(X.a)({},b),onClose:function(){return S("")}}))}},"9VGf":function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return xe});var X=p("cDcd"),Oe=p.n(X);function xe(Ne,Ee){var ce=Object(X.useRef)();Object(X.useEffect)(function(){ce.current=Ne}),Object(X.useEffect)(function(){function B(){ce.current()}if(Ee!==null){var D=setInterval(B,Ee);return function(){return clearInterval(D)}}},[Ee])}},Bd2K:function(ot,Ve,p){(function(X){X(p("VrN/"),p("osHv"))})(function(X){X.defineOption("autoCloseTags",!1,function(w,te,Q){if(Q!=X.Init&&Q&&w.removeKeyMap("autoCloseTags"),!te)return;var ve={name:"autoCloseTags"};(typeof te!="object"||te.whenClosing!==!1)&&(ve["'/'"]=function(De){return ce(De)}),(typeof te!="object"||te.whenOpening!==!1)&&(ve["'>'"]=function(De){return Ne(De)}),w.addKeyMap(ve)});var Oe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],xe=["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 Ne(w){if(w.getOption("disableInput"))return X.Pass;for(var te=w.listSelections(),Q=[],ve=w.getOption("autoCloseTags"),De=0;De<te.length;De++){if(!te[De].empty())return X.Pass;var ie=te[De].head,I=w.getTokenAt(ie),j=X.innerMode(w.getMode(),I.state),H=j.state,ae=j.mode.xmlCurrentTag&&j.mode.xmlCurrentTag(H),ne=ae&&ae.name;if(!ne)return X.Pass;var Se=j.mode.configuration=="html",Re=typeof ve=="object"&&ve.dontCloseTags||Se&&Oe,de=typeof ve=="object"&&ve.indentTags||Se&&xe;I.end>ie.ch&&(ne=ne.slice(0,ne.length-I.end+ie.ch));var ee=ne.toLowerCase();if(!ne||I.type=="string"&&(I.end!=ie.ch||!/[\"\']/.test(I.string.charAt(I.string.length-1))||I.string.length==1)||I.type=="tag"&&ae.close||I.string.indexOf("/")==ie.ch-I.start-1||Re&&B(Re,ee)>-1||D(w,j.mode.xmlCurrentContext&&j.mode.xmlCurrentContext(H)||[],ne,ie,!0))return X.Pass;var he=typeof ve=="object"&&ve.emptyTags;if(he&&B(he,ne)>-1){Q[De]={text:"/>",newPos:X.Pos(ie.line,ie.ch+2)};continue}var oe=de&&B(de,ee)>-1;Q[De]={indent:oe,text:">"+(oe?`
`:"")+"</"+ne+">",newPos:oe?X.Pos(ie.line+1,0):X.Pos(ie.line,ie.ch+1)}}for(var L=typeof ve=="object"&&ve.dontIndentOnAutoClose,De=te.length-1;De>=0;De--){var J=Q[De];w.replaceRange(J.text,te[De].head,te[De].anchor,"+insert");var V=w.listSelections().slice(0);V[De]={head:J.newPos,anchor:J.newPos},w.setSelections(V),!L&&J.indent&&(w.indentLine(J.newPos.line,null,!0),w.indentLine(J.newPos.line+1,null,!0))}}function Ee(w,te){for(var Q=w.listSelections(),ve=[],De=te?"/":"</",ie=w.getOption("autoCloseTags"),I=typeof ie=="object"&&ie.dontIndentOnSlash,j=0;j<Q.length;j++){if(!Q[j].empty())return X.Pass;var H=Q[j].head,ae=w.getTokenAt(H),ne=X.innerMode(w.getMode(),ae.state),Se=ne.state;if(te&&(ae.type=="string"||ae.string.charAt(0)!="<"||ae.start!=H.ch-1))return X.Pass;var Re,de=ne.mode.name!="xml"&&w.getMode().name=="htmlmixed";if(de&&ne.mode.name=="javascript")Re=De+"script";else if(de&&ne.mode.name=="css")Re=De+"style";else{var ee=ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(Se);if(!ee||ee.length&&D(w,ee,ee[ee.length-1],H))return X.Pass;Re=De+ee[ee.length-1]}w.getLine(H.line).charAt(ae.end)!=">"&&(Re+=">"),ve[j]=Re}if(w.replaceSelections(ve),Q=w.listSelections(),!I)for(var j=0;j<Q.length;j++)(j==Q.length-1||Q[j].head.line<Q[j+1].head.line)&&w.indentLine(Q[j].head.line)}function ce(w){return w.getOption("disableInput")?X.Pass:Ee(w,!0)}X.commands.closeTag=function(w){return Ee(w)};function B(w,te){if(w.indexOf)return w.indexOf(te);for(var Q=0,ve=w.length;Q<ve;++Q)if(w[Q]==te)return Q;return-1}function D(w,te,Q,ve,De){if(!X.scanForClosingTag)return!1;var ie=Math.min(w.lastLine()+1,ve.line+500),I=X.scanForClosingTag(w,ve,null,ie);if(!I||I.tag!=Q)return!1;for(var j=De?1:0,H=te.length-1;H>=0&&te[H]==Q;H--)++j;ve=I.to;for(var H=1;H<j;H++){var ae=X.scanForClosingTag(w,ve,null,ie);if(!ae||ae.tag!=Q)return!1;ve=ae.to}return!0}})},BjJ7:function(ot,Ve,p){"use strict";p.d(Ve,"d",function(){return Oe}),p.d(Ve,"c",function(){return xe}),p.d(Ve,"e",function(){return Ne}),p.d(Ve,"b",function(){return Ee}),p.d(Ve,"a",function(){return B});var X=p("m3rI");function Oe(D){var w=!0;if(D.length>0){for(var te=0;te<D.length;te++)if(D[te].compile_success==0||!D[te].compile_success){w=!1;break}}else w=!1;return w}function xe(D){for(var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",te=[],Q=0;Q<D.length;Q++){var ve=D[Q],De=w?"".concat(w,"/").concat(ve.name):"".concat(ve.name);te.push({title:ve.name,isLeaf:!(ve.type==="tree"),key:De})}return te}function Ne(D,w,te){for(var Q=0;Q<D.length;Q++){var ve=D[Q];if(ve.key===w){ve.children=te;break}ve.children&&Ne(ve.children,w,te)}return D}function Ee(D,w,te){var Q;return function(){var ve=this,De=arguments,ie=function(){Q=null,te||D.apply(ve,De)},I=te&&!Q;clearTimeout(Q),Q=setTimeout(ie,w),I&&D.apply(ve,De)}}var ce=!0,B=X.a.API_SERVER},"C+DQ":function(ot,Ve,p){},DlQD:function(ot,Ve,p){(function(X,Oe){ot.exports=Oe()})(this,function(){"use strict";function X(A,M){for(var z=0;z<M.length;z++){var m=M[z];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(A,m.key,m)}}function Oe(A,M,z){return M&&X(A.prototype,M),z&&X(A,z),A}function xe(A,M){if(!A)return;if(typeof A=="string")return Ne(A,M);var z=Object.prototype.toString.call(A).slice(8,-1);if(z==="Object"&&A.constructor&&(z=A.constructor.name),z==="Map"||z==="Set")return Array.from(A);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return Ne(A,M)}function Ne(A,M){(M==null||M>A.length)&&(M=A.length);for(var z=0,m=new Array(M);z<M;z++)m[z]=A[z];return m}function Ee(A,M){var z;if(typeof Symbol=="undefined"||A[Symbol.iterator]==null){if(Array.isArray(A)||(z=xe(A))||M&&A&&typeof A.length=="number"){z&&(A=z);var m=0;return function(){return m>=A.length?{done:!0}:{done:!1,value:A[m++]}}}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 z=A[Symbol.iterator](),z.next.bind(z)}function ce(A,M){return M={exports:{}},A(M,M.exports),M.exports}var B=ce(function(A){function M(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function z(m){A.exports.defaults=m}A.exports={defaults:M(),getDefaults:M,changeDefaults:z}}),D=B.defaults,w=B.getDefaults,te=B.changeDefaults,Q=/[&<>"']/,ve=/[&<>"']/g,De=/[<>"']|&(?!#?\w+;)/,ie=/[<>"']|&(?!#?\w+;)/g,I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},j=function(M){return I[M]};function H(A,M){if(M){if(Q.test(A))return A.replace(ve,j)}else if(De.test(A))return A.replace(ie,j);return A}var ae=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ne(A){return A.replace(ae,function(M,z){return z=z.toLowerCase(),z==="colon"?":":z.charAt(0)==="#"?z.charAt(1)==="x"?String.fromCharCode(parseInt(z.substring(2),16)):String.fromCharCode(+z.substring(1)):""})}var Se=/(^|[^\[])\^/g;function Re(A,M){A=A.source||A,M=M||"";var z={replace:function(y,E){return E=E.source||E,E=E.replace(Se,"$1"),A=A.replace(y,E),z},getRegex:function(){return new RegExp(A,M)}};return z}var de=/[^\w:]/g,ee=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function he(A,M,z){if(A){var m;try{m=decodeURIComponent(ne(z)).replace(de,"").toLowerCase()}catch(y){return null}if(m.indexOf("javascript:")===0||m.indexOf("vbscript:")===0||m.indexOf("data:")===0)return null}M&&!ee.test(z)&&(z=C(M,z));try{z=encodeURI(z).replace(/%25/g,"%")}catch(y){return null}return z}var oe={},L=/^[^:]+:\/*[^/]*$/,J=/^([^:]+:)[\s\S]*$/,V=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(A,M){oe[" "+A]||(L.test(A)?oe[" "+A]=A+"/":oe[" "+A]=N(A,"/",!0)),A=oe[" "+A];var z=A.indexOf(":")===-1;return M.substring(0,2)==="//"?z?M:A.replace(J,"$1")+M:M.charAt(0)==="/"?z?M:A.replace(V,"$1")+M:A+M}var re={exec:function(){}};function $(A){for(var M=1,z,m;M<arguments.length;M++){z=arguments[M];for(m in z)Object.prototype.hasOwnProperty.call(z,m)&&(A[m]=z[m])}return A}function k(A,M){var z=A.replace(/\|/g,function(E,T,ue){for(var ye=!1,Ke=T;--Ke>=0&&ue[Ke]==="\\";)ye=!ye;return ye?"|":" |"}),m=z.split(/ \|/),y=0;if(m.length>M)m.splice(M);else for(;m.length<M;)m.push("");for(;y<m.length;y++)m[y]=m[y].trim().replace(/\\\|/g,"|");return m}function N(A,M,z){var m=A.length;if(m===0)return"";for(var y=0;y<m;){var E=A.charAt(m-y-1);if(E===M&&!z)y++;else if(E!==M&&z)y++;else break}return A.substr(0,m-y)}function Y(A,M){if(A.indexOf(M[1])===-1)return-1;for(var z=A.length,m=0,y=0;y<z;y++)if(A[y]==="\\")y++;else if(A[y]===M[0])m++;else if(A[y]===M[1]&&(m--,m<0))return y;return-1}function K(A){A&&A.sanitize&&!A.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var W={escape:H,unescape:ne,edit:Re,cleanUrl:he,resolveUrl:C,noopTest:re,merge:$,splitCells:k,rtrim:N,findClosingBracket:Y,checkSanitizeDeprecation:K},u=B.defaults,s=W.rtrim,x=W.splitCells,R=W.escape,q=W.findClosingBracket;function ge(A,M,z){var m=M.href,y=M.title?R(M.title):null,E=A[1].replace(/\\([\[\]])/g,"$1");return A[0].charAt(0)!=="!"?{type:"link",raw:z,href:m,title:y,text:E}:{type:"image",raw:z,href:m,title:y,text:R(E)}}function fe(A,M){var z=A.match(/^(\s+)(?:```)/);if(z===null)return M;var m=z[1];return M.split(`
`).map(function(y){var E=y.match(/^\s+/);if(E===null)return y;var T=E[0];return T.length>=m.length?y.slice(m.length):y}).join(`
`)}var pe=function(){function A(z){this.options=z||u}var M=A.prototype;return M.space=function(m){var y=this.rules.block.newline.exec(m);if(y)return y[0].length>1?{type:"space",raw:y[0]}:{raw:`
`}},M.code=function(m,y){var E=this.rules.block.code.exec(m);if(E){var T=y[y.length-1];if(T&&T.type==="paragraph")return{raw:E[0],text:E[0].trimRight()};var ue=E[0].replace(/^ {4}/gm,"");return{type:"code",raw:E[0],codeBlockStyle:"indented",text:this.options.pedantic?ue:s(ue,`
`)}}},M.fences=function(m){var y=this.rules.block.fences.exec(m);if(y){var E=y[0],T=fe(E,y[3]||"");return{type:"code",raw:E,lang:y[2]?y[2].trim():y[2],text:T}}},M.heading=function(m){var y=this.rules.block.heading.exec(m);if(y)return{type:"heading",raw:y[0],depth:y[1].length,text:y[2]}},M.nptable=function(m){var y=this.rules.block.nptable.exec(m);if(y){var E={type:"table",header:x(y[1].replace(/^ *| *\| *$/g,"")),align:y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:y[3]?y[3].replace(/\n$/,"").split(`
`):[],raw:y[0]};if(E.header.length===E.align.length){var T=E.align.length,ue;for(ue=0;ue<T;ue++)/^ *-+: *$/.test(E.align[ue])?E.align[ue]="right":/^ *:-+: *$/.test(E.align[ue])?E.align[ue]="center":/^ *:-+ *$/.test(E.align[ue])?E.align[ue]="left":E.align[ue]=null;for(T=E.cells.length,ue=0;ue<T;ue++)E.cells[ue]=x(E.cells[ue],E.header.length);return E}}},M.hr=function(m){var y=this.rules.block.hr.exec(m);if(y)return{type:"hr",raw:y[0]}},M.blockquote=function(m){var y=this.rules.block.blockquote.exec(m);if(y){var E=y[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:y[0],text:E}}},M.list=function(m){var y=this.rules.block.list.exec(m);if(y){for(var E=y[0],T=y[2],ue=T.length>1,ye=T[T.length-1]===")",Ke={type:"list",raw:E,ordered:ue,start:ue?+T.slice(0,-1):"",loose:!1,items:[]},nt=y[0].match(this.rules.block.item),lt=!1,tt,Ct,mt,rt,At,bt,vt,gt=nt.length,dt=0;dt<gt;dt++)tt=nt[dt],E=tt,Ct=tt.length,tt=tt.replace(/^ *([*+-]|\d+[.)]) */,""),~tt.indexOf(`
`)&&(Ct-=tt.length,tt=this.options.pedantic?tt.replace(/^ {1,4}/gm,""):tt.replace(new RegExp("^ {1,"+Ct+"}","gm"),"")),dt!==gt-1&&(mt=this.rules.block.bullet.exec(nt[dt+1])[0],(ue?mt.length===1||!ye&&mt[mt.length-1]===")":mt.length>1||this.options.smartLists&&mt!==T)&&(rt=nt.slice(dt+1).join(`
`),Ke.raw=Ke.raw.substring(0,Ke.raw.length-rt.length),dt=gt-1)),At=lt||/\n\n(?!\s*$)/.test(tt),dt!==gt-1&&(lt=tt.charAt(tt.length-1)===`
`,At||(At=lt)),At&&(Ke.loose=!0),bt=/^\[[ xX]\] /.test(tt),vt=void 0,bt&&(vt=tt[1]!==" ",tt=tt.replace(/^\[[ xX]\] +/,"")),Ke.items.push({type:"list_item",raw:E,task:bt,checked:vt,loose:At,text:tt});return Ke}},M.html=function(m){var y=this.rules.block.html.exec(m);if(y)return{type:this.options.sanitize?"paragraph":"html",raw:y[0],pre:!this.options.sanitizer&&(y[1]==="pre"||y[1]==="script"||y[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(y[0]):R(y[0]):y[0]}},M.def=function(m){var y=this.rules.block.def.exec(m);if(y){y[3]&&(y[3]=y[3].substring(1,y[3].length-1));var E=y[1].toLowerCase().replace(/\s+/g," ");return{tag:E,raw:y[0],href:y[2],title:y[3]}}},M.table=function(m){var y=this.rules.block.table.exec(m);if(y){var E={type:"table",header:x(y[1].replace(/^ *| *\| *$/g,"")),align:y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:y[3]?y[3].replace(/\n$/,"").split(`
`):[]};if(E.header.length===E.align.length){E.raw=y[0];var T=E.align.length,ue;for(ue=0;ue<T;ue++)/^ *-+: *$/.test(E.align[ue])?E.align[ue]="right":/^ *:-+: *$/.test(E.align[ue])?E.align[ue]="center":/^ *:-+ *$/.test(E.align[ue])?E.align[ue]="left":E.align[ue]=null;for(T=E.cells.length,ue=0;ue<T;ue++)E.cells[ue]=x(E.cells[ue].replace(/^ *\| *| *\| *$/g,""),E.header.length);return E}}},M.lheading=function(m){var y=this.rules.block.lheading.exec(m);if(y)return{type:"heading",raw:y[0],depth:y[2].charAt(0)==="="?1:2,text:y[1]}},M.paragraph=function(m){var y=this.rules.block.paragraph.exec(m);if(y)return{type:"paragraph",raw:y[0],text:y[1].charAt(y[1].length-1)===`
`?y[1].slice(0,-1):y[1]}},M.text=function(m,y){var E=this.rules.block.text.exec(m);if(E){var T=y[y.length-1];return T&&T.type==="text"?{raw:E[0],text:E[0]}:{type:"text",raw:E[0],text:E[0]}}},M.escape=function(m){var y=this.rules.inline.escape.exec(m);if(y)return{type:"escape",raw:y[0],text:R(y[1])}},M.tag=function(m,y,E){var T=this.rules.inline.tag.exec(m);if(T)return!y&&/^<a /i.test(T[0])?y=!0:y&&/^<\/a>/i.test(T[0])&&(y=!1),!E&&/^<(pre|code|kbd|script)(\s|>)/i.test(T[0])?E=!0:E&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(T[0])&&(E=!1),{type:this.options.sanitize?"text":"html",raw:T[0],inLink:y,inRawBlock:E,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(T[0]):R(T[0]):T[0]}},M.link=function(m){var y=this.rules.inline.link.exec(m);if(y){var E=q(y[2],"()");if(E>-1){var T=y[0].indexOf("!")===0?5:4,ue=T+y[1].length+E;y[2]=y[2].substring(0,E),y[0]=y[0].substring(0,ue).trim(),y[3]=""}var ye=y[2],Ke="";if(this.options.pedantic){var nt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ye);nt?(ye=nt[1],Ke=nt[3]):Ke=""}else Ke=y[3]?y[3].slice(1,-1):"";ye=ye.trim().replace(/^<([\s\S]*)>$/,"$1");var lt=ge(y,{href:ye&&ye.replace(this.rules.inline._escapes,"$1"),title:Ke&&Ke.replace(this.rules.inline._escapes,"$1")},y[0]);return lt}},M.reflink=function(m,y){var E;if((E=this.rules.inline.reflink.exec(m))||(E=this.rules.inline.nolink.exec(m))){var T=(E[2]||E[1]).replace(/\s+/g," ");if(T=y[T.toLowerCase()],!T||!T.href){var ue=E[0].charAt(0);return{type:"text",raw:ue,text:ue}}var ye=ge(E,T,E[0]);return ye}},M.strong=function(m,y,E){E===void 0&&(E="");var T=this.rules.inline.strong.start.exec(m);if(T&&(!T[1]||T[1]&&(E===""||this.rules.inline.punctuation.exec(E)))){y=y.slice(-1*m.length);var ue=T[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ue.lastIndex=0;for(var ye;(T=ue.exec(y))!=null;)if(ye=this.rules.inline.strong.middle.exec(y.slice(0,T.index+3)),ye)return{type:"strong",raw:m.slice(0,ye[0].length),text:m.slice(2,ye[0].length-2)}}},M.em=function(m,y,E){E===void 0&&(E="");var T=this.rules.inline.em.start.exec(m);if(T&&(!T[1]||T[1]&&(E===""||this.rules.inline.punctuation.exec(E)))){y=y.slice(-1*m.length);var ue=T[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ue.lastIndex=0;for(var ye;(T=ue.exec(y))!=null;)if(ye=this.rules.inline.em.middle.exec(y.slice(0,T.index+2)),ye)return{type:"em",raw:m.slice(0,ye[0].length),text:m.slice(1,ye[0].length-1)}}},M.codespan=function(m){var y=this.rules.inline.code.exec(m);if(y){var E=y[2].replace(/\n/g," "),T=/[^ ]/.test(E),ue=E.startsWith(" ")&&E.endsWith(" ");return T&&ue&&(E=E.substring(1,E.length-1)),E=R(E,!0),{type:"codespan",raw:y[0],text:E}}},M.br=function(m){var y=this.rules.inline.br.exec(m);if(y)return{type:"br",raw:y[0]}},M.del=function(m){var y=this.rules.inline.del.exec(m);if(y)return{type:"del",raw:y[0],text:y[1]}},M.autolink=function(m,y){var E=this.rules.inline.autolink.exec(m);if(E){var T,ue;return E[2]==="@"?(T=R(this.options.mangle?y(E[1]):E[1]),ue="mailto:"+T):(T=R(E[1]),ue=T),{type:"link",raw:E[0],text:T,href:ue,tokens:[{type:"text",raw:T,text:T}]}}},M.url=function(m,y){var E;if(E=this.rules.inline.url.exec(m)){var T,ue;if(E[2]==="@")T=R(this.options.mangle?y(E[0]):E[0]),ue="mailto:"+T;else{var ye;do ye=E[0],E[0]=this.rules.inline._backpedal.exec(E[0])[0];while(ye!==E[0]);T=R(E[0]),E[1]==="www."?ue="http://"+T:ue=T}return{type:"link",raw:E[0],text:T,href:ue,tokens:[{type:"text",raw:T,text:T}]}}},M.inlineText=function(m,y,E){var T=this.rules.inline.text.exec(m);if(T){var ue;return y?ue=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(T[0]):R(T[0]):T[0]:ue=R(this.options.smartypants?E(T[0]):T[0]),{type:"text",raw:T[0],text:ue}}},A}(),P=W.noopTest,v=W.edit,O=W.merge,b={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*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\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:P,table:P,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};b._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,b._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,b.def=v(b.def).replace("label",b._label).replace("title",b._title).getRegex(),b.bullet=/(?:[*+-]|\d{1,9}[.)])/,b.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,b.item=v(b.item,"gm").replace(/bull/g,b.bullet).getRegex(),b.list=v(b.list).replace(/bull/g,b.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+b.def.source+")").getRegex(),b._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",b._comment=/<!--(?!-?>)[\s\S]*?-->/,b.html=v(b.html,"i").replace("comment",b._comment).replace("tag",b._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),b.paragraph=v(b._paragraph).replace("hr",b.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",b._tag).getRegex(),b.blockquote=v(b.blockquote).replace("paragraph",b.paragraph).getRegex(),b.normal=O({},b),b.gfm=O({},b.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*|$)"}),b.gfm.nptable=v(b.gfm.nptable).replace("hr",b.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",b._tag).getRegex(),b.gfm.table=v(b.gfm.table).replace("hr",b.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",b._tag).getRegex(),b.pedantic=O({},b.normal,{html:v(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",b._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:P,paragraph:v(b.normal._paragraph).replace("hr",b.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",b.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:P,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",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:P,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};_._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",_.punctuation=v(_.punctuation).replace(/punctuation/g,_._punctuation).getRegex(),_._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",_._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",_.em.start=v(_.em.start).replace(/punctuation/g,_._punctuation).getRegex(),_.em.middle=v(_.em.middle).replace(/punctuation/g,_._punctuation).replace(/overlapSkip/g,_._overlapSkip).getRegex(),_.em.endAst=v(_.em.endAst,"g").replace(/punctuation/g,_._punctuation).getRegex(),_.em.endUnd=v(_.em.endUnd,"g").replace(/punctuation/g,_._punctuation).getRegex(),_.strong.start=v(_.strong.start).replace(/punctuation/g,_._punctuation).getRegex(),_.strong.middle=v(_.strong.middle).replace(/punctuation/g,_._punctuation).replace(/blockSkip/g,_._blockSkip).getRegex(),_.strong.endAst=v(_.strong.endAst,"g").replace(/punctuation/g,_._punctuation).getRegex(),_.strong.endUnd=v(_.strong.endUnd,"g").replace(/punctuation/g,_._punctuation).getRegex(),_.blockSkip=v(_._blockSkip,"g").getRegex(),_.overlapSkip=v(_._overlapSkip,"g").getRegex(),_._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,_._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,_._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])?)+(?![-_])/,_.autolink=v(_.autolink).replace("scheme",_._scheme).replace("email",_._email).getRegex(),_._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,_.tag=v(_.tag).replace("comment",b._comment).replace("attribute",_._attribute).getRegex(),_._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,_._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,_.link=v(_.link).replace("label",_._label).replace("href",_._href).replace("title",_._title).getRegex(),_.reflink=v(_.reflink).replace("label",_._label).getRegex(),_.reflinkSearch=v(_.reflinkSearch,"g").replace("reflink",_.reflink).replace("nolink",_.nolink).getRegex(),_.normal=O({},_),_.pedantic=O({},_.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:v(/^!?\[(label)\]\((.*?)\)/).replace("label",_._label).getRegex(),reflink:v(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_._label).getRegex()}),_.gfm=O({},_.normal,{escape:v(_.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]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),_.gfm.url=v(_.gfm.url,"i").replace("email",_.gfm._extended_email).getRegex(),_.breaks=O({},_.gfm,{br:v(_.br).replace("{2,}","*").getRegex(),text:v(_.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var d={block:b,inline:_},f=B.defaults,g=d.block,S=d.inline;function Z(A){return A.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function F(A){var M="",z,m,y=A.length;for(z=0;z<y;z++)m=A.charCodeAt(z),Math.random()>.5&&(m="x"+m.toString(16)),M+="&#"+m+";";return M}var le=function(){function A(z){this.tokens=[],this.tokens.links=Object.create(null),this.options=z||f,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var m={block:g.normal,inline:S.normal};this.options.pedantic?(m.block=g.pedantic,m.inline=S.pedantic):this.options.gfm&&(m.block=g.gfm,this.options.breaks?m.inline=S.breaks:m.inline=S.gfm),this.tokenizer.rules=m}A.lex=function(m,y){var E=new A(y);return E.lex(m)};var M=A.prototype;return M.lex=function(m){return m=m.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(m,this.tokens,!0),this.inline(this.tokens),this.tokens},M.blockTokens=function(m,y,E){y===void 0&&(y=[]),E===void 0&&(E=!0),m=m.replace(/^ +$/gm,"");for(var T,ue,ye,Ke;m;){if(T=this.tokenizer.space(m)){m=m.substring(T.raw.length),T.type&&y.push(T);continue}if(T=this.tokenizer.code(m,y)){m=m.substring(T.raw.length),T.type?y.push(T):(Ke=y[y.length-1],Ke.raw+=`
`+T.raw,Ke.text+=`
`+T.text);continue}if(T=this.tokenizer.fences(m)){m=m.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.heading(m)){m=m.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.nptable(m)){m=m.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.hr(m)){m=m.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.blockquote(m)){m=m.substring(T.raw.length),T.tokens=this.blockTokens(T.text,[],E),y.push(T);continue}if(T=this.tokenizer.list(m)){for(m=m.substring(T.raw.length),ye=T.items.length,ue=0;ue<ye;ue++)T.items[ue].tokens=this.blockTokens(T.items[ue].text,[],!1);y.push(T);continue}if(T=this.tokenizer.html(m)){m=m.substring(T.raw.length),y.push(T);continue}if(E&&(T=this.tokenizer.def(m))){m=m.substring(T.raw.length),this.tokens.links[T.tag]||(this.tokens.links[T.tag]={href:T.href,title:T.title});continue}if(T=this.tokenizer.table(m)){m=m.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.lheading(m)){m=m.substring(T.raw.length),y.push(T);continue}if(E&&(T=this.tokenizer.paragraph(m))){m=m.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.text(m,y)){m=m.substring(T.raw.length),T.type?y.push(T):(Ke=y[y.length-1],Ke.raw+=`
`+T.raw,Ke.text+=`
`+T.text);continue}if(m){var nt="Infinite loop on byte: "+m.charCodeAt(0);if(this.options.silent){console.error(nt);break}else throw new Error(nt)}}return y},M.inline=function(m){var y,E,T,ue,ye,Ke,nt=m.length;for(y=0;y<nt;y++){Ke=m[y];switch(Ke.type){case"paragraph":case"text":case"heading":{Ke.tokens=[],this.inlineTokens(Ke.text,Ke.tokens);break}case"table":{for(Ke.tokens={header:[],cells:[]},ue=Ke.header.length,E=0;E<ue;E++)Ke.tokens.header[E]=[],this.inlineTokens(Ke.header[E],Ke.tokens.header[E]);for(ue=Ke.cells.length,E=0;E<ue;E++)for(ye=Ke.cells[E],Ke.tokens.cells[E]=[],T=0;T<ye.length;T++)Ke.tokens.cells[E][T]=[],this.inlineTokens(ye[T],Ke.tokens.cells[E][T]);break}case"blockquote":{this.inline(Ke.tokens);break}case"list":{for(ue=Ke.items.length,E=0;E<ue;E++)this.inline(Ke.items[E].tokens);break}}}return m},M.inlineTokens=function(m,y,E,T,ue){y===void 0&&(y=[]),E===void 0&&(E=!1),T===void 0&&(T=!1),ue===void 0&&(ue="");var ye,Ke=m,nt;if(this.tokens.links){var lt=Object.keys(this.tokens.links);if(lt.length>0)for(;(nt=this.tokenizer.rules.inline.reflinkSearch.exec(Ke))!=null;)lt.includes(nt[0].slice(nt[0].lastIndexOf("[")+1,-1))&&(Ke=Ke.slice(0,nt.index)+"["+"a".repeat(nt[0].length-2)+"]"+Ke.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(nt=this.tokenizer.rules.inline.blockSkip.exec(Ke))!=null;)Ke=Ke.slice(0,nt.index)+"["+"a".repeat(nt[0].length-2)+"]"+Ke.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;m;){if(ye=this.tokenizer.escape(m)){m=m.substring(ye.raw.length),y.push(ye);continue}if(ye=this.tokenizer.tag(m,E,T)){m=m.substring(ye.raw.length),E=ye.inLink,T=ye.inRawBlock,y.push(ye);continue}if(ye=this.tokenizer.link(m)){m=m.substring(ye.raw.length),ye.type==="link"&&(ye.tokens=this.inlineTokens(ye.text,[],!0,T)),y.push(ye);continue}if(ye=this.tokenizer.reflink(m,this.tokens.links)){m=m.substring(ye.raw.length),ye.type==="link"&&(ye.tokens=this.inlineTokens(ye.text,[],!0,T)),y.push(ye);continue}if(ye=this.tokenizer.strong(m,Ke,ue)){m=m.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],E,T),y.push(ye);continue}if(ye=this.tokenizer.em(m,Ke,ue)){m=m.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],E,T),y.push(ye);continue}if(ye=this.tokenizer.codespan(m)){m=m.substring(ye.raw.length),y.push(ye);continue}if(ye=this.tokenizer.br(m)){m=m.substring(ye.raw.length),y.push(ye);continue}if(ye=this.tokenizer.del(m)){m=m.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],E,T),y.push(ye);continue}if(ye=this.tokenizer.autolink(m,F)){m=m.substring(ye.raw.length),y.push(ye);continue}if(!E&&(ye=this.tokenizer.url(m,F))){m=m.substring(ye.raw.length),y.push(ye);continue}if(ye=this.tokenizer.inlineText(m,T,Z)){m=m.substring(ye.raw.length),ue=ye.raw.slice(-1),y.push(ye);continue}if(m){var tt="Infinite loop on byte: "+m.charCodeAt(0);if(this.options.silent){console.error(tt);break}else throw new Error(tt)}}return y},Oe(A,null,[{key:"rules",get:function(){return{block:g,inline:S}}}]),A}(),ke=B.defaults,Ae=W.cleanUrl,Ie=W.escape,Le=function(){function A(z){this.options=z||ke}var M=A.prototype;return M.code=function(m,y,E){var T=(y||"").match(/\S*/)[0];if(this.options.highlight){var ue=this.options.highlight(m,T);ue!=null&&ue!==m&&(E=!0,m=ue)}return T?'<pre><code class="'+this.options.langPrefix+Ie(T,!0)+'">'+(E?m:Ie(m,!0))+`</code></pre>
`:"<pre><code>"+(E?m:Ie(m,!0))+`</code></pre>
`},M.blockquote=function(m){return`<blockquote>
`+m+`</blockquote>
`},M.html=function(m){return m},M.heading=function(m,y,E,T){return this.options.headerIds?"<h"+y+' id="'+this.options.headerPrefix+T.slug(E)+'">'+m+"</h"+y+`>
`:"<h"+y+">"+m+"</h"+y+`>
`},M.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},M.list=function(m,y,E){var T=y?"ol":"ul",ue=y&&E!==1?' start="'+E+'"':"";return"<"+T+ue+`>
`+m+"</"+T+`>
`},M.listitem=function(m){return"<li>"+m+`</li>
`},M.checkbox=function(m){return"<input "+(m?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},M.paragraph=function(m){return"<p>"+m+`</p>
`},M.table=function(m,y){return y&&(y="<tbody>"+y+"</tbody>"),`<table>
<thead>
`+m+`</thead>
`+y+`</table>
`},M.tablerow=function(m){return`<tr>
`+m+`</tr>
`},M.tablecell=function(m,y){var E=y.header?"th":"td",T=y.align?"<"+E+' align="'+y.align+'">':"<"+E+">";return T+m+"</"+E+`>
`},M.strong=function(m){return"<strong>"+m+"</strong>"},M.em=function(m){return"<em>"+m+"</em>"},M.codespan=function(m){return"<code>"+m+"</code>"},M.br=function(){return this.options.xhtml?"<br/>":"<br>"},M.del=function(m){return"<del>"+m+"</del>"},M.link=function(m,y,E){if(m=Ae(this.options.sanitize,this.options.baseUrl,m),m===null)return E;var T='<a href="'+Ie(m)+'"';return y&&(T+=' title="'+y+'"'),T+=">"+E+"</a>",T},M.image=function(m,y,E){if(m=Ae(this.options.sanitize,this.options.baseUrl,m),m===null)return E;var T='<img src="'+m+'" alt="'+E+'"';return y&&(T+=' title="'+y+'"'),T+=this.options.xhtml?"/>":">",T},M.text=function(m){return m},A}(),_e=function(){function A(){}var M=A.prototype;return M.strong=function(m){return m},M.em=function(m){return m},M.codespan=function(m){return m},M.del=function(m){return m},M.html=function(m){return m},M.text=function(m){return m},M.link=function(m,y,E){return""+E},M.image=function(m,y,E){return""+E},M.br=function(){return""},A}(),Ge=function(){function A(){this.seen={}}var M=A.prototype;return M.slug=function(m){var y=m.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(y)){var E=y;do this.seen[E]++,y=E+"-"+this.seen[E];while(this.seen.hasOwnProperty(y))}return this.seen[y]=0,y},A}(),se=B.defaults,Te=W.unescape,Me=function(){function A(z){this.options=z||se,this.options.renderer=this.options.renderer||new Le,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new _e,this.slugger=new Ge}A.parse=function(m,y){var E=new A(y);return E.parse(m)};var M=A.prototype;return M.parse=function(m,y){y===void 0&&(y=!0);var E="",T,ue,ye,Ke,nt,lt,tt,Ct,mt,rt,At,bt,vt,gt,dt,kt,Nt,Bt,Qt=m.length;for(T=0;T<Qt;T++){rt=m[T];switch(rt.type){case"space":continue;case"hr":{E+=this.renderer.hr();continue}case"heading":{E+=this.renderer.heading(this.parseInline(rt.tokens),rt.depth,Te(this.parseInline(rt.tokens,this.textRenderer)),this.slugger);continue}case"code":{E+=this.renderer.code(rt.text,rt.lang,rt.escaped);continue}case"table":{for(Ct="",tt="",Ke=rt.header.length,ue=0;ue<Ke;ue++)tt+=this.renderer.tablecell(this.parseInline(rt.tokens.header[ue]),{header:!0,align:rt.align[ue]});for(Ct+=this.renderer.tablerow(tt),mt="",Ke=rt.cells.length,ue=0;ue<Ke;ue++){for(lt=rt.tokens.cells[ue],tt="",nt=lt.length,ye=0;ye<nt;ye++)tt+=this.renderer.tablecell(this.parseInline(lt[ye]),{header:!1,align:rt.align[ye]});mt+=this.renderer.tablerow(tt)}E+=this.renderer.table(Ct,mt);continue}case"blockquote":{mt=this.parse(rt.tokens),E+=this.renderer.blockquote(mt);continue}case"list":{for(At=rt.ordered,bt=rt.start,vt=rt.loose,Ke=rt.items.length,mt="",ue=0;ue<Ke;ue++)dt=rt.items[ue],kt=dt.checked,Nt=dt.task,gt="",dt.task&&(Bt=this.renderer.checkbox(kt),vt?dt.tokens.length>0&&dt.tokens[0].type==="text"?(dt.tokens[0].text=Bt+" "+dt.tokens[0].text,dt.tokens[0].tokens&&dt.tokens[0].tokens.length>0&&dt.tokens[0].tokens[0].type==="text"&&(dt.tokens[0].tokens[0].text=Bt+" "+dt.tokens[0].tokens[0].text)):dt.tokens.unshift({type:"text",text:Bt}):gt+=Bt),gt+=this.parse(dt.tokens,vt),mt+=this.renderer.listitem(gt,Nt,kt);E+=this.renderer.list(mt,At,bt);continue}case"html":{E+=this.renderer.html(rt.text);continue}case"paragraph":{E+=this.renderer.paragraph(this.parseInline(rt.tokens));continue}case"text":{for(mt=rt.tokens?this.parseInline(rt.tokens):rt.text;T+1<Qt&&m[T+1].type==="text";)rt=m[++T],mt+=`
`+(rt.tokens?this.parseInline(rt.tokens):rt.text);E+=y?this.renderer.paragraph(mt):mt;continue}default:{var Ot='Token with "'+rt.type+'" type was not found.';if(this.options.silent){console.error(Ot);return}else throw new Error(Ot)}}}return E},M.parseInline=function(m,y){y=y||this.renderer;var E="",T,ue,ye=m.length;for(T=0;T<ye;T++){ue=m[T];switch(ue.type){case"escape":{E+=y.text(ue.text);break}case"html":{E+=y.html(ue.text);break}case"link":{E+=y.link(ue.href,ue.title,this.parseInline(ue.tokens,y));break}case"image":{E+=y.image(ue.href,ue.title,ue.text);break}case"strong":{E+=y.strong(this.parseInline(ue.tokens,y));break}case"em":{E+=y.em(this.parseInline(ue.tokens,y));break}case"codespan":{E+=y.codespan(ue.text);break}case"br":{E+=y.br();break}case"del":{E+=y.del(this.parseInline(ue.tokens,y));break}case"text":{E+=y.text(ue.text);break}default:{var Ke='Token with "'+ue.type+'" type was not found.';if(this.options.silent){console.error(Ke);return}else throw new Error(Ke)}}}return E},A}(),Pe=W.merge,We=W.checkSanitizeDeprecation,Ue=W.escape,be=B.getDefaults,He=B.changeDefaults,Be=B.defaults;function we(A,M,z){if(typeof A=="undefined"||A===null)throw new Error("marked(): input parameter is undefined or null");if(typeof A!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(A)+", string expected");if(typeof M=="function"&&(z=M,M=null),M=Pe({},we.defaults,M||{}),We(M),z){var m=M.highlight,y;try{y=le.lex(A,M)}catch(ye){return z(ye)}var E=function(Ke){var nt;if(!Ke)try{nt=Me.parse(y,M)}catch(lt){Ke=lt}return M.highlight=m,Ke?z(Ke):z(null,nt)};if(!m||m.length<3)return E();if(delete M.highlight,!y.length)return E();var T=0;we.walkTokens(y,function(ye){ye.type==="code"&&(T++,setTimeout(function(){m(ye.text,ye.lang,function(Ke,nt){if(Ke)return E(Ke);nt!=null&&nt!==ye.text&&(ye.text=nt,ye.escaped=!0),T--,T===0&&E()})},0))}),T===0&&E();return}try{var ue=le.lex(A,M);return M.walkTokens&&we.walkTokens(ue,M.walkTokens),Me.parse(ue,M)}catch(ye){if(ye.message+=`
Please report this to https://github.com/markedjs/marked.`,M.silent)return"<p>An error occurred:</p><pre>"+Ue(ye.message+"",!0)+"</pre>";throw ye}}we.options=we.setOptions=function(A){return Pe(we.defaults,A),He(we.defaults),we},we.getDefaults=be,we.defaults=Be,we.use=function(A){var M=Pe({},A);if(A.renderer&&function(){var m=we.defaults.renderer||new Le,y=function(ue){var ye=m[ue];m[ue]=function(){for(var Ke=arguments.length,nt=new Array(Ke),lt=0;lt<Ke;lt++)nt[lt]=arguments[lt];var tt=A.renderer[ue].apply(m,nt);return tt===!1&&(tt=ye.apply(m,nt)),tt}};for(var E in A.renderer)y(E);M.renderer=m}(),A.tokenizer&&function(){var m=we.defaults.tokenizer||new pe,y=function(ue){var ye=m[ue];m[ue]=function(){for(var Ke=arguments.length,nt=new Array(Ke),lt=0;lt<Ke;lt++)nt[lt]=arguments[lt];var tt=A.tokenizer[ue].apply(m,nt);return tt===!1&&(tt=ye.apply(m,nt)),tt}};for(var E in A.tokenizer)y(E);M.tokenizer=m}(),A.walkTokens){var z=we.defaults.walkTokens;M.walkTokens=function(m){A.walkTokens(m),z&&z(m)}}we.setOptions(M)},we.walkTokens=function(A,M){for(var z=Ee(A),m;!(m=z()).done;){var y=m.value;M(y);switch(y.type){case"table":{for(var E=Ee(y.tokens.header),T;!(T=E()).done;){var ue=T.value;we.walkTokens(ue,M)}for(var ye=Ee(y.tokens.cells),Ke;!(Ke=ye()).done;)for(var nt=Ke.value,lt=Ee(nt),tt;!(tt=lt()).done;){var Ct=tt.value;we.walkTokens(Ct,M)}break}case"list":{we.walkTokens(y.items,M);break}default:y.tokens&&we.walkTokens(y.tokens,M)}}},we.Parser=Me,we.parser=Me.parse,we.Renderer=Le,we.TextRenderer=_e,we.Lexer=le,we.lexer=le.lex,we.Tokenizer=pe,we.Slugger=Ge,we.parse=we;var je=we;return je})},ELLl:function(ot,Ve,p){(function(X){X(p("VrN/"))})(function(X){var Oe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},xe=X.Pos;X.defineOption("autoCloseBrackets",!1,function(I,j,H){H&&H!=X.Init&&(I.removeKeyMap(Ee),I.state.closeBrackets=null),j&&(ce(Ne(j,"pairs")),I.state.closeBrackets=j,I.addKeyMap(Ee))});function Ne(I,j){return j=="pairs"&&typeof I=="string"?I:typeof I=="object"&&I[j]!=null?I[j]:Oe[j]}var Ee={Backspace:w,Enter:te};function ce(I){for(var j=0;j<I.length;j++){var H=I.charAt(j),ae="'"+H+"'";Ee[ae]||(Ee[ae]=B(H))}}ce(Oe.pairs+"`");function B(I){return function(j){return ve(j,I)}}function D(I){var j=I.state.closeBrackets;if(!j||j.override)return j;var H=I.getModeAt(I.getCursor());return H.closeBrackets||j}function w(I){var j=D(I);if(!j||I.getOption("disableInput"))return X.Pass;for(var H=Ne(j,"pairs"),ae=I.listSelections(),ne=0;ne<ae.length;ne++){if(!ae[ne].empty())return X.Pass;var Se=De(I,ae[ne].head);if(!Se||H.indexOf(Se)%2!=0)return X.Pass}for(var ne=ae.length-1;ne>=0;ne--){var Re=ae[ne].head;I.replaceRange("",xe(Re.line,Re.ch-1),xe(Re.line,Re.ch+1),"+delete")}}function te(I){var j=D(I),H=j&&Ne(j,"explode");if(!H||I.getOption("disableInput"))return X.Pass;for(var ae=I.listSelections(),ne=0;ne<ae.length;ne++){if(!ae[ne].empty())return X.Pass;var Se=De(I,ae[ne].head);if(!Se||H.indexOf(Se)%2!=0)return X.Pass}I.operation(function(){var Re=I.lineSeparator()||`
`;I.replaceSelection(Re+Re,null),I.execCommand("goCharLeft"),ae=I.listSelections();for(var de=0;de<ae.length;de++){var ee=ae[de].head.line;I.indentLine(ee,null,!0),I.indentLine(ee+1,null,!0)}})}function Q(I){var j=X.cmpPos(I.anchor,I.head)>0;return{anchor:new xe(I.anchor.line,I.anchor.ch+(j?-1:1)),head:new xe(I.head.line,I.head.ch+(j?1:-1))}}function ve(I,j){var H=D(I);if(!H||I.getOption("disableInput"))return X.Pass;var ae=Ne(H,"pairs"),ne=ae.indexOf(j);if(ne==-1)return X.Pass;for(var Se=Ne(H,"closeBefore"),Re=Ne(H,"triples"),de=ae.charAt(ne+1)==j,ee=I.listSelections(),he=ne%2==0,oe,L=0;L<ee.length;L++){var J=ee[L],V=J.head,C,re=I.getRange(V,xe(V.line,V.ch+1));if(he&&!J.empty())C="surround";else if((de||!he)&&re==j)de&&ie(I,V)?C="both":Re.indexOf(j)>=0&&I.getRange(V,xe(V.line,V.ch+3))==j+j+j?C="skipThree":C="skip";else if(de&&V.ch>1&&Re.indexOf(j)>=0&&I.getRange(xe(V.line,V.ch-2),V)==j+j){if(V.ch>2&&/\bstring/.test(I.getTokenTypeAt(xe(V.line,V.ch-2))))return X.Pass;C="addFour"}else if(de){var $=V.ch==0?" ":I.getRange(xe(V.line,V.ch-1),V);if(!X.isWordChar(re)&&$!=j&&!X.isWordChar($))C="both";else return X.Pass}else if(he&&(re.length===0||/\s/.test(re)||Se.indexOf(re)>-1))C="both";else return X.Pass;if(!oe)oe=C;else if(oe!=C)return X.Pass}var k=ne%2?ae.charAt(ne-1):j,N=ne%2?j:ae.charAt(ne+1);I.operation(function(){if(oe=="skip")I.execCommand("goCharRight");else if(oe=="skipThree")for(var Y=0;Y<3;Y++)I.execCommand("goCharRight");else if(oe=="surround"){for(var K=I.getSelections(),Y=0;Y<K.length;Y++)K[Y]=k+K[Y]+N;I.replaceSelections(K,"around"),K=I.listSelections().slice();for(var Y=0;Y<K.length;Y++)K[Y]=Q(K[Y]);I.setSelections(K)}else oe=="both"?(I.replaceSelection(k+N,null),I.triggerElectric(k+N),I.execCommand("goCharLeft")):oe=="addFour"&&(I.replaceSelection(k+k+k+k,"before"),I.execCommand("goCharRight"))})}function De(I,j){var H=I.getRange(xe(j.line,j.ch-1),xe(j.line,j.ch+1));return H.length==2?H:null}function ie(I,j){var H=I.getTokenAt(xe(j.line,j.ch+1));return/\bstring/.test(H.type)&&H.start==j.ch&&(j.ch==0||!/\bstring/.test(I.getTokenTypeAt(j)))}})},GfqC:function(ot,Ve,p){"use strict";var X=p("cDcd"),Oe=p.n(X),xe=p("TSYQ"),Ne=p.n(xe);function Ee(W,u){var s="cannot "+W.method+" "+W.action+" "+u.status+"'",x=new Error(s);return x.status=u.status,x.method=W.method,x.url=W.action,x}function ce(W){var u=W.responseText||W.response;if(!u)return u;try{return JSON.parse(u)}catch(s){return u}}function B(W){var u=new XMLHttpRequest;W.onProgress&&u.upload&&(u.upload.onprogress=function(q){q.total>0&&(q.percent=q.loaded/q.total*100),W.onProgress(q)});var s=new FormData;W.data&&Object.keys(W.data).forEach(function(R){var q=W.data[R];if(Array.isArray(q)){q.forEach(function(ge){s.append(R+"[]",ge)});return}s.append(R,W.data[R])}),W.file instanceof Blob?s.append(W.filename,W.file,W.file.name):s.append(W.filename,W.file),u.onerror=function(q){W.onError(q)},u.onload=function(){return u.status<200||u.status>=300?W.onError(Ee(W,u),ce(u)):W.onSuccess(ce(u),u)},u.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in u&&(u.withCredentials=!0);var x=W.headers||{};return x["X-Requested-With"]!==null&&u.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(x).forEach(function(R){x[R]!==null&&u.setRequestHeader(R,x[R])}),u.send(s),{abort:function(){u.abort()}}}var D=+new Date,w=0;function te(){return"rc-upload-"+D+"-"+ ++w}function Q(W,u){return W.indexOf(u,W.length-u.length)!==-1}var ve=function(W,u){if(W&&u){var s=Array.isArray(u)?u:u.split(","),x=W.name||"",R=W.type||"",q=R.replace(/\/.*$/,"");return s.some(function(ge){var fe=ge.trim();return fe.charAt(0)==="."?Q(x.toLowerCase(),fe.toLowerCase()):/\/\*$/.test(fe)?q===fe.replace(/\/.*$/,""):R===fe})}return!0};function De(W,u){var s=W.createReader(),x=[];function R(){s.readEntries(function(q){var ge=Array.prototype.slice.apply(q);x=x.concat(ge);var fe=!ge.length;fe?u(x):R()})}R()}var ie=function(u,s,x){var R=function q(ge,fe){fe=fe||"",ge.isFile?ge.file(function(pe){x(pe)&&(ge.fullPath&&!pe.webkitRelativePath&&(Object.defineProperties(pe,{webkitRelativePath:{writable:!0}}),pe.webkitRelativePath=ge.fullPath.replace(/^\//,""),Object.defineProperties(pe,{webkitRelativePath:{writable:!1}})),s([pe]))}):ge.isDirectory&&De(ge,function(pe){pe.forEach(function(P){q(P,""+fe+ge.name+"/")})})};u.forEach(function(q){R(q.webkitGetAsEntry())})},I=ie,j=Object.assign||function(W){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var x in s)Object.prototype.hasOwnProperty.call(s,x)&&(W[x]=s[x])}return W},H=function(){function W(u,s){var x=[],R=!0,q=!1,ge=void 0;try{for(var fe=u[Symbol.iterator](),pe;!(R=(pe=fe.next()).done)&&!(x.push(pe.value),s&&x.length===s);R=!0);}catch(P){q=!0,ge=P}finally{try{!R&&fe.return&&fe.return()}finally{if(q)throw ge}}return x}return function(u,s){if(Array.isArray(u))return u;if(Symbol.iterator in Object(u))return W(u,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ae=function(){function W(u,s){for(var x=0;x<s.length;x++){var R=s[x];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(u,R.key,R)}}return function(u,s,x){return s&&W(u.prototype,s),x&&W(u,x),u}}();function ne(W,u,s){return u in W?Object.defineProperty(W,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):W[u]=s,W}function Se(W,u){var s={};for(var x in W){if(u.indexOf(x)>=0)continue;if(!Object.prototype.hasOwnProperty.call(W,x))continue;s[x]=W[x]}return s}function Re(W,u){if(!(W instanceof u))throw new TypeError("Cannot call a class as a function")}function de(W,u){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:W}function ee(W,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);W.prototype=Object.create(u&&u.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(W,u):W.__proto__=u)}var he=function(u){return Object.keys(u).reduce(function(s,x){return(x.substr(0,5)==="data-"||x.substr(0,5)==="aria-"||x==="role")&&(s[x]=u[x]),s},{})},oe=function(W){ee(u,W);function u(){var s,x,R,q;Re(this,u);for(var ge=arguments.length,fe=Array(ge),pe=0;pe<ge;pe++)fe[pe]=arguments[pe];return q=(x=(R=de(this,(s=u.__proto__||Object.getPrototypeOf(u)).call.apply(s,[this].concat(fe))),R),R.state={uid:te()},R.reqs={},R.onChange=function(P){var v=P.target.files;R.uploadFiles(v),R.reset()},R.onClick=function(P){var v=R.fileInput;if(!v)return;var O=R.props,b=O.children,_=O.onClick;b&&b.type==="button"&&(v.parentNode.focus(),v.parentNode.querySelector("button").blur()),v.click(),_&&_(P)},R.onKeyDown=function(P){P.key==="Enter"&&R.onClick()},R.onFileDrop=function(P){var v=R.props.multiple;if(P.preventDefault(),P.type==="dragover")return;if(R.props.directory)I(Array.prototype.slice.call(P.dataTransfer.items),R.uploadFiles,function(b){return ve(b,R.props.accept)});else{var O=Array.prototype.slice.call(P.dataTransfer.files).filter(function(b){return ve(b,R.props.accept)});v===!1&&(O=O.slice(0,1)),R.uploadFiles(O)}},R.uploadFiles=function(P){var v=Array.prototype.slice.call(P);v.map(function(O){return O.uid=te(),O}).forEach(function(O){R.upload(O,v)})},R.saveFileInput=function(P){R.fileInput=P},x),de(R,q)}return ae(u,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(x,R){var q=this,ge=this.props;if(!ge.beforeUpload)return setTimeout(function(){return q.post(x)},0);var fe=ge.beforeUpload(x,R);fe&&fe.then?fe.then(function(pe){var P=Object.prototype.toString.call(pe);return P==="[object File]"||P==="[object Blob]"?q.post(pe):q.post(x)}).catch(function(pe){console.log(pe)}):fe!==!1&&setTimeout(function(){return q.post(x)},0);return}},{key:"post",value:function(x){var R=this;if(!this._isMounted)return;var q=this.props,ge=q.onStart,fe=q.onProgress,pe=q.transformFile,P=pe===void 0?function(v){return v}:pe;new Promise(function(v){var O=q.action;return typeof O=="function"&&(O=O(x)),v(O)}).then(function(v){var O=x.uid,b=q.customRequest||B,_=Promise.resolve(P(x)).then(function(d){var f=q.data;return typeof f=="function"&&(f=f(d)),Promise.all([d,f])}).catch(function(d){console.error(d)});_.then(function(d){var f=H(d,2),g=f[0],S=f[1],Z={action:v,filename:q.name,data:S,file:g,headers:q.headers,withCredentials:q.withCredentials,method:q.method||"post",onProgress:fe?function(F){fe(F,x)}:null,onSuccess:function(le,ke){delete R.reqs[O],q.onSuccess(le,x,ke)},onError:function(le,ke){delete R.reqs[O],q.onError(le,ke,x)}};ge(x),R.reqs[O]=b(Z)})})}},{key:"reset",value:function(){this.setState({uid:te()})}},{key:"abort",value:function(x){var R=this.reqs;if(x){var q=x;x&&x.uid&&(q=x.uid),R[q]&&R[q].abort&&R[q].abort(),delete R[q]}else Object.keys(R).forEach(function(ge){R[ge]&&R[ge].abort&&R[ge].abort(),delete R[ge]})}},{key:"render",value:function(){var x,R=this.props,q=R.component,ge=R.prefixCls,fe=R.className,pe=R.disabled,P=R.id,v=R.style,O=R.multiple,b=R.accept,_=R.children,d=R.directory,f=R.openFileDialogOnClick,g=R.onMouseEnter,S=R.onMouseLeave,Z=Se(R,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),F=Ne()((x={},ne(x,ge,!0),ne(x,ge+"-disabled",pe),ne(x,fe,fe),x)),le=pe?{}:{onClick:f?this.onClick:function(){},onKeyDown:f?this.onKeyDown:function(){},onMouseEnter:g,onMouseLeave:S,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Oe.a.createElement(q,j({},le,{className:F,role:"button",style:v}),Oe.a.createElement("input",j({},he(Z),{id:P,type:"file",ref:this.saveFileInput,onClick:function(Ae){return Ae.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:b,directory:d?"directory":null,webkitdirectory:d?"webkitdirectory":null,multiple:O,onChange:this.onChange})),_)}}]),u}(X.Component),L=oe,J=Object.assign||function(W){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var x in s)Object.prototype.hasOwnProperty.call(s,x)&&(W[x]=s[x])}return W},V=function(){function W(u,s){for(var x=0;x<s.length;x++){var R=s[x];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(u,R.key,R)}}return function(u,s,x){return s&&W(u.prototype,s),x&&W(u,x),u}}();function C(W,u){if(!(W instanceof u))throw new TypeError("Cannot call a class as a function")}function re(W,u){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:W}function $(W,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);W.prototype=Object.create(u&&u.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(W,u):W.__proto__=u)}function k(){}var N=function(W){$(u,W);function u(){var s,x,R,q;C(this,u);for(var ge=arguments.length,fe=Array(ge),pe=0;pe<ge;pe++)fe[pe]=arguments[pe];return q=(x=(R=re(this,(s=u.__proto__||Object.getPrototypeOf(u)).call.apply(s,[this].concat(fe))),R),R.saveUploader=function(P){R.uploader=P},x),re(R,q)}return V(u,[{key:"abort",value:function(x){this.uploader.abort(x)}},{key:"render",value:function(){return Oe.a.createElement(L,J({},this.props,{ref:this.saveUploader}))}}]),u}(X.Component);N.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:k,onError:k,onSuccess:k,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Y=N,K=Ve.a=Y},Gytx:function(ot,Ve){ot.exports=function(X,Oe,xe,Ne){var Ee=xe?xe.call(Ne,X,Oe):void 0;if(Ee!==void 0)return!!Ee;if(X===Oe)return!0;if(typeof X!="object"||!X||typeof Oe!="object"||!Oe)return!1;var ce=Object.keys(X),B=Object.keys(Oe);if(ce.length!==B.length)return!1;for(var D=Object.prototype.hasOwnProperty.bind(Oe),w=0;w<ce.length;w++){var te=ce[w];if(!D(te))return!1;var Q=X[te],ve=Oe[te];if(Ee=xe?xe.call(Ne,Q,ve,te):void 0,Ee===!1||Ee===void 0&&Q!==ve)return!1}return!0}},HmJG:function(ot,Ve,p){},LdHM:function(ot,Ve,p){"use strict";p.d(Ve,"b",function(){return Se}),p.d(Ve,"a",function(){return de});var X=p("1OyB"),Oe=p("vuIU"),xe=p("Ji7U"),Ne=p("LK+K"),Ee=p("cDcd"),ce=p("rePB"),B=p("Ff2n"),D=p("ODXe"),w=p("4IlW"),te=p("bX4T"),Q=p("YrtM"),ve=p("TSYQ"),De=p.n(ve),ie=p("+nKL"),I=p("8OUc"),j=function(x,R){var q=x.prefixCls,ge=x.id,fe=x.flattenOptions,pe=x.childrenAsData,P=x.values,v=x.searchValue,O=x.multiple,b=x.defaultActiveFirstOption,_=x.height,d=x.itemHeight,f=x.notFoundContent,g=x.open,S=x.menuItemSelectedIcon,Z=x.virtual,F=x.onSelect,le=x.onToggleOpen,ke=x.onActiveValue,Ae=x.onScroll,Ie=x.onMouseEnter,Le="".concat(q,"-item"),_e=Object(Q.a)(function(){return fe},[g,fe],function(je,A){return A[0]&&je[1]!==A[1]}),Ge=Ee.useRef(null),se=function(A){A.preventDefault()},Te=function(A){Ge.current&&Ge.current.scrollTo({index:A})},Me=function(A){for(var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=_e.length,m=0;m<z;m+=1){var y=(A+m*M+z)%z,E=_e[y],T=E.group,ue=E.data;if(!T&&!ue.disabled)return y}return-1},Pe=Ee.useState(function(){return Me(0)}),We=Object(D.a)(Pe,2),Ue=We[0],be=We[1],He=function(A){be(A);var M=_e[A];if(!M){ke(null,-1);return}ke(M.data.value,A)};Ee.useEffect(function(){He(b!==!1?Me(0):-1)},[_e.length,v]),Ee.useEffect(function(){var je=setTimeout(function(){if(!O&&g&&P.size===1){var A=Array.from(P)[0],M=_e.findIndex(function(z){var m=z.data;return m.value===A});He(M),Te(M)}});return function(){return clearTimeout(je)}},[g]);var Be=function(A){A!==void 0&&F(A,{selected:!P.has(A)}),O||le(!1)};if(Ee.useImperativeHandle(R,function(){return{onKeyDown:function(A){var M=A.which;switch(M){case w.a.UP:case w.a.DOWN:{var z=0;if(M===w.a.UP?z=-1:M===w.a.DOWN&&(z=1),z!==0){var m=Me(Ue+z,z);Te(m),He(m)}break}case w.a.ENTER:{var y=_e[Ue];y&&!y.data.disabled?Be(y.data.value):Be(void 0),g&&A.preventDefault();break}case w.a.ESC:le(!1)}},onKeyUp:function(){},scrollTo:function(A){Te(A)}}}),_e.length===0)return Ee.createElement("div",{role:"listbox",id:"".concat(ge,"_list"),className:"".concat(Le,"-empty"),onMouseDown:se},f);function we(je){var A=_e[je];if(!A)return null;var M=A.data||{},z=M.value,m=M.label,y=M.children,E=Object(te.a)(M,!0),T=pe?y:m;return A?Ee.createElement("div",Object.assign({"aria-label":typeof T=="string"?T:null},E,{key:je,role:"option",id:"".concat(ge,"_list_").concat(je),"aria-selected":P.has(z)}),z):null}return Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{role:"listbox",id:"".concat(ge,"_list"),style:{height:0,width:0,overflow:"hidden"}},we(Ue-1),we(Ue),we(Ue+1)),Ee.createElement(ie.a,{itemKey:"key",ref:Ge,data:_e,height:_,itemHeight:d,fullHeight:!1,onMouseDown:se,onScroll:Ae,virtual:Z,onMouseEnter:Ie},function(je,A){var M,z=je.group,m=je.groupOption,y=je.data,E=y.label,T=y.key;if(z)return Ee.createElement("div",{className:De()(Le,"".concat(Le,"-group"))},E!==void 0?E:T);var ue=y.disabled,ye=y.value,Ke=y.title,nt=y.children,lt=y.style,tt=y.className,Ct=Object(B.a)(y,["disabled","value","title","children","style","className"]),mt=P.has(ye),rt="".concat(Le,"-option"),At=De()(Le,rt,tt,(M={},Object(ce.a)(M,"".concat(rt,"-grouped"),m),Object(ce.a)(M,"".concat(rt,"-active"),Ue===A&&!ue),Object(ce.a)(M,"".concat(rt,"-disabled"),ue),Object(ce.a)(M,"".concat(rt,"-selected"),mt),M)),bt=pe?nt:E,vt=!S||typeof S=="function"||mt;return Ee.createElement("div",Object.assign({},Ct,{"aria-selected":mt,className:At,title:Ke,onMouseMove:function(){if(Ue===A||ue)return;He(A)},onClick:function(){ue||Be(ye)},style:lt}),Ee.createElement("div",{className:"".concat(rt,"-content")},bt||ye),Ee.isValidElement(S)||mt,vt&&Ee.createElement(I.a,{className:"".concat(Le,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:mt}},mt?"\u2713":null))}))},H=Ee.forwardRef(j);H.displayName="OptionList";var ae=H,ne=function(){return null};ne.isSelectOption=!0;var Se=ne,Re=function(){return null};Re.isSelectOptGroup=!0;var de=Re,ee=p("VTBJ"),he=p("Zm9Q");function oe(s){var x=s.key,R=s.props,q=R.children,ge=R.value,fe=Object(B.a)(R,["children","value"]);return Object(ee.a)({key:x,value:ge!==void 0?ge:x,children:q},fe)}function L(s){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(he.a)(s).map(function(R,q){if(!Ee.isValidElement(R)||!R.type)return null;var ge=R.type.isSelectOptGroup,fe=R.key,pe=R.props,P=pe.children,v=Object(B.a)(pe,["children"]);return x||!ge?oe(R):Object(ee.a)(Object(ee.a)({key:"__RC_SELECT_GRP__".concat(fe===null?q:fe,"__"),label:fe},v),{},{options:L(P)})}).filter(function(R){return R})}var J=p("2Qr1"),V=p("qNPg"),C=p("U8pU"),re=p("Kwbf"),$=p("WKfj");function k(s){var x=s.mode,R=s.options,q=s.children,ge=s.backfill,fe=s.allowClear,pe=s.placeholder,P=s.getInputElement,v=s.showSearch,O=s.onSearch,b=s.defaultOpen,_=s.autoFocus,d=s.labelInValue,f=s.value,g=s.inputValue,S=s.optionLabelProp,Z=x==="multiple"||x==="tags",F=v!==void 0?v:Z||x==="combobox",le=R||L(q);if(Object(re.a)(x!=="tags"||le.every(function(Le){return!Le.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),x==="tags"||x==="combobox"){var ke=le.some(function(Le){return Le.options?Le.options.some(function(_e){return typeof("value"in _e?_e.value:_e.key)=="number"}):typeof("value"in Le?Le.value:Le.key)=="number"});Object(re.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(re.a)(x!=="combobox"||!S,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(re.a)(x==="combobox"||!ge,"`backfill` only works with `combobox` mode."),Object(re.a)(x==="combobox"||!P,"`getInputElement` only work with `combobox` mode."),Object(re.b)(x!=="combobox"||!P||!fe||!pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),O&&!F&&x!=="combobox"&&x!=="tags"&&Object(re.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(re.b)(!b||_,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),f!=null){var Ae=Object($.d)(f);Object(re.a)(!d||Ae.every(function(Le){return Object(C.a)(Le)==="object"&&("key"in Le||"value"in Le)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(re.a)(!Z||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(q){var Ie=null;Object(he.a)(q).some(function(Le){if(!Ee.isValidElement(Le)||!Le.type)return!1;var _e=Le.type;if(_e.isSelectOption)return!1;if(_e.isSelectOptGroup){var Ge=Object(he.a)(Le.props.children).every(function(se){return!Ee.isValidElement(se)||!Le.type||se.type.isSelectOption?!0:(Ie=se.type,!1)});return!Ge}return Ie=_e,!0}),Ie&&Object(re.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(re.a)(g===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=k,Y=Object(V.a)({prefixCls:"rc-select",components:{optionList:ae},convertChildrenToData:L,flattenOptions:J.d,getLabeledValue:J.e,filterOptions:J.b,isValueDisabled:J.g,findValueOption:J.c,warningProps:N,fillOptionsWithMissingValue:J.a}),K=function(s){Object(xe.a)(R,s);var x=Object(Ne.a)(R);function R(){var q;return Object(X.a)(this,R),q=x.apply(this,arguments),q.selectRef=Ee.createRef(),q.focus=function(){q.selectRef.current.focus()},q.blur=function(){q.selectRef.current.blur()},q}return Object(Oe.a)(R,[{key:"render",value:function(){return Ee.createElement(Y,Object.assign({ref:this.selectRef},this.props))}}]),R}(Ee.Component);K.Option=Se,K.OptGroup=de;var W=K,u=Ve.c=W},M8RZ:function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return w});var X=p("fWQN"),Oe=p("mtLc"),xe=p("yKVA"),Ne=p("879j"),Ee=p("cDcd"),ce=p.n(Ee),B=p("faye"),D=p.n(B),w=function(te){Object(xe.a)(ve,te);var Q=Object(Ne.a)(ve);function ve(De){var ie;Object(X.a)(this,ve),ie=Q.call(this,De);var I=window.document;return ie.node=I.createElement("div"),I.body.appendChild(ie.node),ie}return Object(Oe.a)(ve,[{key:"render",value:function(){var ie=this.props.children;return Object(B.createPortal)(ie,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),ve}(ce.a.Component)},NvD2:function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return ce});var X=p("Kwbf");function Oe(B,D){var w=new Set;return B.forEach(function(te){D.has(te)||w.add(te)}),w}function xe(B){var D=B||{},w=D.disabled,te=D.disableCheckbox,Q=D.checkable;return!!(w||te)||Q===!1}function Ne(B,D,w,te){for(var Q=new Set(B),ve=new Set,De=0;De<=w;De+=1){var ie=D.get(De)||new Set;ie.forEach(function(ae){var ne=ae.key,Se=ae.node,Re=ae.children,de=Re===void 0?[]:Re;Q.has(ne)&&!te(Se)&&de.filter(function(ee){return!te(ee.node)}).forEach(function(ee){Q.add(ee.key)})})}for(var I=new Set,j=w;j>=0;j-=1){var H=D.get(j)||new Set;H.forEach(function(ae){var ne=ae.parent,Se=ae.node;if(te(Se)||!ae.parent||I.has(ae.parent.key))return;if(te(ae.parent.node)){I.add(ne.key);return}var Re=!0,de=!1;(ne.children||[]).filter(function(ee){return!te(ee.node)}).forEach(function(ee){var he=ee.key,oe=Q.has(he);Re&&!oe&&(Re=!1),!de&&(oe||ve.has(he))&&(de=!0)}),Re&&Q.add(ne.key),de&&ve.add(ne.key),I.add(ne.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(Oe(ve,Q))}}function Ee(B,D,w,te,Q){for(var ve=new Set(B),De=new Set(D),ie=0;ie<=te;ie+=1){var I=w.get(ie)||new Set;I.forEach(function(ne){var Se=ne.key,Re=ne.node,de=ne.children,ee=de===void 0?[]:de;!ve.has(Se)&&!De.has(Se)&&!Q(Re)&&ee.filter(function(he){return!Q(he.node)}).forEach(function(he){ve.delete(he.key)})})}De=new Set;for(var j=new Set,H=te;H>=0;H-=1){var ae=w.get(H)||new Set;ae.forEach(function(ne){var Se=ne.parent,Re=ne.node;if(Q(Re)||!ne.parent||j.has(ne.parent.key))return;if(Q(ne.parent.node)){j.add(Se.key);return}var de=!0,ee=!1;(Se.children||[]).filter(function(he){return!Q(he.node)}).forEach(function(he){var oe=he.key,L=ve.has(oe);de&&!L&&(de=!1),!ee&&(L||De.has(oe))&&(ee=!0)}),de||ve.delete(Se.key),ee&&De.add(Se.key),j.add(Se.key)})}return{checkedKeys:Array.from(ve),halfCheckedKeys:Array.from(Oe(De,ve))}}function ce(B,D,w,te){var Q=[],ve;te?ve=te:ve=xe;var De=new Set(B.filter(function(H){var ae=!!w[H];return ae||Q.push(H),ae})),ie=new Map,I=0;Object.keys(w).forEach(function(H){var ae=w[H],ne=ae.level,Se=ie.get(ne);Se||(Se=new Set,ie.set(ne,Se)),Se.add(ae),I=Math.max(I,ne)}),Object(X.a)(!Q.length,"Tree missing follow keys: ".concat(Q.slice(0,100).map(function(H){return"'".concat(H,"'")}).join(", ")));var j;return D===!0?j=Ne(De,ie,I,ve):j=Ee(De,D.halfCheckedKeys,ie,I,ve),j}},OLES:function(ot,Ve,p){"use strict";var X=p("U8pU"),Oe=p("VTBJ"),xe=p("Ff2n"),Ne=p("cDcd"),Ee=p("uciX"),ce=p("7ixt"),B=function(De){var ie=De.overlay,I=De.prefixCls,j=De.id,H=De.overlayInnerStyle;return Ne.createElement("div",{className:"".concat(I,"-inner"),id:j,role:"tooltip",style:H},typeof ie=="function"?ie():ie)},D=B,w=function(De,ie){var I=De.overlayClassName,j=De.trigger,H=j===void 0?["hover"]:j,ae=De.mouseEnterDelay,ne=ae===void 0?0:ae,Se=De.mouseLeaveDelay,Re=Se===void 0?.1:Se,de=De.overlayStyle,ee=De.prefixCls,he=ee===void 0?"rc-tooltip":ee,oe=De.children,L=De.onVisibleChange,J=De.afterVisibleChange,V=De.transitionName,C=De.animation,re=De.placement,$=re===void 0?"right":re,k=De.align,N=k===void 0?{}:k,Y=De.destroyTooltipOnHide,K=Y===void 0?!1:Y,W=De.defaultVisible,u=De.getTooltipContainer,s=De.overlayInnerStyle,x=Object(xe.a)(De,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),R=Object(Ne.useRef)(null);Object(Ne.useImperativeHandle)(ie,function(){return R.current});var q=Object(Oe.a)({},x);"visible"in De&&(q.popupVisible=De.visible);var ge=function(){var O=De.arrowContent,b=O===void 0?null:O,_=De.overlay,d=De.id;return[Ne.createElement("div",{className:"".concat(he,"-arrow"),key:"arrow"},b),Ne.createElement(D,{key:"content",prefixCls:he,id:d,overlay:_,overlayInnerStyle:s})]},fe=!1,pe=!1;if(typeof K=="boolean")fe=K;else if(K&&Object(X.a)(K)==="object"){var P=K.keepParent;fe=P===!0,pe=P===!1}return Ne.createElement(Ee.a,Object.assign({popupClassName:I,prefixCls:he,popup:ge,action:H,builtinPlacements:ce.a,popupPlacement:$,ref:R,popupAlign:N,getPopupContainer:u,onPopupVisibleChange:L,afterPopupVisibleChange:J,popupTransitionName:V,popupAnimation:C,defaultPopupVisible:W,destroyPopupOnHide:fe,autoDestroy:pe,mouseLeaveDelay:Re,popupStyle:de,mouseEnterDelay:ne},q),oe)},te=Object(Ne.forwardRef)(w),Q=Ve.a=te},OZM5:function(ot,Ve,p){"use strict";p.d(Ve,"b",function(){return te}),p.d(Ve,"a",function(){return Q}),p.d(Ve,"k",function(){return ve}),p.d(Ve,"h",function(){return De}),p.d(Ve,"i",function(){return ie}),p.d(Ve,"g",function(){return I}),p.d(Ve,"c",function(){return j}),p.d(Ve,"d",function(){return H}),p.d(Ve,"j",function(){return Se}),p.d(Ve,"e",function(){return Re}),p.d(Ve,"f",function(){return de});var X=p("KQm4"),Oe=p("U8pU"),xe=p("Ff2n"),Ne=p("cDcd"),Ee=p.n(Ne),ce=p("Kwbf"),B=p("WaYH"),D=.25,w=2;function te(ee,he){var oe=ee.slice(),L=oe.indexOf(he);return L>=0&&oe.splice(L,1),oe}function Q(ee,he){var oe=ee.slice();return oe.indexOf(he)===-1&&oe.push(he),oe}function ve(ee){return ee.split("-")}function De(ee,he){return"".concat(ee,"-").concat(he)}function ie(ee){return ee&&ee.type&&ee.type.isTreeNode}function I(ee,he){var oe=[ee],L=he[ee];function J(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];V.forEach(function(C){var re=C.key,$=C.children;oe.push(re),J($)})}return J(L.children),oe}function j(ee,he){var oe=ee.clientY,L=he.selectHandle.getBoundingClientRect(),J=L.top,V=L.bottom,C=L.height,re=Math.max(C*D,w);return oe<=J+re?-1:oe>=V-re?1:0}function H(ee,he){if(!ee)return;var oe=he.multiple;return oe?ee.slice():ee.length?[ee[0]]:ee}var ae=function(he){return he};function ne(ee,he){if(!ee)return[];var oe=he||{},L=oe.processProps,J=L===void 0?ae:L,V=Array.isArray(ee)?ee:[ee];return V.map(function(C){var re=C.children,$=Object(xe.a)(C,["children"]),k=ne(re,he);return Ee.a.createElement(B.a,Object.assign({},J($)),k)})}function Se(ee){if(!ee)return null;var he;if(Array.isArray(ee))he={checkedKeys:ee,halfCheckedKeys:void 0};else if(Object(Oe.a)(ee)==="object")he={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return Object(ce.a)(!1,"`checkedKeys` is not an array or an object"),null;return he}function Re(ee,he){var oe=new Set;function L(J){if(oe.has(J))return;var V=he[J];if(!V)return;oe.add(J);var C=V.parent,re=V.node;if(re.disabled)return;C&&L(C.key)}return(ee||[]).forEach(function(J){L(J)}),Object(X.a)(oe)}function de(ee){var he={};return Object.keys(ee).forEach(function(oe){(oe.startsWith("data-")||oe.startsWith("aria-"))&&(he[oe]=ee[oe])}),he}},Ot1p:function(ot,Ve,p){"use strict";var X=p("2qtc"),Oe=p("kLXV"),xe=p("rAM+"),Ne=p("miYZ"),Ee=p("tsqr"),ce=p("tJVT"),B=p("jrin"),D=p("cDcd"),w=p.n(D),te=p("VrN/"),Q=p.n(te),ve=p("bdgK"),De=p("p77/"),ie=p("Bd2K"),I=p("ELLl"),j=p("19Vz"),H=p("lZu9"),ae=p("+NIl"),ne=p("kSUc"),Se=p("9Bee"),Re=function(A){var M=A.value,z=M===void 0?"":M,m=A.className,y=A.showTextOnly,E=A.showLines,T=A.style,ue=T===void 0?{}:T,ye=Object(D.useMemo)(function(){return""},[z]);return w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{dangerouslySetInnerHTML:{__html:ye}}))},de=p("0Owb"),ee=p("dejd"),he=p("C+DQ"),oe=[{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 L(A){var M=A.onActionCallback,z=A.title,m=A.icon,y=A.actionName,E=A.className,T=E===void 0?"":E,ue=A.children;function ye(){M(y)}return w.a.createElement("a",{title:z,className:T,onClick:ye},w.a.createElement("i",{className:"md-iconfont ".concat(m)}),ue)}var J=function(A){var M=A.watch,z=A.showNullButton,m=A.onActionCallback,y=A.fullScreen,E=A.insertTemp,T=A.hidetoolBar,ue=[].concat(oe,[{title:"".concat(M?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(M?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return w.a.createElement("ul",{className:"markdown-toolbar-container"},!T&&ue.map(function(ye,Ke){return w.a.createElement("li",{key:Ke},ye.actionName?w.a.createElement(L,Object(de.a)({},ye,{onActionCallback:m})):w.a.createElement("span",{className:"v-line"}))}),z?w.a.createElement("li",null,w.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:m},w.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,E&&w.a.createElement("li",null,w.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(E),onActionCallback:m},w.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),w.a.createElement("li",{className:"btn-full-screen"},w.a.createElement(L,{icon:"".concat(y?"icon-shrink":"icon-enlarge"),title:y?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:m})))},V=p("M8RZ"),C=p("+L6B"),re=p("2/Rp"),$=p("y8nQ"),k=p("Vl3Y"),N=p("5NDa"),Y=p("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},W=function(A){var M=A.callback,z=A.onCancel;function m(y){M(y)}return w.a.createElement(k.a,Object(de.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:m}),w.a.createElement(k.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},w.a.createElement(Y.a,null)),w.a.createElement(k.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},w.a.createElement(Y.a,null)),w.a.createElement("div",{className:"flex-container flex-end"},w.a.createElement(re.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),w.a.createElement(re.a,{type:"ghost",onClick:z},"\u53D6\u6D88")))},u=p("7ahc"),s=p("HmJG"),x=p("BjJ7"),R=k.a.useForm,q={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}},fe=function(A){var M=A.callback,z=A.onCancel,m=R(),y=Object(ce.a)(m,1),E=y[0];function T(Ke){M(Ke)}function ue(Ke,nt){E.setFieldsValue({src:"/api/attachments/".concat(Ke.id),type:nt.type})}function ye(Ke){var nt=Ke.target.files[0];P(nt,ue)}return w.a.createElement(k.a,Object(de.a)({form:E},ge,{className:"upload-image-panel",onFinish:T}),w.a.createElement(k.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},w.a.createElement("div",{className:"flex-container"},w.a.createElement(k.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},w.a.createElement(Y.a,{style:q})),w.a.createElement(pe,{onFileChange:ye}))),w.a.createElement(k.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},w.a.createElement(Y.a,{style:{width:264}})),w.a.createElement(k.a.Item,{style:{textAlign:"right"}},w.a.createElement(re.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),w.a.createElement(re.a,{type:"ghost",onClick:z},"\u53D6\u6D88")))};function pe(A){var M=A.onFileChange;return w.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",w.a.createElement("input",{type:"file",onChange:M}))}function P(A,M){if(!A)throw new String("\u6CA1\u6709\u6587\u4EF6");var z=new FormData;z.append("editormd-image-file",A),z.append("file_param_name","editormd-image-file"),z.append("byxhr","true");var m=new window.XMLHttpRequest;m.withCredentials=!0,m.addEventListener("load",function(y){M(JSON.parse(y.target.responseText),A)},!1),m.addEventListener("error",function(y){console.error(y)},!1),m.open("POST","".concat(x.a,"/api/attachments.json")),m.send(z)}var v=p("giR+"),O=p("fyUT"),b=p("7Kak"),_=p("9yH6"),d=_.a.Group,f={margin:"0 8px"},g=function(A){var M=A.callback,z=A.onCancel;function m(y){M(y)}return w.a.createElement(k.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:m},w.a.createElement("div",{className:"flex-container"},w.a.createElement("span",{style:f},"\u5355\u5143\u683C\u6570\uFF1A"),w.a.createElement("span",{style:f},"\u884C\u6570"),w.a.createElement(k.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},w.a.createElement(O.a,null)),w.a.createElement("span",{style:f},"\u5217\u6570"),w.a.createElement(k.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},w.a.createElement(O.a,null))),w.a.createElement("div",{className:"flex-container",style:{marginTop:12}},w.a.createElement("span",{style:f},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),w.a.createElement(k.a.Item,{name:"align"},w.a.createElement(d,null,w.a.createElement(_.a,{value:"default"},w.a.createElement("i",{className:"fa fa-align-justify"})),w.a.createElement(_.a,{value:"left"},w.a.createElement("i",{className:"fa fa-align-left"})),w.a.createElement(_.a,{value:"center"},w.a.createElement("i",{className:"fa fa-align-center"})),w.a.createElement(_.a,{value:"right"},w.a.createElement("i",{className:"fa fa-align-right"}))))),w.a.createElement("div",{className:"flex-container flex-end"},w.a.createElement(re.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),w.a.createElement(re.a,{type:"ghost",onClick:z},"\u53D6\u6D88")))},S=p("m3rI"),Z="link",F="upload-image",le="code-block",ke="add-table",Ae="------------",Ie={default:Ae,left:":".concat(Ae),center:":".concat(Ae,":"),right:"".concat(Ae,":")},Le=p("9VGf"),_e,Ge;function se(){}var Te=0,Me=1e4,Pe="\u2581",We=`
**\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 Ue(A){return/^\d+$/.test(A)?"".concat(A,"px"):A}var be=navigator.platform.toUpperCase().indexOf("MAC")>=0,He=be?"Cmd":"Ctrl",Be=(_e={},Object(B.a)(_e,He+"-B","bold"),Object(B.a)(_e,He+"-I","italic"),_e),we=(Ge={},Object(B.a)(Ge,Z,"\u6DFB\u52A0\u94FE\u63A5"),Object(B.a)(Ge,le,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(B.a)(Ge,F,"\u6DFB\u52A0\u56FE\u7247"),Object(B.a)(Ge,ke,"\u6DFB\u52A0\u8868\u683C"),Ge),je=Ve.a=function(A){var M=A.defaultValue,z=M===void 0?"":M,m=A.onChange,y=A.width,E=y===void 0?"100%":y,T=A.height,ue=T===void 0?400:T,ye=A.miniToolbar,Ke=ye===void 0?!1:ye,nt=A.isFocus,lt=nt===void 0?!1:nt,tt=A.watch,Ct=A.insertTemp,mt=A.mode,rt=mt===void 0?"markdown":mt,At=A.id,bt=At===void 0?"markdown-editor-id":At,vt=A.showResizeBar,gt=vt===void 0?!1:vt,dt=A.noStorage,kt=dt===void 0?!1:dt,Nt=A.showNullButton,Bt=Nt===void 0?!1:Nt,Qt=A.hidetoolBar,Ot=Qt===void 0?!1:Qt,Sn=A.fullScreen,Kt=Sn===void 0?!1:Sn,jt=A.onBlur,ln=A.onCMBeforeChange,St=A.onFullScreen,qe=A.className,zt=qe===void 0?"":qe,bn=A.disablePaste,sn=bn===void 0?!1:bn,wt=A.placeholder,un=wt===void 0?"":wt,Gt=A.values,$n=Gt===void 0?"":Gt,ze=Object(D.useState)(null),ft=Object(ce.a)(ze,2),$e=ft[0],Un=ft[1],Yn=Object(D.useState)(z),Ln=Object(ce.a)(Yn,2),Jn=Ln[0],ut=Ln[1],Bn=Object(D.useState)(tt),qn=Object(ce.a)(Bn,2),cn=qn[0],qt=qn[1],ra=Object(D.useState)(Kt),On=Object(ce.a)(ra,2),rn=On[0],Xt=On[1],Ut=Object(D.useState)(""),It=Object(ce.a)(Ut,2),yt=It[0],Ft=It[1],yn=Object(D.useState)(0),en=Object(ce.a)(yn,2),dn=en[0],Tn=en[1],In=Object(D.useState)(ue),tn=Object(ce.a)(In,2),Ht=tn[0],_n=tn[1],Kn=Object(D.useState)(!1),nn=Object(ce.a)(Kn,2),La=nn[0],mn=nn[1],fn=Object(D.useRef)(),Tt=Object(D.useRef)(),st=Object(D.useRef)(),Qe=Object(D.useRef)();Object(D.useEffect)(function(){ut($n),$e==null||$e.setValue($n)},[$n]),Object(D.useEffect)(function(){St==null||St(rn)},[rn]),Object(D.useEffect)(function(){if(fn.current){var it=Q.a.fromTextArea(fn.current,{mode:rt,lineNumbers:!Ke,lineWrapping:!0,value:z,autoCloseTags:!0,autoCloseBrackets:!0});lt&&it.focus();function xt(pt,_t){if(sn){_t.preventDefault();return}var Mt=_t.clipboardData;if(Mt){var Dt=Mt.types.toString(),$t=Mt.items,Yt=["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(Dt==="Files"||Mt.types.indexOf("Files")>-1){if(_t.preventDefault(),rt=="stex")return;try{var Rn,sa=$t[1];((Rn=$t[0])===null||Rn===void 0?void 0:Rn.kind)==="file"&&(sa=$t[0]);var Vt=sa.getAsFile(),xa=Vt.name.split(".").pop();P(Vt,function(Nn){if(Nn.id){var Ea,wa,Ka;(Vt==null||((Ea=Vt.type)===null||Ea===void 0)?void 0:Ea.indexOf("image"))>-1?it.replaceSelection("![,](/api/attachments/".concat(Nn.id,"?type=").concat(Nn.content_type,")")):(Vt==null||((wa=Vt.type)===null||wa===void 0)?void 0:wa.indexOf("video"))>-1?it.replaceSelection('<video width="100%" controls src="'.concat(S.a.API_SERVER,"/api/attachments/").concat(Nn.id,'"></video>')):(Vt==null||((Ka=Vt.type)===null||Ka===void 0)?void 0:Ka.indexOf("pdf"))>-1?it.replaceSelection('<a href="'.concat(S.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(Vt.type,'&disposition=inline" target="_blank">').concat(Vt.name,"</a>")):Yt.includes(xa)?it.replaceSelection('<a href="'.concat(S.a.API_SERVER,"/api/attachments/").concat(Nn.id,'?type=office&disposition=inline" target="_blank">').concat(Vt.name,"</a>")):it.replaceSelection("[".concat(Vt.name,"](").concat(S.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(Nn.content_type,")"))}else(Nn==null?void 0:Nn.status)===401&&(document.location.href="/user/login")})}catch(Nn){Ee.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return it.on("paste",xt),Un(it),function(){it.off("paste",xt)}}},[]);var xn=Object(D.useCallback)(function(){if(Tt.current)try{}catch(it){console.log(it,"---- to set md editor body height")}},[Ht,Tt,rn]);Object(D.useEffect)(function(){function it(){var pt=new ve.default(function(_t){var Mt=Object(xe.a)(_t),Dt;try{for(Mt.s();!(Dt=Mt.n()).done;){var $t=Dt.value;($t.target.offsetHeight>0||$t.target.offsetWidth>0)&&(xn(),$e.setSize("100%","100%"),$e.refresh())}}catch(Yt){Mt.e(Yt)}finally{Mt.f()}});return pt.observe(fn.current.parentElement),pt}if($e){var xt=it();return function(){xt.unobserve(fn.current.parentElement)}}},[$e,xn]),Object(D.useEffect)(function(){if($e){for(var it=[],xt=function(){var $t=_t[pt];Mt=Object(ce.a)($t,2);var Yt=Mt[0],Rn=Mt[1],sa=Object(B.a)({},Yt,function(){Pt(Rn)});it.push(sa),$e.addKeyMap(sa)},pt=0,_t=Object.entries(Be);pt<_t.length;pt++){var Mt;xt()}return function(){var Dt=Object(xe.a)(it),$t;try{for(Dt.s();!($t=Dt.n()).done;){var Yt=$t.value;$e.removeKeyMap(Yt)}}catch(Rn){Dt.e(Rn)}finally{Dt.f()}}}},[$e]),Object(D.useEffect)(function(){Kt!==rn&&Xt(Kt)},[Kt]),Object(Le.a)(function(){if(!kt&&dn>0){var it=new Date().getTime(),xt=window.sessionStorage.getItem(bt);it>=dn+Me&&(!xt||xt!==Jn)&&(window.sessionStorage.setItem(bt,Jn),mn(!0))}},Me),Object(D.useEffect)(function(){qt(tt)},[$e,tt]),Object(D.useEffect)(function(){$e&&(lt&&$e.focus())},[$e,lt]),Object(D.useEffect)(function(){if(cn&&$e){var it=$e.getScrollerElement();function xt(pt){var _t=pt.target;if(Qe.current){var Mt=_t.scrollTop/_t.scrollHeight;Qe.current.scrollTop=Qe.current.scrollHeight*Mt}}return it.addEventListener("scroll",xt),function(){it.removeEventListener("scroll",xt)}}},[$e,cn]),Object(D.useEffect)(function(){if($e&&ln){function it(xt,pt){ln(xt,pt)}return $e.on("beforeChange",it),function(){$e.off("beforeChange",it)}}},[$e,ln]),Object(D.useEffect)(function(){if($e&&jt){function it(){jt($e.getValue())}return $e.on("blur",it),function(){$e.off("blur",it)}}},[$e,jt]),Object(D.useEffect)(function(){if($e){function it(xt){var pt=xt.getValue();ut(pt),Tn(new Date().getTime()),xt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),m&&m(pt)}return $e.on("change",it),function(){$e.off("change",it)}}},[$e,m]),Object(D.useEffect)(function(){$e&&(z==null?($e.setValue(""),ut("")):z!==$e.getValue()&&($e.setValue(z),ut(z),$e.setCursor($e.lineCount(),0)))},[$e,z]);var Pt=Object(D.useCallback)(function(it){var xt=$e.getCursor(),pt=$e.getSelection(),_t=pt.split(`
`);switch(it){case"bold":return $e.replaceSelection("**"+pt+"**"),pt===""&&$e.setCursor(xt.line,xt.ch+2),$e.focus();case"italic":return $e.replaceSelection("*"+pt+"*"),pt===""&&$e.setCursor(xt.line,xt.ch+1),$e.focus();case"code":return $e.replaceSelection("`"+pt+"`"),pt===""&&$e.setCursor(xt.line,xt.ch+1),$e.focus();case"inline-latex":return $e.replaceSelection("`$$"+pt+"$$`"),pt===""&&$e.setCursor(xt.line,xt.ch+3),$e.focus();case"latex":return $e.replaceSelection("```latex\n"+pt+"\n```"),$e.setCursor(xt.line+1,pt.length+1),$e.focus();case"line-break":return $e.replaceSelection(`<br/>
`),$e.focus();case"list-ul":return pt===""?$e.replaceSelection("- "+pt):$e.replaceSelection(_t.map(function(Mt){return Mt===""?"":"- ".concat(Mt)}).join(`
`)),$e.focus();case"list-ol":return pt===""?$e.replaceSelection("1. "+pt):$e.replaceSelection(_t.map(function(Mt,Dt){return Mt===""?"":"".concat(Dt+1,". ").concat(Mt)}).join(`
`)),$e.focus();case"add-null-ch":return pt===""&&$e.setCursor(xt.line,xt.ch+1),$e.replaceSelection(Pe),$e.focus();case"inster-template-1":return pt===""&&$e.setCursor(xt.line,xt.ch),$e.replaceSelection(We),$e.focus();case"eraser":return $e.setValue(""),$e.focus();case"trigger-watch":return qt(!cn),$e.focus();case"trigger-full-screen":return Xt(!rn),$e.focus();case Z:Ft(Z);return;case le:Ft(le);return;case F:Ft(F);return;case ke:Ft(ke);return;default:throw new Error}},[$e,cn,rn]),vn=Object(D.useCallback)(function(it){Ft("");switch(yt){case Z:var xt=it.title,pt=it.link;return $e.replaceSelection("[".concat(xt,"](").concat(pt,")")),$e.focus();case le:var _t=it.language,Mt=it.content;return $e.replaceSelection(["```"+_t,Mt,"```"].join(`
`)),$e.focus();case F:var Dt=it.src,$t=it.alt;return $e.replaceSelection("![ ".concat($t," ]( ").concat(Dt,' "').concat($t,'" )')),$e.focus();case ke:for(var Yt=it.row,Rn=it.col,sa=it.align,Vt=`
`,xa=0;xa<Yt;xa++){for(var Nn=[],Ea=[],wa=0;wa<Rn;wa++)xa===1&&Ea.push(Ie[sa]),Nn.push(" ");xa===1&&(Vt+="| ".concat(Ea.join(" | "),` |
`)),Vt+="| ".concat(Nn.join(Rn===1?"":" | "),` |
`)}return $e.replaceSelection(Vt+`
`),$e.focus();default:throw new Error}},[$e,yt]),ea=Object(D.useMemo)(function(){switch(yt){case Z:return w.a.createElement(W,{callback:vn,onCancel:Mn});case le:return w.a.createElement(u.b,{callback:vn,onCancel:Mn});case F:return w.a.createElement(fe,{callback:vn,onCancel:Mn});case ke:return w.a.createElement(g,{callback:vn,onCancel:Mn});default:return null}},[yt]);function Mn(){Ft("")}Object(D.useEffect)(function(){if(st.current){var it=st.current,xt=!1,pt=0;function _t($t){xt=!0,pt=$t.pageY}function Mt(){xt=!1}function Dt($t){if(xt){var Yt=$t.pageY-pt;Yt<0&&(Yt=0),Yt>300&&(Yt=300);var Rn=ue+Yt+"px";_n(Rn)}}return it.addEventListener("mousedown",_t),document.addEventListener("mousemove",Dt),document.addEventListener("mouseup",Mt),function(){it.removeEventListener("mousedown",_t),document.removeEventListener("mousemove",Dt),document.removeEventListener("mouseup",Mt)}}},[$e,st]),Object(D.useEffect)(function(){_n(ue)},[ue]);var ia=Ue(E),oa=Ue(Ht),la={width:ia,height:oa},aa=Object(D.useMemo)(function(){if(dn){var it=new Date(dn),xt=it.getHours(),pt=it.getMinutes(),_t=it.getSeconds();return xt=xt<10?"0"+xt:xt,pt=pt<10?"0"+pt:pt,_t=_t<10?"0"+_t:_t,"".concat(xt,":").concat(pt,":").concat(_t)}return 0},[dn]);function fa(){window.sessionStorage.removeItem(bt),mn(!1),Tn(0)}function ha(){mn(!1),Tn(0),$e.setValue(window.sessionStorage.getItem(bt))}return w.a.createElement(D.Fragment,null,w.a.createElement("div",{className:"markdown-editor-wrapper",ref:Tt},w.a.createElement("div",{className:"markdown-editor-container ".concat(zt," ").concat(cn?"on-preview":""," ").concat(Ke?"mini":""," ").concat(rn?"full-screen":""),style:la},w.a.createElement(J,{insertTemp:Ct,watch:cn,fullScreen:rn,showNullButton:Bt,onActionCallback:Pt,hidetoolBar:Ot}),w.a.createElement("div",{className:"markdown-editor-body"},w.a.createElement("div",{className:"codemirror-container"},w.a.createElement("textarea",{ref:fn,placeholder:un})),cn?w.a.createElement("div",{ref:Qe,className:"preview-container"},rt==="stex"&&w.a.createElement(Re,{value:Jn}),rt!=="stex"&&w.a.createElement(Se.a,{value:Jn})):null))),gt?w.a.createElement("a",{ref:st,className:"editor-resize"}):null,w.a.createElement(V.a,null,we[yt]?w.a.createElement(Oe.a,{centered:!0,title:we[yt],visible:!0,onCancel:Mn,footer:null},ea):null))}},RxwV:function(ot,Ve,p){"use strict";var X=p("cDcd"),Oe=p("uciX"),xe=p("2W6z"),Ne=p.n(xe),Ee=p("4IlW"),ce=p("uK0f"),B=p.n(ce);function D(v,O){if(v===O)return!0;if(!v||!O)return!1;var b=v.length;if(O.length!==b)return!1;for(var _=0;_<b;_++)if(v[_]!==O[_])return!1;return!0}function w(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(b){return typeof b}:w=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},w(v)}function te(v,O){if(!(v instanceof O))throw new TypeError("Cannot call a class as a function")}function Q(v,O){for(var b=0;b<O.length;b++){var _=O[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}function ve(v,O,b){return O&&Q(v.prototype,O),b&&Q(v,b),v}function De(v,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(O&&O.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),O&&ie(v,O)}function ie(v,O){return ie=Object.setPrototypeOf||function(_,d){return _.__proto__=d,_},ie(v,O)}function I(v){var O=ae();return function(){var b=ne(v),_;if(O){var d=ne(this).constructor;_=Reflect.construct(b,arguments,d)}else _=b.apply(this,arguments);return j(this,_)}}function j(v,O){return O&&(w(O)==="object"||typeof O=="function")?O:H(v)}function H(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function ae(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(v){return!1}}function ne(v){return ne=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},ne(v)}var Se=function(){var v=function(O){De(_,O);var b=I(_);function _(){var d;return te(this,_),d=b.apply(this,arguments),d.menuItems={},d.saveMenuItem=function(f){return function(g){d.menuItems[f]=g}},d}return ve(_,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(f){!f.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(f){var g=this.props,S=g.fieldNames,Z=g.defaultFieldNames;return S[f]||Z[f]}},{key:"getOption",value:function(f,g){var S=this.props,Z=S.prefixCls,F=S.expandTrigger,le=S.expandIcon,ke=S.loadingIcon,Ae=this.props.onSelect.bind(this,f,g),Ie=this.props.onItemDoubleClick.bind(this,f,g),Le={onClick:Ae,onDoubleClick:Ie},_e="".concat(Z,"-menu-item"),Ge=null,se=f[this.getFieldName("children")]&&f[this.getFieldName("children")].length>0;(se||f.isLeaf===!1)&&(_e+=" ".concat(Z,"-menu-item-expand"),f.loading||(Ge=X.createElement("span",{className:"".concat(Z,"-menu-item-expand-icon")},le))),F==="hover"&&(se||f.isLeaf===!1)&&(Le={onMouseEnter:this.delayOnSelect.bind(this,Ae),onMouseLeave:this.delayOnSelect.bind(this),onClick:Ae}),this.isActiveOption(f,g)&&(_e+=" ".concat(Z,"-menu-item-active"),Le.ref=this.saveMenuItem(g)),f.disabled&&(_e+=" ".concat(Z,"-menu-item-disabled"));var Te=null;f.loading&&(_e+=" ".concat(Z,"-menu-item-loading"),Te=ke||null);var Me="";return"title"in f?Me=f.title:typeof f[this.getFieldName("label")]=="string"&&(Me=f[this.getFieldName("label")]),X.createElement("li",Object.assign({key:f[this.getFieldName("value")],className:_e,title:Me},Le,{role:"menuitem",onMouseDown:function(We){return We.preventDefault()}}),f[this.getFieldName("label")],Ge,Te)}},{key:"getActiveOptions",value:function(f){var g=this,S=this.props.options,Z=f||this.props.activeValue;return B()(S,function(F,le){return F[g.getFieldName("value")]===Z[le]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var f=this,g=this.props.options,S=this.getActiveOptions().map(function(Z){return Z[f.getFieldName("children")]}).filter(function(Z){return!!Z});return S.unshift(g),S}},{key:"delayOnSelect",value:function(f){for(var g=this,S=arguments.length,Z=new Array(S>1?S-1:0),F=1;F<S;F++)Z[F-1]=arguments[F];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof f=="function"&&(this.delayTimer=window.setTimeout(function(){f(Z),g.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var f=this.getShowOptions().length,g=0;g<f;g++){var S=this.menuItems[g];S&&S.parentElement&&(S.parentElement.scrollTop=S.offsetTop)}}},{key:"isActiveOption",value:function(f,g){var S=this.props.activeValue,Z=S===void 0?[]:S;return Z[g]===f[this.getFieldName("value")]}},{key:"render",value:function(){var f=this,g=this.props,S=g.prefixCls,Z=g.dropdownMenuColumnStyle;return X.createElement("div",null,this.getShowOptions().map(function(F,le){return X.createElement("ul",{className:"".concat(S,"-menu"),key:le,style:Z},F.map(function(ke){return f.getOption(ke,le)}))}))}}]),_}(X.Component);return v.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},v}(),Re=Se,de={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},ee=de;function he(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?he=function(b){return typeof b}:he=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},he(v)}function oe(v,O){if(v==null)return{};var b=L(v,O),_,d;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(v);for(d=0;d<f.length;d++){if(_=f[d],O.indexOf(_)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(v,_))continue;b[_]=v[_]}}return b}function L(v,O){if(v==null)return{};var b={},_=Object.keys(v),d,f;for(f=0;f<_.length;f++){if(d=_[f],O.indexOf(d)>=0)continue;b[d]=v[d]}return b}function J(v){return $(v)||re(v)||C(v)||V()}function V(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(v,O){if(!v)return;if(typeof v=="string")return k(v,O);var b=Object.prototype.toString.call(v).slice(8,-1);if(b==="Object"&&v.constructor&&(b=v.constructor.name),b==="Map"||b==="Set")return Array.from(v);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return k(v,O)}function re(v){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(v))return Array.from(v)}function $(v){if(Array.isArray(v))return k(v)}function k(v,O){(O==null||O>v.length)&&(O=v.length);for(var b=0,_=new Array(O);b<O;b++)_[b]=v[b];return _}function N(v,O){if(!(v instanceof O))throw new TypeError("Cannot call a class as a function")}function Y(v,O){for(var b=0;b<O.length;b++){var _=O[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}function K(v,O,b){return O&&Y(v.prototype,O),b&&Y(v,b),v}function W(v,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(O&&O.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),O&&u(v,O)}function u(v,O){return u=Object.setPrototypeOf||function(_,d){return _.__proto__=d,_},u(v,O)}function s(v){var O=q();return function(){var b=ge(v),_;if(O){var d=ge(this).constructor;_=Reflect.construct(b,arguments,d)}else _=b.apply(this,arguments);return x(this,_)}}function x(v,O){return O&&(he(O)==="object"||typeof O=="function")?O:R(v)}function R(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function q(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(v){return!1}}function ge(v){return ge=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},ge(v)}var fe=function(){var v=function(O){W(_,O);var b=s(_);function _(d){var f;N(this,_),f=b.call(this,d),f.setPopupVisible=function(S){var Z=f.state.value;"popupVisible"in f.props||f.setState({popupVisible:S}),S&&!f.state.popupVisible&&f.setState({activeValue:Z}),f.props.onPopupVisibleChange(S)},f.handleChange=function(S,Z,F){var le=Z.visible;(F.type!=="keydown"||F.keyCode===Ee.a.ENTER)&&(f.props.onChange(S.map(function(ke){return ke[f.getFieldName("value")]}),S),f.setPopupVisible(le))},f.handlePopupVisibleChange=function(S){f.setPopupVisible(S)},f.handleMenuSelect=function(S,Z,F){var le=f.trigger.getRootDomNode();le&&le.focus&&le.focus();var ke=f.props,Ae=ke.changeOnSelect,Ie=ke.loadData,Le=ke.expandTrigger;if(!S||S.disabled)return;var _e=f.state.activeValue;_e=_e.slice(0,Z+1),_e[Z]=S[f.getFieldName("value")];var Ge=f.getActiveOptions(_e);if(S.isLeaf===!1&&!S[f.getFieldName("children")]&&Ie){Ae&&f.handleChange(Ge,{visible:!0},F),f.setState({activeValue:_e}),Ie(Ge);return}var se={};!S[f.getFieldName("children")]||!S[f.getFieldName("children")].length?(f.handleChange(Ge,{visible:!1},F),se.value=_e):Ae&&(F.type==="click"||F.type==="keydown")&&(Le==="hover"?f.handleChange(Ge,{visible:!1},F):f.handleChange(Ge,{visible:!0},F),se.value=_e),se.activeValue=_e,("value"in f.props||F.type==="keydown"&&F.keyCode!==Ee.a.ENTER)&&delete se.value,f.setState(se)},f.handleItemDoubleClick=function(){var S=f.props.changeOnSelect;S&&f.setPopupVisible(!1)},f.handleKeyDown=function(S){var Z=f.props.children;if(Z&&Z.props.onKeyDown){Z.props.onKeyDown(S);return}var F=J(f.state.activeValue),le=F.length-1<0?0:F.length-1,ke=f.getCurrentLevelOptions(),Ae=ke.map(function(Ge){return Ge[f.getFieldName("value")]}).indexOf(F[le]);if(S.keyCode!==Ee.a.DOWN&&S.keyCode!==Ee.a.UP&&S.keyCode!==Ee.a.LEFT&&S.keyCode!==Ee.a.RIGHT&&S.keyCode!==Ee.a.ENTER&&S.keyCode!==Ee.a.SPACE&&S.keyCode!==Ee.a.BACKSPACE&&S.keyCode!==Ee.a.ESC&&S.keyCode!==Ee.a.TAB)return;if(!f.state.popupVisible&&S.keyCode!==Ee.a.BACKSPACE&&S.keyCode!==Ee.a.LEFT&&S.keyCode!==Ee.a.RIGHT&&S.keyCode!==Ee.a.ESC&&S.keyCode!==Ee.a.TAB){f.setPopupVisible(!0);return}if(S.keyCode===Ee.a.DOWN||S.keyCode===Ee.a.UP){S.preventDefault();var Ie=Ae;Ie!==-1?S.keyCode===Ee.a.DOWN?(Ie+=1,Ie=Ie>=ke.length?0:Ie):(Ie-=1,Ie=Ie<0?ke.length-1:Ie):Ie=0,F[le]=ke[Ie][f.getFieldName("value")]}else if(S.keyCode===Ee.a.LEFT||S.keyCode===Ee.a.BACKSPACE)S.preventDefault(),F.splice(F.length-1,1);else if(S.keyCode===Ee.a.RIGHT)S.preventDefault(),ke[Ae]&&ke[Ae][f.getFieldName("children")]&&F.push(ke[Ae][f.getFieldName("children")][0][f.getFieldName("value")]);else if(S.keyCode===Ee.a.ESC||S.keyCode===Ee.a.TAB){f.setPopupVisible(!1);return}(!F||F.length===0)&&f.setPopupVisible(!1);var Le=f.getActiveOptions(F),_e=Le[Le.length-1];f.handleMenuSelect(_e,Le.length-1,S),f.props.onKeyDown&&f.props.onKeyDown(S)},f.saveTrigger=function(S){f.trigger=S};var g=[];return"value"in d?g=d.value||[]:"defaultValue"in d&&(g=d.defaultValue||[]),Ne()(!("filedNames"in d),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),f.state={popupVisible:d.popupVisible,activeValue:g,value:g,prevProps:d},f.defaultFieldNames={label:"label",value:"value",children:"children"},f}return K(_,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(f){var g=this.defaultFieldNames,S=this.props,Z=S.fieldNames,F=S.filedNames;return"filedNames"in this.props?F[f]||g[f]:Z[f]||g[f]}},{key:"getFieldNames",value:function(){var f=this.props,g=f.fieldNames,S=f.filedNames;return"filedNames"in this.props?S:g}},{key:"getCurrentLevelOptions",value:function(){var f=this,g=this.props.options,S=g===void 0?[]:g,Z=this.state.activeValue,F=Z===void 0?[]:Z,le=B()(S,function(ke,Ae){return ke[f.getFieldName("value")]===F[Ae]},{childrenKeyName:this.getFieldName("children")});return le[le.length-2]?le[le.length-2][this.getFieldName("children")]:J(S).filter(function(ke){return!ke.disabled})}},{key:"getActiveOptions",value:function(f){var g=this;return B()(this.props.options||[],function(S,Z){return S[g.getFieldName("value")]===f[Z]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var f=this.props,g=f.prefixCls,S=f.transitionName,Z=f.popupClassName,F=f.options,le=F===void 0?[]:F,ke=f.disabled,Ae=f.builtinPlacements,Ie=f.popupPlacement,Le=f.children,_e=f.dropdownRender,Ge=oe(f,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),se=X.createElement("div",null),Te="";le&&le.length>0?se=X.createElement(Re,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Te=" ".concat(g,"-menus-empty");var Me=se;return _e&&(Me=_e(se)),X.createElement(Oe.a,Object.assign({ref:this.saveTrigger},Ge,{popupPlacement:Ie,builtinPlacements:Ae,popupTransitionName:S,action:ke?[]:["click"],popupVisible:ke?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(g,"-menus"),popupClassName:Z+Te,popup:Me}),X.cloneElement(Le,{onKeyDown:this.handleKeyDown,tabIndex:ke?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(f,g){var S=g.prevProps,Z=S===void 0?{}:S,F={prevProps:f};return"value"in f&&!D(Z.value,f.value)&&(F.value=f.value||[],"loadData"in f||(F.activeValue=f.value||[])),"popupVisible"in f&&(F.popupVisible=f.popupVisible),F}}]),_}(X.Component);return v.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:ee,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},v}(),pe=fe,P=Ve.a=pe},SJMd:function(ot,Ve){/**
* @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 p,X,Oe,xe=!1,Ne,Ee;window.PR_SHOULD_USE_CONTINUATION=!0;var ce,B;(function(){var D=window,w=["break,continue,do,else,for,if,return,while"],te=[w,"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"],Q=[te,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],ve=[Q,"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"],De=[Q,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],ie=[Q,"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"],I="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",j=[Q,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],H="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",ae=[w,"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"],ne=[w,"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"],Se=[w,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Re=[ve,ie,De,j,H,ae,ne,Se],de=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ee="str",he="kwd",oe="com",L="typ",J="lit",V="pun",C="pln",re="tag",$="dec",k="src",N="atn",Y="atv",K="nocode",W="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function u(F){for(var le=0,ke=!1,Ae=!1,Ie=0,Le=F.length;Ie<Le;++Ie){var _e=F[Ie];if(_e.ignoreCase)Ae=!0;else if(/[a-z]/i.test(_e.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){ke=!0,Ae=!1;break}}var Ge={b:8,t:9,n:10,v:11,f:12,r:13};function se(Ue){var be=Ue.charCodeAt(0);if(be!==92)return be;var He=Ue.charAt(1);return be=Ge[He],be||("0"<=He&&He<="7"?parseInt(Ue.substring(1),8):He==="u"||He==="x"?parseInt(Ue.substring(2),16):Ue.charCodeAt(1))}function Te(Ue){if(Ue<32)return(Ue<16?"\\x0":"\\x")+Ue.toString(16);var be=String.fromCharCode(Ue);return be==="\\"||be==="-"||be==="]"||be==="^"?"\\"+be:be}function Me(Ue){var be=Ue.substring(1,Ue.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),He=[],Be=be[0]==="^",we=["["];Be&&we.push("^");for(var je=Be?1:0,A=be.length;je<A;++je){var M=be[je];if(/\\[bdsw]/i.test(M))we.push(M);else{var z=se(M),m;je+2<A&&be[je+1]==="-"?(m=se(be[je+2]),je+=2):m=z,He.push([z,m]),m<65||z>122||(m<65||z>90||He.push([Math.max(65,z)|32,Math.min(m,90)|32]),m<97||z>122||He.push([Math.max(97,z)&~32,Math.min(m,122)&~32]))}}He.sort(function(ue,ye){return ue[0]-ye[0]||ye[1]-ue[1]});for(var y=[],E=[],je=0;je<He.length;++je){var T=He[je];T[0]<=E[1]+1?E[1]=Math.max(E[1],T[1]):y.push(E=T)}for(var je=0;je<y.length;++je){var T=y[je];we.push(Te(T[0])),T[1]>T[0]&&(T[1]+1>T[0]&&we.push("-"),we.push(Te(T[1])))}return we.push("]"),we.join("")}function Pe(Ue){for(var be=Ue.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")),He=be.length,Be=[],we=0,je=0;we<He;++we){var A=be[we];if(A==="(")++je;else if(A.charAt(0)==="\\"){var M=+A.substring(1);M&&(M<=je?Be[M]=-1:be[we]=Te(M))}}for(var we=1;we<Be.length;++we)Be[we]===-1&&(Be[we]=++le);for(var we=0,je=0;we<He;++we){var A=be[we];if(A==="(")++je,Be[je]||(be[we]="(?:");else if(A.charAt(0)==="\\"){var M=+A.substring(1);M&&M<=je&&(be[we]="\\"+Be[M])}}for(var we=0;we<He;++we)be[we]==="^"&&be[we+1]!=="^"&&(be[we]="");if(Ue.ignoreCase&&ke)for(var we=0;we<He;++we){var A=be[we],z=A.charAt(0);A.length>=2&&z==="["?be[we]=Me(A):z!=="\\"&&(be[we]=A.replace(/[a-zA-Z]/g,function(E){var T=E.charCodeAt(0);return"["+String.fromCharCode(T&~32,T|32)+"]"}))}return be.join("")}for(var We=[],Ie=0,Le=F.length;Ie<Le;++Ie){var _e=F[Ie];if(_e.global||_e.multiline)throw new Error(""+_e);We.push("(?:"+Pe(_e)+")")}return new RegExp(We.join("|"),Ae?"gi":"g")}function s(F,le){var ke=/(?:^|\s)nocode(?:\s|$)/,Ae=[],Ie=0,Le=[],_e=0;function Ge(se){var Te=se.nodeType;if(Te==1){if(ke.test(se.className))return;for(var Me=se.firstChild;Me;Me=Me.nextSibling)Ge(Me);var Pe=se.nodeName.toLowerCase();(Pe==="br"||Pe==="li")&&(Ae[_e]=`
`,Le[_e<<1]=Ie++,Le[_e++<<1|1]=se)}else if(Te==3||Te==4){var We=se.nodeValue;We.length&&(le?We=We.replace(/\r\n?/g,`
`):We=We.replace(/[ \t\r\n]+/g," "),Ae[_e]=We,Le[_e<<1]=Ie,Ie+=We.length,Le[_e++<<1|1]=se)}}return Ge(F),{sourceCode:Ae.join("").replace(/\n$/,""),spans:Le}}function x(F,le,ke,Ae,Ie){if(!ke)return;var Le={sourceNode:F,pre:1,langExtension:null,numberLines:null,sourceCode:ke,spans:null,basePos:le,decorations:null};Ae(Le),Ie.push.apply(Ie,Le.decorations)}var R=/\S/;function q(F){for(var le=void 0,ke=F.firstChild;ke;ke=ke.nextSibling){var Ae=ke.nodeType;le=Ae===1?le?F:ke:Ae===3&&R.test(ke.nodeValue)?F:le}return le===F?void 0:le}function ge(F,le){var ke={},Ae;(function(){for(var _e=F.concat(le),Ge=[],se={},Te=0,Me=_e.length;Te<Me;++Te){var Pe=_e[Te],We=Pe[3];if(We)for(var Ue=We.length;--Ue>=0;)ke[We.charAt(Ue)]=Pe;var be=Pe[1],He=""+be;se.hasOwnProperty(He)||(Ge.push(be),se[He]=null)}Ge.push(/[\0-\uffff]/),Ae=u(Ge)})();var Ie=le.length,Le=function(_e){for(var Ge=_e.sourceCode,se=_e.basePos,Te=_e.sourceNode,Me=[se,C],Pe=0,We=Ge.match(Ae)||[],Ue={},be=0,He=We.length;be<He;++be){var Be=We[be],we=Ue[Be],je=void 0,A;if(typeof we=="string")A=!1;else{var M=ke[Be.charAt(0)];if(M)je=Be.match(M[1]),we=M[0];else{for(var z=0;z<Ie;++z)if(M=le[z],je=Be.match(M[1]),je){we=M[0];break}je||(we=C)}A=we.length>=5&&we.substring(0,5)==="lang-",A&&!(je&&typeof je[1]=="string")&&(A=!1,we=k),A||(Ue[Be]=we)}var m=Pe;if(Pe+=Be.length,!A)Me.push(se+m,we);else{var y=je[1],E=Be.indexOf(y),T=E+y.length;je[2]&&(T=Be.length-je[2].length,E=T-y.length);var ue=we.substring(5);x(Te,se+m,Be.substring(0,E),Le,Me),x(Te,se+m+E,y,_(ue,y),Me),x(Te,se+m+T,Be.substring(T),Le,Me)}}_e.decorations=Me};return Le}function fe(F){var le=[],ke=[];F.tripleQuotedStrings?le.push([ee,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):F.multiLineStrings?le.push([ee,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):le.push([ee,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),F.verbatimStrings&&ke.push([ee,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Ae=F.hashComments;Ae&&(F.cStyleComments?(Ae>1?le.push([oe,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):le.push([oe,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ke.push([ee,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):le.push([oe,/^#[^\r\n]*/,null,"#"])),F.cStyleComments&&(ke.push([oe,/^\/\/[^\r\n]*/,null]),ke.push([oe,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ie=F.regexLiterals;if(Ie){var Le=Ie>1?"":`
\r`,_e=Le?".":"[\\S\\s]",Ge="/(?=[^/*"+Le+"])(?:[^/\\x5B\\x5C"+Le+"]|\\x5C"+_e+"|\\x5B(?:[^\\x5C\\x5D"+Le+"]|\\x5C"+_e+")*(?:\\x5D|$))+/";ke.push(["lang-regex",RegExp("^"+W+"("+Ge+")")])}var se=F.types;se&&ke.push([L,se]);var Te=(""+F.keywords).replace(/^ | $/g,"");Te.length&&ke.push([he,new RegExp("^(?:"+Te.replace(/[\s,]+/g,"|")+")\\b"),null]),le.push([C,/^\s+/,null,` \r
\xA0`]);var Me="^.[^\\s\\w.$@'\"`/\\\\]*";return F.regexLiterals&&(Me+="(?!s*/)"),ke.push([J,/^@[a-z_$][a-z_$@0-9]*/i,null],[L,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[C,/^[a-z_$][a-z_$@0-9]*/i,null],[J,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[C,/^\\[\s\S]?/,null],[V,new RegExp(Me),null]),ge(le,ke)}var pe=fe({keywords:Re,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function P(F,le,ke){for(var Ae=/(?:^|\s)nocode(?:\s|$)/,Ie=/\r\n?|\n/,Le=F.ownerDocument,_e=Le.createElement("li");F.firstChild;)_e.appendChild(F.firstChild);var Ge=[_e];function se(be){var He=be.nodeType;if(He==1&&!Ae.test(be.className))if(be.nodeName==="br")Te(be),be.parentNode&&be.parentNode.removeChild(be);else for(var Be=be.firstChild;Be;Be=Be.nextSibling)se(Be);else if((He==3||He==4)&&ke){var we=be.nodeValue,je=we.match(Ie);if(je){var A=we.substring(0,je.index);be.nodeValue=A;var M=we.substring(je.index+je[0].length);if(M){var z=be.parentNode;z.insertBefore(Le.createTextNode(M),be.nextSibling)}Te(be),A||be.parentNode.removeChild(be)}}}function Te(be){for(;!be.nextSibling;)if(be=be.parentNode,!be)return;function He(je,A){var M=A?je.cloneNode(!1):je,z=je.parentNode;if(z){var m=He(z,1),y=je.nextSibling;m.appendChild(M);for(var E=y;E;E=y)y=E.nextSibling,m.appendChild(E)}return M}for(var Be=He(be.nextSibling,0),we;(we=Be.parentNode)&&we.nodeType===1;)Be=we;Ge.push(Be)}for(var Me=0;Me<Ge.length;++Me)se(Ge[Me]);le===(le|0)&&Ge[0].setAttribute("value",le);var Pe=Le.createElement("ol");Pe.className="linenums";for(var We=Math.max(0,le-1|0)||0,Me=0,Ue=Ge.length;Me<Ue;++Me)_e=Ge[Me],_e.className="L"+(Me+We)%10,_e.firstChild||_e.appendChild(Le.createTextNode("\xA0")),Pe.appendChild(_e);F.appendChild(Pe)}function v(F){var le=/\bMSIE\s(\d+)/.exec(navigator.userAgent);le=le&&+le[1]<=8;var ke=/\n/g,Ae=F.sourceCode,Ie=Ae.length,Le=0,_e=F.spans,Ge=_e.length,se=0,Te=F.decorations,Me=Te.length,Pe=0;Te[Me]=Ie;var We,Ue;for(Ue=We=0;Ue<Me;)Te[Ue]!==Te[Ue+2]?(Te[We++]=Te[Ue++],Te[We++]=Te[Ue++]):Ue+=2;for(Me=We,Ue=We=0;Ue<Me;){for(var be=Te[Ue],He=Te[Ue+1],Be=Ue+2;Be+2<=Me&&Te[Be+1]===He;)Be+=2;Te[We++]=be,Te[We++]=He,Ue=Be}Me=Te.length=We;var we=F.sourceNode,je="";we&&(je=we.style.display,we.style.display="none");try{for(var A=null;se<Ge;){var M=_e[se],z=_e[se+2]||Ie,m=Te[Pe+2]||Ie,Be=Math.min(z,m),y=_e[se+1],E;if(y.nodeType!==1&&(E=Ae.substring(Le,Be))){le&&(E=E.replace(ke,"\r")),y.nodeValue=E;var T=y.ownerDocument,ue=T.createElement("span");ue.className=Te[Pe+1];var ye=y.parentNode;ye.replaceChild(ue,y),ue.appendChild(y),Le<z&&(_e[se+1]=y=T.createTextNode(Ae.substring(Be,z)),ye.insertBefore(y,ue.nextSibling))}Le=Be,Le>=z&&(se+=2),Le>=m&&(Pe+=2)}}finally{we&&(we.style.display=je)}}var O={};function b(F,le){for(var ke=le.length;--ke>=0;){var Ae=le[ke];O.hasOwnProperty(Ae)?D.console&&console.warn("cannot override language handler %s",Ae):O[Ae]=F}}function _(F,le){return F&&O.hasOwnProperty(F)||(F=/^\s*</.test(le)?"default-markup":"default-code"),O[F]}b(pe,["default-code"]),b(ge([],[[C,/^[^<?]+/],[$,/^<!\w[^>]*(?:>|$)/],[oe,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[V,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),b(ge([[C,/^[\s]+/,null,` \r
`],[Y,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[re,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[V,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),b(ge([],[[Y,/^[\s\S]+/]]),["uq.val"]),b(fe({keywords:ve,hashComments:!0,cStyleComments:!0,types:de}),["c","cc","cpp","cxx","cyc","m"]),b(fe({keywords:"null,true,false"}),["json"]),b(fe({keywords:ie,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:de}),["cs"]),b(fe({keywords:De,cStyleComments:!0}),["java"]),b(fe({keywords:Se,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),b(fe({keywords:ae,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),b(fe({keywords:H,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),b(fe({keywords:ne,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),b(fe({keywords:j,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),b(fe({keywords:I,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),b(ge([],[[ee,/^[\s\S]+/]]),["regex"]);function d(F){var le=F.langExtension;try{var ke=s(F.sourceNode,F.pre),Ae=ke.sourceCode;F.sourceCode=Ae,F.spans=ke.spans,F.basePos=0,_(le,Ae)(F),v(F)}catch(Ie){D.console&&console.log(Ie&&Ie.stack||Ie)}}function f(F,le,ke){var Ae=ke||!1,Ie=le||null,Le=document.createElement("div");Le.innerHTML="<pre>"+F+"</pre>",Le=Le.firstChild,Ae&&P(Le,Ae,!0);var _e={langExtension:Ie,numberLines:Ae,sourceNode:Le,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return d(_e),Le.innerHTML}function g(F,le){var ke=le||document.body,Ae=ke.ownerDocument||document;function Ie(M){return ke.getElementsByTagName(M)}for(var Le=[Ie("pre"),Ie("code"),Ie("xmp")],_e=[],Ge=0;Ge<Le.length;++Ge)for(var se=0,Te=Le[Ge].length;se<Te;++se)_e.push(Le[Ge][se]);Le=null;var Me=Date;Me.now||(Me={now:function(){return+new Date}});var Pe=0,We=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ue=/\bprettyprint\b/,be=/\bprettyprinted\b/,He=/pre|xmp/i,Be=/^code$/i,we=/^(?:pre|code|xmp)$/i,je={};function A(){for(var M=D.PR_SHOULD_USE_CONTINUATION?Me.now()+250:Infinity;Pe<_e.length&&Me.now()<M;Pe++){for(var z=_e[Pe],m=je,y=z;y=y.previousSibling;){var E=y.nodeType,T=(E===7||E===8)&&y.nodeValue;if(T?!/^\??prettify\b/.test(T):E!==3||/\S/.test(y.nodeValue))break;if(T){m={},T.replace(/\b(\w+)=([\w:.%+-]+)/g,function(gt,dt,kt){m[dt]=kt});break}}var ue=z.className;if((m!==je||Ue.test(ue))&&!be.test(ue)){for(var ye=!1,Ke=z.parentNode;Ke;Ke=Ke.parentNode){var nt=Ke.tagName;if(we.test(nt)&&Ke.className&&Ue.test(Ke.className)){ye=!0;break}}if(!ye){z.className+=" prettyprinted";var lt=m.lang;if(!lt){lt=ue.match(We);var tt;!lt&&(tt=q(z))&&Be.test(tt.tagName)&&(lt=tt.className.match(We)),lt&&(lt=lt[1])}var Ct;if(He.test(z.tagName))Ct=1;else{var mt=z.currentStyle,rt=Ae.defaultView,At=mt?mt.whiteSpace:rt&&rt.getComputedStyle?rt.getComputedStyle(z,null).getPropertyValue("white-space"):0;Ct=At&&At.substring(0,3)==="pre"}var bt=m.linenums;(bt=bt==="true"||+bt)||(bt=ue.match(/\blinenums\b(?::(\d+))?/),bt=bt?bt[1]&&bt[1].length?+bt[1]:!0:!1),bt&&P(z,bt,Ct);var vt={langExtension:lt,sourceNode:z,numberLines:bt,pre:Ct,sourceCode:null,basePos:null,spans:null,decorations:null};d(vt)}}}Pe<_e.length?D.setTimeout(A,250):typeof F=="function"&&F()}A()}var S=D.PR={createSimpleLexer:ge,registerLangHandler:b,sourceDecorator:fe,PR_ATTRIB_NAME:N,PR_ATTRIB_VALUE:Y,PR_COMMENT:oe,PR_DECLARATION:$,PR_KEYWORD:he,PR_LITERAL:J,PR_NOCODE:K,PR_PLAIN:C,PR_PUNCTUATION:V,PR_SOURCE:k,PR_STRING:ee,PR_TAG:re,PR_TYPE:L,prettyPrintOne:xe?D.prettyPrintOne=f:ce=f,prettyPrint:B=xe?D.prettyPrint=g:B=g},Z=D.define;typeof Z=="function"&&Z.amd&&Z("google-code-prettify",[],function(){return S})})()},"VrN/":function(ot,Ve,p){(function(X,Oe){ot.exports=Oe()})(this,function(){"use strict";var X=navigator.userAgent,Oe=navigator.platform,xe=/gecko\/\d/i.test(X),Ne=/MSIE \d/.test(X),Ee=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),ce=/Edge\/(\d+)/.exec(X),B=Ne||Ee||ce,D=B&&(Ne?document.documentMode||6:+(ce||Ee)[1]),w=!ce&&/WebKit\//.test(X),te=w&&/Qt\/\d+\.\d+/.test(X),Q=!ce&&/Chrome\//.test(X),ve=/Opera\//.test(X),De=/Apple Computer/.test(navigator.vendor),ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),I=/PhantomJS/.test(X),j=!ce&&/AppleWebKit/.test(X)&&/Mobile\/\w+/.test(X),H=/Android/.test(X),ae=j||H||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),ne=j||/Mac/.test(Oe),Se=/\bCrOS\b/.test(X),Re=/win/i.test(Oe),de=ve&&X.match(/Version\/(\d*\.\d*)/);de&&(de=Number(de[1])),de&&de>=15&&(ve=!1,w=!0);var ee=ne&&(te||ve&&(de==null||de<12.11)),he=xe||B&&D>=9;function oe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L=function(e,t){var a=e.className,n=oe(t).exec(a);if(n){var r=a.slice(n.index+n[0].length);e.className=a.slice(0,n.index)+(r?n[1]+r:"")}};function J(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function V(e,t){return J(e).appendChild(t)}function C(e,t,a,n){var r=document.createElement(e);if(a&&(r.className=a),n&&(r.style.cssText=n),typeof t=="string")r.appendChild(document.createTextNode(t));else if(t)for(var i=0;i<t.length;++i)r.appendChild(t[i]);return r}function re(e,t,a,n){var r=C(e,t,a,n);return r.setAttribute("role","presentation"),r}var $;document.createRange?$=function(e,t,a,n){var r=document.createRange();return r.setEnd(n||e,a),r.setStart(e,t),r}:$=function(e,t,a){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(r){return n}return n.collapse(!0),n.moveEnd("character",a),n.moveStart("character",t),n};function k(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function N(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Y(e,t){var a=e.className;oe(t).test(a)||(e.className+=(a?" ":"")+t)}function K(e,t){for(var a=e.split(" "),n=0;n<a.length;n++)a[n]&&!oe(a[n]).test(t)&&(t+=" "+a[n]);return t}var W=function(e){e.select()};j?W=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:B&&(W=function(e){try{e.select()}catch(t){}});function u(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function s(e,t,a){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(a!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function x(e,t,a,n,r){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var i=n||0,o=r||0;;){var l=e.indexOf(" ",i);if(l<0||l>=t)return o+(t-i);o+=l-i,o+=a-o%a,i=l+1}}var R=function(){this.id=null,this.f=null,this.time=0,this.handler=u(this.onTimeout,this)};R.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},R.prototype.set=function(e,t){this.f=t;var a=+new Date+e;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=a)};function q(e,t){for(var a=0;a<e.length;++a)if(e[a]==t)return a;return-1}var ge=50,fe={toString:function(){return"CodeMirror.Pass"}},pe={scroll:!1},P={origin:"*mouse"},v={origin:"+move"};function O(e,t,a){for(var n=0,r=0;;){var i=e.indexOf(" ",n);i==-1&&(i=e.length);var o=i-n;if(i==e.length||r+o>=t)return n+Math.min(o,t-r);if(r+=i-n,r+=a-r%a,n=i+1,r>=t)return n}}var b=[""];function _(e){for(;b.length<=e;)b.push(d(b)+" ");return b[e]}function d(e){return e[e.length-1]}function f(e,t){for(var a=[],n=0;n<e.length;n++)a[n]=t(e[n],n);return a}function g(e,t,a){for(var n=0,r=a(t);n<e.length&&a(e[n])<=r;)n++;e.splice(n,0,t)}function S(){}function Z(e,t){var a;return Object.create?a=Object.create(e):(S.prototype=e,a=new S),t&&s(t,a),a}var F=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function le(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||F.test(e))}function ke(e,t){return t?t.source.indexOf("\\w")>-1&&le(e)?!0:t.test(e):le(e)}function Ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Le(e){return e.charCodeAt(0)>=768&&Ie.test(e)}function _e(e,t,a){for(;(a<0?t>0:t<e.length)&&Le(e.charAt(t));)t+=a;return t}function Ge(e,t,a){for(var n=t>a?-1:1;;){if(t==a)return t;var r=(t+a)/2,i=n<0?Math.ceil(r):Math.floor(r);if(i==t)return e(i)?t:a;e(i)?a=i:t=i+n}}function se(e,t,a,n){if(!e)return n(t,a,"ltr",0);for(var r=!1,i=0;i<e.length;++i){var o=e[i];(o.from<a&&o.to>t||t==a&&o.to==t)&&(n(Math.max(o.from,t),Math.min(o.to,a),o.level==1?"rtl":"ltr",i),r=!0)}r||n(t,a,"ltr")}var Te=null;function Me(e,t,a){var n;Te=null;for(var r=0;r<e.length;++r){var i=e[r];if(i.from<t&&i.to>t)return r;i.to==t&&(i.from!=i.to&&a=="before"?n=r:Te=r),i.from==t&&(i.from!=i.to&&a!="before"?n=r:Te=r)}return n!=null?n:Te}var Pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(h){return h<=247?e.charAt(h):1424<=h&&h<=1524?"R":1536<=h&&h<=1785?t.charAt(h-1536):1774<=h&&h<=2220?"r":8192<=h&&h<=8203?"w":h==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function c(h,U,G){this.level=h,this.from=U,this.to=G}return function(h,U){var G=U=="ltr"?"L":"R";if(h.length==0||U=="ltr"&&!n.test(h))return!1;for(var Ce=h.length,me=[],Fe=0;Fe<Ce;++Fe)me.push(a(h.charCodeAt(Fe)));for(var Xe=0,Ye=G;Xe<Ce;++Xe){var Je=me[Xe];Je=="m"?me[Xe]=Ye:Ye=Je}for(var et=0,Ze=G;et<Ce;++et){var at=me[et];at=="1"&&Ze=="r"?me[et]="n":i.test(at)&&(Ze=at,at=="r"&&(me[et]="R"))}for(var ht=1,ct=me[0];ht<Ce-1;++ht){var Et=me[ht];Et=="+"&&ct=="1"&&me[ht+1]=="1"?me[ht]="1":Et==","&&ct==me[ht+1]&&(ct=="1"||ct=="n")&&(me[ht]=ct),ct=Et}for(var Wt=0;Wt<Ce;++Wt){var Cn=me[Wt];if(Cn==",")me[Wt]="N";else if(Cn=="%"){var Zt=void 0;for(Zt=Wt+1;Zt<Ce&&me[Zt]=="%";++Zt);for(var Qn=Wt&&me[Wt-1]=="!"||Zt<Ce&&me[Zt]=="1"?"1":"N",Xn=Wt;Xn<Zt;++Xn)me[Xn]=Qn;Wt=Zt-1}}for(var hn=0,Vn=G;hn<Ce;++hn){var An=me[hn];Vn=="L"&&An=="1"?me[hn]="L":i.test(An)&&(Vn=An)}for(var gn=0;gn<Ce;++gn)if(r.test(me[gn])){var pn=void 0;for(pn=gn+1;pn<Ce&&r.test(me[pn]);++pn);for(var an=(gn?me[gn-1]:G)=="L",Gn=(pn<Ce?me[pn]:G)=="L",ir=an==Gn?an?"L":"R":G,Aa=gn;Aa<pn;++Aa)me[Aa]=ir;gn=pn-1}for(var Pn=[],va,kn=0;kn<Ce;)if(o.test(me[kn])){var Ui=kn;for(++kn;kn<Ce&&o.test(me[kn]);++kn);Pn.push(new c(0,Ui,kn))}else{var ya=kn,Wa=Pn.length,Ba=U=="rtl"?1:0;for(++kn;kn<Ce&&me[kn]!="L";++kn);for(var Wn=ya;Wn<kn;)if(l.test(me[Wn])){ya<Wn&&(Pn.splice(Wa,0,new c(1,ya,Wn)),Wa+=Ba);var or=Wn;for(++Wn;Wn<kn&&l.test(me[Wn]);++Wn);Pn.splice(Wa,0,new c(2,or,Wn)),Wa+=Ba,ya=Wn}else++Wn;ya<kn&&Pn.splice(Wa,0,new c(1,ya,kn))}return U=="ltr"&&(Pn[0].level==1&&(va=h.match(/^\s+/))&&(Pn[0].from=va[0].length,Pn.unshift(new c(0,0,va[0].length))),d(Pn).level==1&&(va=h.match(/\s+$/))&&(d(Pn).to-=va[0].length,Pn.push(new c(0,Ce-va[0].length,Ce)))),U=="rtl"?Pn.reverse():Pn}}();function We(e,t){var a=e.order;return a==null&&(a=e.order=Pe(e.text,t)),a}var Ue=[],be=function(e,t,a){if(e.addEventListener)e.addEventListener(t,a,!1);else if(e.attachEvent)e.attachEvent("on"+t,a);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||Ue).concat(a)}};function He(e,t){return e._handlers&&e._handlers[t]||Ue}function Be(e,t,a){if(e.removeEventListener)e.removeEventListener(t,a,!1);else if(e.detachEvent)e.detachEvent("on"+t,a);else{var n=e._handlers,r=n&&n[t];if(r){var i=q(r,a);i>-1&&(n[t]=r.slice(0,i).concat(r.slice(i+1)))}}}function we(e,t){var a=He(e,t);if(!a.length)return;for(var n=Array.prototype.slice.call(arguments,2),r=0;r<a.length;++r)a[r].apply(null,n)}function je(e,t,a){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),we(e,a||t.type,e,t),E(t)||t.codemirrorIgnore}function A(e){var t=e._handlers&&e._handlers.cursorActivity;if(!t)return;for(var a=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)q(a,t[n])==-1&&a.push(t[n])}function M(e,t){return He(e,t).length>0}function z(e){e.prototype.on=function(t,a){be(this,t,a)},e.prototype.off=function(t,a){Be(this,t,a)}}function m(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function y(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function E(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function T(e){m(e),y(e)}function ue(e){return e.target||e.srcElement}function ye(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ne&&e.ctrlKey&&t==1&&(t=3),t}var Ke=function(){if(B&&D<9)return!1;var e=C("div");return"draggable"in e||"dragDrop"in e}(),nt;function lt(e){if(nt==null){var t=C("span","\u200B");V(e,C("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(nt=t.offsetWidth<=1&&t.offsetHeight>2&&!(B&&D<8))}var a=nt?C("span","\u200B"):C("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var tt;function Ct(e){if(tt!=null)return tt;var t=V(e,document.createTextNode("A\u062EA")),a=$(t,0,1).getBoundingClientRect(),n=$(t,1,2).getBoundingClientRect();return J(e),!a||a.left==a.right?!1:tt=n.right-a.right<3}var mt=`
b`.split(/\n/).length!=3?function(e){for(var t=0,a=[],n=e.length;t<=n;){var r=e.indexOf(`
`,t);r==-1&&(r=e.length);var i=e.slice(t,e.charAt(r-1)=="\r"?r-1:r),o=i.indexOf("\r");o!=-1?(a.push(i.slice(0,o)),t+=o+1):(a.push(i),t=r+1)}return a}:function(e){return e.split(/\r\n?|\n/)},rt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(a){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},At=function(){var e=C("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),bt=null;function vt(e){if(bt!=null)return bt;var t=V(e,C("span","x")),a=t.getBoundingClientRect(),n=$(t,0,1).getBoundingClientRect();return bt=Math.abs(a.left-n.left)>1}var gt={},dt={};function kt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),gt[e]=t}function Nt(e,t){dt[e]=t}function Bt(e){if(typeof e=="string"&&dt.hasOwnProperty(e))e=dt[e];else if(e&&typeof e.name=="string"&&dt.hasOwnProperty(e.name)){var t=dt[e.name];typeof t=="string"&&(t={name:t}),e=Z(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Bt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Bt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Qt(e,t){t=Bt(t);var a=gt[t.name];if(!a)return Qt(e,"text/plain");var n=a(e,t);if(Ot.hasOwnProperty(t.name)){var r=Ot[t.name];for(var i in r){if(!r.hasOwnProperty(i))continue;n.hasOwnProperty(i)&&(n["_"+i]=n[i]),n[i]=r[i]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)n[o]=t.modeProps[o];return n}var Ot={};function Sn(e,t){var a=Ot.hasOwnProperty(e)?Ot[e]:Ot[e]={};s(t,a)}function Kt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var a={};for(var n in t){var r=t[n];r instanceof Array&&(r=r.concat([])),a[n]=r}return a}function jt(e,t){for(var a;e.innerMode&&!(a=e.innerMode(t),!a||a.mode==e);)t=a.state,e=a.mode;return a||{mode:e,state:t}}function ln(e,t,a){return e.startState?e.startState(t,a):!0}var St=function(e,t,a){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};St.prototype.eol=function(){return this.pos>=this.string.length},St.prototype.sol=function(){return this.pos==this.lineStart},St.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},St.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},St.prototype.eat=function(e){var t=this.string.charAt(this.pos),a;if(typeof e=="string"?a=t==e:a=t&&(e.test?e.test(t):e(t)),a)return++this.pos,t},St.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},St.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},St.prototype.skipToEnd=function(){this.pos=this.string.length},St.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},St.prototype.backUp=function(e){this.pos-=e},St.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=x(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?x(this.string,this.lineStart,this.tabSize):0)},St.prototype.indentation=function(){return x(this.string,null,this.tabSize)-(this.lineStart?x(this.string,this.lineStart,this.tabSize):0)},St.prototype.match=function(e,t,a){if(typeof e=="string"){var n=function(o){return a?o.toLowerCase():o},r=this.string.substr(this.pos,e.length);if(n(r)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},St.prototype.current=function(){return this.string.slice(this.start,this.pos)},St.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},St.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},St.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function qe(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var a=e;!a.lines;)for(var n=0;;++n){var r=a.children[n],i=r.chunkSize();if(t<i){a=r;break}t-=i}return a.lines[t]}function zt(e,t,a){var n=[],r=t.line;return e.iter(t.line,a.line+1,function(i){var o=i.text;r==a.line&&(o=o.slice(0,a.ch)),r==t.line&&(o=o.slice(t.ch)),n.push(o),++r}),n}function bn(e,t,a){var n=[];return e.iter(t,a,function(r){n.push(r.text)}),n}function sn(e,t){var a=t-e.height;if(a)for(var n=e;n;n=n.parent)n.height+=a}function wt(e){if(e.parent==null)return null;for(var t=e.parent,a=q(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var r=0;!(n.children[r]==t);++r)a+=n.children[r].chunkSize();return a+t.first}function un(e,t){var a=e.first;e:do{for(var n=0;n<e.children.length;++n){var r=e.children[n],i=r.height;if(t<i){e=r;continue e}t-=i,a+=r.chunkSize()}return a}while(!e.lines);for(var o=0;o<e.lines.length;++o){var l=e.lines[o],c=l.height;if(t<c)break;t-=c}return a+o}function Gt(e,t){return t>=e.first&&t<e.first+e.size}function $n(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ze(e,t,a){if(a===void 0&&(a=null),!(this instanceof ze))return new ze(e,t,a);this.line=e,this.ch=t,this.sticky=a}function ft(e,t){return e.line-t.line||e.ch-t.ch}function $e(e,t){return e.sticky==t.sticky&&ft(e,t)==0}function Un(e){return ze(e.line,e.ch)}function Yn(e,t){return ft(e,t)<0?t:e}function Ln(e,t){return ft(e,t)<0?e:t}function Jn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ut(e,t){if(t.line<e.first)return ze(e.first,0);var a=e.first+e.size-1;return t.line>a?ze(a,qe(e,a).text.length):Bn(t,qe(e,t.line).text.length)}function Bn(e,t){var a=e.ch;return a==null||a>t?ze(e.line,t):a<0?ze(e.line,0):e}function qn(e,t){for(var a=[],n=0;n<t.length;n++)a[n]=ut(e,t[n]);return a}var cn=function(e,t){this.state=e,this.lookAhead=t},qt=function(e,t,a,n){this.state=t,this.doc=e,this.line=a,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};qt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},qt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},qt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},qt.fromSaved=function(e,t,a){return t instanceof cn?new qt(e,Kt(e.mode,t.state),a,t.lookAhead):new qt(e,Kt(e.mode,t),a)},qt.prototype.save=function(e){var t=e!==!1?Kt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new cn(t,this.maxLookAhead):t};function ra(e,t,a,n){var r=[e.state.modeGen],i={};en(e,t.text,e.doc.mode,a,function(h,U){return r.push(h,U)},i,n);for(var o=a.state,l=function(h){a.baseTokens=r;var U=e.state.overlays[h],G=1,Ce=0;a.state=!0,en(e,t.text,U.mode,a,function(me,Fe){for(var Xe=G;Ce<me;){var Ye=r[G];Ye>me&&r.splice(G,1,me,r[G+1],Ye),G+=2,Ce=Math.min(me,Ye)}if(!Fe)return;if(U.opaque)r.splice(Xe,G-Xe,me,"overlay "+Fe),G=Xe+2;else for(;Xe<G;Xe+=2){var Je=r[Xe+1];r[Xe+1]=(Je?Je+" ":"")+"overlay "+Fe}},i),a.state=o,a.baseTokens=null,a.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)l(c);return{styles:r,classes:i.bgClass||i.textClass?i:null}}function On(e,t,a){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=rn(e,wt(t)),r=t.text.length>e.options.maxHighlightLength&&Kt(e.doc.mode,n.state),i=ra(e,t,n);r&&(n.state=r),t.stateAfter=n.save(!r),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function rn(e,t,a){var n=e.doc,r=e.display;if(!n.mode.startState)return new qt(n,!0,t);var i=dn(e,t,a),o=i>n.first&&qe(n,i-1).stateAfter,l=o?qt.fromSaved(n,o,i):new qt(n,ln(n.mode),i);return n.iter(i,t,function(c){Xt(e,c.text,l);var h=l.line;c.stateAfter=h==t-1||h%5==0||h>=r.viewFrom&&h<r.viewTo?l.save():null,l.nextLine()}),a&&(n.modeFrontier=l.line),l}function Xt(e,t,a,n){var r=e.doc.mode,i=new St(t,e.options.tabSize,a);for(i.start=i.pos=n||0,t==""&&Ut(r,a.state);!i.eol();)It(r,i,a.state),i.start=i.pos}function Ut(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var a=jt(e,t);if(a.mode.blankLine)return a.mode.blankLine(a.state)}function It(e,t,a,n){for(var r=0;r<10;r++){n&&(n[0]=jt(e,a).mode);var i=e.token(t,a);if(t.pos>t.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}var yt=function(e,t,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=a};function Ft(e,t,a,n){var r=e.doc,i=r.mode,o;t=ut(r,t);var l=qe(r,t.line),c=rn(e,t.line,a),h=new St(l.text,e.options.tabSize,c),U;for(n&&(U=[]);(n||h.pos<t.ch)&&!h.eol();)h.start=h.pos,o=It(i,h,c.state),n&&U.push(new yt(h,o,Kt(r.mode,c.state)));return n?U:new yt(h,o,c.state)}function yn(e,t){if(e)for(;;){var a=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;e=e.slice(0,a.index)+e.slice(a.index+a[0].length);var n=a[1]?"bgClass":"textClass";t[n]==null?t[n]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+a[2])}return e}function en(e,t,a,n,r,i,o){var l=a.flattenSpans;l==null&&(l=e.options.flattenSpans);var c=0,h=null,U=new St(t,e.options.tabSize,n),G,Ce=e.options.addModeClass&&[null];for(t==""&&yn(Ut(a,n.state),i);!U.eol();){if(U.pos>e.options.maxHighlightLength?(l=!1,o&&Xt(e,t,n,U.pos),U.pos=t.length,G=null):G=yn(It(a,U,n.state,Ce),i),Ce){var me=Ce[0].name;me&&(G="m-"+(G?me+" "+G:me))}if(!l||h!=G){for(;c<U.start;)c=Math.min(U.start,c+5e3),r(c,h);h=G}U.start=U.pos}for(;c<U.pos;){var Fe=Math.min(U.pos,c+5e3);r(Fe,h),c=Fe}}function dn(e,t,a){for(var n,r,i=e.doc,o=a?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>o;--l){if(l<=i.first)return i.first;var c=qe(i,l-1),h=c.stateAfter;if(h&&(!a||l+(h instanceof cn?h.lookAhead:0)<=i.modeFrontier))return l;var U=x(c.text,null,e.options.tabSize);(r==null||n>U)&&(r=l-1,n=U)}return r}function Tn(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontier<t-10)return;for(var a=e.first,n=t-1;n>a;n--){var r=qe(e,n).stateAfter;if(r&&(!(r instanceof cn)||n+r.lookAhead<t)){a=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,a)}var In=!1,tn=!1;function Ht(){In=!0}function _n(){tn=!0}function Kn(e,t,a){this.marker=e,this.from=t,this.to=a}function nn(e,t){if(e)for(var a=0;a<e.length;++a){var n=e[a];if(n.marker==t)return n}}function La(e,t){for(var a,n=0;n<e.length;++n)e[n]!=t&&(a||(a=[])).push(e[n]);return a}function mn(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function fn(e,t,a){var n;if(e)for(var r=0;r<e.length;++r){var i=e[r],o=i.marker,l=i.from==null||(o.inclusiveLeft?i.from<=t:i.from<t);if(l||i.from==t&&o.type=="bookmark"&&(!a||!i.marker.insertLeft)){var c=i.to==null||(o.inclusiveRight?i.to>=t:i.to>t);(n||(n=[])).push(new Kn(o,i.from,c?null:i.to))}}return n}function Tt(e,t,a){var n;if(e)for(var r=0;r<e.length;++r){var i=e[r],o=i.marker,l=i.to==null||(o.inclusiveRight?i.to>=t:i.to>t);if(l||i.from==t&&o.type=="bookmark"&&(!a||i.marker.insertLeft)){var c=i.from==null||(o.inclusiveLeft?i.from<=t:i.from<t);(n||(n=[])).push(new Kn(o,c?null:i.from-t,i.to==null?null:i.to-t))}}return n}function st(e,t){if(t.full)return null;var a=Gt(e,t.from.line)&&qe(e,t.from.line).markedSpans,n=Gt(e,t.to.line)&&qe(e,t.to.line).markedSpans;if(!a&&!n)return null;var r=t.from.ch,i=t.to.ch,o=ft(t.from,t.to)==0,l=fn(a,r,o),c=Tt(n,i,o),h=t.text.length==1,U=d(t.text).length+(h?r:0);if(l)for(var G=0;G<l.length;++G){var Ce=l[G];if(Ce.to==null){var me=nn(c,Ce.marker);me?h&&(Ce.to=me.to==null?null:me.to+U):Ce.to=r}}if(c)for(var Fe=0;Fe<c.length;++Fe){var Xe=c[Fe];if(Xe.to!=null&&(Xe.to+=U),Xe.from==null){var Ye=nn(l,Xe.marker);Ye||(Xe.from=U,h&&(l||(l=[])).push(Xe))}else Xe.from+=U,h&&(l||(l=[])).push(Xe)}l&&(l=Qe(l)),c&&c!=l&&(c=Qe(c));var Je=[l];if(!h){var et=t.text.length-2,Ze;if(et>0&&l)for(var at=0;at<l.length;++at)l[at].to==null&&(Ze||(Ze=[])).push(new Kn(l[at].marker,null,null));for(var ht=0;ht<et;++ht)Je.push(Ze);Je.push(c)}return Je}function Qe(e){for(var t=0;t<e.length;++t){var a=e[t];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function xn(e,t,a){var n=null;if(e.iter(t.line,a.line+1,function(me){if(me.markedSpans)for(var Fe=0;Fe<me.markedSpans.length;++Fe){var Xe=me.markedSpans[Fe].marker;Xe.readOnly&&(!n||q(n,Xe)==-1)&&(n||(n=[])).push(Xe)}}),!n)return null;for(var r=[{from:t,to:a}],i=0;i<n.length;++i)for(var o=n[i],l=o.find(0),c=0;c<r.length;++c){var h=r[c];if(ft(h.to,l.from)<0||ft(h.from,l.to)>0)continue;var U=[c,1],G=ft(h.from,l.from),Ce=ft(h.to,l.to);(G<0||!o.inclusiveLeft&&!G)&&U.push({from:h.from,to:l.from}),(Ce>0||!o.inclusiveRight&&!Ce)&&U.push({from:l.to,to:h.to}),r.splice.apply(r,U),c+=U.length-3}return r}function Pt(e){var t=e.markedSpans;if(!t)return;for(var a=0;a<t.length;++a)t[a].marker.detachLine(e);e.markedSpans=null}function vn(e,t){if(!t)return;for(var a=0;a<t.length;++a)t[a].marker.attachLine(e);e.markedSpans=t}function ea(e){return e.inclusiveLeft?-1:0}function Mn(e){return e.inclusiveRight?1:0}function ia(e,t){var a=e.lines.length-t.lines.length;if(a!=0)return a;var n=e.find(),r=t.find(),i=ft(n.from,r.from)||ea(e)-ea(t);if(i)return-i;var o=ft(n.to,r.to)||Mn(e)-Mn(t);return o||t.id-e.id}function oa(e,t){var a=tn&&e.markedSpans,n;if(a)for(var r=void 0,i=0;i<a.length;++i)r=a[i],r.marker.collapsed&&(t?r.from:r.to)==null&&(!n||ia(n,r.marker)<0)&&(n=r.marker);return n}function la(e){return oa(e,!0)}function aa(e){return oa(e,!1)}function fa(e,t){var a=tn&&e.markedSpans,n;if(a)for(var r=0;r<a.length;++r){var i=a[r];i.marker.collapsed&&(i.from==null||i.from<t)&&(i.to==null||i.to>t)&&(!n||ia(n,i.marker)<0)&&(n=i.marker)}return n}function ha(e,t,a,n,r){var i=qe(e,t),o=tn&&i.markedSpans;if(o)for(var l=0;l<o.length;++l){var c=o[l];if(!c.marker.collapsed)continue;var h=c.marker.find(0),U=ft(h.from,a)||ea(c.marker)-ea(r),G=ft(h.to,n)||Mn(c.marker)-Mn(r);if(U>=0&&G<=0||U<=0&&G>=0)continue;if(U<=0&&(c.marker.inclusiveRight&&r.inclusiveLeft?ft(h.to,a)>=0:ft(h.to,a)>0)||U>=0&&(c.marker.inclusiveRight&&r.inclusiveLeft?ft(h.from,n)<=0:ft(h.from,n)<0))return!0}}function it(e){for(var t;t=la(e);)e=t.find(-1,!0).line;return e}function xt(e){for(var t;t=aa(e);)e=t.find(1,!0).line;return e}function pt(e){for(var t,a;t=aa(e);)e=t.find(1,!0).line,(a||(a=[])).push(e);return a}function _t(e,t){var a=qe(e,t),n=it(a);return a==n?t:wt(n)}function Mt(e,t){if(t>e.lastLine())return t;var a=qe(e,t),n;if(!Dt(e,a))return t;for(;n=aa(a);)a=n.find(1,!0).line;return wt(a)+1}function Dt(e,t){var a=tn&&t.markedSpans;if(a)for(var n=void 0,r=0;r<a.length;++r){if(n=a[r],!n.marker.collapsed)continue;if(n.from==null)return!0;if(n.marker.widgetNode)continue;if(n.from==0&&n.marker.inclusiveLeft&&$t(e,t,n))return!0}}function $t(e,t,a){if(a.to==null){var n=a.marker.find(1,!0);return $t(e,n.line,nn(n.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==t.text.length)return!0;for(var r=void 0,i=0;i<t.markedSpans.length;++i)if(r=t.markedSpans[i],r.marker.collapsed&&!r.marker.widgetNode&&r.from==a.to&&(r.to==null||r.to!=a.from)&&(r.marker.inclusiveLeft||a.marker.inclusiveRight)&&$t(e,t,r))return!0}function Yt(e){e=it(e);for(var t=0,a=e.parent,n=0;n<a.lines.length;++n){var r=a.lines[n];if(r==e)break;t+=r.height}for(var i=a.parent;i;a=i,i=a.parent)for(var o=0;o<i.children.length;++o){var l=i.children[o];if(l==a)break;t+=l.height}return t}function Rn(e){if(e.height==0)return 0;for(var t=e.text.length,a,n=e;a=la(n);){var r=a.find(0,!0);n=r.from.line,t+=r.from.ch-r.to.ch}for(n=e;a=aa(n);){var i=a.find(0,!0);t-=n.text.length-i.from.ch,n=i.to.line,t+=n.text.length-i.to.ch}return t}function sa(e){var t=e.display,a=e.doc;t.maxLine=qe(a,a.first),t.maxLineLength=Rn(t.maxLine),t.maxLineChanged=!0,a.iter(function(n){var r=Rn(n);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=n)})}var Vt=function(e,t,a){this.text=e,vn(this,t),this.height=a?a(this):1};Vt.prototype.lineNo=function(){return wt(this)},z(Vt);function xa(e,t,a,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Pt(e),vn(e,a);var r=n?n(e):1;r!=e.height&&sn(e,r)}function Nn(e){e.parent=null,Pt(e)}var Ea={},wa={};function Ka(e,t){if(!e||/^\s*$/.test(e))return null;var a=t.addModeClass?wa:Ea;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function Fi(e,t){var a=re("span",null,null,w?"padding-right: .1px":null),n={pre:re("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var i=r?t.rest[r-1]:t.line,o=void 0;n.pos=0,n.addToken=Sl,Ct(e.display.measure)&&(o=We(i,e.doc.direction))&&(n.addToken=Tl(n.addToken,o)),n.map=[];var l=t!=e.display.externalMeasured&&wt(i);_l(i,n,On(e,i,l)),i.styleClasses&&(i.styleClasses.bgClass&&(n.bgClass=K(i.styleClasses.bgClass,n.bgClass||"")),i.styleClasses.textClass&&(n.textClass=K(i.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(lt(e.display.measure))),r==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(w){var c=n.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return we(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=K(n.pre.className,n.textClass||"")),n}function kl(e){var t=C("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Sl(e,t,a,n,r,i,o){if(!t)return;var l=e.splitSpaces?Ol(t,e.trailingSpace):t,c=e.cm.state.specialChars,h=!1,U;if(!c.test(t))e.col+=t.length,U=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,U),B&&D<9&&(h=!0),e.pos+=t.length;else{U=document.createDocumentFragment();for(var G=0;;){c.lastIndex=G;var Ce=c.exec(t),me=Ce?Ce.index-G:t.length-G;if(me){var Fe=document.createTextNode(l.slice(G,G+me));B&&D<9?U.appendChild(C("span",[Fe])):U.appendChild(Fe),e.map.push(e.pos,e.pos+me,Fe),e.col+=me,e.pos+=me}if(!Ce)break;G+=me+1;var Xe=void 0;if(Ce[0]==" "){var Ye=e.cm.options.tabSize,Je=Ye-e.col%Ye;Xe=U.appendChild(C("span",_(Je),"cm-tab")),Xe.setAttribute("role","presentation"),Xe.setAttribute("cm-text"," "),e.col+=Je}else Ce[0]=="\r"||Ce[0]==`
`?(Xe=U.appendChild(C("span",Ce[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Xe.setAttribute("cm-text",Ce[0]),e.col+=1):(Xe=e.cm.options.specialCharPlaceholder(Ce[0]),Xe.setAttribute("cm-text",Ce[0]),B&&D<9?U.appendChild(C("span",[Xe])):U.appendChild(Xe),e.col+=1);e.map.push(e.pos,e.pos+1,Xe),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,a||n||r||h||i||o){var et=a||"";n&&(et+=n),r&&(et+=r);var Ze=C("span",[U],et,i);if(o)for(var at in o)o.hasOwnProperty(at)&&at!="style"&&at!="class"&&Ze.setAttribute(at,o[at]);return e.content.appendChild(Ze)}e.content.appendChild(U)}function Ol(e,t){if(e.length>1&&!/ /.test(e))return e;for(var a=t,n="",r=0;r<e.length;r++){var i=e.charAt(r);i==" "&&a&&(r==e.length-1||e.charCodeAt(r+1)==32)&&(i="\xA0"),n+=i,a=i==" "}return n}function Tl(e,t){return function(a,n,r,i,o,l,c){r=r?r+" cm-force-border":"cm-force-border";for(var h=a.pos,U=h+n.length;;){for(var G=void 0,Ce=0;Ce<t.length&&!(G=t[Ce],G.to>h&&G.from<=h);Ce++);if(G.to>=U)return e(a,n,r,i,o,l,c);e(a,n.slice(0,G.to-h),r,i,null,l,c),i=null,n=n.slice(G.to-h),h=G.to}}}function Wi(e,t,a,n){var r=!n&&a.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!n&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",a.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function _l(e,t,a){var n=e.markedSpans,r=e.text,i=0;if(!n){for(var o=1;o<a.length;o+=2)t.addToken(t,r.slice(i,i=a[o]),Ka(a[o+1],t.cm.options));return}for(var l=r.length,c=0,h=1,U="",G,Ce,me=0,Fe,Xe,Ye,Je,et;;){if(me==c){Fe=Xe=Ye=Ce="",et=null,Je=null,me=Infinity;for(var Ze=[],at=void 0,ht=0;ht<n.length;++ht){var ct=n[ht],Et=ct.marker;if(Et.type=="bookmark"&&ct.from==c&&Et.widgetNode)Ze.push(Et);else if(ct.from<=c&&(ct.to==null||ct.to>c||Et.collapsed&&ct.to==c&&ct.from==c)){if(ct.to!=null&&ct.to!=c&&me>ct.to&&(me=ct.to,Xe=""),Et.className&&(Fe+=" "+Et.className),Et.css&&(Ce=(Ce?Ce+";":"")+Et.css),Et.startStyle&&ct.from==c&&(Ye+=" "+Et.startStyle),Et.endStyle&&ct.to==me&&(at||(at=[])).push(Et.endStyle,ct.to),Et.title&&((et||(et={})).title=Et.title),Et.attributes)for(var Wt in Et.attributes)(et||(et={}))[Wt]=Et.attributes[Wt];Et.collapsed&&(!Je||ia(Je.marker,Et)<0)&&(Je=ct)}else ct.from>c&&me>ct.from&&(me=ct.from)}if(at)for(var Cn=0;Cn<at.length;Cn+=2)at[Cn+1]==me&&(Xe+=" "+at[Cn]);if(!Je||Je.from==c)for(var Zt=0;Zt<Ze.length;++Zt)Wi(t,0,Ze[Zt]);if(Je&&(Je.from||0)==c){if(Wi(t,(Je.to==null?l+1:Je.to)-c,Je.marker,Je.from==null),Je.to==null)return;Je.to==c&&(Je=!1)}}if(c>=l)break;for(var Qn=Math.min(l,me);;){if(U){var Xn=c+U.length;if(!Je){var hn=Xn>Qn?U.slice(0,Qn-c):U;t.addToken(t,hn,G?G+Fe:Fe,Ye,c+hn.length==me?Xe:"",Ce,et)}if(Xn>=Qn){U=U.slice(Qn-c),c=Qn;break}c=Xn,Ye=""}U=r.slice(i,i=a[h++]),G=Ka(a[h++],t.cm.options)}}}function Bi(e,t,a){this.line=t,this.rest=pt(t),this.size=this.rest?wt(d(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Dt(e,t)}function Mr(e,t,a){for(var n=[],r,i=t;i<a;i=r){var o=new Bi(e.doc,qe(e.doc,i),i);r=i+o.size,n.push(o)}return n}var Ha=null;function Dl(e){Ha?Ha.ops.push(e):e.ownsGroup=Ha={ops:[e],delayedCallbacks:[]}}function Al(e){var t=e.delayedCallbacks,a=0;do{for(;a<t.length;a++)t[a].call(null);for(var n=0;n<e.ops.length;n++){var r=e.ops[n];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(a<t.length)}function Ll(e,t){var a=e.ownsGroup;if(!a)return;try{Al(a)}finally{Ha=null,t(a)}}var lr=null;function Dn(e,t){var a=He(e,t);if(!a.length)return;var n=Array.prototype.slice.call(arguments,2),r;Ha?r=Ha.delayedCallbacks:lr?r=lr:(r=lr=[],setTimeout(Ml,0));for(var i=function(l){r.push(function(){return a[l].apply(null,n)})},o=0;o<a.length;++o)i(o)}function Ml(){var e=lr;lr=null;for(var t=0;t<e.length;++t)e[t]()}function Ki(e,t,a,n){for(var r=0;r<t.changes.length;r++){var i=t.changes[r];i=="text"?Nl(e,t):i=="gutter"?zi(e,t,a,n):i=="class"?ti(e,t):i=="widget"&&jl(e,t,n)}t.changes=null}function sr(e){return e.node==e.text&&(e.node=C("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),B&&D<8&&(e.node.style.zIndex=2)),e.node}function Rl(e,t){var a=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),t.background)a?t.background.className=a:(t.background.parentNode.removeChild(t.background),t.background=null);else if(a){var n=sr(t);t.background=n.insertBefore(C("div",null,a),n.firstChild),e.display.input.setUneditable(t.background)}}function Hi(e,t){var a=e.display.externalMeasured;return a&&a.line==t.line?(e.display.externalMeasured=null,t.measure=a.measure,a.built):Fi(e,t)}function Nl(e,t){var a=t.text.className,n=Hi(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,ti(e,t)):a&&(t.text.className=a)}function ti(e,t){Rl(e,t),t.line.wrapClass?sr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var a=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=a||""}function zi(e,t,a,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var r=sr(t);t.gutterBackground=C("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),r.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=sr(t),l=t.gutter=C("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),o.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!i||!i["CodeMirror-linenumbers"])&&(t.lineNumber=l.appendChild(C("div",$n(e.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var c=0;c<e.display.gutterSpecs.length;++c){var h=e.display.gutterSpecs[c].className,U=i.hasOwnProperty(h)&&i[h];U&&l.appendChild(C("div",[U],"CodeMirror-gutter-elt","left: "+n.gutterLeft[h]+"px; width: "+n.gutterWidth[h]+"px"))}}}function jl(e,t,a){t.alignable&&(t.alignable=null);for(var n=oe("CodeMirror-linewidget"),r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,n.test(r.className)&&t.node.removeChild(r);Xi(e,t,a)}function Pl(e,t,a,n){var r=Hi(e,t);return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),ti(e,t),zi(e,t,a,n),Xi(e,t,n),t.node}function Xi(e,t,a){if(Vi(e,t.line,t,a,!0),t.rest)for(var n=0;n<t.rest.length;n++)Vi(e,t.rest[n],t,a,!1)}function Vi(e,t,a,n,r){if(!t.widgets)return;for(var i=sr(a),o=0,l=t.widgets;o<l.length;++o){var c=l[o],h=C("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||h.setAttribute("cm-ignore-events","true"),Ul(c,h,a,n),e.display.input.setUneditable(h),r&&c.above?i.insertBefore(h,a.gutter||a.text):i.appendChild(h),Dn(c,"redraw")}}function Ul(e,t,a,n){if(e.noHScroll){(a.alignable||(a.alignable=[])).push(t);var r=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(r-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=r+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function ur(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!k(document.body,e.node)){var a="position: relative;";e.coverGutter&&(a+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(a+="width: "+t.display.wrapper.clientWidth+"px;"),V(t.display.measure,C("div",[e.node],null,a))}return e.height=e.node.parentNode.offsetHeight}function ga(e,t){for(var a=ue(t);a!=e.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==e.sizer&&a!=e.mover)return!0}function Rr(e){return e.lineSpace.offsetTop}function ni(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gi(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=V(e.measure,C("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function pa(e){return ge-e.display.nativeBarWidth}function Ma(e){return e.display.scroller.clientWidth-pa(e)-e.display.barWidth}function ai(e){return e.display.scroller.clientHeight-pa(e)-e.display.barHeight}function Il(e,t,a){var n=e.options.lineWrapping,r=n&&Ma(e);if(!t.measure.heights||n&&t.measure.width!=r){var i=t.measure.heights=[];if(n){t.measure.width=r;for(var o=t.text.firstChild.getClientRects(),l=0;l<o.length-1;l++){var c=o[l],h=o[l+1];Math.abs(c.bottom-h.bottom)>2&&i.push((c.bottom+h.top)/2-a.top)}}i.push(a.bottom-a.top)}}function $i(e,t,a){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var r=0;r<e.rest.length;r++)if(wt(e.rest[r])>a)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Fl(e,t){t=it(t);var a=wt(t),n=e.display.externalMeasured=new Bi(e.doc,t,a);n.lineN=a;var r=n.built=Fi(e,n);return n.text=r.pre,V(e.display.lineMeasure,r.pre),n}function Yi(e,t,a,n){return ma(e,za(e,t),a,n)}function ri(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ja(e,t)];var a=e.display.externalMeasured;if(a&&t>=a.lineN&&t<a.lineN+a.size)return a}function za(e,t){var a=wt(t),n=ri(e,a);n&&!n.text?n=null:n&&n.changes&&(Ki(e,n,a,ci(e)),e.curOp.forceUpdate=!0),n||(n=Fl(e,t));var r=$i(n,t,a);return{line:t,view:n,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function ma(e,t,a,n,r){t.before&&(a=-1);var i=a+(n||""),o;return t.cache.hasOwnProperty(i)?o=t.cache[i]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Il(e,t.view,t.rect),t.hasHeights=!0),o=Bl(e,t,a,n),o.bogus||(t.cache[i]=o)),{left:o.left,right:o.right,top:r?o.rtop:o.top,bottom:r?o.rbottom:o.bottom}}var Ji={left:0,right:0,top:0,bottom:0};function Zi(e,t,a){for(var n,r,i,o,l,c,h=0;h<e.length;h+=3)if(l=e[h],c=e[h+1],t<l?(r=0,i=1,o="left"):t<c?(r=t-l,i=r+1):(h==e.length-3||t==c&&e[h+3]>t)&&(i=c-l,r=i-1,t>=c&&(o="right")),r!=null){if(n=e[h+2],l==c&&a==(n.insertLeft?"left":"right")&&(o=a),a=="left"&&r==0)for(;h&&e[h-2]==e[h-3]&&e[h-1].insertLeft;)n=e[(h-=3)+2],o="left";if(a=="right"&&r==c-l)for(;h<e.length-3&&e[h+3]==e[h+4]&&!e[h+5].insertLeft;)n=e[(h+=3)+2],o="right";break}return{node:n,start:r,end:i,collapse:o,coverStart:l,coverEnd:c}}function Wl(e,t){var a=Ji;if(t=="left")for(var n=0;n<e.length&&!((a=e[n]).left!=a.right);n++);else for(var r=e.length-1;r>=0&&!((a=e[r]).left!=a.right);r--);return a}function Bl(e,t,a,n){var r=Zi(t.map,a,n),i=r.node,o=r.start,l=r.end,c=r.collapse,h;if(i.nodeType==3){for(var U=0;U<4;U++){for(;o&&Le(t.line.text.charAt(r.coverStart+o));)--o;for(;r.coverStart+l<r.coverEnd&&Le(t.line.text.charAt(r.coverStart+l));)++l;if(B&&D<9&&o==0&&l==r.coverEnd-r.coverStart?h=i.parentNode.getBoundingClientRect():h=Wl($(i,o,l).getClientRects(),n),h.left||h.right||o==0)break;l=o,o=o-1,c="right"}B&&D<11&&(h=Kl(e.display.measure,h))}else{o>0&&(c=n="right");var G;e.options.lineWrapping&&(G=i.getClientRects()).length>1?h=G[n=="right"?G.length-1:0]:h=i.getBoundingClientRect()}if(B&&D<9&&!o&&(!h||!h.left&&!h.right)){var Ce=i.parentNode.getClientRects()[0];Ce?h={left:Ce.left,right:Ce.left+Va(e.display),top:Ce.top,bottom:Ce.bottom}:h=Ji}for(var me=h.top-t.rect.top,Fe=h.bottom-t.rect.top,Xe=(me+Fe)/2,Ye=t.view.measure.heights,Je=0;Je<Ye.length-1&&!(Xe<Ye[Je]);Je++);var et=Je?Ye[Je-1]:0,Ze=Ye[Je],at={left:(c=="right"?h.right:h.left)-t.rect.left,right:(c=="left"?h.left:h.right)-t.rect.left,top:et,bottom:Ze};return!h.left&&!h.right&&(at.bogus=!0),e.options.singleCursorHeightPerLine||(at.rtop=me,at.rbottom=Fe),at}function Kl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!vt(e))return t;var a=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*a,right:t.right*a,top:t.top*n,bottom:t.bottom*n}}function Qi(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function qi(e){e.display.externalMeasure=null,J(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Qi(e.display.view[t])}function cr(e){qi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function eo(){return Q&&H?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function to(){return Q&&H?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ii(e){var t=0;if(e.widgets)for(var a=0;a<e.widgets.length;++a)e.widgets[a].above&&(t+=ur(e.widgets[a]));return t}function Nr(e,t,a,n,r){if(!r){var i=ii(t);a.top+=i,a.bottom+=i}if(n=="line")return a;n||(n="local");var o=Yt(t);if(n=="local"?o+=Rr(e.display):o-=e.display.viewOffset,n=="page"||n=="window"){var l=e.display.lineSpace.getBoundingClientRect();o+=l.top+(n=="window"?0:to());var c=l.left+(n=="window"?0:eo());a.left+=c,a.right+=c}return a.top+=o,a.bottom+=o,a}function no(e,t,a){if(a=="div")return t;var n=t.left,r=t.top;if(a=="page")n-=eo(),r-=to();else if(a=="local"||!a){var i=e.display.sizer.getBoundingClientRect();n+=i.left,r+=i.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:n-o.left,top:r-o.top}}function oi(e,t,a,n,r){return n||(n=qe(e.doc,t.line)),Nr(e,n,Yi(e,n,t.ch,r),a)}function ua(e,t,a,n,r,i){n=n||qe(e.doc,t.line),r||(r=za(e,n));function o(Fe,Xe){var Ye=ma(e,r,Fe,Xe?"right":"left",i);return Xe?Ye.left=Ye.right:Ye.right=Ye.left,Nr(e,n,Ye,a)}var l=We(n,e.doc.direction),c=t.ch,h=t.sticky;if(c>=n.text.length?(c=n.text.length,h="before"):c<=0&&(c=0,h="after"),!l)return o(h=="before"?c-1:c,h=="before");function U(Fe,Xe,Ye){var Je=l[Xe],et=Je.level==1;return o(Ye?Fe-1:Fe,et!=Ye)}var G=Me(l,c,h),Ce=Te,me=U(c,G,h=="before");return Ce!=null&&(me.other=U(c,Ce,h!="before")),me}function ao(e,t){var a=0;t=ut(e.doc,t),e.options.lineWrapping||(a=Va(e.display)*t.ch);var n=qe(e.doc,t.line),r=Yt(n)+Rr(e.display);return{left:a,right:a,top:r,bottom:r+n.height}}function li(e,t,a,n,r){var i=ze(e,t,a);return i.xRel=r,n&&(i.outside=n),i}function si(e,t,a){var n=e.doc;if(a+=e.display.viewOffset,a<0)return li(n.first,0,null,-1,-1);var r=un(n,a),i=n.first+n.size-1;if(r>i)return li(n.first+n.size-1,qe(n,i).text.length,null,1,1);t<0&&(t=0);for(var o=qe(n,r);;){var l=Hl(e,o,r,t,a),c=fa(o,l.ch+(l.xRel>0||l.outside>0?1:0));if(!c)return l;var h=c.find(1);if(h.line==r)return h;o=qe(n,r=h.line)}}function ro(e,t,a,n){n-=ii(t);var r=t.text.length,i=Ge(function(o){return ma(e,a,o-1).bottom<=n},r,0);return r=Ge(function(o){return ma(e,a,o).top>n},i,r),{begin:i,end:r}}function io(e,t,a,n){a||(a=za(e,t));var r=Nr(e,t,ma(e,a,n),"line").top;return ro(e,t,a,r)}function ui(e,t,a,n){return e.bottom<=a?!1:e.top>a?!0:(n?e.left:e.right)>t}function Hl(e,t,a,n,r){r-=Yt(t);var i=za(e,t),o=ii(t),l=0,c=t.text.length,h=!0,U=We(t,e.doc.direction);if(U){var G=(e.options.lineWrapping?Xl:zl)(e,t,a,i,U,n,r);h=G.level!=1,l=h?G.from:G.to-1,c=h?G.to:G.from-1}var Ce=null,me=null,Fe=Ge(function(ht){var ct=ma(e,i,ht);return ct.top+=o,ct.bottom+=o,ui(ct,n,r,!1)?(ct.top<=r&&ct.left<=n&&(Ce=ht,me=ct),!0):!1},l,c),Xe,Ye,Je=!1;if(me){var et=n-me.left<me.right-n,Ze=et==h;Fe=Ce+(Ze?0:1),Ye=Ze?"after":"before",Xe=et?me.left:me.right}else{!h&&(Fe==c||Fe==l)&&Fe++,Ye=Fe==0?"after":Fe==t.text.length?"before":ma(e,i,Fe-(h?1:0)).bottom+o<=r==h?"after":"before";var at=ua(e,ze(a,Fe,Ye),"line",t,i);Xe=at.left,Je=r<at.top?-1:r>=at.bottom?1:0}return Fe=_e(t.text,Fe,1),li(a,Fe,Ye,Je,n-Xe)}function zl(e,t,a,n,r,i,o){var l=Ge(function(G){var Ce=r[G],me=Ce.level!=1;return ui(ua(e,ze(a,me?Ce.to:Ce.from,me?"before":"after"),"line",t,n),i,o,!0)},0,r.length-1),c=r[l];if(l>0){var h=c.level!=1,U=ua(e,ze(a,h?c.from:c.to,h?"after":"before"),"line",t,n);ui(U,i,o,!0)&&U.top>o&&(c=r[l-1])}return c}function Xl(e,t,a,n,r,i,o){var l=ro(e,t,n,o),c=l.begin,h=l.end;/\s/.test(t.text.charAt(h-1))&&h--;for(var U=null,G=null,Ce=0;Ce<r.length;Ce++){var me=r[Ce];if(me.from>=h||me.to<=c)continue;var Fe=me.level!=1,Xe=ma(e,n,Fe?Math.min(h,me.to)-1:Math.max(c,me.from)).right,Ye=Xe<i?i-Xe+1e9:Xe-i;(!U||G>Ye)&&(U=me,G=Ye)}return U||(U=r[r.length-1]),U.from<c&&(U={from:c,to:U.to,level:U.level}),U.to>h&&(U={from:U.from,to:h,level:U.level}),U}var Ra;function Xa(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ra==null){Ra=C("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ra.appendChild(document.createTextNode("x")),Ra.appendChild(C("br"));Ra.appendChild(document.createTextNode("x"))}V(e.measure,Ra);var a=Ra.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),J(e.measure),a||1}function Va(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=C("span","xxxxxxxxxx"),a=C("pre",[t],"CodeMirror-line-like");V(e.measure,a);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function ci(e){for(var t=e.display,a={},n={},r=t.gutters.clientLeft,i=t.gutters.firstChild,o=0;i;i=i.nextSibling,++o){var l=e.display.gutterSpecs[o].className;a[l]=i.offsetLeft+i.clientLeft+r,n[l]=i.clientWidth}return{fixedPos:di(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:a,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function di(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function oo(e){var t=Xa(e.display),a=e.options.lineWrapping,n=a&&Math.max(5,e.display.scroller.clientWidth/Va(e.display)-3);return function(r){if(Dt(e.doc,r))return 0;var i=0;if(r.widgets)for(var o=0;o<r.widgets.length;o++)r.widgets[o].height&&(i+=r.widgets[o].height);return a?i+(Math.ceil(r.text.length/n)||1)*t:i+t}}function fi(e){var t=e.doc,a=oo(e);t.iter(function(n){var r=a(n);r!=n.height&&sn(n,r)})}function Na(e,t,a,n){var r=e.display;if(!a&&ue(t).getAttribute("cm-not-content")=="true")return null;var i,o,l=r.lineSpace.getBoundingClientRect();try{i=t.clientX-l.left,o=t.clientY-l.top}catch(G){return null}var c=si(e,i,o),h;if(n&&c.xRel>0&&(h=qe(e.doc,c.line).text).length==c.ch){var U=x(h,h.length,e.options.tabSize)-h.length;c=ze(c.line,Math.max(0,Math.round((i-Gi(e.display).left)/Va(e.display))-U))}return c}function ja(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var a=e.display.view,n=0;n<a.length;n++)if(t-=a[n].size,t<0)return n}function Hn(e,t,a,n){t==null&&(t=e.doc.first),a==null&&(a=e.doc.first+e.doc.size),n||(n=0);var r=e.display;if(n&&a<r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>t)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)tn&&_t(e.doc,t)<r.viewTo&&ka(e);else if(a<=r.viewFrom)tn&&Mt(e.doc,a+n)>r.viewFrom?ka(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&a>=r.viewTo)ka(e);else if(t<=r.viewFrom){var i=jr(e,a,a+n,1);i?(r.view=r.view.slice(i.index),r.viewFrom=i.lineN,r.viewTo+=n):ka(e)}else if(a>=r.viewTo){var o=jr(e,t,t,-1);o?(r.view=r.view.slice(0,o.index),r.viewTo=o.lineN):ka(e)}else{var l=jr(e,t,t,-1),c=jr(e,a,a+n,1);l&&c?(r.view=r.view.slice(0,l.index).concat(Mr(e,l.lineN,c.lineN)).concat(r.view.slice(c.index)),r.viewTo+=n):ka(e)}var h=r.externalMeasured;h&&(a<h.lineN?h.lineN+=n:t<h.lineN+h.size&&(r.externalMeasured=null))}function Ca(e,t,a){e.curOp.viewChanged=!0;var n=e.display,r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size&&(n.externalMeasured=null),t<n.viewFrom||t>=n.viewTo)return;var i=n.view[ja(e,t)];if(i.node==null)return;var o=i.changes||(i.changes=[]);q(o,a)==-1&&o.push(a)}function ka(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function jr(e,t,a,n){var r=ja(e,t),i,o=e.display.view;if(!tn||a==e.doc.first+e.doc.size)return{index:r,lineN:a};for(var l=e.display.viewFrom,c=0;c<r;c++)l+=o[c].size;if(l!=t){if(n>0){if(r==o.length-1)return null;i=l+o[r].size-t,r++}else i=l-t;t+=i,a+=i}for(;_t(e.doc,a)!=a;){if(r==(n<0?0:o.length-1))return null;a+=n*o[r-(n<0?1:0)].size,r+=n}return{index:r,lineN:a}}function Vl(e,t,a){var n=e.display,r=n.view;r.length==0||t>=n.viewTo||a<=n.viewFrom?(n.view=Mr(e,t,a),n.viewFrom=t):(n.viewFrom>t?n.view=Mr(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(ja(e,t))),n.viewFrom=t,n.viewTo<a?n.view=n.view.concat(Mr(e,n.viewTo,a)):n.viewTo>a&&(n.view=n.view.slice(0,ja(e,a)))),n.viewTo=a}function lo(e){for(var t=e.display.view,a=0,n=0;n<t.length;n++){var r=t[n];!r.hidden&&(!r.node||r.changes)&&++a}return a}function dr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function so(e,t){t===void 0&&(t=!0);for(var a=e.doc,n={},r=n.cursors=document.createDocumentFragment(),i=n.selection=document.createDocumentFragment(),o=0;o<a.sel.ranges.length;o++){if(!t&&o==a.sel.primIndex)continue;var l=a.sel.ranges[o];if(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)continue;var c=l.empty();(c||e.options.showCursorWhenSelecting)&&uo(e,l.head,r),c||Gl(e,l,i)}return n}function uo(e,t,a){var n=ua(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=a.appendChild(C("div","\xA0","CodeMirror-cursor"));if(r.style.left=n.left+"px",r.style.top=n.top+"px",r.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var i=a.appendChild(C("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));i.style.display="",i.style.left=n.other.left+"px",i.style.top=n.other.top+"px",i.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function Pr(e,t){return e.top-t.top||e.left-t.left}function Gl(e,t,a){var n=e.display,r=e.doc,i=document.createDocumentFragment(),o=Gi(e.display),l=o.left,c=Math.max(n.sizerWidth,Ma(e)-n.sizer.offsetLeft)-o.right,h=r.direction=="ltr";function U(Ze,at,ht,ct){at<0&&(at=0),at=Math.round(at),ct=Math.round(ct),i.appendChild(C("div",null,"CodeMirror-selected","position: absolute; left: "+Ze+`px;
top: `+at+"px; width: "+(ht==null?c-Ze:ht)+`px;
height: `+(ct-at)+"px"))}function G(Ze,at,ht){var ct=qe(r,Ze),Et=ct.text.length,Wt,Cn;function Zt(hn,Vn){return oi(e,ze(Ze,hn),"div",ct,Vn)}function Qn(hn,Vn,An){var gn=io(e,ct,null,hn),pn=Vn=="ltr"==(An=="after")?"left":"right",an=An=="after"?gn.begin:gn.end-(/\s/.test(ct.text.charAt(gn.end-1))?2:1);return Zt(an,pn)[pn]}var Xn=We(ct,r.direction);return se(Xn,at||0,ht==null?Et:ht,function(hn,Vn,An,gn){var pn=An=="ltr",an=Zt(hn,pn?"left":"right"),Gn=Zt(Vn-1,pn?"right":"left"),ir=at==null&&hn==0,Aa=ht==null&&Vn==Et,Pn=gn==0,va=!Xn||gn==Xn.length-1;if(Gn.top-an.top<=3){var kn=(h?ir:Aa)&&Pn,Ui=(h?Aa:ir)&&va,ya=kn?l:(pn?an:Gn).left,Wa=Ui?c:(pn?Gn:an).right;U(ya,an.top,Wa-ya,an.bottom)}else{var Ba,Wn,or,Ii;pn?(Ba=h&&ir&&Pn?l:an.left,Wn=h?c:Qn(hn,An,"before"),or=h?l:Qn(Vn,An,"after"),Ii=h&&Aa&&va?c:Gn.right):(Ba=h?Qn(hn,An,"before"):l,Wn=!h&&ir&&Pn?c:an.right,or=!h&&Aa&&va?l:Gn.left,Ii=h?Qn(Vn,An,"after"):c),U(Ba,an.top,Wn-Ba,an.bottom),an.bottom<Gn.top&&U(l,an.bottom,null,Gn.top),U(or,Gn.top,Ii-or,Gn.bottom)}(!Wt||Pr(an,Wt)<0)&&(Wt=an),Pr(Gn,Wt)<0&&(Wt=Gn),(!Cn||Pr(an,Cn)<0)&&(Cn=an),Pr(Gn,Cn)<0&&(Cn=Gn)}),{start:Wt,end:Cn}}var Ce=t.from(),me=t.to();if(Ce.line==me.line)G(Ce.line,Ce.ch,me.ch);else{var Fe=qe(r,Ce.line),Xe=qe(r,me.line),Ye=it(Fe)==it(Xe),Je=G(Ce.line,Ce.ch,Ye?Fe.text.length+1:null).end,et=G(me.line,Ye?0:null,me.ch).start;Ye&&(Je.top<et.top-2?(U(Je.right,Je.top,null,Je.bottom),U(l,et.top,et.left,et.bottom)):U(Je.right,Je.top,et.left-Je.right,Je.bottom)),Je.bottom<et.top&&U(l,Je.bottom,null,et.top)}a.appendChild(i)}function hi(e){if(!e.state.focused)return;var t=e.display;clearInterval(t.blinker);var a=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Ga(e),t.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function co(e){e.state.focused||(e.display.input.focus(),pi(e))}function fo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ga(e))},100)}function pi(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(we(e,"focus",e,t),e.state.focused=!0,Y(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),w&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),hi(e)}function Ga(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(we(e,"blur",e,t),e.state.focused=!1,L(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Ur(e){for(var t=e.display,a=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var r=t.view[n],i=e.options.lineWrapping,o=void 0,l=0;if(r.hidden)continue;if(B&&D<8){var c=r.node.offsetTop+r.node.offsetHeight;o=c-a,a=c}else{var h=r.node.getBoundingClientRect();o=h.bottom-h.top,!i&&r.text.firstChild&&(l=r.text.firstChild.getBoundingClientRect().right-h.left-1)}var U=r.line.height-o;if((U>.005||U<-.005)&&(sn(r.line,o),ho(r.line),r.rest))for(var G=0;G<r.rest.length;G++)ho(r.rest[G]);if(l>e.display.sizerWidth){var Ce=Math.ceil(l/Va(e.display));Ce>e.display.maxLineLength&&(e.display.maxLineLength=Ce,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}function ho(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var a=e.widgets[t],n=a.node.parentNode;n&&(a.height=n.offsetHeight)}}function Ir(e,t,a){var n=a&&a.top!=null?Math.max(0,a.top):e.scroller.scrollTop;n=Math.floor(n-Rr(e));var r=a&&a.bottom!=null?a.bottom:n+e.wrapper.clientHeight,i=un(t,n),o=un(t,r);if(a&&a.ensure){var l=a.ensure.from.line,c=a.ensure.to.line;l<i?(i=l,o=un(t,Yt(qe(t,l))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=o&&(i=un(t,Yt(qe(t,c))-e.wrapper.clientHeight),o=c)}return{from:i,to:Math.max(o,i+1)}}function $l(e,t){if(je(e,"scrollCursorIntoView"))return;var a=e.display,n=a.sizer.getBoundingClientRect(),r=null;if(t.top+n.top<0?r=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),r!=null&&!I){var i=C("div","\u200B",null,`position: absolute;
top: `+(t.top-a.viewOffset-Rr(e.display))+`px;
height: `+(t.bottom-t.top+pa(e)+a.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(r),e.display.lineSpace.removeChild(i)}}function Yl(e,t,a,n){n==null&&(n=0);var r;!e.options.lineWrapping&&t==a&&(t=t.ch?ze(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,a=t.sticky=="before"?ze(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var o=!1,l=ua(e,t),c=!a||a==t?l:ua(e,a);r={left:Math.min(l.left,c.left),top:Math.min(l.top,c.top)-n,right:Math.max(l.left,c.left),bottom:Math.max(l.bottom,c.bottom)+n};var h=mi(e,r),U=e.doc.scrollTop,G=e.doc.scrollLeft;if(h.scrollTop!=null&&(hr(e,h.scrollTop),Math.abs(e.doc.scrollTop-U)>1&&(o=!0)),h.scrollLeft!=null&&(Pa(e,h.scrollLeft),Math.abs(e.doc.scrollLeft-G)>1&&(o=!0)),!o)break}return r}function Jl(e,t){var a=mi(e,t);a.scrollTop!=null&&hr(e,a.scrollTop),a.scrollLeft!=null&&Pa(e,a.scrollLeft)}function mi(e,t){var a=e.display,n=Xa(e.display);t.top<0&&(t.top=0);var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,i=ai(e),o={};t.bottom-t.top>i&&(t.bottom=t.top+i);var l=e.doc.height+ni(a),c=t.top<n,h=t.bottom>l-n;if(t.top<r)o.scrollTop=c?0:t.top;else if(t.bottom>r+i){var U=Math.min(t.top,(h?l:t.bottom)-i);U!=r&&(o.scrollTop=U)}var G=e.options.fixedGutter?0:a.gutters.offsetWidth,Ce=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-G,me=Ma(e)-a.gutters.offsetWidth,Fe=t.right-t.left>me;return Fe&&(t.right=t.left+me),t.left<10?o.scrollLeft=0:t.left<Ce?o.scrollLeft=Math.max(0,t.left+G-(Fe?0:10)):t.right>me+Ce-3&&(o.scrollLeft=t.right+(Fe?0:10)-me),o}function vi(e,t){if(t==null)return;Fr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function $a(e){Fr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function fr(e,t,a){(t!=null||a!=null)&&Fr(e),t!=null&&(e.curOp.scrollLeft=t),a!=null&&(e.curOp.scrollTop=a)}function Zl(e,t){Fr(e),e.curOp.scrollToPos=t}function Fr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var a=ao(e,t.from),n=ao(e,t.to);po(e,a,n,t.margin)}}function po(e,t,a,n){var r=mi(e,{left:Math.min(t.left,a.left),top:Math.min(t.top,a.top)-n,right:Math.max(t.right,a.right),bottom:Math.max(t.bottom,a.bottom)+n});fr(e,r.scrollLeft,r.scrollTop)}function hr(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;xe||bi(e,{top:t}),mo(e,t,!0),xe&&bi(e),vr(e,100)}function mo(e,t,a){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!a)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Pa(e,t,a,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(a?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,xo(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function pr(e){var t=e.display,a=t.gutters.offsetWidth,n=Math.round(e.doc.height+ni(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?a:0,docHeight:n,scrollHeight:n+pa(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:a}}var Ua=function(e,t,a){this.cm=a;var n=this.vert=C("div",[C("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=C("div",[C("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,e(n),e(r),be(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),be(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,B&&D<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ua.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var r=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=a?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(a?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?n:0,bottom:t?n:0}},Ua.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ua.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ua.prototype.zeroWidthHack=function(){var e=ne&&!ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},Ua.prototype.enableZeroWidthBar=function(e,t,a){e.style.pointerEvents="auto";function n(){var r=e.getBoundingClientRect(),i=a=="vert"?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1);i!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Ua.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var mr=function(){};mr.prototype.update=function(){return{bottom:0,right:0}},mr.prototype.setScrollLeft=function(){},mr.prototype.setScrollTop=function(){},mr.prototype.clear=function(){};function Ya(e,t){t||(t=pr(e));var a=e.display.barWidth,n=e.display.barHeight;vo(e,t);for(var r=0;r<4&&a!=e.display.barWidth||n!=e.display.barHeight;r++)a!=e.display.barWidth&&e.options.lineWrapping&&Ur(e),vo(e,pr(e)),a=e.display.barWidth,n=e.display.barHeight}function vo(e,t){var a=e.display,n=a.scrollbars.update(t);a.sizer.style.paddingRight=(a.barWidth=n.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=n.bottom)+"px",a.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=n.bottom+"px",a.scrollbarFiller.style.width=n.right+"px"):a.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=n.bottom+"px",a.gutterFiller.style.width=t.gutterWidth+"px"):a.gutterFiller.style.display=""}var go={native:Ua,null:mr};function bo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new go[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),be(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,a){a=="horizontal"?Pa(e,t):hr(e,t)},e),e.display.scrollbars.addClass&&Y(e.display.wrapper,e.display.scrollbars.addClass)}var Ql=0;function Ia(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ql},Dl(e.curOp)}function Fa(e){var t=e.curOp;t&&Ll(t,function(a){for(var n=0;n<a.ops.length;n++)a.ops[n].cm.curOp=null;ql(a)})}function ql(e){for(var t=e.ops,a=0;a<t.length;a++)es(t[a]);for(var n=0;n<t.length;n++)ts(t[n]);for(var r=0;r<t.length;r++)ns(t[r]);for(var i=0;i<t.length;i++)as(t[i]);for(var o=0;o<t.length;o++)rs(t[o])}function es(e){var t=e.cm,a=t.display;os(t),e.updateMaxLine&&sa(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<a.viewFrom||e.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Wr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ts(e){e.updatedDisplay=e.mustUpdate&&gi(e.cm,e.update)}function ns(e){var t=e.cm,a=t.display;e.updatedDisplay&&Ur(t),e.barMeasure=pr(t),a.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Yi(t,a.maxLine,a.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+pa(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-Ma(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.input.prepareSelection())}function as(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Pa(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var a=e.focus&&e.focus==N();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,a),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ya(t,e.barMeasure),e.updatedDisplay&&xi(t,e.barMeasure),e.selectionChanged&&hi(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),a&&co(e.cm)}function rs(e){var t=e.cm,a=t.display,n=t.doc;if(e.updatedDisplay&&yo(t,e.update),a.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),e.scrollTop!=null&&mo(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Pa(t,e.scrollLeft,!0,!0),e.scrollToPos){var r=Yl(t,ut(n,e.scrollToPos.from),ut(n,e.scrollToPos.to),e.scrollToPos.margin);$l(t,r)}var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l<i.length;++l)i[l].lines.length||we(i[l],"hide");if(o)for(var c=0;c<o.length;++c)o[c].lines.length&&we(o[c],"unhide");a.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&we(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Zn(e,t){if(e.curOp)return t();Ia(e);try{return t()}finally{Fa(e)}}function En(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ia(e);try{return t.apply(e,arguments)}finally{Fa(e)}}}function Fn(e){return function(){if(this.curOp)return e.apply(this,arguments);Ia(this);try{return e.apply(this,arguments)}finally{Fa(this)}}}function wn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ia(t);try{return e.apply(this,arguments)}finally{Fa(t)}}}function vr(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,u(is,e))}function is(e){var t=e.doc;if(t.highlightFrontier>=e.display.viewTo)return;var a=+new Date+e.options.workTime,n=rn(e,t.highlightFrontier),r=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(n.line>=e.display.viewFrom){var o=i.styles,l=i.text.length>e.options.maxHighlightLength?Kt(t.mode,n.state):null,c=ra(e,i,n,!0);l&&(n.state=l),i.styles=c.styles;var h=i.styleClasses,U=c.classes;U?i.styleClasses=U:h&&(i.styleClasses=null);for(var G=!o||o.length!=i.styles.length||h!=U&&(!h||!U||h.bgClass!=U.bgClass||h.textClass!=U.textClass),Ce=0;!G&&Ce<o.length;++Ce)G=o[Ce]!=i.styles[Ce];G&&r.push(n.line),i.stateAfter=n.save(),n.nextLine()}else i.text.length<=e.options.maxHighlightLength&&Xt(e,i.text,n),i.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>a)return vr(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),r.length&&Zn(e,function(){for(var i=0;i<r.length;i++)Ca(e,r[i],"text")})}var Wr=function(e,t,a){var n=e.display;this.viewport=t,this.visible=Ir(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Ma(e),this.force=a,this.dims=ci(e),this.events=[]};Wr.prototype.signal=function(e,t){M(e,t)&&this.events.push(arguments)},Wr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)we.apply(null,this.events[e])};function os(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=pa(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=pa(e)+"px",t.scrollbarsClipped=!0)}function ls(e){if(e.hasFocus())return null;var t=N();if(!t||!k(e.display.lineDiv,t))return null;var a={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&k(e.display.lineDiv,n.anchorNode)&&(a.anchorNode=n.anchorNode,a.anchorOffset=n.anchorOffset,a.focusNode=n.focusNode,a.focusOffset=n.focusOffset)}return a}function ss(e){if(!e||!e.activeElt||e.activeElt==N())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&k(document.body,e.anchorNode)&&k(document.body,e.focusNode)){var t=window.getSelection(),a=document.createRange();a.setEnd(e.anchorNode,e.anchorOffset),a.collapse(!1),t.removeAllRanges(),t.addRange(a),t.extend(e.focusNode,e.focusOffset)}}function gi(e,t){var a=e.display,n=e.doc;if(t.editorIsHidden)return ka(e),!1;if(!t.force&&t.visible.from>=a.viewFrom&&t.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&lo(e)==0)return!1;Eo(e)&&(ka(e),t.dims=ci(e));var r=n.first+n.size,i=Math.max(t.visible.from-e.options.viewportMargin,n.first),o=Math.min(r,t.visible.to+e.options.viewportMargin);a.viewFrom<i&&i-a.viewFrom<20&&(i=Math.max(n.first,a.viewFrom)),a.viewTo>o&&a.viewTo-o<20&&(o=Math.min(r,a.viewTo)),tn&&(i=_t(e.doc,i),o=Mt(e.doc,o));var l=i!=a.viewFrom||o!=a.viewTo||a.lastWrapHeight!=t.wrapperHeight||a.lastWrapWidth!=t.wrapperWidth;Vl(e,i,o),a.viewOffset=Yt(qe(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var c=lo(e);if(!l&&c==0&&!t.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var h=ls(e);return c>4&&(a.lineDiv.style.display="none"),us(e,a.updateLineNumbers,t.dims),c>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,ss(h),J(a.cursorDiv),J(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,l&&(a.lastWrapHeight=t.wrapperHeight,a.lastWrapWidth=t.wrapperWidth,vr(e,400)),a.updateLineNumbers=null,!0}function yo(e,t){for(var a=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Ma(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+ni(e.display)-ai(e),a.top)}),t.visible=Ir(e.display,e.doc,a),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Ir(e.display,e.doc,a));if(!gi(e,t))break;Ur(e);var r=pr(e);dr(e),Ya(e,r),xi(e,r),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function bi(e,t){var a=new Wr(e,t);if(gi(e,a)){Ur(e),yo(e,a);var n=pr(e);dr(e),Ya(e,n),xi(e,n),a.finish()}}function us(e,t,a){var n=e.display,r=e.options.lineNumbers,i=n.lineDiv,o=i.firstChild;function l(Fe){var Xe=Fe.nextSibling;return w&&ne&&e.display.currentWheelTarget==Fe?Fe.style.display="none":Fe.parentNode.removeChild(Fe),Xe}for(var c=n.view,h=n.viewFrom,U=0;U<c.length;U++){var G=c[U];if(!G.hidden)if(!G.node||G.node.parentNode!=i){var Ce=Pl(e,G,h,a);i.insertBefore(Ce,o)}else{for(;o!=G.node;)o=l(o);var me=r&&t!=null&&t<=h&&G.lineNumber;G.changes&&(q(G.changes,"gutter")>-1&&(me=!1),Ki(e,G,h,a)),me&&(J(G.lineNumber),G.lineNumber.appendChild(document.createTextNode($n(e.options,h)))),o=G.node.nextSibling}h+=G.size}for(;o;)o=l(o)}function yi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function xi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+pa(e)+"px"}function xo(e){var t=e.display,a=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=di(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,i=n+"px",o=0;o<a.length;o++)if(!a[o].hidden){e.options.fixedGutter&&(a[o].gutter&&(a[o].gutter.style.left=i),a[o].gutterBackground&&(a[o].gutterBackground.style.left=i));var l=a[o].alignable;if(l)for(var c=0;c<l.length;c++)l[c].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=n+r+"px")}function Eo(e){if(!e.options.lineNumbers)return!1;var t=e.doc,a=$n(e.options,t.first+t.size-1),n=e.display;if(a.length!=n.lineNumChars){var r=n.measure.appendChild(C("div",[C("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=r.firstChild.offsetWidth,o=r.offsetWidth-i;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(i,n.lineGutter.offsetWidth-o)+1,n.lineNumWidth=n.lineNumInnerWidth+o,n.lineNumChars=n.lineNumInnerWidth?a.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",yi(e.display),!0}return!1}function Ei(e,t){for(var a=[],n=!1,r=0;r<e.length;r++){var i=e[r],o=null;if(typeof i!="string"&&(o=i.style,i=i.className),i=="CodeMirror-linenumbers")if(t)n=!0;else continue;a.push({className:i,style:o})}return t&&!n&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function wo(e){var t=e.gutters,a=e.gutterSpecs;J(t),e.lineGutter=null;for(var n=0;n<a.length;++n){var r=a[n],i=r.className,o=r.style,l=t.appendChild(C("div",null,"CodeMirror-gutter "+i));o&&(l.style.cssText=o),i=="CodeMirror-linenumbers"&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=a.length?"":"none",yi(e)}function gr(e){wo(e.display),Hn(e),xo(e)}function cs(e,t,a,n){var r=this;this.input=a,r.scrollbarFiller=C("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=C("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=re("div",null,"CodeMirror-code"),r.selectionDiv=C("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=C("div",null,"CodeMirror-cursors"),r.measure=C("div",null,"CodeMirror-measure"),r.lineMeasure=C("div",null,"CodeMirror-measure"),r.lineSpace=re("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var i=re("div",[r.lineSpace],"CodeMirror-lines");r.mover=C("div",[i],null,"position: relative"),r.sizer=C("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=C("div",null,null,"position: absolute; height: "+ge+"px; width: 1px;"),r.gutters=C("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=C("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=C("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),B&&D<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),!w&&!(xe&&ae)&&(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,r.gutterSpecs=Ei(n.gutters,n.lineNumbers),wo(r),a.init(r)}var Br=0,ta=null;B?ta=-.53:xe?ta=15:Q?ta=-.7:De&&(ta=-1/3);function Co(e){var t=e.wheelDeltaX,a=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),a==null&&e.detail&&e.axis==e.VERTICAL_AXIS?a=e.detail:a==null&&(a=e.wheelDelta),{x:t,y:a}}function ds(e){var t=Co(e);return t.x*=ta,t.y*=ta,t}function ko(e,t){var a=Co(t),n=a.x,r=a.y,i=e.display,o=i.scroller,l=o.scrollWidth>o.clientWidth,c=o.scrollHeight>o.clientHeight;if(!(n&&l||r&&c))return;if(r&&ne&&w){e:for(var h=t.target,U=i.view;h!=o;h=h.parentNode)for(var G=0;G<U.length;G++)if(U[G].node==h){e.display.currentWheelTarget=h;break e}}if(n&&!xe&&!ve&&ta!=null){r&&c&&hr(e,Math.max(0,o.scrollTop+r*ta)),Pa(e,Math.max(0,o.scrollLeft+n*ta)),(!r||r&&c)&&m(t),i.wheelStartX=null;return}if(r&&ta!=null){var Ce=r*ta,me=e.doc.scrollTop,Fe=me+i.wrapper.clientHeight;Ce<0?me=Math.max(0,me+Ce-50):Fe=Math.min(e.doc.height,Fe+Ce+50),bi(e,{top:me,bottom:Fe})}Br<20&&(i.wheelStartX==null?(i.wheelStartX=o.scrollLeft,i.wheelStartY=o.scrollTop,i.wheelDX=n,i.wheelDY=r,setTimeout(function(){if(i.wheelStartX==null)return;var Xe=o.scrollLeft-i.wheelStartX,Ye=o.scrollTop-i.wheelStartY,Je=Ye&&i.wheelDY&&Ye/i.wheelDY||Xe&&i.wheelDX&&Xe/i.wheelDX;if(i.wheelStartX=i.wheelStartY=null,!Je)return;ta=(ta*Br+Je)/(Br+1),++Br},200)):(i.wheelDX+=n,i.wheelDY+=r))}var na=function(e,t){this.ranges=e,this.primIndex=t};na.prototype.primary=function(){return this.ranges[this.primIndex]},na.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var a=this.ranges[t],n=e.ranges[t];if(!$e(a.anchor,n.anchor)||!$e(a.head,n.head))return!1}return!0},na.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Lt(Un(this.ranges[t].anchor),Un(this.ranges[t].head));return new na(e,this.primIndex)},na.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},na.prototype.contains=function(e,t){t||(t=e);for(var a=0;a<this.ranges.length;a++){var n=this.ranges[a];if(ft(t,n.from())>=0&&ft(e,n.to())<=0)return a}return-1};var Lt=function(e,t){this.anchor=e,this.head=t};Lt.prototype.from=function(){return Ln(this.anchor,this.head)},Lt.prototype.to=function(){return Yn(this.anchor,this.head)},Lt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ca(e,t,a){var n=e&&e.options.selectionsMayTouch,r=t[a];t.sort(function(Ce,me){return ft(Ce.from(),me.from())}),a=q(t,r);for(var i=1;i<t.length;i++){var o=t[i],l=t[i-1],c=ft(l.to(),o.from());if(n&&!o.empty()?c>0:c>=0){var h=Ln(l.from(),o.from()),U=Yn(l.to(),o.to()),G=l.empty()?o.from()==o.head:l.from()==l.head;i<=a&&--a,t.splice(--i,2,new Lt(G?U:h,G?h:U))}}return new na(t,a)}function Sa(e,t){return new na([new Lt(e,t||e)],0)}function Oa(e){return e.text?ze(e.from.line+e.text.length-1,d(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function So(e,t){if(ft(e,t.from)<0)return e;if(ft(e,t.to)<=0)return Oa(t);var a=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Oa(t).ch-t.to.ch),ze(a,n)}function wi(e,t){for(var a=[],n=0;n<e.sel.ranges.length;n++){var r=e.sel.ranges[n];a.push(new Lt(So(r.anchor,t),So(r.head,t)))}return ca(e.cm,a,e.sel.primIndex)}function Oo(e,t,a){return e.line==t.line?ze(a.line,e.ch-t.ch+a.ch):ze(a.line+(e.line-t.line),e.ch)}function fs(e,t,a){for(var n=[],r=ze(e.first,0),i=r,o=0;o<t.length;o++){var l=t[o],c=Oo(l.from,r,i),h=Oo(Oa(l),r,i);if(r=l.to,i=h,a=="around"){var U=e.sel.ranges[o],G=ft(U.head,U.anchor)<0;n[o]=new Lt(G?h:c,G?c:h)}else n[o]=new Lt(c,c)}return new na(n,e.sel.primIndex)}function Ci(e){e.doc.mode=Qt(e.options,e.doc.modeOption),br(e)}function br(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,vr(e,100),e.state.modeGen++,e.curOp&&Hn(e)}function To(e,t){return t.from.ch==0&&t.to.ch==0&&d(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ki(e,t,a,n){function r(et){return a?a[et]:null}function i(et,Ze,at){xa(et,Ze,at,n),Dn(et,"change",et,t)}function o(et,Ze){for(var at=[],ht=et;ht<Ze;++ht)at.push(new Vt(h[ht],r(ht),n));return at}var l=t.from,c=t.to,h=t.text,U=qe(e,l.line),G=qe(e,c.line),Ce=d(h),me=r(h.length-1),Fe=c.line-l.line;if(t.full)e.insert(0,o(0,h.length)),e.remove(h.length,e.size-h.length);else if(To(e,t)){var Xe=o(0,h.length-1);i(G,G.text,me),Fe&&e.remove(l.line,Fe),Xe.length&&e.insert(l.line,Xe)}else if(U==G)if(h.length==1)i(U,U.text.slice(0,l.ch)+Ce+U.text.slice(c.ch),me);else{var Ye=o(1,h.length-1);Ye.push(new Vt(Ce+U.text.slice(c.ch),me,n)),i(U,U.text.slice(0,l.ch)+h[0],r(0)),e.insert(l.line+1,Ye)}else if(h.length==1)i(U,U.text.slice(0,l.ch)+h[0]+G.text.slice(c.ch),r(0)),e.remove(l.line+1,Fe);else{i(U,U.text.slice(0,l.ch)+h[0],r(0)),i(G,Ce+G.text.slice(c.ch),me);var Je=o(1,h.length-1);Fe>1&&e.remove(l.line+1,Fe-1),e.insert(l.line+1,Je)}Dn(e,"change",e,t)}function Ta(e,t,a){function n(r,i,o){if(r.linked)for(var l=0;l<r.linked.length;++l){var c=r.linked[l];if(c.doc==i)continue;var h=o&&c.sharedHist;if(a&&!h)continue;t(c.doc,h),n(c.doc,r,h)}}n(e,null,!0)}function _o(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,fi(e),Ci(e),Do(e),e.options.lineWrapping||sa(e),e.options.mode=t.modeOption,Hn(e)}function Do(e){(e.doc.direction=="rtl"?Y:L)(e.display.lineDiv,"CodeMirror-rtl")}function hs(e){Zn(e,function(){Do(e),Hn(e)})}function Kr(e){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Si(e,t){var a={from:Un(t.from),to:Oa(t),text:zt(e,t.from,t.to)};return Mo(e,a,t.from.line,t.to.line+1),Ta(e,function(n){return Mo(n,a,t.from.line,t.to.line+1)},!0),a}function Ao(e){for(;e.length;){var t=d(e);if(t.ranges)e.pop();else break}}function ps(e,t){if(t)return Ao(e.done),d(e.done);if(e.done.length&&!d(e.done).ranges)return d(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),d(e.done)}function Lo(e,t,a,n){var r=e.history;r.undone.length=0;var i=+new Date,o,l;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&r.lastModTime>i-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(o=ps(r,r.lastOp==n)))l=d(o.changes),ft(t.from,t.to)==0&&ft(t.from,l.to)==0?l.to=Oa(t):o.changes.push(Si(e,t));else{var c=d(r.done);for((!c||!c.ranges)&&Hr(e.sel,r.done),o={changes:[Si(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(a),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=i,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,l||we(e,"historyAdded")}function ms(e,t,a,n){var r=t.charAt(0);return r=="*"||r=="+"&&a.ranges.length==n.ranges.length&&a.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vs(e,t,a,n){var r=e.history,i=n&&n.origin;a==r.lastSelOp||i&&r.lastSelOrigin==i&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==i||ms(e,i,d(r.done),t))?r.done[r.done.length-1]=t:Hr(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=i,r.lastSelOp=a,n&&n.clearRedo!==!1&&Ao(r.undone)}function Hr(e,t){var a=d(t);a&&a.ranges&&a.equals(e)||t.push(e)}function Mo(e,t,a,n){var r=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,n),function(o){o.markedSpans&&((r||(r=t["spans_"+e.id]={}))[i]=o.markedSpans),++i})}function gs(e){if(!e)return null;for(var t,a=0;a<e.length;++a)e[a].marker.explicitlyCleared?t||(t=e.slice(0,a)):t&&t.push(e[a]);return t?t.length?t:null:e}function bs(e,t){var a=t["spans_"+e.id];if(!a)return null;for(var n=[],r=0;r<t.text.length;++r)n.push(gs(a[r]));return n}function Ro(e,t){var a=bs(e,t),n=st(e,t);if(!a)return n;if(!n)return a;for(var r=0;r<a.length;++r){var i=a[r],o=n[r];if(i&&o){e:for(var l=0;l<o.length;++l){for(var c=o[l],h=0;h<i.length;++h)if(i[h].marker==c.marker)continue e;i.push(c)}}else o&&(a[r]=o)}return a}function Ja(e,t,a){for(var n=[],r=0;r<e.length;++r){var i=e[r];if(i.ranges){n.push(a?na.prototype.deepCopy.call(i):i);continue}var o=i.changes,l=[];n.push({changes:l});for(var c=0;c<o.length;++c){var h=o[c],U=void 0;if(l.push({from:h.from,to:h.to,text:h.text}),t)for(var G in h)(U=G.match(/^spans_(\d+)$/))&&(q(t,Number(U[1]))>-1&&(d(l)[G]=h[G],delete h[G]))}}return n}function Oi(e,t,a,n){if(n){var r=e.anchor;if(a){var i=ft(t,r)<0;i!=ft(a,r)<0?(r=t,t=a):i!=ft(t,a)<0&&(t=a)}return new Lt(r,t)}else return new Lt(a||t,t)}function zr(e,t,a,n,r){r==null&&(r=e.cm&&(e.cm.display.shift||e.extend)),jn(e,new na([Oi(e.sel.primary(),t,a,r)],0),n)}function No(e,t,a){for(var n=[],r=e.cm&&(e.cm.display.shift||e.extend),i=0;i<e.sel.ranges.length;i++)n[i]=Oi(e.sel.ranges[i],t[i],null,r);var o=ca(e.cm,n,e.sel.primIndex);jn(e,o,a)}function Ti(e,t,a,n){var r=e.sel.ranges.slice(0);r[t]=a,jn(e,ca(e.cm,r,e.sel.primIndex),n)}function jo(e,t,a,n){jn(e,Sa(t,a),n)}function ys(e,t,a){var n={ranges:t.ranges,update:function(r){this.ranges=[];for(var i=0;i<r.length;i++)this.ranges[i]=new Lt(ut(e,r[i].anchor),ut(e,r[i].head))},origin:a&&a.origin};return we(e,"beforeSelectionChange",e,n),e.cm&&we(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?ca(e.cm,n.ranges,n.ranges.length-1):t}function Po(e,t,a){var n=e.history.done,r=d(n);r&&r.ranges?(n[n.length-1]=t,Xr(e,t,a)):jn(e,t,a)}function jn(e,t,a){Xr(e,t,a),vs(e,e.sel,e.cm?e.cm.curOp.id:NaN,a)}function Xr(e,t,a){(M(e,"beforeSelectionChange")||e.cm&&M(e.cm,"beforeSelectionChange"))&&(t=ys(e,t,a));var n=a&&a.bias||(ft(t.primary().head,e.sel.primary().head)<0?-1:1);Uo(e,Fo(e,t,n,!0)),!(a&&a.scroll===!1)&&e.cm&&$a(e.cm)}function Uo(e,t){if(t.equals(e.sel))return;e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,A(e.cm)),Dn(e,"cursorActivity",e)}function Io(e){Uo(e,Fo(e,e.sel,null,!1))}function Fo(e,t,a,n){for(var r,i=0;i<t.ranges.length;i++){var o=t.ranges[i],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[i],c=Vr(e,o.anchor,l&&l.anchor,a,n),h=Vr(e,o.head,l&&l.head,a,n);(r||c!=o.anchor||h!=o.head)&&(r||(r=t.ranges.slice(0,i)),r[i]=new Lt(c,h))}return r?ca(e.cm,r,t.primIndex):t}function Za(e,t,a,n,r){var i=qe(e,t.line);if(i.markedSpans)for(var o=0;o<i.markedSpans.length;++o){var l=i.markedSpans[o],c=l.marker,h="selectLeft"in c?!c.selectLeft:c.inclusiveLeft,U="selectRight"in c?!c.selectRight:c.inclusiveRight;if((l.from==null||(h?l.from<=t.ch:l.from<t.ch))&&(l.to==null||(U?l.to>=t.ch:l.to>t.ch))){if(r&&(we(c,"beforeCursorEnter"),c.explicitlyCleared))if(i.markedSpans){--o;continue}else break;if(!c.atomic)continue;if(a){var G=c.find(n<0?1:-1),Ce=void 0;if((n<0?U:h)&&(G=Wo(e,G,-n,G&&G.line==t.line?i:null)),G&&G.line==t.line&&(Ce=ft(G,a))&&(n<0?Ce<0:Ce>0))return Za(e,G,t,n,r)}var me=c.find(n<0?-1:1);return(n<0?h:U)&&(me=Wo(e,me,n,me.line==t.line?i:null)),me?Za(e,me,t,n,r):null}}return t}function Vr(e,t,a,n,r){var i=n||1,o=Za(e,t,a,i,r)||!r&&Za(e,t,a,i,!0)||Za(e,t,a,-i,r)||!r&&Za(e,t,a,-i,!0);return o||(e.cantEdit=!0,ze(e.first,0))}function Wo(e,t,a,n){return a<0&&t.ch==0?t.line>e.first?ut(e,ze(t.line-1)):null:a>0&&t.ch==(n||qe(e,t.line)).text.length?t.line<e.first+e.size-1?ze(t.line+1,0):null:new ze(t.line,t.ch+a)}function Bo(e){e.setSelection(ze(e.firstLine(),0),ze(e.lastLine()),pe)}function Ko(e,t,a){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return a&&(n.update=function(r,i,o,l){r&&(n.from=ut(e,r)),i&&(n.to=ut(e,i)),o&&(n.text=o),l!==void 0&&(n.origin=l)}),we(e,"beforeChange",e,n),e.cm&&we(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Qa(e,t,a){if(e.cm){if(!e.cm.curOp)return En(e.cm,Qa)(e,t,a);if(e.cm.state.suppressEdits)return}if((M(e,"beforeChange")||e.cm&&M(e.cm,"beforeChange"))&&(t=Ko(e,t,!0),!t))return;var n=In&&!a&&xn(e,t.from,t.to);if(n)for(var r=n.length-1;r>=0;--r)Ho(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin});else Ho(e,t)}function Ho(e,t){if(t.text.length==1&&t.text[0]==""&&ft(t.from,t.to)==0)return;var a=wi(e,t);Lo(e,t,a,e.cm?e.cm.curOp.id:NaN),yr(e,t,a,st(e,t));var n=[];Ta(e,function(r,i){!i&&q(n,r.history)==-1&&(Go(r.history,t),n.push(r.history)),yr(r,t,null,st(r,t))})}function Gr(e,t,a){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!a)return;for(var r=e.history,i,o=e.sel,l=t=="undo"?r.done:r.undone,c=t=="undo"?r.undone:r.done,h=0;h<l.length&&!(i=l[h],a?i.ranges&&!i.equals(e.sel):!i.ranges);h++);if(h==l.length)return;for(r.lastOrigin=r.lastSelOrigin=null;;)if(i=l.pop(),i.ranges){if(Hr(i,c),a&&!i.equals(e.sel)){jn(e,i,{clearRedo:!1});return}o=i}else if(n){l.push(i);return}else break;var U=[];Hr(o,c),c.push({changes:U,generation:r.generation}),r.generation=i.generation||++r.maxGeneration;for(var G=M(e,"beforeChange")||e.cm&&M(e.cm,"beforeChange"),Ce=function(Xe){var Ye=i.changes[Xe];if(Ye.origin=t,G&&!Ko(e,Ye,!1))return l.length=0,{};U.push(Si(e,Ye));var Je=Xe?wi(e,Ye):d(l);yr(e,Ye,Je,Ro(e,Ye)),!Xe&&e.cm&&e.cm.scrollIntoView({from:Ye.from,to:Oa(Ye)});var et=[];Ta(e,function(Ze,at){!at&&q(et,Ze.history)==-1&&(Go(Ze.history,Ye),et.push(Ze.history)),yr(Ze,Ye,null,Ro(Ze,Ye))})},me=i.changes.length-1;me>=0;--me){var Fe=Ce(me);if(Fe)return Fe.v}}function zo(e,t){if(t==0)return;if(e.first+=t,e.sel=new na(f(e.sel.ranges,function(r){return new Lt(ze(r.anchor.line+t,r.anchor.ch),ze(r.head.line+t,r.head.ch))}),e.sel.primIndex),e.cm){Hn(e.cm,e.first,e.first-t,t);for(var a=e.cm.display,n=a.viewFrom;n<a.viewTo;n++)Ca(e.cm,n,"gutter")}}function yr(e,t,a,n){if(e.cm&&!e.cm.curOp)return En(e.cm,yr)(e,t,a,n);if(t.to.line<e.first){zo(e,t.text.length-1-(t.to.line-t.from.line));return}if(t.from.line>e.lastLine())return;if(t.from.line<e.first){var r=t.text.length-1-(e.first-t.from.line);zo(e,r),t={from:ze(e.first,0),to:ze(t.to.line+r,t.to.ch),text:[d(t.text)],origin:t.origin}}var i=e.lastLine();t.to.line>i&&(t={from:t.from,to:ze(i,qe(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=zt(e,t.from,t.to),a||(a=wi(e,t)),e.cm?xs(e.cm,t,n):ki(e,t,n),Xr(e,a,pe),e.cantEdit&&Vr(e,ze(e.firstLine(),0))&&(e.cantEdit=!1)}function xs(e,t,a){var n=e.doc,r=e.display,i=t.from,o=t.to,l=!1,c=i.line;e.options.lineWrapping||(c=wt(it(qe(n,i.line))),n.iter(c,o.line+1,function(me){if(me==r.maxLine)return l=!0,!0})),n.sel.contains(t.from,t.to)>-1&&A(e),ki(n,t,a,oo(e)),e.options.lineWrapping||(n.iter(c,i.line+t.text.length,function(me){var Fe=Rn(me);Fe>r.maxLineLength&&(r.maxLine=me,r.maxLineLength=Fe,r.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),Tn(n,i.line),vr(e,400);var h=t.text.length-(o.line-i.line)-1;t.full?Hn(e):i.line==o.line&&t.text.length==1&&!To(e.doc,t)?Ca(e,i.line,"text"):Hn(e,i.line,o.line+1,h);var U=M(e,"changes"),G=M(e,"change");if(G||U){var Ce={from:i,to:o,text:t.text,removed:t.removed,origin:t.origin};G&&Dn(e,"change",e,Ce),U&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ce)}e.display.selForContextMenu=null}function qa(e,t,a,n,r){var i;n||(n=a),ft(n,a)<0&&(i=[n,a],a=i[0],n=i[1]),typeof t=="string"&&(t=e.splitLines(t)),Qa(e,{from:a,to:n,text:t,origin:r})}function Xo(e,t,a,n){a<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Vo(e,t,a,n){for(var r=0;r<e.length;++r){var i=e[r],o=!0;if(i.ranges){i.copied||(i=e[r]=i.deepCopy(),i.copied=!0);for(var l=0;l<i.ranges.length;l++)Xo(i.ranges[l].anchor,t,a,n),Xo(i.ranges[l].head,t,a,n);continue}for(var c=0;c<i.changes.length;++c){var h=i.changes[c];if(a<h.from.line)h.from=ze(h.from.line+n,h.from.ch),h.to=ze(h.to.line+n,h.to.ch);else if(t<=h.to.line){o=!1;break}}o||(e.splice(0,r+1),r=0)}}function Go(e,t){var a=t.from.line,n=t.to.line,r=t.text.length-(n-a)-1;Vo(e.done,a,n,r),Vo(e.undone,a,n,r)}function xr(e,t,a,n){var r=t,i=t;return typeof t=="number"?i=qe(e,Jn(e,t)):r=wt(t),r==null?null:(n(i,r)&&e.cm&&Ca(e.cm,r,a),i)}function Er(e){this.lines=e,this.parent=null;for(var t=0,a=0;a<e.length;++a)e[a].parent=this,t+=e[a].height;this.height=t}Er.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var a=e,n=e+t;a<n;++a){var r=this.lines[a];this.height-=r.height,Nn(r),Dn(r,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,a){this.height+=a,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,a){for(var n=e+t;e<n;++e)if(a(this.lines[e]))return!0}};function wr(e){this.children=e;for(var t=0,a=0,n=0;n<e.length;++n){var r=e[n];t+=r.chunkSize(),a+=r.height,r.parent=this}this.size=t,this.height=a,this.parent=null}wr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var a=0;a<this.children.length;++a){var n=this.children[a],r=n.chunkSize();if(e<r){var i=Math.min(t,r-e),o=n.height;if(n.removeInner(e,i),this.height-=o-n.height,r==i&&(this.children.splice(a--,1),n.parent=null),(t-=i)==0)break;e=0}else e-=r}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Er))){var l=[];this.collapse(l),this.children=[new Er(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,a){this.size+=t.length,this.height+=a;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<=i){if(r.insertInner(e,t,a),r.lines&&r.lines.length>50){for(var o=r.lines.length%25+25,l=o;l<r.lines.length;){var c=new Er(r.lines.slice(l,l+=25));r.height-=c.height,this.children.splice(++n,0,c),c.parent=this}r.lines=r.lines.slice(0,o),this.maybeSpill()}break}e-=i}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var t=e.children.splice(e.children.length-5,5),a=new wr(t);if(e.parent){e.size-=a.size,e.height-=a.height;var r=q(e.parent.children,e);e.parent.children.splice(r+1,0,a)}else{var n=new wr(e.children);n.parent=e,e.children=[n,a],e=n}a.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,t,a){for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e);if(r.iterN(e,o,a))return!0;if((t-=o)==0)break;e=0}else e-=i}}};var Cr=function(e,t,a){if(a)for(var n in a)a.hasOwnProperty(n)&&(this[n]=a[n]);this.doc=e,this.node=t};Cr.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,a=this.line,n=wt(a);if(n==null||!t)return;for(var r=0;r<t.length;++r)t[r]==this&&t.splice(r--,1);t.length||(a.widgets=null);var i=ur(this);sn(a,Math.max(0,a.height-i)),e&&(Zn(e,function(){$o(e,a,-i),Ca(e,n,"widget")}),Dn(e,"lineWidgetCleared",e,this,n))},Cr.prototype.changed=function(){var e=this,t=this.height,a=this.doc.cm,n=this.line;this.height=null;var r=ur(this)-t;if(!r)return;Dt(this.doc,n)||sn(n,n.height+r),a&&Zn(a,function(){a.curOp.forceUpdate=!0,$o(a,n,r),Dn(a,"lineWidgetChanged",a,e,wt(n))})},z(Cr);function $o(e,t,a){Yt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&vi(e,a)}function Es(e,t,a,n){var r=new Cr(e,a,n),i=e.cm;return i&&r.noHScroll&&(i.display.alignWidgets=!0),xr(e,t,"widget",function(o){var l=o.widgets||(o.widgets=[]);if(r.insertAt==null?l.push(r):l.splice(Math.min(l.length-1,Math.max(0,r.insertAt)),0,r),r.line=o,i&&!Dt(e,o)){var c=Yt(o)<e.scrollTop;sn(o,o.height+ur(r)),c&&vi(i,r.height),i.curOp.forceUpdate=!0}return!0}),i&&Dn(i,"lineWidgetAdded",i,r,typeof t=="number"?t:wt(t)),r}var Yo=0,_a=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Yo};_a.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ia(e),M(this,"clear")){var a=this.find();a&&Dn(this,"clear",a.from,a.to)}for(var n=null,r=null,i=0;i<this.lines.length;++i){var o=this.lines[i],l=nn(o.markedSpans,this);e&&!this.collapsed?Ca(e,wt(o),"text"):e&&(l.to!=null&&(r=wt(o)),l.from!=null&&(n=wt(o))),o.markedSpans=La(o.markedSpans,l),l.from==null&&this.collapsed&&!Dt(this.doc,o)&&e&&sn(o,Xa(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var h=it(this.lines[c]),U=Rn(h);U>e.display.maxLineLength&&(e.display.maxLine=h,e.display.maxLineLength=U,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Hn(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Io(e.doc)),e&&Dn(e,"markerCleared",e,this,n,r),t&&Fa(e),this.parent&&this.parent.clear()},_a.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var a,n,r=0;r<this.lines.length;++r){var i=this.lines[r],o=nn(i.markedSpans,this);if(o.from!=null&&(a=ze(t?i:wt(i),o.from),e==-1))return a;if(o.to!=null&&(n=ze(t?i:wt(i),o.to),e==1))return n}return a&&{from:a,to:n}},_a.prototype.changed=function(){var e=this,t=this.find(-1,!0),a=this,n=this.doc.cm;if(!t||!n)return;Zn(n,function(){var r=t.line,i=wt(t.line),o=ri(n,i);if(o&&(Qi(o),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Dt(a.doc,r)&&a.height!=null){var l=a.height;a.height=null;var c=ur(a)-l;c&&sn(r,r.height+c)}Dn(n,"markerChanged",n,e)})},_a.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||q(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},_a.prototype.detachLine=function(e){if(this.lines.splice(q(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},z(_a);function er(e,t,a,n,r){if(n&&n.shared)return ws(e,t,a,n,r);if(e.cm&&!e.cm.curOp)return En(e.cm,er)(e,t,a,n,r);var i=new _a(e,r),o=ft(t,a);if(n&&s(n,i,!1),o>0||o==0&&i.clearWhenEmpty!==!1)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=re("span",[i.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(ha(e,t.line,t,a,i)||t.line!=a.line&&ha(e,a.line,t,a,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");_n()}i.addToHistory&&Lo(e,{from:t,to:a,origin:"markText"},e.sel,NaN);var l=t.line,c=e.cm,h;if(e.iter(l,a.line+1,function(G){c&&i.collapsed&&!c.options.lineWrapping&&it(G)==c.display.maxLine&&(h=!0),i.collapsed&&l!=t.line&&sn(G,0),mn(G,new Kn(i,l==t.line?t.ch:null,l==a.line?a.ch:null)),++l}),i.collapsed&&e.iter(t.line,a.line+1,function(G){Dt(e,G)&&sn(G,0)}),i.clearOnEnter&&be(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(Ht(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++Yo,i.atomic=!0),c){if(h&&(c.curOp.updateMaxLine=!0),i.collapsed)Hn(c,t.line,a.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var U=t.line;U<=a.line;U++)Ca(c,U,"text");i.atomic&&Io(c.doc),Dn(c,"markerAdded",c,i)}return i}var kr=function(e,t){this.markers=e,this.primary=t;for(var a=0;a<e.length;++a)e[a].parent=this};kr.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Dn(this,"clear")},kr.prototype.find=function(e,t){return this.primary.find(e,t)},z(kr);function ws(e,t,a,n,r){n=s(n),n.shared=!1;var i=[er(e,t,a,n,r)],o=i[0],l=n.widgetNode;return Ta(e,function(c){l&&(n.widgetNode=l.cloneNode(!0)),i.push(er(c,ut(c,t),ut(c,a),n,r));for(var h=0;h<c.linked.length;++h)if(c.linked[h].isParent)return;o=d(i)}),new kr(i,o)}function Jo(e){return e.findMarks(ze(e.first,0),e.clipPos(ze(e.lastLine())),function(t){return t.parent})}function Cs(e,t){for(var a=0;a<t.length;a++){var n=t[a],r=n.find(),i=e.clipPos(r.from),o=e.clipPos(r.to);if(ft(i,o)){var l=er(e,i,o,n.primary,n.primary.type);n.markers.push(l),l.parent=n}}}function ks(e){for(var t=function(n){var r=e[n],i=[r.primary.doc];Ta(r.primary.doc,function(c){return i.push(c)});for(var o=0;o<r.markers.length;o++){var l=r.markers[o];q(i,l.doc)==-1&&(l.parent=null,r.markers.splice(o--,1))}},a=0;a<e.length;a++)t(a)}var Ss=0,zn=function(e,t,a,n,r){if(!(this instanceof zn))return new zn(e,t,a,n,r);a==null&&(a=0),wr.call(this,[new Er([new Vt("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var i=ze(a,0);this.sel=Sa(i),this.history=new Kr(null),this.id=++Ss,this.modeOption=t,this.lineSep=n,this.direction=r=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ki(this,{from:i,to:i,text:e}),jn(this,Sa(i),pe)};zn.prototype=Z(wr.prototype,{constructor:zn,iter:function(e,t,a){a?this.iterN(e-this.first,t-e,a):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var a=0,n=0;n<t.length;++n)a+=t[n].height;this.insertInner(e-this.first,t,a)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=bn(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:wn(function(e){var t=ze(this.first,0),a=this.first+this.size-1;Qa(this,{from:t,to:ze(a,qe(this,a).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&fr(this.cm,0,0),jn(this,Sa(t),pe)}),replaceRange:function(e,t,a,n){t=ut(this,t),a=a?ut(this,a):t,qa(this,e,t,a,n)},getRange:function(e,t,a){var n=zt(this,ut(this,e),ut(this,t));return a===!1?n:n.join(a||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Gt(this,e))return qe(this,e)},getLineNumber:function(e){return wt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=qe(this,e)),it(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ut(this,e)},getCursor:function(e){var t=this.sel.primary(),a;return e==null||e=="head"?a=t.head:e=="anchor"?a=t.anchor:e=="end"||e=="to"||e===!1?a=t.to():a=t.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wn(function(e,t,a){jo(this,ut(this,typeof e=="number"?ze(e,t||0):e),null,a)}),setSelection:wn(function(e,t,a){jo(this,ut(this,e),ut(this,t||e),a)}),extendSelection:wn(function(e,t,a){zr(this,ut(this,e),t&&ut(this,t),a)}),extendSelections:wn(function(e,t){No(this,qn(this,e),t)}),extendSelectionsBy:wn(function(e,t){var a=f(this.sel.ranges,e);No(this,qn(this,a),t)}),setSelections:wn(function(e,t,a){if(!e.length)return;for(var n=[],r=0;r<e.length;r++)n[r]=new Lt(ut(this,e[r].anchor),ut(this,e[r].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),jn(this,ca(this.cm,n,t),a)}),addSelection:wn(function(e,t,a){var n=this.sel.ranges.slice(0);n.push(new Lt(ut(this,e),ut(this,t||e))),jn(this,ca(this.cm,n,n.length-1),a)}),getSelection:function(e){for(var t=this.sel.ranges,a,n=0;n<t.length;n++){var r=zt(this,t[n].from(),t[n].to());a=a?a.concat(r):r}return e===!1?a:a.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],a=this.sel.ranges,n=0;n<a.length;n++){var r=zt(this,a[n].from(),a[n].to());e!==!1&&(r=r.join(e||this.lineSeparator())),t[n]=r}return t},replaceSelection:function(e,t,a){for(var n=[],r=0;r<this.sel.ranges.length;r++)n[r]=e;this.replaceSelections(n,t,a||"+input")},replaceSelections:wn(function(e,t,a){for(var n=[],r=this.sel,i=0;i<r.ranges.length;i++){var o=r.ranges[i];n[i]={from:o.from(),to:o.to(),text:this.splitLines(e[i]),origin:a}}for(var l=t&&t!="end"&&fs(this,n,t),c=n.length-1;c>=0;c--)Qa(this,n[c]);l?Po(this,l):this.cm&&$a(this.cm)}),undo:wn(function(){Gr(this,"undo")}),redo:wn(function(){Gr(this,"redo")}),undoSelection:wn(function(){Gr(this,"undo",!0)}),redoSelection:wn(function(){Gr(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,a=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var r=0;r<e.undone.length;r++)e.undone[r].ranges||++a;return{undo:t,redo:a}},clearHistory:function(){var e=this;this.history=new Kr(this.history.maxGeneration),Ta(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ja(this.history.done),undone:Ja(this.history.undone)}},setHistory:function(e){var t=this.history=new Kr(this.history.maxGeneration);t.done=Ja(e.done.slice(0),null,!0),t.undone=Ja(e.undone.slice(0),null,!0)},setGutterMarker:wn(function(e,t,a){return xr(this,e,"gutter",function(n){var r=n.gutterMarkers||(n.gutterMarkers={});return r[t]=a,!a&&Ae(r)&&(n.gutterMarkers=null),!0})}),clearGutter:wn(function(e){var t=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[e]&&xr(t,a,"gutter",function(){return a.gutterMarkers[e]=null,Ae(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Gt(this,e))return null;if(t=e,e=qe(this,e),!e)return null}else if(t=wt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:wn(function(e,t,a){return xr(this,e,t=="gutter"?"gutter":"class",function(n){var r=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[r])n[r]=a;else{if(oe(a).test(n[r]))return!1;n[r]+=" "+a}return!0})}),removeLineClass:wn(function(e,t,a){return xr(this,e,t=="gutter"?"gutter":"class",function(n){var r=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",i=n[r];if(i)if(a==null)n[r]=null;else{var o=i.match(oe(a));if(!o)return!1;var l=o.index+o[0].length;n[r]=i.slice(0,o.index)+(!o.index||l==i.length?"":" ")+i.slice(l)||null}else return!1;return!0})}),addLineWidget:wn(function(e,t,a){return Es(this,e,t,a)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,a){return er(this,ut(this,e),ut(this,t),a,a&&a.type||"range")},setBookmark:function(e,t){var a={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=ut(this,e),er(this,e,e,a,"bookmark")},findMarksAt:function(e){e=ut(this,e);var t=[],a=qe(this,e.line).markedSpans;if(a)for(var n=0;n<a.length;++n){var r=a[n];(r.from==null||r.from<=e.ch)&&(r.to==null||r.to>=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,a){e=ut(this,e),t=ut(this,t);var n=[],r=e.line;return this.iter(e.line,t.line+1,function(i){var o=i.markedSpans;if(o)for(var l=0;l<o.length;l++){var c=o[l];!(c.to!=null&&r==e.line&&e.ch>=c.to||c.from==null&&r!=e.line||c.from!=null&&r==t.line&&c.from>=t.ch)&&(!a||a(c.marker))&&n.push(c.marker.parent||c.marker)}++r}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var a=t.markedSpans;if(a)for(var n=0;n<a.length;++n)a[n].from!=null&&e.push(a[n].marker)}),e},posFromIndex:function(e){var t,a=this.first,n=this.lineSeparator().length;return this.iter(function(r){var i=r.text.length+n;if(i>e)return t=e,!0;e-=i,++a}),ut(this,ze(a,t))},indexFromPos:function(e){e=ut(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+a}),t},copy:function(e){var t=new zn(bn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,a=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<a&&(a=e.to);var n=new zn(bn(this,t,a),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Cs(n,Jo(this)),n},unlinkDoc:function(e){if(e instanceof Jt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var a=this.linked[t];if(a.doc!=e)continue;this.linked.splice(t,1),e.unlinkDoc(this),ks(Jo(this));break}if(e.history==this.history){var n=[e.id];Ta(e,function(r){return n.push(r.id)},!0),e.history=new Kr(null),e.history.done=Ja(this.history.done,n),e.history.undone=Ja(this.history.undone,n)}},iterLinkedDocs:function(e){Ta(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):mt(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:wn(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&hs(this.cm)})}),zn.prototype.eachLine=zn.prototype.iter;var Zo=0;function Os(e){var t=this;if(Qo(t),je(t,e)||ga(t.display,e))return;m(e),B&&(Zo=+new Date);var a=Na(t,e,!0),n=e.dataTransfer.files;if(!a||t.isReadOnly())return;if(n&&n.length&&window.FileReader&&window.File)for(var r=n.length,i=Array(r),o=0,l=function(){++o==r&&En(t,function(){a=ut(t.doc,a);var me={from:a,to:a,text:t.doc.splitLines(i.filter(function(Fe){return Fe!=null}).join(t.doc.lineSeparator())),origin:"paste"};Qa(t.doc,me),Po(t.doc,Sa(ut(t.doc,a),ut(t.doc,Oa(me))))})()},c=function(me,Fe){if(t.options.allowDropFileTypes&&q(t.options.allowDropFileTypes,me.type)==-1){l();return}var Xe=new FileReader;Xe.onerror=function(){return l()},Xe.onload=function(){var Ye=Xe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ye)){l();return}i[Fe]=Ye,l()},Xe.readAsText(me)},h=0;h<n.length;h++)c(n[h],h);else{if(t.state.draggingText&&t.doc.sel.contains(a)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var U=e.dataTransfer.getData("Text");if(U){var G;if(t.state.draggingText&&!t.state.draggingText.copy&&(G=t.listSelections()),Xr(t.doc,Sa(a,a)),G)for(var Ce=0;Ce<G.length;++Ce)qa(t.doc,"",G[Ce].anchor,G[Ce].head,"drag");t.replaceSelection(U,"around","paste"),t.display.input.focus()}}catch(me){}}}function Ts(e,t){if(B&&(!e.state.draggingText||+new Date-Zo<100)){T(t);return}if(je(e,t)||ga(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!De){var a=C("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ve&&(a.width=a.height=1,e.display.wrapper.appendChild(a),a._top=a.offsetTop),t.dataTransfer.setDragImage(a,0,0),ve&&a.parentNode.removeChild(a)}}function _s(e,t){var a=Na(e,t);if(!a)return;var n=document.createDocumentFragment();uo(e,a,n),e.display.dragCursor||(e.display.dragCursor=C("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),V(e.display.dragCursor,n)}function Qo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function qo(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),a=[],n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&a.push(r)}a.length&&a[0].operation(function(){for(var i=0;i<a.length;i++)e(a[i])})}var el=!1;function Ds(){if(el)return;As(),el=!0}function As(){var e;be(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,qo(Ls)},100))}),be(window,"blur",function(){return qo(Ga)})}function Ls(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Da={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Sr=0;Sr<10;Sr++)Da[Sr+48]=Da[Sr+96]=String(Sr);for(var $r=65;$r<=90;$r++)Da[$r]=String.fromCharCode($r);for(var Or=1;Or<=12;Or++)Da[Or+111]=Da[Or+63235]="F"+Or;var ba={};ba.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ba.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ba.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ba.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ba.default=ne?ba.macDefault:ba.pcDefault;function Ms(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var a,n,r,i,o=0;o<t.length-1;o++){var l=t[o];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))a=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))r=!0;else throw new Error("Unrecognized modifier name: "+l)}return a&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Rs(e){var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(n=="..."){delete e[a];continue}for(var r=f(a.split(" "),Ms),i=0;i<r.length;i++){var o=void 0,l=void 0;i==r.length-1?(l=r.join(" "),o=n):(l=r.slice(0,i+1).join(" "),o="...");var c=t[l];if(!c)t[l]=o;else if(c!=o)throw new Error("Inconsistent bindings for "+l)}delete e[a]}for(var h in t)e[h]=t[h];return e}function tr(e,t,a,n){t=Yr(t);var r=t.call?t.call(e,n):t[e];if(r===!1)return"nothing";if(r==="...")return"multi";if(r!=null&&a(r))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return tr(e,t.fallthrough,a,n);for(var i=0;i<t.fallthrough.length;i++){var o=tr(e,t.fallthrough[i],a,n);if(o)return o}}}function tl(e){var t=typeof e=="string"?e:Da[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function nl(e,t,a){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(ee?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(ee?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!a&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function al(e,t){if(ve&&e.keyCode==34&&e.char)return!1;var a=Da[e.keyCode];return a==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(a=e.code),nl(a,e,t))}function Yr(e){return typeof e=="string"?ba[e]:e}function nr(e,t){for(var a=e.doc.sel.ranges,n=[],r=0;r<a.length;r++){for(var i=t(a[r]);n.length&&ft(i.from,d(n).to)<=0;){var o=n.pop();if(ft(o.from,i.from)<0){i.from=o.from;break}}n.push(i)}Zn(e,function(){for(var l=n.length-1;l>=0;l--)qa(e.doc,"",n[l].from,n[l].to,"+delete");$a(e)})}function _i(e,t,a){var n=_e(e.text,t+a,a);return n<0||n>e.text.length?null:n}function Di(e,t,a){var n=_i(e,t.ch,a);return n==null?null:new ze(t.line,n,a<0?"after":"before")}function Ai(e,t,a,n,r){if(e){t.doc.direction=="rtl"&&(r=-r);var i=We(a,t.doc.direction);if(i){var o=r<0?d(i):i[0],l=r<0==(o.level==1),c=l?"after":"before",h;if(o.level>0||t.doc.direction=="rtl"){var U=za(t,a);h=r<0?a.text.length-1:0;var G=ma(t,U,h).top;h=Ge(function(Ce){return ma(t,U,Ce).top==G},r<0==(o.level==1)?o.from:o.to-1,h),c=="before"&&(h=_i(a,h,1))}else h=r<0?o.to:o.from;return new ze(n,h,c)}}return new ze(n,r<0?a.text.length:0,r<0?"before":"after")}function Ns(e,t,a,n){var r=We(t,e.doc.direction);if(!r)return Di(t,a,n);a.ch>=t.text.length?(a.ch=t.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var i=Me(r,a.ch,a.sticky),o=r[i];if(e.doc.direction=="ltr"&&o.level%2==0&&(n>0?o.to>a.ch:o.from<a.ch))return Di(t,a,n);var l=function(Je,et){return _i(t,Je instanceof ze?Je.ch:Je,et)},c,h=function(Je){return e.options.lineWrapping?(c=c||za(e,t),io(e,t,c,Je)):{begin:0,end:t.text.length}},U=h(a.sticky=="before"?l(a,-1):a.ch);if(e.doc.direction=="rtl"||o.level==1){var G=o.level==1==n<0,Ce=l(a,G?1:-1);if(Ce!=null&&(G?Ce<=o.to&&Ce<=U.end:Ce>=o.from&&Ce>=U.begin)){var me=G?"before":"after";return new ze(a.line,Ce,me)}}var Fe=function(Je,et,Ze){for(var at=function(Wt,Cn){return Cn?new ze(a.line,l(Wt,1),"before"):new ze(a.line,Wt,"after")};Je>=0&&Je<r.length;Je+=et){var ht=r[Je],ct=et>0==(ht.level!=1),Et=ct?Ze.begin:l(Ze.end,-1);if(ht.from<=Et&&Et<ht.to)return at(Et,ct);if(Et=ct?ht.from:l(ht.to,-1),Ze.begin<=Et&&Et<Ze.end)return at(Et,ct)}},Xe=Fe(i+n,n,U);if(Xe)return Xe;var Ye=n>0?U.end:l(U.begin,-1);return Ye!=null&&!(n>0&&Ye==t.text.length)&&(Xe=Fe(n>0?0:r.length-1,n,h(Ye)),Xe)?Xe:null}var Tr={selectAll:Bo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),pe)},killLine:function(e){return nr(e,function(t){if(t.empty()){var a=qe(e.doc,t.head.line).text.length;return t.head.ch==a&&t.head.line<e.lastLine()?{from:t.head,to:ze(t.head.line+1,0)}:{from:t.head,to:ze(t.head.line,a)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return nr(e,function(t){return{from:ze(t.from().line,0),to:ut(e.doc,ze(t.to().line+1,0))}})},delLineLeft:function(e){return nr(e,function(t){return{from:ze(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return nr(e,function(t){var a=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:a},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return nr(e,function(t){var a=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ze(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ze(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return rl(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return il(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return js(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var a=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div")},v)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var a=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:a},"div")},v)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var a=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:a},"div");return n.ch<e.getLine(n.line).search(/\S/)?il(e,t.head):n},v)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],a=e.listSelections(),n=e.options.tabSize,r=0;r<a.length;r++){var i=a[r].from(),o=x(e.getLine(i.line),i.ch,n);t.push(_(n-o%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Zn(e,function(){for(var t=e.listSelections(),a=[],n=0;n<t.length;n++){if(!t[n].empty())continue;var r=t[n].head,i=qe(e.doc,r.line).text;if(i){if(r.ch==i.length&&(r=new ze(r.line,r.ch-1)),r.ch>0)r=new ze(r.line,r.ch+1),e.replaceRange(i.charAt(r.ch-1)+i.charAt(r.ch-2),ze(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var o=qe(e.doc,r.line-1).text;o&&(r=new ze(r.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),ze(r.line-1,o.length-1),r,"+transpose"))}}a.push(new Lt(r,r))}e.setSelections(a)})},newlineAndIndent:function(e){return Zn(e,function(){for(var t=e.listSelections(),a=t.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),t[a].anchor,t[a].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);$a(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function rl(e,t){var a=qe(e.doc,t),n=it(a);return n!=a&&(t=wt(n)),Ai(!0,e,n,t,1)}function js(e,t){var a=qe(e.doc,t),n=xt(a);return n!=a&&(t=wt(n)),Ai(!0,e,a,t,-1)}function il(e,t){var a=rl(e,t.line),n=qe(e.doc,a.line),r=We(n,e.doc.direction);if(!r||r[0].level==0){var i=Math.max(a.ch,n.text.search(/\S/)),o=t.line==a.line&&t.ch<=i&&t.ch;return ze(a.line,o?0:i,a.sticky)}return a}function Jr(e,t,a){if(typeof t=="string"&&(t=Tr[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a&&(e.display.shift=!1),r=t(e)!=fe}finally{e.display.shift=n,e.state.suppressEdits=!1}return r}function Ps(e,t,a){for(var n=0;n<e.state.keyMaps.length;n++){var r=tr(t,e.state.keyMaps[n],a,e);if(r)return r}return e.options.extraKeys&&tr(t,e.options.extraKeys,a,e)||tr(t,e.options.keyMap,a,e)}var Us=new R;function _r(e,t,a,n){var r=e.state.keySeq;if(r){if(tl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Us.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),ol(e,r+" "+t,a,n))return!0}return ol(e,t,a,n)}function ol(e,t,a,n){var r=Ps(e,t,n);return r=="multi"&&(e.state.keySeq=t),r=="handled"&&Dn(e,"keyHandled",e,t,a),(r=="handled"||r=="multi")&&(m(a),hi(e)),!!r}function ll(e,t){var a=al(t,!0);return a?t.shiftKey&&!e.state.keySeq?_r(e,"Shift-"+a,t,function(n){return Jr(e,n,!0)})||_r(e,a,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return Jr(e,n)}):_r(e,a,t,function(n){return Jr(e,n)}):!1}function Is(e,t,a){return _r(e,"'"+a+"'",t,function(n){return Jr(e,n,!0)})}var Li=null;function sl(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=N(),je(t,e))return;B&&D<11&&e.keyCode==27&&(e.returnValue=!1);var a=e.keyCode;t.display.shift=a==16||e.shiftKey;var n=ll(t,e);ve&&(Li=n?a:null,!n&&a==88&&!At&&(ne?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),xe&&!ne&&!n&&a==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Fs(t)}function Fs(e){var t=e.display.lineDiv;Y(t,"CodeMirror-crosshair");function a(n){(n.keyCode==18||!n.altKey)&&(L(t,"CodeMirror-crosshair"),Be(document,"keyup",a),Be(document,"mouseover",a))}be(document,"keyup",a),be(document,"mouseover",a)}function ul(e){e.keyCode==16&&(this.doc.sel.shift=!1),je(this,e)}function cl(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(ga(t.display,e)||je(t,e)||e.ctrlKey&&!e.altKey||ne&&e.metaKey)return;var a=e.keyCode,n=e.charCode;if(ve&&a==Li){Li=null,m(e);return}if(ve&&(!e.which||e.which<10)&&ll(t,e))return;var r=String.fromCharCode(n==null?a:n);if(r=="\b")return;if(Is(t,e,r))return;t.display.input.onKeyPress(e)}var Ws=400,Mi=function(e,t,a){this.time=e,this.pos=t,this.button=a};Mi.prototype.compare=function(e,t,a){return this.time+Ws>e&&ft(t,this.pos)==0&&a==this.button};var Dr,Ar;function Bs(e,t){var a=+new Date;return Ar&&Ar.compare(a,e,t)?(Dr=Ar=null,"triple"):Dr&&Dr.compare(a,e,t)?(Ar=new Mi(a,e,t),Dr=null,"double"):(Dr=new Mi(a,e,t),Ar=null,"single")}function dl(e){var t=this,a=t.display;if(je(t,e)||a.activeTouch&&a.input.supportsTouch())return;if(a.input.ensurePolled(),a.shift=e.shiftKey,ga(a,e)){w||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(Ri(t,e))return;var n=Na(t,e),r=ye(e),i=n?Bs(n,r):"single";if(window.focus(),r==1&&t.state.selectingText&&t.state.selectingText(e),n&&Ks(t,r,n,i,e))return;r==1?n?zs(t,n,i,e):ue(e)==a.scroller&&m(e):r==2?(n&&zr(t.doc,n),setTimeout(function(){return a.input.focus()},20)):r==3&&(he?t.display.input.onContextMenu(e):fo(t))}function Ks(e,t,a,n,r){var i="Click";return n=="double"?i="Double"+i:n=="triple"&&(i="Triple"+i),i=(t==1?"Left":t==2?"Middle":"Right")+i,_r(e,nl(i,r),r,function(o){if(typeof o=="string"&&(o=Tr[o]),!o)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=o(e,a)!=fe}finally{e.state.suppressEdits=!1}return l})}function Hs(e,t,a){var n=e.getOption("configureMouse"),r=n?n(e,t,a):{};if(r.unit==null){var i=Se?a.shiftKey&&a.metaKey:a.altKey;r.unit=i?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(r.extend==null||e.doc.extend)&&(r.extend=e.doc.extend||a.shiftKey),r.addNew==null&&(r.addNew=ne?a.metaKey:a.ctrlKey),r.moveOnDrag==null&&(r.moveOnDrag=!(ne?a.altKey:a.ctrlKey)),r}function zs(e,t,a,n){B?setTimeout(u(co,e),0):e.curOp.focus=N();var r=Hs(e,a,n),i=e.doc.sel,o;e.options.dragDrop&&Ke&&!e.isReadOnly()&&a=="single"&&(o=i.contains(t))>-1&&(ft((o=i.ranges[o]).from(),t)<0||t.xRel>0)&&(ft(o.to(),t)>0||t.xRel<0)?Xs(e,n,t,r):Vs(e,n,t,r)}function Xs(e,t,a,n){var r=e.display,i=!1,o=En(e,function(h){w&&(r.scroller.draggable=!1),e.state.draggingText=!1,Be(r.wrapper.ownerDocument,"mouseup",o),Be(r.wrapper.ownerDocument,"mousemove",l),Be(r.scroller,"dragstart",c),Be(r.scroller,"drop",o),i||(m(h),n.addNew||zr(e.doc,a,null,null,n.extend),w&&!De||B&&D==9?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),l=function(h){i=i||Math.abs(t.clientX-h.clientX)+Math.abs(t.clientY-h.clientY)>=10},c=function(){return i=!0};w&&(r.scroller.draggable=!0),e.state.draggingText=o,o.copy=!n.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),be(r.wrapper.ownerDocument,"mouseup",o),be(r.wrapper.ownerDocument,"mousemove",l),be(r.scroller,"dragstart",c),be(r.scroller,"drop",o),fo(e),setTimeout(function(){return r.input.focus()},20)}function fl(e,t,a){if(a=="char")return new Lt(t,t);if(a=="word")return e.findWordAt(t);if(a=="line")return new Lt(ze(t.line,0),ut(e.doc,ze(t.line+1,0)));var n=a(e,t);return new Lt(n.from,n.to)}function Vs(e,t,a,n){var r=e.display,i=e.doc;m(t);var o,l,c=i.sel,h=c.ranges;if(n.addNew&&!n.extend?(l=i.sel.contains(a),l>-1?o=h[l]:o=new Lt(a,a)):(o=i.sel.primary(),l=i.sel.primIndex),n.unit=="rectangle")n.addNew||(o=new Lt(a,a)),a=Na(e,t,!0,!0),l=-1;else{var U=fl(e,a,n.unit);n.extend?o=Oi(o,U.anchor,U.head,n.extend):o=U}n.addNew?l==-1?(l=h.length,jn(i,ca(e,h.concat([o]),l),{scroll:!1,origin:"*mouse"})):h.length>1&&h[l].empty()&&n.unit=="char"&&!n.extend?(jn(i,ca(e,h.slice(0,l).concat(h.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=i.sel):Ti(i,l,o,P):(l=0,jn(i,new na([o],0),P),c=i.sel);var G=a;function Ce(Ze){if(ft(G,Ze)==0)return;if(G=Ze,n.unit=="rectangle"){for(var at=[],ht=e.options.tabSize,ct=x(qe(i,a.line).text,a.ch,ht),Et=x(qe(i,Ze.line).text,Ze.ch,ht),Wt=Math.min(ct,Et),Cn=Math.max(ct,Et),Zt=Math.min(a.line,Ze.line),Qn=Math.min(e.lastLine(),Math.max(a.line,Ze.line));Zt<=Qn;Zt++){var Xn=qe(i,Zt).text,hn=O(Xn,Wt,ht);Wt==Cn?at.push(new Lt(ze(Zt,hn),ze(Zt,hn))):Xn.length>hn&&at.push(new Lt(ze(Zt,hn),ze(Zt,O(Xn,Cn,ht))))}at.length||at.push(new Lt(a,a)),jn(i,ca(e,c.ranges.slice(0,l).concat(at),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Ze)}else{var Vn=o,An=fl(e,Ze,n.unit),gn=Vn.anchor,pn;ft(An.anchor,gn)>0?(pn=An.head,gn=Ln(Vn.from(),An.anchor)):(pn=An.anchor,gn=Yn(Vn.to(),An.head));var an=c.ranges.slice(0);an[l]=Gs(e,new Lt(ut(i,gn),pn)),jn(i,ca(e,an,l),P)}}var me=r.wrapper.getBoundingClientRect(),Fe=0;function Xe(Ze){var at=++Fe,ht=Na(e,Ze,!0,n.unit=="rectangle");if(!ht)return;if(ft(ht,G)!=0){e.curOp.focus=N(),Ce(ht);var ct=Ir(r,i);(ht.line>=ct.to||ht.line<ct.from)&&setTimeout(En(e,function(){Fe==at&&Xe(Ze)}),150)}else{var Et=Ze.clientY<me.top?-20:Ze.clientY>me.bottom?20:0;Et&&setTimeout(En(e,function(){if(Fe!=at)return;r.scroller.scrollTop+=Et,Xe(Ze)}),50)}}function Ye(Ze){e.state.selectingText=!1,Fe=Infinity,Ze&&(m(Ze),r.input.focus()),Be(r.wrapper.ownerDocument,"mousemove",Je),Be(r.wrapper.ownerDocument,"mouseup",et),i.history.lastSelOrigin=null}var Je=En(e,function(Ze){Ze.buttons===0||!ye(Ze)?Ye(Ze):Xe(Ze)}),et=En(e,Ye);e.state.selectingText=et,be(r.wrapper.ownerDocument,"mousemove",Je),be(r.wrapper.ownerDocument,"mouseup",et)}function Gs(e,t){var a=t.anchor,n=t.head,r=qe(e.doc,a.line);if(ft(a,n)==0&&a.sticky==n.sticky)return t;var i=We(r);if(!i)return t;var o=Me(i,a.ch,a.sticky),l=i[o];if(l.from!=a.ch&&l.to!=a.ch)return t;var c=o+(l.from==a.ch==(l.level!=1)?0:1);if(c==0||c==i.length)return t;var h;if(n.line!=a.line)h=(n.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var U=Me(i,n.ch,n.sticky),G=U-o||(n.ch-a.ch)*(l.level==1?-1:1);U==c-1||U==c?h=G<0:h=G>0}var Ce=i[c+(h?-1:0)],me=h==(Ce.level==1),Fe=me?Ce.from:Ce.to,Xe=me?"after":"before";return a.ch==Fe&&a.sticky==Xe?t:new Lt(new ze(a.line,Fe,Xe),n)}function hl(e,t,a,n){var r,i;if(t.touches)r=t.touches[0].clientX,i=t.touches[0].clientY;else try{r=t.clientX,i=t.clientY}catch(Ce){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&m(t);var o=e.display,l=o.lineDiv.getBoundingClientRect();if(i>l.bottom||!M(e,a))return E(t);i-=l.top-o.viewOffset;for(var c=0;c<e.display.gutterSpecs.length;++c){var h=o.gutters.childNodes[c];if(h&&h.getBoundingClientRect().right>=r){var U=un(e.doc,i),G=e.display.gutterSpecs[c];return we(e,a,e,U,G.className,t),E(t)}}}function Ri(e,t){return hl(e,t,"gutterClick",!0)}function pl(e,t){if(ga(e.display,t)||$s(e,t))return;if(je(e,t,"contextmenu"))return;he||e.display.input.onContextMenu(t)}function $s(e,t){return M(e,"gutterContextMenu")?hl(e,t,"gutterContextMenu",!1):!1}function ml(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),cr(e)}var ar={toString:function(){return"CodeMirror.Init"}},vl={},Zr={};function Ys(e){var t=e.optionHandlers;function a(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(l,c,h){h!=ar&&i(l,c,h)}:i)}e.defineOption=a,e.Init=ar,a("value","",function(n,r){return n.setValue(r)},!0),a("mode",null,function(n,r){n.doc.modeOption=r,Ci(n)},!0),a("indentUnit",2,Ci,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(n){br(n),cr(n),Hn(n)},!0),a("lineSeparator",null,function(n,r){if(n.doc.lineSep=r,!r)return;var i=[],o=n.doc.first;n.doc.iter(function(c){for(var h=0;;){var U=c.text.indexOf(r,h);if(U==-1)break;h=U+r.length,i.push(ze(o,U))}o++});for(var l=i.length-1;l>=0;l--)qa(n.doc,r,i[l],ze(i[l].line,i[l].ch+r.length))}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,r,i){n.state.specialChars=new RegExp(r.source+(r.test(" ")?"":"| "),"g"),i!=ar&&n.refresh()}),a("specialCharPlaceholder",kl,function(n){return n.refresh()},!0),a("electricChars",!0),a("inputStyle",ae?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(n,r){return n.getInputField().spellcheck=r},!0),a("autocorrect",!1,function(n,r){return n.getInputField().autocorrect=r},!0),a("autocapitalize",!1,function(n,r){return n.getInputField().autocapitalize=r},!0),a("rtlMoveVisually",!Re),a("wholeLineUpdateBefore",!0),a("theme","default",function(n){ml(n),gr(n)},!0),a("keyMap","default",function(n,r,i){var o=Yr(r),l=i!=ar&&Yr(i);l&&l.detach&&l.detach(n,o),o.attach&&o.attach(n,l||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Zs,!0),a("gutters",[],function(n,r){n.display.gutterSpecs=Ei(r,n.options.lineNumbers),gr(n)},!0),a("fixedGutter",!0,function(n,r){n.display.gutters.style.left=r?di(n.display)+"px":"0",n.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(n){return Ya(n)},!0),a("scrollbarStyle","native",function(n){bo(n),Ya(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),a("lineNumbers",!1,function(n,r){n.display.gutterSpecs=Ei(n.options.gutters,r),gr(n)},!0),a("firstLineNumber",1,gr,!0),a("lineNumberFormatter",function(n){return n},gr,!0),a("showCursorWhenSelecting",!1,dr,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(n,r){r=="nocursor"&&(Ga(n),n.display.input.blur()),n.display.input.readOnlyChanged(r)}),a("screenReaderLabel",null,function(n,r){r=r===""?null:r,n.display.input.screenReaderLabelChanged(r)}),a("disableInput",!1,function(n,r){r||n.display.input.reset()},!0),a("dragDrop",!0,Js),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,dr,!0),a("singleCursorHeightPerLine",!0,dr,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,br,!0),a("addModeClass",!1,br,!0),a("pollInterval",100),a("undoDepth",200,function(n,r){return n.doc.history.undoDepth=r}),a("historyEventDelay",1250),a("viewportMargin",10,function(n){return n.refresh()},!0),a("maxHighlightLength",1e4,br,!0),a("moveInputWithCursor",!0,function(n,r){r||n.display.input.resetPosition()}),a("tabindex",null,function(n,r){return n.display.input.getField().tabIndex=r||""}),a("autofocus",null),a("direction","ltr",function(n,r){return n.doc.setDirection(r)},!0),a("phrases",null)}function Js(e,t,a){var n=a&&a!=ar;if(!t!=!n){var r=e.display.dragFunctions,i=t?be:Be;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Zs(e){e.options.lineWrapping?(Y(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(L(e.display.wrapper,"CodeMirror-wrap"),sa(e)),fi(e),Hn(e),cr(e),setTimeout(function(){return Ya(e)},100)}function Jt(e,t){var a=this;if(!(this instanceof Jt))return new Jt(e,t);this.options=t=t?s(t):{},s(vl,t,!1);var n=t.value;typeof n=="string"?n=new zn(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var r=new Jt.inputStyles[t.inputStyle](this),i=this.display=new cs(e,n,r,t);i.wrapper.CodeMirror=this,ml(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!ae&&i.input.focus(),B&&D<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Qs(this),Ds(),Ia(this),this.curOp.forceUpdate=!0,_o(this,n),t.autofocus&&!ae||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&pi(a)},20):Ga(this);for(var o in Zr)Zr.hasOwnProperty(o)&&Zr[o](this,t[o],ar);Eo(this),t.finishInit&&t.finishInit(this);for(var l=0;l<Ni.length;++l)Ni[l](this);Fa(this),w&&t.lineWrapping&&getComputedStyle(i.lineDiv).textRendering=="optimizelegibility"&&(i.lineDiv.style.textRendering="auto")}Jt.defaults=vl,Jt.optionHandlers=Zr;function Qs(e){var t=e.display;be(t.scroller,"mousedown",En(e,dl)),B&&D<11?be(t.scroller,"dblclick",En(e,function(c){if(je(e,c))return;var h=Na(e,c);if(!h||Ri(e,c)||ga(e.display,c))return;m(c);var U=e.findWordAt(h);zr(e.doc,U.anchor,U.head)})):be(t.scroller,"dblclick",function(c){return je(e,c)||m(c)}),be(t.scroller,"contextmenu",function(c){return pl(e,c)}),be(t.input.getField(),"contextmenu",function(c){t.scroller.contains(c.target)||pl(e,c)});var a,n={end:0};function r(){t.activeTouch&&(a=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function i(c){if(c.touches.length!=1)return!1;var h=c.touches[0];return h.radiusX<=1&&h.radiusY<=1}function o(c,h){if(h.left==null)return!0;var U=h.left-c.left,G=h.top-c.top;return U*U+G*G>20*20}be(t.scroller,"touchstart",function(c){if(!je(e,c)&&!i(c)&&!Ri(e,c)){t.input.ensurePolled(),clearTimeout(a);var h=+new Date;t.activeTouch={start:h,moved:!1,prev:h-n.end<=300?n:null},c.touches.length==1&&(t.activeTouch.left=c.touches[0].pageX,t.activeTouch.top=c.touches[0].pageY)}}),be(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),be(t.scroller,"touchend",function(c){var h=t.activeTouch;if(h&&!ga(t,c)&&h.left!=null&&!h.moved&&new Date-h.start<300){var U=e.coordsChar(t.activeTouch,"page"),G;!h.prev||o(h,h.prev)?G=new Lt(U,U):!h.prev.prev||o(h,h.prev.prev)?G=e.findWordAt(U):G=new Lt(ze(U.line,0),ut(e.doc,ze(U.line+1,0))),e.setSelection(G.anchor,G.head),e.focus(),m(c)}r()}),be(t.scroller,"touchcancel",r),be(t.scroller,"scroll",function(){t.scroller.clientHeight&&(hr(e,t.scroller.scrollTop),Pa(e,t.scroller.scrollLeft,!0),we(e,"scroll",e))}),be(t.scroller,"mousewheel",function(c){return ko(e,c)}),be(t.scroller,"DOMMouseScroll",function(c){return ko(e,c)}),be(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(c){je(e,c)||T(c)},over:function(c){je(e,c)||(_s(e,c),T(c))},start:function(c){return Ts(e,c)},drop:En(e,Os),leave:function(c){je(e,c)||Qo(e)}};var l=t.input.getField();be(l,"keyup",function(c){return ul.call(e,c)}),be(l,"keydown",En(e,sl)),be(l,"keypress",En(e,cl)),be(l,"focus",function(c){return pi(e,c)}),be(l,"blur",function(c){return Ga(e,c)})}var Ni=[];Jt.defineInitHook=function(e){return Ni.push(e)};function Lr(e,t,a,n){var r=e.doc,i;a==null&&(a="add"),a=="smart"&&(r.mode.indent?i=rn(e,t).state:a="prev");var o=e.options.tabSize,l=qe(r,t),c=x(l.text,null,o);l.stateAfter&&(l.stateAfter=null);var h=l.text.match(/^\s*/)[0],U;if(!n&&!/\S/.test(l.text))U=0,a="not";else if(a=="smart"&&(U=r.mode.indent(i,l.text.slice(h.length),l.text),U==fe||U>150)){if(!n)return;a="prev"}a=="prev"?t>r.first?U=x(qe(r,t-1).text,null,o):U=0:a=="add"?U=c+e.options.indentUnit:a=="subtract"?U=c-e.options.indentUnit:typeof a=="number"&&(U=c+a),U=Math.max(0,U);var G="",Ce=0;if(e.options.indentWithTabs)for(var me=Math.floor(U/o);me;--me)Ce+=o,G+=" ";if(Ce<U&&(G+=_(U-Ce)),G!=h)return qa(r,G,ze(t,0),ze(t,h.length),"+input"),l.stateAfter=null,!0;for(var Fe=0;Fe<r.sel.ranges.length;Fe++){var Xe=r.sel.ranges[Fe];if(Xe.head.line==t&&Xe.head.ch<h.length){var Ye=ze(t,h.length);Ti(r,Fe,new Lt(Ye,Ye));break}}}var da=null;function Qr(e){da=e}function ji(e,t,a,n,r){var i=e.doc;e.display.shift=!1,n||(n=i.sel);var o=+new Date-200,l=r=="paste"||e.state.pasteIncoming>o,c=mt(t),h=null;if(l&&n.ranges.length>1)if(da&&da.text.join(`
`)==t){if(n.ranges.length%da.text.length==0){h=[];for(var U=0;U<da.text.length;U++)h.push(i.splitLines(da.text[U]))}}else c.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(h=f(c,function(Je){return[Je]}));for(var G=e.curOp.updateInput,Ce=n.ranges.length-1;Ce>=0;Ce--){var me=n.ranges[Ce],Fe=me.from(),Xe=me.to();me.empty()&&(a&&a>0?Fe=ze(Fe.line,Fe.ch-a):e.state.overwrite&&!l?Xe=ze(Xe.line,Math.min(qe(i,Xe.line).text.length,Xe.ch+d(c).length)):l&&da&&da.lineWise&&da.text.join(`
`)==c.join(`
`)&&(Fe=Xe=ze(Fe.line,0)));var Ye={from:Fe,to:Xe,text:h?h[Ce%h.length]:c,origin:r||(l?"paste":e.state.cutIncoming>o?"cut":"+input")};Qa(e.doc,Ye),Dn(e,"inputRead",e,Ye)}t&&!l&&bl(e,t),$a(e),e.curOp.updateInput<2&&(e.curOp.updateInput=G),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function gl(e,t){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Zn(t,function(){return ji(t,a,0,null,"paste")}),!0}function bl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var a=e.doc.sel,n=a.ranges.length-1;n>=0;n--){var r=a.ranges[n];if(r.head.ch>100||n&&a.ranges[n-1].head.line==r.head.line)continue;var i=e.getModeAt(r.head),o=!1;if(i.electricChars){for(var l=0;l<i.electricChars.length;l++)if(t.indexOf(i.electricChars.charAt(l))>-1){o=Lr(e,r.head.line,"smart");break}}else i.electricInput&&(i.electricInput.test(qe(e.doc,r.head.line).text.slice(0,r.head.ch))&&(o=Lr(e,r.head.line,"smart")));o&&Dn(e,"electricInput",e,r.head.line)}}function yl(e){for(var t=[],a=[],n=0;n<e.doc.sel.ranges.length;n++){var r=e.doc.sel.ranges[n].head.line,i={anchor:ze(r,0),head:ze(r+1,0)};a.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:a}}function xl(e,t,a,n){e.setAttribute("autocorrect",a?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function El(){var e=C("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=C("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return w?e.style.width="1000px":e.setAttribute("wrap","off"),j&&(e.style.border="1px solid black"),xl(e),t}function qs(e){var t=e.optionHandlers,a=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,r){var i=this.options,o=i[n];if(i[n]==r&&n!="mode")return;i[n]=r,t.hasOwnProperty(n)&&En(this,t[n])(this,r,o),we(this,"optionChange",this,n)},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,r){this.state.keyMaps[r?"push":"unshift"](Yr(n))},removeKeyMap:function(n){for(var r=this.state.keyMaps,i=0;i<r.length;++i)if(r[i]==n||r[i].name==n)return r.splice(i,1),!0},addOverlay:Fn(function(n,r){var i=n.token?n:e.getMode(this.options,n);if(i.startState)throw new Error("Overlays may not be stateful.");g(this.state.overlays,{mode:i,modeSpec:n,opaque:r&&r.opaque,priority:r&&r.priority||0},function(o){return o.priority}),this.state.modeGen++,Hn(this)}),removeOverlay:Fn(function(n){for(var r=this.state.overlays,i=0;i<r.length;++i){var o=r[i].modeSpec;if(o==n||typeof n=="string"&&o.name==n){r.splice(i,1),this.state.modeGen++,Hn(this);return}}}),indentLine:Fn(function(n,r,i){typeof r!="string"&&typeof r!="number"&&(r==null?r=this.options.smartIndent?"smart":"prev":r=r?"add":"subtract"),Gt(this.doc,n)&&Lr(this,n,r,i)}),indentSelection:Fn(function(n){for(var r=this.doc.sel.ranges,i=-1,o=0;o<r.length;o++){var l=r[o];if(l.empty())l.head.line>i&&(Lr(this,l.head.line,n,!0),i=l.head.line,o==this.doc.sel.primIndex&&$a(this));else{var c=l.from(),h=l.to(),U=Math.max(i,c.line);i=Math.min(this.lastLine(),h.line-(h.ch?0:1))+1;for(var G=U;G<i;++G)Lr(this,G,n);var Ce=this.doc.sel.ranges;c.ch==0&&r.length==Ce.length&&Ce[o].from().ch>0&&Ti(this.doc,o,new Lt(c,Ce[o].to()),pe)}}}),getTokenAt:function(n,r){return Ft(this,n,r)},getLineTokens:function(n,r){return Ft(this,ze(n),r,!0)},getTokenTypeAt:function(n){n=ut(this.doc,n);var r=On(this,qe(this.doc,n.line)),i=0,o=(r.length-1)/2,l=n.ch,c;if(l==0)c=r[2];else for(;;){var h=i+o>>1;if((h?r[h*2-1]:0)>=l)o=h;else if(r[h*2+1]<l)i=h+1;else{c=r[h*2+2];break}}var U=c?c.indexOf("overlay "):-1;return U<0?c:U==0?null:c.slice(0,U-1)},getModeAt:function(n){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(n).state).mode:r},getHelper:function(n,r){return this.getHelpers(n,r)[0]},getHelpers:function(n,r){var i=[];if(!a.hasOwnProperty(r))return i;var o=a[r],l=this.getModeAt(n);if(typeof l[r]=="string")o[l[r]]&&i.push(o[l[r]]);else if(l[r])for(var c=0;c<l[r].length;c++){var h=o[l[r][c]];h&&i.push(h)}else l.helperType&&o[l.helperType]?i.push(o[l.helperType]):o[l.name]&&i.push(o[l.name]);for(var U=0;U<o._global.length;U++){var G=o._global[U];G.pred(l,this)&&q(i,G.val)==-1&&i.push(G.val)}return i},getStateAfter:function(n,r){var i=this.doc;return n=Jn(i,n==null?i.first+i.size-1:n),rn(this,n+1,r).state},cursorCoords:function(n,r){var i,o=this.doc.sel.primary();return n==null?i=o.head:typeof n=="object"?i=ut(this.doc,n):i=n?o.from():o.to(),ua(this,i,r||"page")},charCoords:function(n,r){return oi(this,ut(this.doc,n),r||"page")},coordsChar:function(n,r){return n=no(this,n,r||"page"),si(this,n.left,n.top)},lineAtHeight:function(n,r){return n=no(this,{top:n,left:0},r||"page").top,un(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,r,i){var o=!1,l;if(typeof n=="number"){var c=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>c&&(n=c,o=!0),l=qe(this.doc,n)}else l=n;return Nr(this,l,{top:0,left:0},r||"page",i||o).top+(o?this.doc.height-Yt(l):0)},defaultTextHeight:function(){return Xa(this.display)},defaultCharWidth:function(){return Va(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,r,i,o,l){var c=this.display;n=ua(this,ut(this.doc,n));var h=n.bottom,U=n.left;if(r.style.position="absolute",r.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(r),c.sizer.appendChild(r),o=="over")h=n.top;else if(o=="above"||o=="near"){var G=Math.max(c.wrapper.clientHeight,this.doc.height),Ce=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);(o=="above"||n.bottom+r.offsetHeight>G)&&n.top>r.offsetHeight?h=n.top-r.offsetHeight:n.bottom+r.offsetHeight<=G&&(h=n.bottom),U+r.offsetWidth>Ce&&(U=Ce-r.offsetWidth)}r.style.top=h+"px",r.style.left=r.style.right="",l=="right"?(U=c.sizer.clientWidth-r.offsetWidth,r.style.right="0px"):(l=="left"?U=0:l=="middle"&&(U=(c.sizer.clientWidth-r.offsetWidth)/2),r.style.left=U+"px"),i&&Jl(this,{left:U,top:h,right:U+r.offsetWidth,bottom:h+r.offsetHeight})},triggerOnKeyDown:Fn(sl),triggerOnKeyPress:Fn(cl),triggerOnKeyUp:ul,triggerOnMouseDown:Fn(dl),execCommand:function(n){if(Tr.hasOwnProperty(n))return Tr[n].call(null,this)},triggerElectric:Fn(function(n){bl(this,n)}),findPosH:function(n,r,i,o){var l=1;r<0&&(l=-1,r=-r);for(var c=ut(this.doc,n),h=0;h<r&&!(c=Pi(this.doc,c,l,i,o),c.hitSide);++h);return c},moveH:Fn(function(n,r){var i=this;this.extendSelectionsBy(function(o){return i.display.shift||i.doc.extend||o.empty()?Pi(i.doc,o.head,n,r,i.options.rtlMoveVisually):n<0?o.from():o.to()},v)}),deleteH:Fn(function(n,r){var i=this.doc.sel,o=this.doc;i.somethingSelected()?o.replaceSelection("",null,"+delete"):nr(this,function(l){var c=Pi(o,l.head,n,r,!1);return n<0?{from:c,to:l.head}:{from:l.head,to:c}})}),findPosV:function(n,r,i,o){var l=1,c=o;r<0&&(l=-1,r=-r);for(var h=ut(this.doc,n),U=0;U<r;++U){var G=ua(this,h,"div");if(c==null?c=G.left:G.left=c,h=wl(this,G,l,i),h.hitSide)break}return h},moveV:Fn(function(n,r){var i=this,o=this.doc,l=[],c=!this.display.shift&&!o.extend&&o.sel.somethingSelected();if(o.extendSelectionsBy(function(U){if(c)return n<0?U.from():U.to();var G=ua(i,U.head,"div");U.goalColumn!=null&&(G.left=U.goalColumn),l.push(G.left);var Ce=wl(i,G,n,r);return r=="page"&&U==o.sel.primary()&&vi(i,oi(i,Ce,"div").top-G.top),Ce},v),l.length)for(var h=0;h<o.sel.ranges.length;h++)o.sel.ranges[h].goalColumn=l[h]}),findWordAt:function(n){var r=this.doc,i=qe(r,n.line).text,o=n.ch,l=n.ch;if(i){var c=this.getHelper(n,"wordChars");(n.sticky=="before"||l==i.length)&&o?--o:++l;for(var h=i.charAt(o),U=ke(h,c)?function(G){return ke(G,c)}:/\s/.test(h)?function(G){return/\s/.test(G)}:function(G){return!/\s/.test(G)&&!ke(G)};o>0&&U(i.charAt(o-1));)--o;for(;l<i.length&&U(i.charAt(l));)++l}return new Lt(ze(n.line,o),ze(n.line,l))},toggleOverwrite:function(n){if(n!=null&&n==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?Y(this.display.cursorDiv,"CodeMirror-overwrite"):L(this.display.cursorDiv,"CodeMirror-overwrite"),we(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==N()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Fn(function(n,r){fr(this,n,r)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-pa(this)-this.display.barHeight,width:n.scrollWidth-pa(this)-this.display.barWidth,clientHeight:ai(this),clientWidth:Ma(this)}},scrollIntoView:Fn(function(n,r){n==null?(n={from:this.doc.sel.primary().head,to:null},r==null&&(r=this.options.cursorScrollMargin)):typeof n=="number"?n={from:ze(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=r||0,n.from.line!=null?Zl(this,n):po(this,n.from,n.to,n.margin)}),setSize:Fn(function(n,r){var i=this,o=function(c){return typeof c=="number"||/^\d+$/.test(String(c))?c+"px":c};n!=null&&(this.display.wrapper.style.width=o(n)),r!=null&&(this.display.wrapper.style.height=o(r)),this.options.lineWrapping&&qi(this);var l=this.display.viewFrom;this.doc.iter(l,this.display.viewTo,function(c){if(c.widgets){for(var h=0;h<c.widgets.length;h++)if(c.widgets[h].noHScroll){Ca(i,l,"widget");break}}++l}),this.curOp.forceUpdate=!0,we(this,"refresh",this)}),operation:function(n){return Zn(this,n)},startOperation:function(){return Ia(this)},endOperation:function(){return Fa(this)},refresh:Fn(function(){var n=this.display.cachedTextHeight;Hn(this),this.curOp.forceUpdate=!0,cr(this),fr(this,this.doc.scrollLeft,this.doc.scrollTop),yi(this.display),(n==null||Math.abs(n-Xa(this.display))>.5||this.options.lineWrapping)&&fi(this),we(this,"refresh",this)}),swapDoc:Fn(function(n){var r=this.doc;return r.cm=null,this.state.selectingText&&this.state.selectingText(),_o(this,n),cr(this),this.display.input.reset(),fr(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,Dn(this,"swapDoc",this,r),r}),phrase:function(n){var r=this.options.phrases;return r&&Object.prototype.hasOwnProperty.call(r,n)?r[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},z(e),e.registerHelper=function(n,r,i){a.hasOwnProperty(n)||(a[n]=e[n]={_global:[]}),a[n][r]=i},e.registerGlobalHelper=function(n,r,i,o){e.registerHelper(n,r,o),a[n]._global.push({pred:i,val:o})}}function Pi(e,t,a,n,r){var i=t,o=a,l=qe(e,t.line),c=r&&e.direction=="rtl"?-a:a;function h(){var et=t.line+c;return et<e.first||et>=e.first+e.size?!1:(t=new ze(et,t.ch,t.sticky),l=qe(e,et))}function U(et){var Ze;if(n=="codepoint"){var at=l.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(at)?Ze=null:Ze=new ze(t.line,Math.max(0,Math.min(l.text.length,t.ch+a*(at>=55296&&at<56320?2:1))),-a)}else r?Ze=Ns(e.cm,l,t,a):Ze=Di(l,t,a);if(Ze==null)if(!et&&h())t=Ai(r,e.cm,l,t.line,c);else return!1;else t=Ze;return!0}if(n=="char"||n=="codepoint")U();else if(n=="column")U(!0);else if(n=="word"||n=="group")for(var G=null,Ce=n=="group",me=e.cm&&e.cm.getHelper(t,"wordChars"),Fe=!0;!(a<0&&!U(!Fe));Fe=!1){var Xe=l.text.charAt(t.ch)||`
`,Ye=ke(Xe,me)?"w":Ce&&Xe==`
`?"n":!Ce||/\s/.test(Xe)?null:"p";if(Ce&&!Fe&&!Ye&&(Ye="s"),G&&G!=Ye){a<0&&(a=1,U(),t.sticky="after");break}if(Ye&&(G=Ye),a>0&&!U(!Fe))break}var Je=Vr(e,t,i,o,!0);return $e(i,Je)&&(Je.hitSide=!0),Je}function wl(e,t,a,n){var r=e.doc,i=t.left,o;if(n=="page"){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Xa(e.display),3);o=(a>0?t.bottom:t.top)+a*c}else n=="line"&&(o=a>0?t.bottom+3:t.top-3);for(var h;!(h=si(e,i,o),!h.outside);){if(a<0?o<=0:o>=r.height){h.hitSide=!0;break}o+=a*5}return h}var Rt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Rt.prototype.init=function(e){var t=this,a=this,n=a.cm,r=a.div=e.lineDiv;xl(r,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function i(l){for(var c=l.target;c;c=c.parentNode){if(c==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(c.className))break}return!1}be(r,"paste",function(l){if(!i(l)||je(n,l)||gl(l,n))return;D<=11&&setTimeout(En(n,function(){return t.updateFromDOM()}),20)}),be(r,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),be(r,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),be(r,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),be(r,"touchstart",function(){return a.forceCompositionEnd()}),be(r,"input",function(){t.composing||t.readFromDOMSoon()});function o(l){if(!i(l)||je(n,l))return;if(n.somethingSelected())Qr({lineWise:!1,text:n.getSelections()}),l.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var c=yl(n);Qr({lineWise:!0,text:c.text}),l.type=="cut"&&n.operation(function(){n.setSelections(c.ranges,0,pe),n.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var h=da.text.join(`
`);if(l.clipboardData.setData("Text",h),l.clipboardData.getData("Text")==h){l.preventDefault();return}}var U=El(),G=U.firstChild;n.display.lineSpace.insertBefore(U,n.display.lineSpace.firstChild),G.value=da.text.join(`
`);var Ce=document.activeElement;W(G),setTimeout(function(){n.display.lineSpace.removeChild(U),Ce.focus(),Ce==r&&a.showPrimarySelection()},50)}be(r,"copy",o),be(r,"cut",o)},Rt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Rt.prototype.prepareSelection=function(){var e=so(this.cm,!1);return e.focus=document.activeElement==this.div,e},Rt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Rt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Rt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,a=t.doc.sel.primary(),n=a.from(),r=a.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||r.line<t.display.viewFrom){e.removeAllRanges();return}var i=qr(t,e.anchorNode,e.anchorOffset),o=qr(t,e.focusNode,e.focusOffset);if(i&&!i.bad&&o&&!o.bad&&ft(Ln(i,o),n)==0&&ft(Yn(i,o),r)==0)return;var l=t.display.view,c=n.line>=t.display.viewFrom&&Cl(t,n)||{node:l[0].measure.map[2],offset:0},h=r.line<t.display.viewTo&&Cl(t,r);if(!h){var U=l[l.length-1].measure,G=U.maps?U.maps[U.maps.length-1]:U.map;h={node:G[G.length-1],offset:G[G.length-2]-G[G.length-3]}}if(!c||!h){e.removeAllRanges();return}var Ce=e.rangeCount&&e.getRangeAt(0),me;try{me=$(c.node,c.offset,h.offset,h.node)}catch(Fe){}me&&(!xe&&t.state.focused?(e.collapse(c.node,c.offset),me.collapsed||(e.removeAllRanges(),e.addRange(me))):(e.removeAllRanges(),e.addRange(me)),Ce&&e.anchorNode==null?e.addRange(Ce):xe&&this.startGracePeriod()),this.rememberSelection()},Rt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Rt.prototype.showMultipleSelections=function(e){V(this.cm.display.cursorDiv,e.cursors),V(this.cm.display.selectionDiv,e.selection)},Rt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Rt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return k(this.div,t)},Rt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Rt.prototype.blur=function(){this.div.blur()},Rt.prototype.getField=function(){return this.div},Rt.prototype.supportsTouch=function(){return!0},Rt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Zn(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},Rt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Rt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(H&&Q&&this.cm.display.gutterSpecs.length&&eu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var a=qr(t,e.anchorNode,e.anchorOffset),n=qr(t,e.focusNode,e.focusOffset);a&&n&&Zn(t,function(){jn(t.doc,Sa(a,n),pe),(a.bad||n.bad)&&(t.curOp.selectionChanged=!0)})},Rt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,a=e.doc.sel.primary(),n=a.from(),r=a.to();if(n.ch==0&&n.line>e.firstLine()&&(n=ze(n.line-1,qe(e.doc,n.line-1).length)),r.ch==qe(e.doc,r.line).text.length&&r.line<e.lastLine()&&(r=ze(r.line+1,0)),n.line<t.viewFrom||r.line>t.viewTo-1)return!1;var i,o,l;n.line==t.viewFrom||(i=ja(e,n.line))==0?(o=wt(t.view[0].line),l=t.view[0].node):(o=wt(t.view[i].line),l=t.view[i-1].node.nextSibling);var c=ja(e,r.line),h,U;if(c==t.view.length-1?(h=t.viewTo-1,U=t.lineDiv.lastChild):(h=wt(t.view[c+1].line)-1,U=t.view[c+1].node.previousSibling),!l)return!1;for(var G=e.doc.splitLines(tu(e,l,U,o,h)),Ce=zt(e.doc,ze(o,0),ze(h,qe(e.doc,h).text.length));G.length>1&&Ce.length>1;)if(d(G)==d(Ce))G.pop(),Ce.pop(),h--;else if(G[0]==Ce[0])G.shift(),Ce.shift(),o++;else break;for(var me=0,Fe=0,Xe=G[0],Ye=Ce[0],Je=Math.min(Xe.length,Ye.length);me<Je&&Xe.charCodeAt(me)==Ye.charCodeAt(me);)++me;for(var et=d(G),Ze=d(Ce),at=Math.min(et.length-(G.length==1?me:0),Ze.length-(Ce.length==1?me:0));Fe<at&&et.charCodeAt(et.length-Fe-1)==Ze.charCodeAt(Ze.length-Fe-1);)++Fe;if(G.length==1&&Ce.length==1&&o==n.line)for(;me&&me>n.ch&&et.charCodeAt(et.length-Fe-1)==Ze.charCodeAt(Ze.length-Fe-1);)me--,Fe++;G[G.length-1]=et.slice(0,et.length-Fe).replace(/^\u200b+/,""),G[0]=G[0].slice(me).replace(/\u200b+$/,"");var ht=ze(o,me),ct=ze(h,Ce.length?d(Ce).length-Fe:0);if(G.length>1||G[0]||ft(ht,ct))return qa(e.doc,G,ht,ct,"+input"),!0},Rt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Rt.prototype.reset=function(){this.forceCompositionEnd()},Rt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Rt.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Rt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Zn(this.cm,function(){return Hn(e.cm)})},Rt.prototype.setUneditable=function(e){e.contentEditable="false"},Rt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||En(this.cm,ji)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Rt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Rt.prototype.onContextMenu=function(){},Rt.prototype.resetPosition=function(){},Rt.prototype.needsContentAttribute=!0;function Cl(e,t){var a=ri(e,t.line);if(!a||a.hidden)return null;var n=qe(e.doc,t.line),r=$i(a,n,t.line),i=We(n,e.doc.direction),o="left";if(i){var l=Me(i,t.ch);o=l%2?"right":"left"}var c=Zi(r.map,t.ch,o);return c.offset=c.collapse=="right"?c.end:c.start,c}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rr(e,t){return t&&(e.bad=!0),e}function tu(e,t,a,n,r){var i="",o=!1,l=e.doc.lineSeparator(),c=!1;function h(me){return function(Fe){return Fe.id==me}}function U(){o&&(i+=l,c&&(i+=l),o=c=!1)}function G(me){me&&(U(),i+=me)}function Ce(me){if(me.nodeType==1){var Fe=me.getAttribute("cm-text");if(Fe){G(Fe);return}var Xe=me.getAttribute("cm-marker"),Ye;if(Xe){var Je=e.findMarks(ze(n,0),ze(r+1,0),h(+Xe));Je.length&&(Ye=Je[0].find(0))&&G(zt(e.doc,Ye.from,Ye.to).join(l));return}if(me.getAttribute("contenteditable")=="false")return;var et=/^(pre|div|p|li|table|br)$/i.test(me.nodeName);if(!/^br$/i.test(me.nodeName)&&me.textContent.length==0)return;et&&U();for(var Ze=0;Ze<me.childNodes.length;Ze++)Ce(me.childNodes[Ze]);/^(pre|p)$/i.test(me.nodeName)&&(c=!0),et&&(o=!0)}else me.nodeType==3&&G(me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Ce(t),t==a);)t=t.nextSibling,c=!1;return i}function qr(e,t,a){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[a],!n)return rr(e.clipPos(ze(e.display.viewTo-1)),!0);t=null,a=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var r=0;r<e.display.view.length;r++){var i=e.display.view[r];if(i.node==n)return nu(i,t,a)}}function nu(e,t,a){var n=e.text.firstChild,r=!1;if(!t||!k(n,t))return rr(ze(wt(e.line),0),!0);if(t==n&&(r=!0,t=n.childNodes[a],a=0,!t)){var i=e.rest?d(e.rest):e.line;return rr(ze(wt(i),i.text.length),r)}var o=t.nodeType==3?t:null,l=t;for(!o&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(o=t.firstChild,a&&(a=o.nodeValue.length));l.parentNode!=n;)l=l.parentNode;var c=e.measure,h=c.maps;function U(Ye,Je,et){for(var Ze=-1;Ze<(h?h.length:0);Ze++)for(var at=Ze<0?c.map:h[Ze],ht=0;ht<at.length;ht+=3){var ct=at[ht+2];if(ct==Ye||ct==Je){var Et=wt(Ze<0?e.line:e.rest[Ze]),Wt=at[ht]+et;return(et<0||ct!=Ye)&&(Wt=at[ht+(et?1:0)]),ze(Et,Wt)}}}var G=U(o,l,a);if(G)return rr(G,r);for(var Ce=l.nextSibling,me=o?o.nodeValue.length-a:0;Ce;Ce=Ce.nextSibling){if(G=U(Ce,Ce.firstChild,0),G)return rr(ze(G.line,G.ch-me),r);me+=Ce.textContent.length}for(var Fe=l.previousSibling,Xe=a;Fe;Fe=Fe.previousSibling){if(G=U(Fe,Fe.firstChild,-1),G)return rr(ze(G.line,G.ch+Xe),r);Xe+=Fe.textContent.length}}var on=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};on.prototype.init=function(e){var t=this,a=this,n=this.cm;this.createField(e);var r=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),j&&(r.style.width="0px"),be(r,"input",function(){B&&D>=9&&t.hasSelection&&(t.hasSelection=null),a.poll()}),be(r,"paste",function(o){if(je(n,o)||gl(o,n))return;n.state.pasteIncoming=+new Date,a.fastPoll()});function i(o){if(je(n,o))return;if(n.somethingSelected())Qr({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var l=yl(n);Qr({lineWise:!0,text:l.text}),o.type=="cut"?n.setSelections(l.ranges,null,pe):(a.prevInput="",r.value=l.text.join(`
`),W(r))}else return;o.type=="cut"&&(n.state.cutIncoming=+new Date)}be(r,"cut",i),be(r,"copy",i),be(e.scroller,"paste",function(o){if(ga(e,o)||je(n,o))return;if(!r.dispatchEvent){n.state.pasteIncoming=+new Date,a.focus();return}var l=new Event("paste");l.clipboardData=o.clipboardData,r.dispatchEvent(l)}),be(e.lineSpace,"selectstart",function(o){ga(e,o)||m(o)}),be(r,"compositionstart",function(){var o=n.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:o,range:n.markText(o,n.getCursor("to"),{className:"CodeMirror-composing"})}}),be(r,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},on.prototype.createField=function(e){this.wrapper=El(),this.textarea=this.wrapper.firstChild},on.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},on.prototype.prepareSelection=function(){var e=this.cm,t=e.display,a=e.doc,n=so(e);if(e.options.moveInputWithCursor){var r=ua(e,a.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+o.top-i.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+o.left-i.left))}return n},on.prototype.showSelection=function(e){var t=this.cm,a=t.display;V(a.cursorDiv,e.cursors),V(a.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},on.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var a=t.getSelection();this.textarea.value=a,t.state.focused&&W(this.textarea),B&&D>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",B&&D>=9&&(this.hasSelection=null))},on.prototype.getField=function(){return this.textarea},on.prototype.supportsTouch=function(){return!1},on.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ae||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},on.prototype.blur=function(){this.textarea.blur()},on.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},on.prototype.receivedFocus=function(){this.slowPoll()},on.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},on.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function a(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,a)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,a)},on.prototype.poll=function(){var e=this,t=this.cm,a=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||rt(a)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=a.value;if(r==n&&!t.somethingSelected())return!1;if(B&&D>=9&&this.hasSelection===r||ne&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=r.charCodeAt(0);if(i==8203&&!n&&(n="\u200B"),i==8666)return this.reset(),this.cm.execCommand("undo")}for(var o=0,l=Math.min(n.length,r.length);o<l&&n.charCodeAt(o)==r.charCodeAt(o);)++o;return Zn(t,function(){ji(t,r.slice(o),n.length-o,null,e.composing?"*compose":null),r.length>1e3||r.indexOf(`
`)>-1?a.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},on.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},on.prototype.onKeyPress=function(){B&&D>=9&&(this.hasSelection=null),this.fastPoll()},on.prototype.onContextMenu=function(e){var t=this,a=t.cm,n=a.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=Na(a,e),o=n.scroller.scrollTop;if(!i||ve)return;var l=a.options.resetSelectionOnContextMenu;l&&a.doc.sel.contains(i)==-1&&En(a,jn)(a.doc,Sa(i),pe);var c=r.style.cssText,h=t.wrapper.style.cssText,U=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",r.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-U.top-5)+"px; left: "+(e.clientX-U.left-5)+`px;
z-index: 1000; background: `+(B?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var G;w&&(G=window.scrollY),n.input.focus(),w&&window.scrollTo(null,G),n.input.reset(),a.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=me,n.selForContextMenu=a.doc.sel,clearTimeout(n.detectingSelectAll);function Ce(){if(r.selectionStart!=null){var Xe=a.somethingSelected(),Ye="\u200B"+(Xe?r.value:"");r.value="\u21DA",r.value=Ye,t.prevInput=Xe?"":"\u200B",r.selectionStart=1,r.selectionEnd=Ye.length,n.selForContextMenu=a.doc.sel}}function me(){if(t.contextMenuPending!=me)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=h,r.style.cssText=c,B&&D<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=o),r.selectionStart!=null){(!B||B&&D<9)&&Ce();var Xe=0,Ye=function(){n.selForContextMenu==a.doc.sel&&r.selectionStart==0&&r.selectionEnd>0&&t.prevInput=="\u200B"?En(a,Bo)(a):Xe++<10?n.detectingSelectAll=setTimeout(Ye,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(Ye,200)}}if(B&&D>=9&&Ce(),he){T(e);var Fe=function(){Be(window,"mouseup",Fe),setTimeout(me,20)};be(window,"mouseup",Fe)}else setTimeout(me,50)},on.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},on.prototype.setUneditable=function(){},on.prototype.needsContentAttribute=!1;function au(e,t){if(t=t?s(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var a=N();t.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function n(){e.value=l.getValue()}var r;if(e.form&&(be(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var i=e.form;r=i.submit;try{var o=i.submit=function(){n(),i.submit=r,i.submit(),i.submit=o}}catch(c){}}t.finishInit=function(c){c.save=n,c.getTextArea=function(){return e},c.toTextArea=function(){c.toTextArea=isNaN,n(),e.parentNode.removeChild(c.getWrapperElement()),e.style.display="",e.form&&(Be(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=r))}},e.style.display="none";var l=Jt(function(c){return e.parentNode.insertBefore(c,e.nextSibling)},t);return l}function ru(e){e.off=Be,e.on=be,e.wheelEventPixels=ds,e.Doc=zn,e.splitLines=mt,e.countColumn=x,e.findColumn=O,e.isWordChar=le,e.Pass=fe,e.signal=we,e.Line=Vt,e.changeEnd=Oa,e.scrollbarModel=go,e.Pos=ze,e.cmpPos=ft,e.modes=gt,e.mimeModes=dt,e.resolveMode=Bt,e.getMode=Qt,e.modeExtensions=Ot,e.extendMode=Sn,e.copyState=Kt,e.startState=ln,e.innerMode=jt,e.commands=Tr,e.keyMap=ba,e.keyName=al,e.isModifierKey=tl,e.lookupKey=tr,e.normalizeKeyMap=Rs,e.StringStream=St,e.SharedTextMarker=kr,e.TextMarker=_a,e.LineWidget=Cr,e.e_preventDefault=m,e.e_stopPropagation=y,e.e_stop=T,e.addClass=Y,e.contains=k,e.rmClass=L,e.keyNames=Da}Ys(Jt),qs(Jt);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ei in zn.prototype)zn.prototype.hasOwnProperty(ei)&&q(iu,ei)<0&&(Jt.prototype[ei]=function(e){return function(){return e.apply(this.doc,arguments)}}(zn.prototype[ei]));return z(zn),Jt.inputStyles={textarea:on,contenteditable:Rt},Jt.defineMode=function(e){!Jt.defaults.mode&&e!="null"&&(Jt.defaults.mode=e),kt.apply(this,arguments)},Jt.defineMIME=Nt,Jt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Jt.defineMIME("text/plain","null"),Jt.defineExtension=function(e,t){Jt.prototype[e]=t},Jt.defineDocExtension=function(e,t){zn.prototype[e]=t},Jt.fromTextArea=au,ru(Jt),Jt.version="5.58.2",Jt})},WaYH:function(ot,Ve,p){"use strict";var X=p("rePB"),Oe=p("Ff2n"),xe=p("VTBJ"),Ne=p("1OyB"),Ee=p("vuIU"),ce=p("JX7q"),B=p("Ji7U"),D=p("LK+K"),w=p("cDcd"),te=p("TSYQ"),Q=p.n(te),ve=p("sboe"),De=p("OZM5"),ie=function(he){var oe=he.prefixCls,L=he.level,J=he.isStart,V=he.isEnd;if(!L)return null;for(var C="".concat(oe,"-indent-unit"),re=[],$=0;$<L;$+=1){var k;re.push(w.createElement("span",{key:$,className:Q()(C,(k={},Object(X.a)(k,"".concat(C,"-start"),J[$+1]),Object(X.a)(k,"".concat(C,"-end"),V[$+1]),Object(X.a)(k,"".concat(C,"-end-first-level"),!$&&V[0]),k))}))}return w.createElement("span",{"aria-hidden":"true",className:"".concat(oe,"-indent")},re)},I=ie,j=p("815F"),H="open",ae="close",ne="---",Se=function(ee){Object(B.a)(oe,ee);var he=Object(D.a)(oe);function oe(){var L;return Object(Ne.a)(this,oe),L=he.apply(this,arguments),L.state={dragNodeHighlight:!1},L.onSelectorClick=function(J){var V=L.props.context.onNodeClick;V(J,Object(j.b)(L.props)),L.isSelectable()?L.onSelect(J):L.onCheck(J)},L.onSelectorDoubleClick=function(J){var V=L.props.context.onNodeDoubleClick;V(J,Object(j.b)(L.props))},L.onSelect=function(J){if(L.isDisabled())return;var V=L.props.context.onNodeSelect;J.preventDefault(),V(J,Object(j.b)(L.props))},L.onCheck=function(J){if(L.isDisabled())return;var V=L.props,C=V.disableCheckbox,re=V.checked,$=L.props.context.onNodeCheck;if(!L.isCheckable()||C)return;J.preventDefault();var k=!re;$(J,Object(j.b)(L.props),k)},L.onMouseEnter=function(J){var V=L.props.context.onNodeMouseEnter;V(J,Object(j.b)(L.props))},L.onMouseLeave=function(J){var V=L.props.context.onNodeMouseLeave;V(J,Object(j.b)(L.props))},L.onContextMenu=function(J){var V=L.props.context.onNodeContextMenu;V(J,Object(j.b)(L.props))},L.onDragStart=function(J){var V=L.props.context.onNodeDragStart;J.stopPropagation(),L.setState({dragNodeHighlight:!0}),V(J,Object(ce.a)(L));try{J.dataTransfer.setData("text/plain","")}catch(C){}},L.onDragEnter=function(J){var V=L.props.context.onNodeDragEnter;J.preventDefault(),J.stopPropagation(),V(J,Object(ce.a)(L))},L.onDragOver=function(J){var V=L.props.context.onNodeDragOver;J.preventDefault(),J.stopPropagation(),V(J,Object(ce.a)(L))},L.onDragLeave=function(J){var V=L.props.context.onNodeDragLeave;J.stopPropagation(),V(J,Object(ce.a)(L))},L.onDragEnd=function(J){var V=L.props.context.onNodeDragEnd;J.stopPropagation(),L.setState({dragNodeHighlight:!1}),V(J,Object(ce.a)(L))},L.onDrop=function(J){var V=L.props.context.onNodeDrop;J.preventDefault(),J.stopPropagation(),L.setState({dragNodeHighlight:!1}),V(J,Object(ce.a)(L))},L.onExpand=function(J){var V=L.props.context.onNodeExpand;V(J,Object(j.b)(L.props))},L.setSelectHandle=function(J){L.selectHandle=J},L.getNodeState=function(){var J=L.props.expanded;return L.isLeaf()?null:J?H:ae},L.hasChildren=function(){var J=L.props.eventKey,V=L.props.context.keyEntities,C=V[J]||{},re=C.children;return!!(re||[]).length},L.isLeaf=function(){var J=L.props,V=J.isLeaf,C=J.loaded,re=L.props.context.loadData,$=L.hasChildren();return V===!1?!1:V||!re&&!$||re&&C&&!$},L.isDisabled=function(){var J=L.props.disabled,V=L.props.context.disabled;return!!(V||J)},L.isCheckable=function(){var J=L.props.checkable,V=L.props.context.checkable;return!V||J===!1?!1:V},L.syncLoadData=function(J){var V=J.expanded,C=J.loading,re=J.loaded,$=L.props.context,k=$.loadData,N=$.onNodeLoad;if(C)return;k&&V&&!L.isLeaf()&&(!L.hasChildren()&&!re&&N(Object(j.b)(L.props)))},L.renderSwitcher=function(){var J=L.props,V=J.expanded,C=J.switcherIcon,re=L.props.context,$=re.prefixCls,k=re.switcherIcon,N=C||k;if(L.isLeaf())return w.createElement("span",{className:Q()("".concat($,"-switcher"),"".concat($,"-switcher-noop"))},typeof N=="function"?N(Object(xe.a)(Object(xe.a)({},L.props),{},{isLeaf:!0})):N);var Y=Q()("".concat($,"-switcher"),"".concat($,"-switcher_").concat(V?H:ae));return w.createElement("span",{onClick:L.onExpand,className:Y},typeof N=="function"?N(Object(xe.a)(Object(xe.a)({},L.props),{},{isLeaf:!1})):N)},L.renderCheckbox=function(){var J=L.props,V=J.checked,C=J.halfChecked,re=J.disableCheckbox,$=L.props.context.prefixCls,k=L.isDisabled(),N=L.isCheckable();if(!N)return null;var Y=typeof N!="boolean"?N:null;return w.createElement("span",{className:Q()("".concat($,"-checkbox"),V&&"".concat($,"-checkbox-checked"),!V&&C&&"".concat($,"-checkbox-indeterminate"),(k||re)&&"".concat($,"-checkbox-disabled")),onClick:L.onCheck},Y)},L.renderIcon=function(){var J=L.props.loading,V=L.props.context.prefixCls;return w.createElement("span",{className:Q()("".concat(V,"-iconEle"),"".concat(V,"-icon__").concat(L.getNodeState()||"docu"),J&&"".concat(V,"-icon_loading"))})},L.renderSelector=function(){var J=L.state.dragNodeHighlight,V=L.props,C=V.title,re=V.selected,$=V.icon,k=V.loading,N=V.data,Y=L.props.context,K=Y.prefixCls,W=Y.showIcon,u=Y.icon,s=Y.draggable,x=Y.loadData,R=Y.titleRender,q=L.isDisabled(),ge="".concat(K,"-node-content-wrapper"),fe;if(W){var pe=$||u;fe=pe?w.createElement("span",{className:Q()("".concat(K,"-iconEle"),"".concat(K,"-icon__customize"))},typeof pe=="function"?pe(L.props):pe):L.renderIcon()}else x&&k&&(fe=L.renderIcon());var P;typeof C=="function"?P=C(N):R?P=R(N):P=C;var v=w.createElement("span",{className:"".concat(K,"-title")},P);return w.createElement("span",{ref:L.setSelectHandle,title:typeof C=="string"?C:"",className:Q()("".concat(ge),"".concat(ge,"-").concat(L.getNodeState()||"normal"),!q&&(re||J)&&"".concat(K,"-node-selected"),!q&&s&&"draggable"),draggable:!q&&s||void 0,"aria-grabbed":!q&&s||void 0,onMouseEnter:L.onMouseEnter,onMouseLeave:L.onMouseLeave,onContextMenu:L.onContextMenu,onClick:L.onSelectorClick,onDoubleClick:L.onSelectorDoubleClick,onDragStart:s?L.onDragStart:void 0},fe,v)},L}return Object(Ee.a)(oe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var J=this.props.selectable,V=this.props.context.selectable;return typeof J=="boolean"?J:V}},{key:"render",value:function(){var J,V=this.props,C=V.eventKey,re=V.className,$=V.style,k=V.dragOver,N=V.dragOverGapTop,Y=V.dragOverGapBottom,K=V.isLeaf,W=V.isStart,u=V.isEnd,s=V.expanded,x=V.selected,R=V.checked,q=V.halfChecked,ge=V.loading,fe=V.domRef,pe=V.active,P=V.onMouseMove,v=Object(Oe.a)(V,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),O=this.props.context,b=O.prefixCls,_=O.filterTreeNode,d=O.draggable,f=O.keyEntities,g=this.isDisabled(),S=Object(De.f)(v),Z=f[C]||{},F=Z.level,le=u[u.length-1];return w.createElement("div",Object.assign({ref:fe,className:Q()(re,"".concat(b,"-treenode"),(J={},Object(X.a)(J,"".concat(b,"-treenode-disabled"),g),Object(X.a)(J,"".concat(b,"-treenode-switcher-").concat(s?"open":"close"),!K),Object(X.a)(J,"".concat(b,"-treenode-checkbox-checked"),R),Object(X.a)(J,"".concat(b,"-treenode-checkbox-indeterminate"),q),Object(X.a)(J,"".concat(b,"-treenode-selected"),x),Object(X.a)(J,"".concat(b,"-treenode-loading"),ge),Object(X.a)(J,"".concat(b,"-treenode-active"),pe),Object(X.a)(J,"".concat(b,"-treenode-leaf-last"),le),Object(X.a)(J,"drag-over",!g&&k),Object(X.a)(J,"drag-over-gap-top",!g&&N),Object(X.a)(J,"drag-over-gap-bottom",!g&&Y),Object(X.a)(J,"filter-node",_&&_(Object(j.b)(this.props))),J)),style:$,onDragEnter:d?this.onDragEnter:void 0,onDragOver:d?this.onDragOver:void 0,onDragLeave:d?this.onDragLeave:void 0,onDrop:d?this.onDrop:void 0,onDragEnd:d?this.onDragEnd:void 0,onMouseMove:P},S),w.createElement(I,{prefixCls:b,level:F,isStart:W,isEnd:u}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),oe}(w.Component),Re=function(he){return w.createElement(ve.a.Consumer,null,function(oe){return w.createElement(Se,Object.assign({},he,{context:oe}))})};Re.displayName="TreeNode",Re.defaultProps={title:ne},Re.isTreeNode=1;var de=Ve.a=Re},X8EC:function(ot,Ve,p){"use strict";p.r(Ve);var X=p("DZo9"),Oe=p("8z0m"),xe=p("+L6B"),Ne=p("2/Rp"),Ee=p("oBTY"),ce=p("sRBo"),B=p("kaz8"),D=p("7Kak"),w=p("9yH6"),te=p("BoS7"),Q=p("Sdc0"),ve=p("14J3"),De=p("BMrR"),ie=p("jCWc"),I=p("kPKH"),j=p("O3gP"),H=p("lrIw"),ae=p("k1fw"),ne=p("miYZ"),Se=p("tsqr"),Re=p("9og8"),de=p("y8nQ"),ee=p("Vl3Y"),he=p("tJVT"),oe=p("PpiC"),L=p("nRaC"),J=p("5RzL"),V=p("5NDa"),C=p("5rEg"),re=p("WmNS"),$=p.n(re),k=p("cDcd"),N=p.n(k),Y=p("9kvl"),K=p("Ot1p"),W=p("hxT0"),u=p.n(W),s=p("1vsH"),x=p("m3rI"),R=p("ErOA"),q=p("jrin"),ge=p("R9oj"),fe=p("ECub"),pe=p("YNHc"),P=p.n(pe),v=p("4i/N"),O=p("UESt"),b=Object(k.createRef)(),_=function(Be){var we=Be.dataSource,je=Be.placeholder,A=Be.defaultValue,M=Be.onChange,z=Object(k.useState)(!1),m=Object(he.a)(z,2),y=m[0],E=m[1],T=Object(k.useState)({data:[],objData:{},ids:[]}),ue=Object(he.a)(T,2),ye=ue[0],Ke=ue[1],nt=Object(k.useState)({}),lt=Object(he.a)(nt,2),tt=lt[0],Ct=lt[1];Object(k.useEffect)(function(){window.addEventListener("click",function(){E(!1),Ct({})})},[]),Object(k.useEffect)(function(){if(A){var vt={},gt=[];A.forEach(function(dt){var kt=dt.sub_discipline,Nt=Object(oe.a)(dt,["sub_discipline"]);kt&&(vt[kt.id]=Object(ae.a)(Object(ae.a)({},Nt),{},{sub_disciplines:[kt]}),gt.push(kt.id))}),Ke({ids:gt,data:Object.values(vt),objData:vt}),M(gt)}},[A]);var mt=function(){return N.a.createElement("div",{className:P.a.emptyWrap},N.a.createElement(fe.a,{image:fe.a.PRESENTED_IMAGE_SIMPLE}))},rt=function(gt){if(ye.ids.includes(gt.id))return!1;var dt=tt.sub_disciplines,kt=Object(oe.a)(tt,["sub_disciplines"]),Nt=Object(ae.a)(Object(ae.a)({},ye.objData),{},Object(q.a)({},gt.id,Object(ae.a)(Object(ae.a)({},kt),{},{sub_disciplines:[gt]})));Ke({ids:[].concat(Object(Ee.a)(ye.ids),[gt.id]),data:Object.values(Nt),objData:Nt}),M([].concat(Object(Ee.a)(ye.ids),[gt.id]))},At=function(gt){var dt=ye.objData;delete dt[gt];var kt=ye.ids.filter(function(Nt){return Nt!==gt});Ke({data:Object.values(dt),objData:dt,ids:kt}),M(kt)},bt=45;return b&&b.current&&b.current.clientHeight>45&&(bt=b.current.clientHeight+5),N.a.createElement("div",{className:P.a.cascaderContainer,onClick:function(gt){gt.stopPropagation()}},N.a.createElement("div",{ref:b,className:P.a.valueWrap,onClick:function(){return E(!y)}},ye.data.length===0&&N.a.createElement("span",{className:P.a.placeholder},je||"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),ye.data.map(function(vt){return N.a.createElement("div",{className:P.a.valueItem,key:vt.id},N.a.createElement("span",null,vt.name),N.a.createElement("span",null,"/"),N.a.createElement("span",null,vt.sub_disciplines[0].name),N.a.createElement("span",{onClick:function(dt){dt.stopPropagation(),dt.preventDefault(),At(vt.sub_disciplines[0].id)}},N.a.createElement(v.a,null)))})),y&&N.a.createElement("div",{className:P.a.modalWrap,style:{top:bt}},N.a.createElement("div",{className:P.a.left},we.length===0&&mt(),we.length>0&&we.map(function(vt){return N.a.createElement("div",{key:vt.id,onClick:function(){return Ct(vt)}},N.a.createElement("span",null,vt.name),N.a.createElement("span",null,N.a.createElement(O.a,null)))})),tt.sub_disciplines&&N.a.createElement("div",{className:P.a.right},tt.sub_disciplines.length===0&&mt(),tt.sub_disciplines.length>0&&tt.sub_disciplines.map(function(vt){var gt=ye.ids.includes(vt.id);return N.a.createElement("div",{key:vt.id,className:gt?P.a.disabled:"",onClick:function(){return rt(vt)}},vt.name)}))))},d=_,f=p("2qtc"),g=p("kLXV"),S=p("6UJt"),Z=p("DFOY"),F=p("wd/R"),le=p.n(F),ke=p("jO45"),Ae=p("jN4g"),Ie=p("gJ3r"),Le=p("8pgt"),_e=p.n(Le),Ge=function(Be,we){return we.some(function(je){return je.label.toLowerCase().indexOf(Be.toLowerCase())>-1})},se=C.a.TextArea,Te=function(Be){var we=Be.newCourse,je=Be.globalSetting,A=Be.loading,M=Be.dispatch,z=Be.schoolName,m=Be.onSuccess,y=m===void 0?function(){}:m,E=Object(oe.a)(Be,["newCourse","globalSetting","loading","dispatch","schoolName","onSuccess"]),T=ee.a.useForm(),ue=Object(he.a)(T,1),ye=ue[0];Object(k.useEffect)(function(){ye.setFieldsValue({name:z})},[z]);var Ke=function(){var nt=Object(Re.a)($.a.mark(function lt(tt){var Ct,mt,rt,At,bt,vt,gt;return $.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return Ct=tt||{},mt=Ct.name,rt=Ct.city,At=rt===void 0?[]:rt,bt=Ct.address,vt=Ct.remarks,kt.next=3,M({type:"newCourse/appplySchool",payload:{name:mt,province:At[0],city:At[1],address:bt,remarks:vt}});case 3:gt=kt.sent,M({type:"newCourse/setActionTabs",payload:{}}),gt&&(Se.b.success("\u65B0\u589E\u53D1\u5E03\u5355\u4F4D\u6210\u529F\uFF01"),y(mt));case 6:case"end":return kt.stop()}},lt)}));return function(tt){return nt.apply(this,arguments)}}();return N.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:we.actionTabs.key==="NewCourse-AppplySchool",title:"\u7533\u8BF7\u53D1\u5E03\u5355\u4F4D",width:"600px",footer:null},N.a.createElement(ee.a,{className:_e.a.formWrap,form:ye,labelCol:{span:4},wrapperCol:{span:20},onFinish:Ke},N.a.createElement(ee.a.Item,{label:"\u53D1\u5E03\u5355\u4F4D\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},N.a.createElement(C.a,{placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D"})),N.a.createElement("div",{className:"".concat(_e.a.flexRow," ").concat(_e.a.example)},N.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),N.a.createElement("div",{className:_e.a.flexColumn},N.a.createElement("div",null,N.a.createElement(ke.a,{style:{color:"rgb(82, 196, 26)"}}),N.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),N.a.createElement("div",null,N.a.createElement(Ae.a,{style:{color:"red"}}),N.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784",le()().format("YYYY"),"\u6625")))),N.a.createElement(ee.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},N.a.createElement(Z.a,{allowClear:!0,size:"large",options:Ie.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:Ge}})),N.a.createElement(ee.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},N.a.createElement(C.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),N.a.createElement(ee.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},N.a.createElement(se,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),N.a.createElement("div",{className:_e.a.footerWrap},N.a.createElement(ee.a.Item,null,N.a.createElement(Ne.a,{className:"mr5",size:"large",onClick:function(){M({type:"newCourse/setActionTabs",payload:{}})}},"\u53D6\u6D88"),N.a.createElement(Ne.a,{size:"large",type:"primary",htmlType:"submit",loading:A["newCourse/appplySchool"]},"\u4FDD\u5B58")))))},Me=Object(Y.a)(function(He){var Be=He.newCourse,we=He.loading,je=He.globalSetting;return{newCourse:Be,globalSetting:je,loading:we.effects}})(Te),Pe=C.a.TextArea,We=J.a.TreeNode,Ue=function(Be){var we,je,A=Be.user,M=Be.newCourse,z=Be.globalSetting,m=Be.loading,y=Be.dispatch,E=Object(oe.a)(Be,["user","newCourse","globalSetting","loading","dispatch"]),T=ee.a.useForm(),ue=Object(he.a)(T,1),ye=ue[0],Ke=Object(k.useState)({}),nt=Object(he.a)(Ke,2),lt=nt[0],tt=nt[1],Ct=Object(k.useState)(),mt=Object(he.a)(Ct,2),rt=mt[0],At=mt[1],bt=Object(k.useRef)(),vt=Object(k.useState)(!0),gt=Object(he.a)(vt,2),dt=gt[0],kt=gt[1],Nt=Object(k.useState)(!1),Bt=Object(he.a)(Nt,2),Qt=Bt[0],Ot=Bt[1],Sn=Object(k.useState)(),Kt=Object(he.a)(Sn,2),jt=Kt[0],ln=Kt[1],St=Object(k.useState)(!0),qe=Object(he.a)(St,2),zt=qe[0],bn=qe[1],sn=Object(k.useState)(!1),wt=Object(he.a)(sn,2),un=wt[0],Gt=wt[1],$n=Object(k.useState)(!1),ze=Object(he.a)($n,2),ft=ze[0],$e=ze[1],Un=Object(k.useState)(-1),Yn=Object(he.a)(Un,2),Ln=Yn[0],Jn=Yn[1],ut=Object(k.useState)(!0),Bn=Object(he.a)(ut,2),qn=Bn[0],cn=Bn[1],qt=Object(k.useState)([]),ra=Object(he.a)(qt,2),On=ra[0],rn=ra[1],Xt=Object(k.useState)([]),Ut=Object(he.a)(Xt,2),It=Ut[0],yt=Ut[1],Ft=Object(k.useState)([]),yn=Object(he.a)(Ft,2),en=yn[0],dn=yn[1],Tn=Object(k.useState)([]),In=Object(he.a)(Tn,2),tn=In[0],Ht=In[1];Object(k.useEffect)(function(){var Tt,st;_n(),Kn(),bt.current=(Tt=E.match.params)===null||Tt===void 0?void 0:Tt.pathId,At(!!bt.current),Object(s.V)(z==null||((st=z.setting)===null||st===void 0)?void 0:st.name),ye.setFieldsValue({learning_notes_title:"\u8BFE\u7A0B\u987B\u77E5"}),bt.current&&nn()},[]);var _n=function(){var Tt=Object(Re.a)($.a.mark(function st(){var Qe;return $.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(R.a)("/api/disciplines.json",{method:"get",params:{source:"subject"}});case 2:Qe=Pt.sent,dn(Qe.disciplines);case 4:case"end":return Pt.stop()}},st)}));return function(){return Tt.apply(this,arguments)}}(),Kn=function(){var Tt=Object(Re.a)($.a.mark(function st(){var Qe;return $.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return cn(!0),Pt.next=3,y({type:"newCourse/getSchoolOption"});case 3:Qe=Pt.sent,cn(!1),rn(Qe==null?void 0:Qe.schools),yt(Qe==null?void 0:Qe.schools);case 7:case"end":return Pt.stop()}},st)}));return function(){return Tt.apply(this,arguments)}}(),nn=function(){var Tt=Object(Re.a)($.a.mark(function st(){var Qe,xn,Pt,vn,ea,Mn,ia,oa,la,aa,fa,ha,it;return $.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,y({type:"newCourse/getEditCourseData",payload:{id:bt.current}});case 2:Qe=pt.sent,Qe&&(ia={name:Qe.name,name_en:Qe.name_en,intro:Qe.description,content:Qe==null||((xn=Qe.toast)===null||xn===void 0)?void 0:xn.content,notice:Qe.learning_notes,school_id:Qe==null?void 0:Qe.school,learning_notes_title:Qe.learning_notes_title||"\u8BFE\u7A0B\u987B\u77E5"},Qe.disciplines&&Qe.disciplines.length>0&&Ht(Qe.disciplines),ye.setFieldsValue(ia),$e(Qe==null||((Pt=Qe.toast)===null||Pt===void 0)?void 0:Pt.is_open),Jn(Qe==null||((vn=Qe.toast)===null||vn===void 0)?void 0:vn.open_num),kt(Qe==null?void 0:Qe.cust_seq),Ot(Qe==null?void 0:Qe.show_spoc),Gt(Qe==null?void 0:Qe.show_history),bn(Qe==null?void 0:Qe.show_tag),(Qe==null||((ea=Qe.attachments)===null||ea===void 0)?void 0:ea.length)>0&&ln([{uid:Qe==null||((oa=Qe.attachments)===null||oa===void 0||((la=oa[0])===null||la===void 0))?void 0:la.id,name:Qe==null||((aa=Qe.attachments)===null||aa===void 0||((fa=aa[0])===null||fa===void 0))?void 0:fa.title,response:{id:Qe==null||((ha=Qe.attachments)===null||ha===void 0||((it=ha[0])===null||it===void 0))?void 0:it.id}}]),tt({name:Qe.name,intro:Qe.description,notice:Qe.learning_notes,content:Qe==null||((Mn=Qe.toast)===null||Mn===void 0)?void 0:Mn.content}));case 4:case"end":return pt.stop()}},st)}));return function(){return Tt.apply(this,arguments)}}(),La=function(){var Tt=Object(Re.a)($.a.mark(function st(Qe){var xn,Pt,vn,ea,Mn,ia,oa,la,aa,fa,ha,it,xt,pt,_t;return $.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(vn=Qe||{},ea=vn.name,Mn=vn.intro,ia=vn.notice,oa=vn.name_en,la=vn.learning_notes_title,aa=vn.sub_discipline_ids,fa=vn.school_id,ha=rt?"newCourse/editCourse":"newCourse/submitCourse",it=!1,xt=null,On.map(function($t){fa===$t.name&&(it=!0,xt=$t.id)}),it){Dt.next=7;break}return Dt.abrupt("return",Se.b.error("\u672A\u627E\u5230\u5305\u542B'".concat(fa,"'\u7684\u53D1\u5E03\u5355\u4F4D")));case 7:return pt={id:bt.current,name:ea,name_en:oa,description:Mn,learning_notes:ia,cust_seq:dt,show_spoc:Qt,school_id:xt,show_tag:zt,show_history:un,learning_notes_title:la,attachment_ids:[jt==null||((xn=jt[0])===null||xn===void 0||((Pt=xn.response)===null||Pt===void 0))?void 0:Pt.id],sub_discipline_ids:aa,subject_toast_attributes:{is_open:ft,open_num:Ln,content:Qe.content}},Dt.next=10,y({type:ha,payload:Object(ae.a)({},pt)});case 10:_t=Dt.sent,(_t==null?void 0:_t.subject_id)&&Y.d.push("/paths/".concat(_t.subject_id));case 12:case"end":return Dt.stop()}},st)}));return function(Qe){return Tt.apply(this,arguments)}}(),mn=function(){y({type:"newCourse/setActionTabs",payload:{key:"NewCourse-AppplySchool"}})},fn=function(st){Kn(),tt(Object(ae.a)({},ye.getFieldsValue()))};return N.a.createElement("section",{className:u.a.bg},N.a.createElement("div",{className:u.a.titleWrap},N.a.createElement("span",null,rt?"\u7F16\u8F91":"\u521B\u5EFA","\u5B9E\u8DF5\u8BFE\u7A0B")),N.a.createElement(ee.a,{form:ye,className:u.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){var st=ye.getFieldsValue();"school_id"in st&&yt(On.filter(function(Qe){return Qe.name.includes(st.school_id)})),tt(Object(ae.a)({},st))},onFinish:La},N.a.createElement("div",{className:u.a.fieldWrap},N.a.createElement(ee.a.Item,{extra:N.a.createElement("div",{className:"tr c-grey-333 font12 mt3"},"".concat(((we=lt.name)===null||we===void 0?void 0:we.length)||0,"/60")),name:"name",label:"\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0"}]},N.a.createElement(Pe,{maxLength:60,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"})),N.a.createElement(ee.a.Item,{name:"name_en",label:"\u82F1\u6587\u8BFE\u7A0B\u540D\u79F0:",rules:[{message:"\u8BF7\u8F93\u5165\u82F1\u6587\u8BFE\u7A0B\u540D\u79F0"}]},N.a.createElement(C.a,{maxLength:200,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A",addonAfter:"".concat(((je=lt.name_en)===null||je===void 0?void 0:je.length)||0,"/200")})),N.a.createElement(ee.a.Item,{name:"sub_discipline_ids",label:"\u65B9\u5411&\u8BFE\u7A0B:"},N.a.createElement(d,{defaultValue:tn,dataSource:en,onChange:function(st){return ye.setFieldsValue({sub_discipline_ids:st})}})),N.a.createElement(ee.a.Item,{label:"\u53D1\u5E03\u5355\u4F4D",name:"school_id",wrapperCol:{span:24},extra:!qn&&lt.school_id&&!(On!=null&&On.find(function(Tt){return Tt.name===lt.school_id}))&&N.a.createElement("div",{className:u.a.schoolHintWrap},N.a.createElement("span",{className:u.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",lt.school_id,"\u201D\u7684\u53D1\u5E03\u5355\u4F4D\uFF0C"),N.a.createElement("span",{className:"".concat(u.a.color0152d9),onClick:mn},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D"}]},N.a.createElement(H.a,{placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D",showSearch:!0,options:It==null?void 0:It.map(function(Tt){return{value:Tt.name}})}))),N.a.createElement("div",{className:u.a.mdWrap},N.a.createElement(ee.a.Item,{name:"intro",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u7B80\u4ECB"},{max:8e3,message:"\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u7B80\u4ECB\u6700\u5927\u9650\u52368000\u4E2A\u5B57\u7B26"}]},N.a.createElement(K.a,{watch:!0,defaultValue:lt.intro}))),N.a.createElement("div",{className:u.a.mdWrap},N.a.createElement(De.a,{align:"middle",className:"mb10 mt10"},N.a.createElement(I.a,null,N.a.createElement("span",{className:"c-red mr10"},"*")),N.a.createElement(I.a,{flex:"1"},N.a.createElement(ee.a.Item,{name:"learning_notes_title",label:"",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u8BFE\u7A0B\u987B\u77E5\u6807\u9898"},{max:15,message:"\u8BF7\u8F93\u8BFE\u7A0B\u987B\u77E5\u6807\u9898\u6700\u5927\u9650\u523615\u4E2A\u5B57\u7B26"}]},N.a.createElement(C.a,{placeholder:"\u8BF7\u8F93\u5165"})))),N.a.createElement(ee.a.Item,{name:"notice",label:"",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u987B\u77E5"},{max:1e4,message:"\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u987B\u77E5\u6700\u5927\u9650\u523610000\u4E2A\u5B57\u7B26"}]},N.a.createElement(K.a,{insertTemp:"1",watch:!0,defaultValue:lt.notice}))),N.a.createElement("div",{className:u.a.mdWrap},N.a.createElement("div",{style:{display:"flex",alignItems:"center"}},N.a.createElement(Q.a,{checked:ft,style:{marginRight:11},onChange:function(st){$e(st)}}),"\u8BFE\u7A0B\u63D0\u793A\uFF08\u8FDB\u5165\u8BFE\u7A0B\u8BE6\u60C5\u9875\uFF0C\u63D0\u793A\u5185\u5BB9\u4EE5\u5F39\u7A97\u7684\u5F62\u5F0F\u8FDB\u884C\u5C55\u793A\uFF09"),ft&&N.a.createElement(ee.a.Item,{style:{marginTop:10},name:"content",label:"",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u63D0\u793A"},{max:1e4,message:"\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u63D0\u793A\u6700\u5927\u9650\u523610000\u4E2A\u5B57\u7B26"}]},N.a.createElement(K.a,{insertTemp:"1",watch:!0,defaultValue:lt.content})),ft&&N.a.createElement("div",{style:{marginTop:20}},N.a.createElement("label",null,"\u63D0\u793A\u6B21\u6570\uFF1A"),N.a.createElement(w.a.Group,{value:Ln,onChange:function(st){Jn(st.target.value)}},N.a.createElement(w.a,{value:-1},"\u6BCF\u6B21"),N.a.createElement(w.a,{value:1},"\u4E00\u6B21")))),N.a.createElement("div",{className:u.a.mdWrap},N.a.createElement(B.a,{checked:dt,onChange:function(st){kt(st==null?void 0:st.target.checked)}},"\u5C55\u793A\u9ED8\u8BA4\u7AE0\u8282\u5E8F\u53F7\uFF08\u9009\u4E2D\u5219\u6309\u5E8F\u5C55\u793A\u6240\u7AE0\u8282\u5E8F\u53F7\uFF0C\u4E0D\u9009\u4E2D\u5219\u9690\u85CF\u9ED8\u8BA4\u6392\u5E8F\uFF09"),N.a.createElement("br",null),N.a.createElement(B.a,{style:{marginTop:"10px"},checked:Qt,onChange:function(st){return Ot(st==null?void 0:st.target.checked)}},"\u81EA\u9009\u5E76\u5C55\u793ASPOC\u8BFE\u5802\uFF08\u9009\u4E2D\u5219\u7ED9\u51FASPOC\u8BFE\u5802\u5C55\u793A\u533A\u57DF\uFF0C\u8BFE\u7A0B\u521B\u5EFA\u8005/\u5408\u4F5C\u8005\u53EF\u4EE5\u81EA\u4E3B\u6DFB\u52A0\u9700\u8981\u5C55\u793A\u7684\u8BFE\u5802\uFF09"),N.a.createElement("br",null),N.a.createElement(B.a,{style:{marginTop:"10px"},checked:zt,onChange:function(st){return bn(st==null?void 0:st.target.checked)}},"\u5C55\u793A\u6280\u672F\u6807\u7B7E\u6A21\u5757\uFF08\u9009\u4E2D\u540E\uFF0C\u5C55\u793A\u8BFE\u7A0B\u7684\u6280\u80FD\u6807\u7B7E\uFF0C\u4E0D\u9009\u4E2D\u5219\u4E0D\u5C55\u793A\u8BE5\u6A21\u5757\uFF09"),N.a.createElement("br",null),N.a.createElement(B.a,{style:{marginTop:"10px"},checked:un,onChange:function(st){return Gt(st==null?void 0:st.target.checked)}},"\u5C55\u793A\u5386\u53F2\u8BFE\u5802\u6A21\u5757\uFF08\u9009\u4E2D\u540E\uFF0C\u5C55\u793A\u8BFE\u7A0B\u7684\u5386\u53F2\u8BFE\u5802\uFF0C\u4E0D\u9009\u4E2D\u5219\u4E0D\u5C55\u793A\u8BE5\u6A21\u5757\uFF09"),N.a.createElement("br",null),N.a.createElement("div",{style:{display:"flex",marginTop:"10px"}},"\u81EA\u5B9A\u4E49\u9876\u90E8\u80CC\u666F\u56FE\uFF1A",N.a.createElement(Oe.a,{action:x.a.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:jt,onChange:function(st){var Qe,xn=(st==null?void 0:st.file.size)/1024/1024<2;if(!((Qe=st.fileList)!==null&&Qe!==void 0&&Qe.length))return!1;if(!xn)ln(Object(Ee.a)(jt));else{var Pt;ln(st==null||((Pt=st.fileList)===null||Pt===void 0)?void 0:Pt.slice(-1))}},beforeUpload:function(st){var Qe=st.type==="image/jpeg"||st.type==="image/png";if(!Qe)return Se.b.error("\u53EA\u80FD\u4E0A\u4F20jpg \u6216\u8005png\u56FE\u7247"),!1;var xn=st.size/1024/1024<2;return xn?Qe&&xn:(Se.b.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u5927\u4E8E2m"),!1)},onRemove:function(st){ln([])}},N.a.createElement(Ne.a,null,"\u4E0A\u4F20\u56FE\u7247"),"\uFF08 \u672C\u9879\u975E\u5FC5\u9700\u3002\u5982\u4E0D\u4E0A\u4F20\uFF0C\u5219\u4F7F\u7528\u7CFB\u7EDF\u9ED8\u8BA4\u56FE\u7247\uFF1B\u5982\u4E0A\u4F20\uFF0C\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC72M\uFF0C\u5EFA\u8BAE\u5C3A\u5BF81920*240\u50CF\u7D20\uFF09"))),N.a.createElement("div",{className:u.a.backgroundFa},N.a.createElement("div",{className:"pt40 mb30"},N.a.createElement(ee.a.Item,null,N.a.createElement(Ne.a,{size:"large",type:"primary",className:"".concat(u.a.button," mr20"),htmlType:"submit",loading:m["newCourse/editCourse"]||m["newCourse/submitCourse"]},"\u63D0\u4EA4"),N.a.createElement(Ne.a,{size:"large",type:"primary",ghost:!0,className:u.a.button,onClick:function(){return Y.d.push(rt?"/paths/".concat(bt.current):"/paths")}},"\u53D6\u6D88"))))),N.a.createElement(Me,{schoolName:lt.school_id,onSuccess:fn}))},be=Ve.default=Object(Y.a)(function(He){var Be=He.user,we=He.newCourse,je=He.loading,A=He.globalSetting;return{user:Be,newCourse:we,globalSetting:A,loading:je.effects}})(Ue)},XIdC:function(ot,Ve,p){"use strict";var X=p("rePB"),Oe=p("ODXe"),xe=p("Ff2n"),Ne=p("cDcd"),Ee=p.n(Ne),ce=p("TSYQ"),B=p.n(ce),D=p("6cGi"),w=p("4IlW"),te=Ne.forwardRef(function(Q,ve){var De,ie=Q.prefixCls,I=ie===void 0?"rc-switch":ie,j=Q.className,H=Q.checked,ae=Q.defaultChecked,ne=Q.disabled,Se=Q.loadingIcon,Re=Q.checkedChildren,de=Q.unCheckedChildren,ee=Q.onClick,he=Q.onChange,oe=Q.onKeyDown,L=Object(xe.a)(Q,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),J=Object(D.a)(!1,{value:H,defaultValue:ae}),V=Object(Oe.a)(J,2),C=V[0],re=V[1];function $(K,W){var u=C;return ne||(u=K,re(u),he==null||he(u,W)),u}function k(K){K.which===w.a.LEFT?$(!1,K):K.which===w.a.RIGHT&&$(!0,K),oe==null||oe(K)}function N(K){var W=$(!C,K);ee==null||ee(W,K)}var Y=B()(I,j,(De={},Object(X.a)(De,"".concat(I,"-checked"),C),Object(X.a)(De,"".concat(I,"-disabled"),ne),De));return Ne.createElement("button",Object.assign({},L,{type:"button",role:"switch","aria-checked":C,disabled:ne,className:Y,ref:ve,onKeyDown:k,onClick:N}),Se,Ne.createElement("span",{className:"".concat(I,"-inner")},C?Re:de))});te.displayName="Switch",Ve.a=te},Y1PL:function(ot,Ve,p){"use strict";p.r(Ve),p.d(Ve,"ResizableTextArea",function(){return q});var X=p("wx14"),Oe=p("1OyB"),xe=p("vuIU"),Ne=p("Ji7U"),Ee=p("LK+K"),ce=p("cDcd"),B=p("VTBJ"),D=p("rePB"),w=p("Zm9Q"),te=p("Kwbf"),Q=p("c+Xe"),ve=p("m+aA"),De=p("bdgK"),ie=new Map;function I(pe){pe.forEach(function(P){var v,O=P.target;(v=ie.get(O))===null||v===void 0||v.forEach(function(b){return b(O)})})}var j=new De.default(I),H=null,ae=null;function ne(pe,P){ie.has(pe)||(ie.set(pe,new Set),j.observe(pe)),ie.get(pe).add(P)}function Se(pe,P){ie.has(pe)&&(ie.get(pe).delete(P),ie.get(pe).size||(j.unobserve(pe),ie.delete(pe)))}var Re=function(pe){Object(Ne.a)(v,pe);var P=Object(Ee.a)(v);function v(){return Object(Oe.a)(this,v),P.apply(this,arguments)}return Object(xe.a)(v,[{key:"render",value:function(){return this.props.children}}]),v}(ce.Component),de=ce.createContext(null);function ee(pe){var P=pe.children,v=pe.onBatchResize,O=ce.useRef(0),b=ce.useRef([]),_=ce.useContext(de),d=ce.useCallback(function(f,g,S){O.current+=1;var Z=O.current;b.current.push({size:f,element:g,data:S}),Promise.resolve().then(function(){Z===O.current&&(v==null||v(b.current),b.current=[])}),_==null||_(f,g,S)},[v,_]);return ce.createElement(de.Provider,{value:d},P)}function he(pe){var P=pe.children,v=pe.disabled,O=ce.useRef(null),b=ce.useRef(null),_=ce.useContext(de),d=ce.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=ce.isValidElement(P)&&Object(Q.c)(P),g=f?P.ref:null,S=ce.useMemo(function(){return Object(Q.a)(g,O)},[g,O]),Z=ce.useRef(pe);Z.current=pe;var F=ce.useCallback(function(le){var ke=Z.current,Ae=ke.onResize,Ie=ke.data,Le=le.getBoundingClientRect(),_e=Le.width,Ge=Le.height,se=le.offsetWidth,Te=le.offsetHeight,Me=Math.floor(_e),Pe=Math.floor(Ge);if(d.current.width!==Me||d.current.height!==Pe||d.current.offsetWidth!==se||d.current.offsetHeight!==Te){var We={width:Me,height:Pe,offsetWidth:se,offsetHeight:Te};d.current=We;var Ue=se===Math.round(_e)?_e:se,be=Te===Math.round(Ge)?Ge:Te,He=Object(B.a)(Object(B.a)({},We),{},{offsetWidth:Ue,offsetHeight:be});_==null||_(He,le,Ie),Ae&&Promise.resolve().then(function(){Ae(He,le)})}},[]);return ce.useEffect(function(){var le=Object(ve.a)(O.current)||Object(ve.a)(b.current);return le&&!v&&ne(le,F),function(){return Se(le,F)}},[O.current,v]),ce.createElement(Re,{ref:b},f?ce.cloneElement(P,{ref:S}):P)}var oe="rc-observer-key";function L(pe){var P=pe.children,v=Object(w.a)(P);return v.map(function(O,b){var _=(O==null?void 0:O.key)||"".concat(oe,"-").concat(b);return ce.createElement(he,Object(X.a)({},pe,{key:_}),O)})}L.Collection=ee;var J=L,V=p("bT9E"),C=p("TSYQ"),re=p.n(C),$=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,k=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],N={},Y;function K(pe){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=pe.getAttribute("id")||pe.getAttribute("data-reactid")||pe.getAttribute("name");if(P&&N[v])return N[v];var O=window.getComputedStyle(pe),b=O.getPropertyValue("box-sizing")||O.getPropertyValue("-moz-box-sizing")||O.getPropertyValue("-webkit-box-sizing"),_=parseFloat(O.getPropertyValue("padding-bottom"))+parseFloat(O.getPropertyValue("padding-top")),d=parseFloat(O.getPropertyValue("border-bottom-width"))+parseFloat(O.getPropertyValue("border-top-width")),f=k.map(function(S){return"".concat(S,":").concat(O.getPropertyValue(S))}).join(";"),g={sizingStyle:f,paddingSize:_,borderSize:d,boxSizing:b};return P&&v&&(N[v]=g),g}function W(pe){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Y||(Y=document.createElement("textarea"),Y.setAttribute("tab-index","-1"),Y.setAttribute("aria-hidden","true"),document.body.appendChild(Y)),pe.getAttribute("wrap")?Y.setAttribute("wrap",pe.getAttribute("wrap")):Y.removeAttribute("wrap");var b=K(pe,P),_=b.paddingSize,d=b.borderSize,f=b.boxSizing,g=b.sizingStyle;Y.setAttribute("style","".concat(g,";").concat($)),Y.value=pe.value||pe.placeholder||"";var S=Number.MIN_SAFE_INTEGER,Z=Number.MAX_SAFE_INTEGER,F=Y.scrollHeight,le;if(f==="border-box"?F+=d:f==="content-box"&&(F-=_),v!==null||O!==null){Y.value=" ";var ke=Y.scrollHeight-_;v!==null&&(S=ke*v,f==="border-box"&&(S=S+_+d),F=Math.max(S,F)),O!==null&&(Z=ke*O,f==="border-box"&&(Z=Z+_+d),le=F>Z?"":"hidden",F=Math.min(Z,F))}return{height:F,minHeight:S,maxHeight:Z,overflowY:le,resize:"none"}}var u=p("Gytx"),s=p.n(u),x;(function(pe){pe[pe.NONE=0]="NONE",pe[pe.RESIZING=1]="RESIZING",pe[pe.RESIZED=2]="RESIZED"})(x||(x={}));var R=function(pe){Object(Ne.a)(v,pe);var P=Object(Ee.a)(v);function v(O){var b;return Object(Oe.a)(this,v),b=P.call(this,O),b.nextFrameActionId=void 0,b.resizeFrameId=void 0,b.textArea=void 0,b.saveTextArea=function(_){b.textArea=_},b.handleResize=function(_){var d=b.state.resizeStatus,f=b.props,g=f.autoSize,S=f.onResize;if(d!==x.NONE)return;typeof S=="function"&&S(_),g&&b.resizeOnNextFrame()},b.resizeOnNextFrame=function(){cancelAnimationFrame(b.nextFrameActionId),b.nextFrameActionId=requestAnimationFrame(b.resizeTextarea)},b.resizeTextarea=function(){var _=b.props.autoSize;if(!_||!b.textArea)return;var d=_.minRows,f=_.maxRows,g=W(b.textArea,!1,d,f);b.setState({textareaStyles:g,resizeStatus:x.RESIZING},function(){cancelAnimationFrame(b.resizeFrameId),b.resizeFrameId=requestAnimationFrame(function(){b.setState({resizeStatus:x.RESIZED},function(){b.resizeFrameId=requestAnimationFrame(function(){b.setState({resizeStatus:x.NONE}),b.fixFirefoxAutoScroll()})})})})},b.renderTextArea=function(){var _=b.props,d=_.prefixCls,f=d===void 0?"rc-textarea":d,g=_.autoSize,S=_.onResize,Z=_.className,F=_.disabled,le=b.state,ke=le.textareaStyles,Ae=le.resizeStatus,Ie=Object(V.a)(b.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Le=re()(f,Z,Object(D.a)({},"".concat(f,"-disabled"),F));"value"in Ie&&(Ie.value=Ie.value||"");var _e=Object(B.a)(Object(B.a)(Object(B.a)({},b.props.style),ke),Ae===x.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return ce.createElement(J,{onResize:b.handleResize,disabled:!(g||S)},ce.createElement("textarea",Object(X.a)({},Ie,{className:Le,style:_e,ref:b.saveTextArea})))},b.state={textareaStyles:{},resizeStatus:x.NONE},b}return Object(xe.a)(v,[{key:"componentDidUpdate",value:function(b){(b.value!==this.props.value||!s()(b.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var b=this.textArea.selectionStart,_=this.textArea.selectionEnd;this.textArea.setSelectionRange(b,_)}}catch(d){}}},{key:"render",value:function(){return this.renderTextArea()}}]),v}(ce.Component),q=R,ge=function(pe){Object(Ne.a)(v,pe);var P=Object(Ee.a)(v);function v(O){var b;Object(Oe.a)(this,v),b=P.call(this,O),b.resizableTextArea=void 0,b.focus=function(){b.resizableTextArea.textArea.focus()},b.saveTextArea=function(d){b.resizableTextArea=d},b.handleChange=function(d){var f=b.props.onChange;b.setValue(d.target.value,function(){b.resizableTextArea.resizeTextarea()}),f&&f(d)},b.handleKeyDown=function(d){var f=b.props,g=f.onPressEnter,S=f.onKeyDown;d.keyCode===13&&g&&g(d),S&&S(d)};var _=typeof O.value=="undefined"||O.value===null?O.defaultValue:O.value;return b.state={value:_},b}return Object(xe.a)(v,[{key:"setValue",value:function(b,_){"value"in this.props||this.setState({value:b},_)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return ce.createElement(q,Object(X.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(b){return"value"in b?{value:b.value}:null}}]),v}(ce.Component),fe=Ve.default=ge},YNHc:function(ot,Ve,p){ot.exports={cascaderContainer:"cascaderContainer___3XtEo",valueWrap:"valueWrap___3ID8a",valueItem:"valueItem___yKIZs",placeholder:"placeholder___MxiA7",modalWrap:"modalWrap___1ge9B",left:"left___10iyZ",right:"right___KVnmg",disabled:"disabled___2c8qt",emptyWrap:"emptyWrap___dYSJ0"}},ZW9T:function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return Re});var X=p("k1fw"),Oe=p("miYZ"),xe=p("tsqr"),Ne=p("rAM+"),Ee=p("tJVT"),ce=p("PpiC"),B=p("cDcd"),D=p.n(B),w=p("bdgK");function te(de,ee,he,oe,L){var J=ee.getWordUntilPosition(he),V={startLineNumber:he.lineNumber,endLineNumber:he.lineNumber,startColumn:J.startColumn,endColumn:J.endColumn},C=oe.map(function(re){return{label:re,kind:de.languages.CompletionItemKind.Keyword,insertText:re,insertTextRules:de.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:V}});return L.map(function(re){C.push(Object(X.a)(Object(X.a)({},re),{},{range:V}))}),C}var Q=function(de){var ee={label:"ifelse",kind:de.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:de.languages.CompletionItemInsertTextRule.InsertAsSnippet},he=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];de.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(V,C){var re=te(de,V,C,he,[ee]);return{suggestions:re}}});var oe=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];de.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(V,C){var re=[{label:"print",kind:de.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:de.languages.CompletionItemInsertTextRule.InsertAsSnippet}],$=te(de,V,C,oe,re);return{suggestions:$}}});var L=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];de.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(V,C){var re=[ee,{label:"main",kind:de.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:de.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:de.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:de.languages.CompletionItemInsertTextRule.InsertAsSnippet}],$=te(de,V,C,L,re);return{suggestions:$}}})},ve="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",De=p("LvDl");function ie(de){return/^\d+$/.test(de)?"".concat(de,"px"):de}function I(){}var j=!1,H={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function ae(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ee=de;if(Array.isArray(de)){for(var he=0;he<de.length;he++){var oe=H[de[he]];if(oe)return oe}return ee[0]}return H[ee]||ee}var ne=null,Se=Ve.b=function(de){var ee=de.width,he=ee===void 0?"100%":ee,oe=de.height,L=oe===void 0?"100%":oe,J=de.value,V=de.language,C=V===void 0?"javascript":V,re=de.style,$=re===void 0?{}:re,k=de.options,N=k===void 0?{}:k,Y=de.overrideServices,K=Y===void 0?{}:Y,W=de.theme,u=W===void 0?"vs-dark":W,s=de.onEditBlur,x=de.onSave,R=de.autoHeight,q=R===void 0?!1:R,ge=de.forbidCopy,fe=ge===void 0?!1:ge,pe=de.onChange,P=pe===void 0?I:pe,v=de.editorDidMount,O=v===void 0?I:v,b=de.onFocus,_=b===void 0?I:b,d=de.filename,f=d===void 0?"educoder.txt":d,g=Object(ce.a)(de,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),S=Object(B.useRef)(),Z=Object(B.useRef)({}),F=Object(B.useRef)(),le=Object(B.useRef)(!1),ke=Object(B.useRef)(),Ae=Object(B.useState)(!1),Ie=Object(Ee.a)(Ae,2),Le=Ie[0],_e=Ie[1];function Ge(){var E;return S.current&&(E=new w.default(function(T){var ue=Object(Ne.a)(T),ye;try{for(ue.s();!(ye=ue.n()).done;){var Ke=ye.value;(Ke.target.offsetHeight>0||Ke.target.offsetWidth>0)&&Z.current.instance.layout()}}catch(nt){ue.e(nt)}finally{ue.f()}}),E.observe(S.current)),E}function se(){xe.b.warn(decodeURIComponent(ve))}var Te=function(){var T=Z.current.instance;if(J!=null&&T&&Le){var ue=T.getModel();ue&&J!==ue.getValue()&&(j=!0,ue.setValue(J),T.layout(),j=!1)}};Object(B.useEffect)(function(){F.current&&clearTimeout(F.current),F.current=setTimeout(function(){Te()},500)},[J,Le,Z.current]);function Me(){var E=Z.current.instance;if(E){var T=E.getSelection(),ue=Z.current.pastePos||{},ye=new ne.Range(ue.startLineNumber||T.endLineNumber,ue.startColumn||T.endColumn,ue.endLineNumber||T.endLineNumber,ue.endColumn||T.endColumn);setTimeout(function(){E.executeEdits("",[{range:ye,text:""}])},300)}}function Pe(E){(window.navigator.platform.match("Mac")?E.metaKey:E.ctrlKey)&&E.keyCode==83&&(E.preventDefault(),x())}var We=function(){if(q&&Z.current.instance){var T=Z.current.instance.getContentHeight();m(T<L?L:T)}else m(L)};function Ue(E){var T=document.createEvent("MouseEvents");T.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),E.dispatchEvent(T)}function be(E,T){var ue=window.URL||window.webkitURL||window,ye=new Blob([T]),Ke=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ke.href=ue.createObjectURL(ye),Ke.download=E,Ue(Ke)}Object(B.useEffect)(function(){We()},[We]),Object(B.useEffect)(function(){S.current&&!Le&&p.e(27).then(p.t.bind(null,"M/lh",7)).then(function(E){try{ne=E,Z.current.instance=ne.editor.create(S.current,{value:J,language:ae(C),theme:u,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},K);var T=Z.current.instance;if(O(T,ne),setTimeout(function(){We(),Z.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){be(f||"educoder.txt",T.getValue())}})},500),Z.current.subscription=T.onDidChangeModelContent(function(ye){le.current?clearTimeout(ke.current):(We(),P(T.getValue(),ye)),ke.current=setTimeout(function(){le.current=!1},500)}),window.Monaco||Q(ne),fe&&(T.addCommand(ne.KeyMod.CtrlCmd|ne.KeyMod.Shift|ne.KeyCode.KEY_V,function(){return se(),null}),T.addCommand(ne.KeyMod.CtrlCmd|ne.KeyCode.KEY_C,function(){return se(),null})),window.Monaco=ne,s&&T.onDidBlurEditorWidget(function(){s(T.getValue())}),_&&T.onDidFocusEditorText(function(){_(T.getValue())}),fe){T.addCommand(ne.KeyMod.CtrlCmd|ne.KeyCode.KEY_V,function(){return se(),null}),T.onDidPaste(function(ye){Z.current.pastePos=ye});try{window.addEventListener("paste",Me)}catch(ye){}}var ue=Ge();return _e(!0),function(){var ye=Z.current.instance;ye.dispose();var Ke=ye.getModel();Ke&&Ke.dispose(),Z.current.subscription&&Z.current.subscription.dispose(),fe&&window.removeEventListener("paste",Me),ue.unobserve(S.current)}}catch(ye){}})},[]),Object(B.useEffect)(function(){var E=Z.current.instance;if(E&&Le)return document.addEventListener("keydown",Pe,!1),function(){document.removeEventListener("keydown",Pe)}},[x,Le]),Object(B.useEffect)(function(){var E=Z.current.instance;if(E&&Le){var T=ae(C);ne.editor.setModelLanguage(E.getModel(),T),console.log("language:",C,E.getModel(),T)}},[C,Le]),Object(B.useEffect)(function(){var E=Z.current.instance;E&&Le&&ne.editor.setTheme(u)},[u,Le]),Object(B.useEffect)(function(){var E=Z.current.instance;E&&Le&&(E.updateOptions(Object(X.a)({},N)),setTimeout(function(){E.getModel().updateOptions(Object(X.a)({},N))},200))},[JSON.stringify(N),Le]),Object(B.useEffect)(function(){var E=Z.current.instance;E&&Le&&E.layout()},[he,L,Le]);var He=Object(B.useState)(ie(he)),Be=Object(Ee.a)(He,2),we=Be[0],je=Be[1],A=Object(B.useState)(ie(L)),M=Object(Ee.a)(A,2),z=M[0],m=M[1],y=Object(X.a)(Object(X.a)({},$),{},{width:we,height:z});return D.a.createElement("div",{className:"my-monaco-editor",ref:S,style:y})};function Re(de){var ee=de.width,he=ee===void 0?"100%":ee,oe=de.height,L=oe===void 0?"100%":oe,J=de.original,V=de.modified,C=de.language,re=de.options,$=re===void 0?{}:re,k=Object(B.useRef)(),N=Object(B.useState)(null),Y=Object(Ee.a)(N,2),K=Y[0],W=Y[1];function u(q){var ge;return k.current&&(ge=new w.default(function(fe){var pe=Object(Ne.a)(fe),P;try{for(pe.s();!(P=pe.n()).done;){var v=P.value;(v.target.offsetHeight>0||v.target.offsetWidth>0)&&q.layout()}}catch(O){pe.e(O)}finally{pe.f()}}),ge.observe(k.current)),ge}Object(B.useEffect)(function(){k.current&&p.e(27).then(p.t.bind(null,"M/lh",7)).then(function(q){ne=q;var ge=ne.editor.createDiffEditor(k.current,Object(X.a)(Object(X.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},$),{},{wordWrap:!0}));W(ge);var fe=u(ge);return function(){ge.dispose();var pe=ge.getModel();pe&&pe.dispose(),fe.unobserve(k.current)}})},[]),Object(B.useEffect)(function(){K&&K.setModel({original:ne.editor.createModel(J,C),modified:ne.editor.createModel(V,C)})},[J,V,C,K]);var s=ie(he),x=ie(L),R={width:s,height:x};return D.a.createElement("div",{className:"my-diff-editor",ref:k,style:R})}},ZpRC:function(ot,Ve,p){"use strict";function X(Q){return typeof Q=="object"&&Q!=null&&Q.nodeType===1}function Oe(Q,ve){return(!ve||Q!=="hidden")&&Q!=="visible"&&Q!=="clip"}function xe(Q,ve){if(Q.clientHeight<Q.scrollHeight||Q.clientWidth<Q.scrollWidth){var De=getComputedStyle(Q,null);return Oe(De.overflowY,ve)||Oe(De.overflowX,ve)||function(ie){var I=function(j){if(!j.ownerDocument||!j.ownerDocument.defaultView)return null;try{return j.ownerDocument.defaultView.frameElement}catch(H){return null}}(ie);return!!I&&(I.clientHeight<ie.scrollHeight||I.clientWidth<ie.scrollWidth)}(Q)}return!1}function Ne(Q,ve,De,ie,I,j,H,ae){return j<Q&&H>ve||j>Q&&H<ve?0:j<=Q&&ae<=De||H>=ve&&ae>=De?j-Q-ie:H>ve&&ae<De||j<Q&&ae>De?H-ve+I:0}var Ee=function(Q,ve){var De=window,ie=ve.scrollMode,I=ve.block,j=ve.inline,H=ve.boundary,ae=ve.skipOverflowHiddenElements,ne=typeof H=="function"?H:function(ke){return ke!==H};if(!X(Q))throw new TypeError("Invalid target");for(var Se=document.scrollingElement||document.documentElement,Re=[],de=Q;X(de)&&ne(de);){if((de=de.parentElement)===Se){Re.push(de);break}de!=null&&de===document.body&&xe(de)&&!xe(document.documentElement)||de!=null&&xe(de,ae)&&Re.push(de)}for(var ee=De.visualViewport?De.visualViewport.width:innerWidth,he=De.visualViewport?De.visualViewport.height:innerHeight,oe=window.scrollX||pageXOffset,L=window.scrollY||pageYOffset,J=Q.getBoundingClientRect(),V=J.height,C=J.width,re=J.top,$=J.right,k=J.bottom,N=J.left,Y=I==="start"||I==="nearest"?re:I==="end"?k:re+V/2,K=j==="center"?N+C/2:j==="end"?$:N,W=[],u=0;u<Re.length;u++){var s=Re[u],x=s.getBoundingClientRect(),R=x.height,q=x.width,ge=x.top,fe=x.right,pe=x.bottom,P=x.left;if(ie==="if-needed"&&re>=0&&N>=0&&k<=he&&$<=ee&&re>=ge&&k<=pe&&N>=P&&$<=fe)return W;var v=getComputedStyle(s),O=parseInt(v.borderLeftWidth,10),b=parseInt(v.borderTopWidth,10),_=parseInt(v.borderRightWidth,10),d=parseInt(v.borderBottomWidth,10),f=0,g=0,S="offsetWidth"in s?s.offsetWidth-s.clientWidth-O-_:0,Z="offsetHeight"in s?s.offsetHeight-s.clientHeight-b-d:0;if(Se===s)f=I==="start"?Y:I==="end"?Y-he:I==="nearest"?Ne(L,L+he,he,b,d,L+Y,L+Y+V,V):Y-he/2,g=j==="start"?K:j==="center"?K-ee/2:j==="end"?K-ee:Ne(oe,oe+ee,ee,O,_,oe+K,oe+K+C,C),f=Math.max(0,f+L),g=Math.max(0,g+oe);else{f=I==="start"?Y-ge-b:I==="end"?Y-pe+d+Z:I==="nearest"?Ne(ge,pe,R,b,d+Z,Y,Y+V,V):Y-(ge+R/2)+Z/2,g=j==="start"?K-P-O:j==="center"?K-(P+q/2)+S/2:j==="end"?K-fe+_+S:Ne(P,fe,q,O,_+S,K,K+C,C);var F=s.scrollLeft,le=s.scrollTop;Y+=le-(f=Math.max(0,Math.min(le+f,s.scrollHeight-R+Z))),K+=F-(g=Math.max(0,Math.min(F+g,s.scrollWidth-q+S)))}W.push({el:s,top:f,left:g})}return W};function ce(Q){return Q===Object(Q)&&Object.keys(Q).length!==0}function B(Q,ve){ve===void 0&&(ve="auto");var De="scrollBehavior"in document.body.style;Q.forEach(function(ie){var I=ie.el,j=ie.top,H=ie.left;I.scroll&&De?I.scroll({top:j,left:H,behavior:ve}):(I.scrollTop=j,I.scrollLeft=H)})}function D(Q){return Q===!1?{block:"end",inline:"nearest"}:ce(Q)?Q:{block:"start",inline:"nearest"}}function w(Q,ve){var De=!Q.ownerDocument.documentElement.contains(Q);if(ce(ve)&&typeof ve.behavior=="function")return ve.behavior(De?[]:Ee(Q,ve));if(De)return;var ie=D(ve);return B(Ee(Q,ie),ie.behavior)}var te=Ve.a=w},Zss7:function(ot,Ve,p){var X;(function(Oe){var xe=/^\s+/,Ne=/\s+$/,Ee=0,ce=Oe.round,B=Oe.min,D=Oe.max,w=Oe.random;function te(d,f){if(d=d||"",f=f||{},d instanceof te)return d;if(!(this instanceof te))return new te(d,f);var g=Q(d);this._originalInput=d,this._r=g.r,this._g=g.g,this._b=g.b,this._a=g.a,this._roundA=ce(100*this._a)/100,this._format=f.format||g.format,this._gradientType=f.gradientType,this._r<1&&(this._r=ce(this._r)),this._g<1&&(this._g=ce(this._g)),this._b<1&&(this._b=ce(this._b)),this._ok=g.ok,this._tc_id=Ee++}te.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),f,g,S,Z,F,le;return f=d.r/255,g=d.g/255,S=d.b/255,f<=.03928?Z=f/12.92:Z=Oe.pow((f+.055)/1.055,2.4),g<=.03928?F=g/12.92:F=Oe.pow((g+.055)/1.055,2.4),S<=.03928?le=S/12.92:le=Oe.pow((S+.055)/1.055,2.4),.2126*Z+.7152*F+.0722*le},setAlpha:function(d){return this._a=W(d),this._roundA=ce(100*this._a)/100,this},toHsv:function(){var d=I(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=I(this._r,this._g,this._b),f=ce(d.h*360),g=ce(d.s*100),S=ce(d.v*100);return this._a==1?"hsv("+f+", "+g+"%, "+S+"%)":"hsva("+f+", "+g+"%, "+S+"%, "+this._roundA+")"},toHsl:function(){var d=De(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=De(this._r,this._g,this._b),f=ce(d.h*360),g=ce(d.s*100),S=ce(d.l*100);return this._a==1?"hsl("+f+", "+g+"%, "+S+"%)":"hsla("+f+", "+g+"%, "+S+"%, "+this._roundA+")"},toHex:function(d){return H(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return ae(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:ce(this._r),g:ce(this._g),b:ce(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+ce(this._r)+", "+ce(this._g)+", "+ce(this._b)+")":"rgba("+ce(this._r)+", "+ce(this._g)+", "+ce(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:ce(u(this._r,255)*100)+"%",g:ce(u(this._g,255)*100)+"%",b:ce(u(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+ce(u(this._r,255)*100)+"%, "+ce(u(this._g,255)*100)+"%, "+ce(u(this._b,255)*100)+"%)":"rgba("+ce(u(this._r,255)*100)+"%, "+ce(u(this._g,255)*100)+"%, "+ce(u(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Y[H(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var f="#"+ne(this._r,this._g,this._b,this._a),g=f,S=this._gradientType?"GradientType = 1, ":"";if(d){var Z=te(d);g="#"+ne(Z._r,Z._g,Z._b,Z._a)}return"progid:DXImageTransform.Microsoft.gradient("+S+"startColorstr="+f+",endColorstr="+g+")"},toString:function(d){var f=!!d;d=d||this._format;var g=!1,S=this._a<1&&this._a>=0,Z=!f&&S&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return Z?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(g=this.toRgbString()),d==="prgb"&&(g=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(g=this.toHexString()),d==="hex3"&&(g=this.toHexString(!0)),d==="hex4"&&(g=this.toHex8String(!0)),d==="hex8"&&(g=this.toHex8String()),d==="name"&&(g=this.toName()),d==="hsl"&&(g=this.toHslString()),d==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},clone:function(){return te(this.toString())},_applyModification:function(d,f){var g=d.apply(null,[this].concat([].slice.call(f)));return this._r=g._r,this._g=g._g,this._b=g._b,this.setAlpha(g._a),this},lighten:function(){return this._applyModification(ee,arguments)},brighten:function(){return this._applyModification(he,arguments)},darken:function(){return this._applyModification(oe,arguments)},desaturate:function(){return this._applyModification(Se,arguments)},saturate:function(){return this._applyModification(Re,arguments)},greyscale:function(){return this._applyModification(de,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(d,f){return d.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination($,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(re,arguments)},triad:function(){return this._applyCombination(V,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},te.fromRatio=function(d,f){if(typeof d=="object"){var g={};for(var S in d)d.hasOwnProperty(S)&&(S==="a"?g[S]=d[S]:g[S]=fe(d[S]));d=g}return te(d,f)};function Q(d){var f={r:0,g:0,b:0},g=1,S=null,Z=null,F=null,le=!1,ke=!1;return typeof d=="string"&&(d=b(d)),typeof d=="object"&&(O(d.r)&&O(d.g)&&O(d.b)?(f=ve(d.r,d.g,d.b),le=!0,ke=String(d.r).substr(-1)==="%"?"prgb":"rgb"):O(d.h)&&O(d.s)&&O(d.v)?(S=fe(d.s),Z=fe(d.v),f=j(d.h,S,Z),le=!0,ke="hsv"):O(d.h)&&O(d.s)&&O(d.l)&&(S=fe(d.s),F=fe(d.l),f=ie(d.h,S,F),le=!0,ke="hsl"),d.hasOwnProperty("a")&&(g=d.a)),g=W(g),{ok:le,format:d.format||ke,r:B(255,D(f.r,0)),g:B(255,D(f.g,0)),b:B(255,D(f.b,0)),a:g}}function ve(d,f,g){return{r:u(d,255)*255,g:u(f,255)*255,b:u(g,255)*255}}function De(d,f,g){d=u(d,255),f=u(f,255),g=u(g,255);var S=D(d,f,g),Z=B(d,f,g),F,le,ke=(S+Z)/2;if(S==Z)F=le=0;else{var Ae=S-Z;le=ke>.5?Ae/(2-S-Z):Ae/(S+Z);switch(S){case d:F=(f-g)/Ae+(f<g?6:0);break;case f:F=(g-d)/Ae+2;break;case g:F=(d-f)/Ae+4;break}F/=6}return{h:F,s:le,l:ke}}function ie(d,f,g){var S,Z,F;d=u(d,360),f=u(f,100),g=u(g,100);function le(Ie,Le,_e){return _e<0&&(_e+=1),_e>1&&(_e-=1),_e<1/6?Ie+(Le-Ie)*6*_e:_e<1/2?Le:_e<2/3?Ie+(Le-Ie)*(2/3-_e)*6:Ie}if(f===0)S=Z=F=g;else{var ke=g<.5?g*(1+f):g+f-g*f,Ae=2*g-ke;S=le(Ae,ke,d+1/3),Z=le(Ae,ke,d),F=le(Ae,ke,d-1/3)}return{r:S*255,g:Z*255,b:F*255}}function I(d,f,g){d=u(d,255),f=u(f,255),g=u(g,255);var S=D(d,f,g),Z=B(d,f,g),F,le,ke=S,Ae=S-Z;if(le=S===0?0:Ae/S,S==Z)F=0;else{switch(S){case d:F=(f-g)/Ae+(f<g?6:0);break;case f:F=(g-d)/Ae+2;break;case g:F=(d-f)/Ae+4;break}F/=6}return{h:F,s:le,v:ke}}function j(d,f,g){d=u(d,360)*6,f=u(f,100),g=u(g,100);var S=Oe.floor(d),Z=d-S,F=g*(1-f),le=g*(1-Z*f),ke=g*(1-(1-Z)*f),Ae=S%6,Ie=[g,le,F,F,ke,g][Ae],Le=[ke,g,g,le,F,F][Ae],_e=[F,F,ke,g,g,le][Ae];return{r:Ie*255,g:Le*255,b:_e*255}}function H(d,f,g,S){var Z=[ge(ce(d).toString(16)),ge(ce(f).toString(16)),ge(ce(g).toString(16))];return S&&Z[0].charAt(0)==Z[0].charAt(1)&&Z[1].charAt(0)==Z[1].charAt(1)&&Z[2].charAt(0)==Z[2].charAt(1)?Z[0].charAt(0)+Z[1].charAt(0)+Z[2].charAt(0):Z.join("")}function ae(d,f,g,S,Z){var F=[ge(ce(d).toString(16)),ge(ce(f).toString(16)),ge(ce(g).toString(16)),ge(pe(S))];return Z&&F[0].charAt(0)==F[0].charAt(1)&&F[1].charAt(0)==F[1].charAt(1)&&F[2].charAt(0)==F[2].charAt(1)&&F[3].charAt(0)==F[3].charAt(1)?F[0].charAt(0)+F[1].charAt(0)+F[2].charAt(0)+F[3].charAt(0):F.join("")}function ne(d,f,g,S){var Z=[ge(pe(S)),ge(ce(d).toString(16)),ge(ce(f).toString(16)),ge(ce(g).toString(16))];return Z.join("")}te.equals=function(d,f){return!d||!f?!1:te(d).toRgbString()==te(f).toRgbString()},te.random=function(){return te.fromRatio({r:w(),g:w(),b:w()})};function Se(d,f){f=f===0?0:f||10;var g=te(d).toHsl();return g.s-=f/100,g.s=s(g.s),te(g)}function Re(d,f){f=f===0?0:f||10;var g=te(d).toHsl();return g.s+=f/100,g.s=s(g.s),te(g)}function de(d){return te(d).desaturate(100)}function ee(d,f){f=f===0?0:f||10;var g=te(d).toHsl();return g.l+=f/100,g.l=s(g.l),te(g)}function he(d,f){f=f===0?0:f||10;var g=te(d).toRgb();return g.r=D(0,B(255,g.r-ce(255*-(f/100)))),g.g=D(0,B(255,g.g-ce(255*-(f/100)))),g.b=D(0,B(255,g.b-ce(255*-(f/100)))),te(g)}function oe(d,f){f=f===0?0:f||10;var g=te(d).toHsl();return g.l-=f/100,g.l=s(g.l),te(g)}function L(d,f){var g=te(d).toHsl(),S=(g.h+f)%360;return g.h=S<0?360+S:S,te(g)}function J(d){var f=te(d).toHsl();return f.h=(f.h+180)%360,te(f)}function V(d){var f=te(d).toHsl(),g=f.h;return[te(d),te({h:(g+120)%360,s:f.s,l:f.l}),te({h:(g+240)%360,s:f.s,l:f.l})]}function C(d){var f=te(d).toHsl(),g=f.h;return[te(d),te({h:(g+90)%360,s:f.s,l:f.l}),te({h:(g+180)%360,s:f.s,l:f.l}),te({h:(g+270)%360,s:f.s,l:f.l})]}function re(d){var f=te(d).toHsl(),g=f.h;return[te(d),te({h:(g+72)%360,s:f.s,l:f.l}),te({h:(g+216)%360,s:f.s,l:f.l})]}function $(d,f,g){f=f||6,g=g||30;var S=te(d).toHsl(),Z=360/g,F=[te(d)];for(S.h=(S.h-(Z*f>>1)+720)%360;--f;)S.h=(S.h+Z)%360,F.push(te(S));return F}function k(d,f){f=f||6;for(var g=te(d).toHsv(),S=g.h,Z=g.s,F=g.v,le=[],ke=1/f;f--;)le.push(te({h:S,s:Z,v:F})),F=(F+ke)%1;return le}te.mix=function(d,f,g){g=g===0?0:g||50;var S=te(d).toRgb(),Z=te(f).toRgb(),F=g/100,le={r:(Z.r-S.r)*F+S.r,g:(Z.g-S.g)*F+S.g,b:(Z.b-S.b)*F+S.b,a:(Z.a-S.a)*F+S.a};return te(le)},te.readability=function(d,f){var g=te(d),S=te(f);return(Oe.max(g.getLuminance(),S.getLuminance())+.05)/(Oe.min(g.getLuminance(),S.getLuminance())+.05)},te.isReadable=function(d,f,g){var S=te.readability(d,f),Z,F;F=!1,Z=_(g);switch(Z.level+Z.size){case"AAsmall":case"AAAlarge":F=S>=4.5;break;case"AAlarge":F=S>=3;break;case"AAAsmall":F=S>=7;break}return F},te.mostReadable=function(d,f,g){var S=null,Z=0,F,le,ke,Ae;g=g||{},le=g.includeFallbackColors,ke=g.level,Ae=g.size;for(var Ie=0;Ie<f.length;Ie++)F=te.readability(d,f[Ie]),F>Z&&(Z=F,S=te(f[Ie]));return te.isReadable(d,S,{level:ke,size:Ae})||!le?S:(g.includeFallbackColors=!1,te.mostReadable(d,["#fff","#000"],g))};var N=te.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Y=te.hexNames=K(N);function K(d){var f={};for(var g in d)d.hasOwnProperty(g)&&(f[d[g]]=g);return f}function W(d){return d=parseFloat(d),(isNaN(d)||d<0||d>1)&&(d=1),d}function u(d,f){R(d)&&(d="100%");var g=q(d);return d=B(f,D(0,parseFloat(d))),g&&(d=parseInt(d*f,10)/100),Oe.abs(d-f)<1e-6?1:d%f/parseFloat(f)}function s(d){return B(1,D(0,d))}function x(d){return parseInt(d,16)}function R(d){return typeof d=="string"&&d.indexOf(".")!=-1&&parseFloat(d)===1}function q(d){return typeof d=="string"&&d.indexOf("%")!=-1}function ge(d){return d.length==1?"0"+d:""+d}function fe(d){return d<=1&&(d=d*100+"%"),d}function pe(d){return Oe.round(parseFloat(d)*255).toString(16)}function P(d){return x(d)/255}var v=function(){var d="[-\\+]?\\d+%?",f="[-\\+]?\\d*\\.\\d+%?",g="(?:"+f+")|(?:"+d+")",S="[\\s|\\(]+("+g+")[,|\\s]+("+g+")[,|\\s]+("+g+")\\s*\\)?",Z="[\\s|\\(]+("+g+")[,|\\s]+("+g+")[,|\\s]+("+g+")[,|\\s]+("+g+")\\s*\\)?";return{CSS_UNIT:new RegExp(g),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+Z),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+Z),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+Z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function O(d){return!!v.CSS_UNIT.exec(d)}function b(d){d=d.replace(xe,"").replace(Ne,"").toLowerCase();var f=!1;if(N[d])d=N[d],f=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var g;return(g=v.rgb.exec(d))?{r:g[1],g:g[2],b:g[3]}:(g=v.rgba.exec(d))?{r:g[1],g:g[2],b:g[3],a:g[4]}:(g=v.hsl.exec(d))?{h:g[1],s:g[2],l:g[3]}:(g=v.hsla.exec(d))?{h:g[1],s:g[2],l:g[3],a:g[4]}:(g=v.hsv.exec(d))?{h:g[1],s:g[2],v:g[3]}:(g=v.hsva.exec(d))?{h:g[1],s:g[2],v:g[3],a:g[4]}:(g=v.hex8.exec(d))?{r:x(g[1]),g:x(g[2]),b:x(g[3]),a:P(g[4]),format:f?"name":"hex8"}:(g=v.hex6.exec(d))?{r:x(g[1]),g:x(g[2]),b:x(g[3]),format:f?"name":"hex"}:(g=v.hex4.exec(d))?{r:x(g[1]+""+g[1]),g:x(g[2]+""+g[2]),b:x(g[3]+""+g[3]),a:P(g[4]+""+g[4]),format:f?"name":"hex8"}:(g=v.hex3.exec(d))?{r:x(g[1]+""+g[1]),g:x(g[2]+""+g[2]),b:x(g[3]+""+g[3]),format:f?"name":"hex"}:!1}function _(d){var f,g;return d=d||{level:"AA",size:"small"},f=(d.level||"AA").toUpperCase(),g=(d.size||"small").toLowerCase(),f!=="AA"&&f!=="AAA"&&(f="AA"),g!=="small"&&g!=="large"&&(g="small"),{level:f,size:g}}ot.exports?ot.exports=te:!(X=function(){return te}.call(Ve,p,Ve,ot),X!==void 0&&(ot.exports=X))})(Math)},bT9E:function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return Oe});var X=p("VTBJ");function Oe(xe,Ne){var Ee=Object(X.a)({},xe);return Array.isArray(Ne)&&Ne.forEach(function(ce){delete Ee[ce]}),Ee}},c5Ni:function(ot,Ve,p){},dejd:function(ot,Ve,p){},dmUQ:function(ot,Ve,p){"use strict";var X=p("Ff2n"),Oe=p("rePB"),xe=p("1OyB"),Ne=p("vuIU"),Ee=p("Ji7U"),ce=p("md7G"),B=p("foSv"),D=p("cDcd"),w=p.n(D),te=p("TSYQ"),Q=p.n(te),ve=p("4IlW");function De(V,C){var re=Object.keys(V);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(V);C&&($=$.filter(function(k){return Object.getOwnPropertyDescriptor(V,k).enumerable})),re.push.apply(re,$)}return re}function ie(V){for(var C=1;C<arguments.length;C++){var re=arguments[C]!=null?arguments[C]:{};C%2?De(Object(re),!0).forEach(function($){Object(Oe.a)(V,$,re[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(re)):De(Object(re)).forEach(function($){Object.defineProperty(V,$,Object.getOwnPropertyDescriptor(re,$))})}return V}function I(V){var C=j();return function(){var $=Object(B.a)(V),k;if(C){var N=Object(B.a)(this).constructor;k=Reflect.construct($,arguments,N)}else k=$.apply(this,arguments);return Object(ce.a)(this,k)}}function j(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(V){return!1}}function H(){}function ae(V){V.preventDefault()}var ne=function(C){return C.replace(/[^\w.-]+/g,"")},Se=200,Re=600,de=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,ee=function(C){return C!=null},he=function(C,re){return re===C||typeof re=="number"&&typeof C=="number"&&isNaN(re)&&isNaN(C)},oe=function(V){Object(Ee.a)(re,V);var C=I(re);function re($){var k;Object(xe.a)(this,re),k=C.call(this,$),k.onKeyDown=function(K){var W=k.props,u=W.onKeyDown,s=W.onPressEnter;if(K.keyCode===ve.a.UP){var x=k.getRatio(K);k.up(K,x,null),k.stop()}else if(K.keyCode===ve.a.DOWN){var R=k.getRatio(K);k.down(K,R,null),k.stop()}else K.keyCode===ve.a.ENTER&&s&&s(K);if(k.recordCursorPosition(),k.lastKeyCode=K.keyCode,u){for(var q=arguments.length,ge=new Array(q>1?q-1:0),fe=1;fe<q;fe++)ge[fe-1]=arguments[fe];u.apply(void 0,[K].concat(ge))}},k.onKeyUp=function(K){var W=k.props.onKeyUp;if(k.stop(),k.recordCursorPosition(),W){for(var u=arguments.length,s=new Array(u>1?u-1:0),x=1;x<u;x++)s[x-1]=arguments[x];W.apply(void 0,[K].concat(s))}},k.onChange=function(K){var W=k.props.onChange;k.state.focused&&(k.inputting=!0),k.rawInput=k.props.parser(k.getValueFromEvent(K)),k.setState({inputValue:k.rawInput}),W(k.toNumber(k.rawInput))},k.onMouseUp=function(){var K=k.props.onMouseUp;k.recordCursorPosition(),K&&K.apply(void 0,arguments)},k.onFocus=function(){var K;k.setState({focused:!0}),(K=k.props).onFocus.apply(K,arguments)},k.onBlur=function(){var K=k.props.onBlur;k.inputting=!1,k.setState({focused:!1});var W=k.getCurrentValidValue(k.state.inputValue),u=k.setValue(W,H);if(K){var s=k.input.value,x=k.getInputDisplayValue({focus:!1,value:u});k.input.value=x&&Number(x),K.apply(void 0,arguments),k.input.value=s}},k.getRatio=function(K){var W=1;return K.metaKey||K.ctrlKey?W=.1:K.shiftKey&&(W=10),W},k.getFullNum=function(K){return isNaN(K)?K:/e/i.test(String(K))?Number(K).toFixed(18).replace(/\.?0+$/,""):K},k.getPrecision=function(K){if(ee(k.props.precision))return k.props.precision;var W=String(K);if(W.indexOf("e-")>=0)return parseInt(W.slice(W.indexOf("e-")+2),10);var u=0;return W.indexOf(".")>=0&&(u=W.length-W.indexOf(".")-1),u},k.getInputDisplayValue=function(K){var W=K||k.state,u=W.focused,s=W.inputValue,x=W.value,R;u?R=s:R=k.toPrecisionAsStep(x),R==null&&(R="");var q=k.formatWrapper(R);return ee(k.props.decimalSeparator)&&(q=q.toString().replace(".",k.props.decimalSeparator)),q},k.recordCursorPosition=function(){try{k.cursorStart=k.input.selectionStart,k.cursorEnd=k.input.selectionEnd,k.currentValue=k.input.value,k.cursorBefore=k.input.value.substring(0,k.cursorStart),k.cursorAfter=k.input.value.substring(k.cursorEnd)}catch(K){}},k.restoreByAfter=function(K){if(K===void 0)return!1;var W=k.input.value,u=W.lastIndexOf(K);if(u===-1)return!1;var s=k.cursorBefore.length;return k.lastKeyCode===ve.a.DELETE&&k.cursorBefore.charAt(s-1)===K[0]?(k.fixCaret(s,s),!0):u+K.length===W.length?(k.fixCaret(u,u),!0):!1},k.partRestoreByAfter=function(K){return K===void 0?!1:Array.prototype.some.call(K,function(W,u){var s=K.substring(u);return k.restoreByAfter(s)})},k.isNotCompleteNumber=function(K){return isNaN(K)||K===""||K===null||K&&K.toString().indexOf(".")===K.toString().length-1},k.stop=function(){k.autoStepTimer&&clearTimeout(k.autoStepTimer)},k.down=function(K,W,u){k.pressingUpOrDown=!0,k.step("down",K,W,u)},k.up=function(K,W,u){k.pressingUpOrDown=!0,k.step("up",K,W,u)},k.saveInput=function(K){k.input=K};var N=$.value;N===void 0&&(N=$.defaultValue),k.state={focused:$.autoFocus};var Y=k.getValidValue(k.toNumber(N));return k.state=ie(ie({},k.state),{},{inputValue:k.toPrecisionAsStep(Y),value:Y}),k}return Object(Ne.a)(re,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(k){var N=this.props,Y=N.value,K=N.onChange,W=N.max,u=N.min,s=this.state.focused;if(k){if(!he(k.value,Y)||!he(k.max,W)||!he(k.min,u)){var x=s?Y:this.getValidValue(Y),R;this.pressingUpOrDown?R=x:this.inputting?R=this.rawInput:R=this.toPrecisionAsStep(x),this.setState({value:x,inputValue:R})}var q="value"in this.props?Y:this.state.value;"max"in this.props&&k.max!==W&&typeof q=="number"&&q>W&&K&&K(W),"min"in this.props&&k.min!==u&&typeof q=="number"&&q<u&&K&&K(u)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var ge=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===ve.a.BACKSPACE?ge=this.cursorStart-1:this.lastKeyCode===ve.a.DELETE&&(ge=this.cursorStart):ge=this.input.value.length,this.fixCaret(ge,ge)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case ve.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case ve.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(fe){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(k){var N=k;return N===""?N="":this.isNotCompleteNumber(parseFloat(N))?N=this.state.value:N=this.getValidValue(N),this.toNumber(N)}},{key:"getValueFromEvent",value:function(k){var N=k.target.value.trim().replace(/。/g,".");return ee(this.props.decimalSeparator)&&(N=N.replace(this.props.decimalSeparator,".")),N}},{key:"getValidValue",value:function(k){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,K=parseFloat(k);return isNaN(K)?k:(K<N&&(K=N),K>Y&&(K=Y),K)}},{key:"setValue",value:function(k,N){var Y=this.props.precision,K=this.isNotCompleteNumber(parseFloat(k))?null:parseFloat(k),W=this.state.value,u=W===void 0?null:W,s=this.state.inputValue,x=s===void 0?null:s,R=typeof K=="number"?K.toFixed(Y):"".concat(K),q=K!==u||R!=="".concat(x);return"value"in this.props?(x=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:x},N)):this.setState({value:K,inputValue:this.toPrecisionAsStep(k)},N),q&&this.props.onChange(K),K}},{key:"getMaxPrecision",value:function(k){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Y=this.props,K=Y.precision,W=Y.step;if(ee(K))return K;var u=this.getPrecision(N),s=this.getPrecision(W),x=this.getPrecision(k);return k?Math.max(x,u+s):u+s}},{key:"getPrecisionFactor",value:function(k){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Y=this.getMaxPrecision(k,N);return Math.pow(10,Y)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(k){return this.props.formatter?this.props.formatter(k):k}},{key:"toPrecisionAsStep",value:function(k){if(this.isNotCompleteNumber(k)||k==="")return k;var N=Math.abs(this.getMaxPrecision(k));return isNaN(N)?k.toString():Number(k).toFixed(N)}},{key:"toNumber",value:function(k){var N=this.props.precision,Y=this.state.focused,K=k&&k.length>16&&Y;return this.isNotCompleteNumber(k)||K?k:ee(N)?Math.round(k*Math.pow(10,N))/Math.pow(10,N):Number(k)}},{key:"upStep",value:function(k,N){var Y=this.props.step,K=this.getPrecisionFactor(k,N),W=Math.abs(this.getMaxPrecision(k,N)),u=((K*k+K*Y*N)/K).toFixed(W);return this.toNumber(u)}},{key:"downStep",value:function(k,N){var Y=this.props.step,K=this.getPrecisionFactor(k,N),W=Math.abs(this.getMaxPrecision(k,N)),u=((K*k-K*Y*N)/K).toFixed(W);return this.toNumber(u)}},{key:"step",value:function(k,N){var Y=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var u=this.props;if(u.disabled)return;var s=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(s))return;var x=this["".concat(k,"Step")](s,K),R=x>u.max||x<u.min;if(x>u.max?x=u.max:x<u.min&&(x=u.min),this.setValue(x,null),this.setState({focused:!0},function(){Y.pressingUpOrDown=!1}),R)return;this.autoStepTimer=setTimeout(function(){Y[k](N,K,!0)},W?Se:Re)}},{key:"fixCaret",value:function(k,N){if(k===void 0||N===void 0||!this.input||!this.input.value)return;try{var Y=this.input.selectionStart,K=this.input.selectionEnd;(k!==Y||N!==K)&&this.input.setSelectionRange(k,N)}catch(W){}}},{key:"render",value:function(){var k,N=this.props,Y=N.prefixCls,K=N.disabled,W=N.readOnly,u=N.useTouch,s=N.autoComplete,x=N.upHandler,R=N.downHandler,q=N.className,ge=N.max,fe=N.min,pe=N.style,P=N.title,v=N.onMouseEnter,O=N.onMouseLeave,b=N.onMouseOver,_=N.onMouseOut,d=N.required,f=N.onClick,g=N.tabIndex,S=N.type,Z=N.placeholder,F=N.id,le=N.inputMode,ke=N.pattern,Ae=N.step,Ie=N.maxLength,Le=N.autoFocus,_e=N.name,Ge=N.onPaste,se=N.onInput,Te=Object(X.a)(N,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),Me=this.state,Pe=Me.value,We=Me.focused,Ue=Q()(Y,(k={},Object(Oe.a)(k,q,!!q),Object(Oe.a)(k,"".concat(Y,"-disabled"),K),Object(Oe.a)(k,"".concat(Y,"-focused"),We),k)),be={};Object.keys(Te).forEach(function(T){(T.substr(0,5)==="data-"||T.substr(0,5)==="aria-"||T==="role")&&(be[T]=Te[T])});var He=!W&&!K,Be=this.getInputDisplayValue(null),we=(Pe||Pe===0)&&(isNaN(Pe)||Number(Pe)>=ge),je=(Pe||Pe===0)&&(isNaN(Pe)||Number(Pe)<=fe),A=we||K||W,M=je||K||W,z=Q()("".concat(Y,"-handler"),"".concat(Y,"-handler-up"),Object(Oe.a)({},"".concat(Y,"-handler-up-disabled"),A)),m=Q()("".concat(Y,"-handler"),"".concat(Y,"-handler-down"),Object(Oe.a)({},"".concat(Y,"-handler-down-disabled"),M)),y=u?{onTouchStart:A?H:this.up,onTouchEnd:this.stop}:{onMouseDown:A?H:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},E=u?{onTouchStart:M?H:this.down,onTouchEnd:this.stop}:{onMouseDown:M?H:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return w.a.createElement("div",{className:Ue,style:pe,title:P,onMouseEnter:v,onMouseLeave:O,onMouseOver:b,onMouseOut:_,onFocus:function(){return null},onBlur:function(){return null}},w.a.createElement("div",{className:"".concat(Y,"-handler-wrap")},w.a.createElement("span",Object.assign({unselectable:"on"},y,{role:"button","aria-label":"Increase Value","aria-disabled":A,className:z}),x||w.a.createElement("span",{unselectable:"on",className:"".concat(Y,"-handler-up-inner"),onClick:ae})),w.a.createElement("span",Object.assign({unselectable:"on"},E,{role:"button","aria-label":"Decrease Value","aria-disabled":M,className:m}),R||w.a.createElement("span",{unselectable:"on",className:"".concat(Y,"-handler-down-inner"),onClick:ae}))),w.a.createElement("div",{className:"".concat(Y,"-input-wrap")},w.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":fe,"aria-valuemax":ge,"aria-valuenow":Pe,required:d,type:S,placeholder:Z,onPaste:Ge,onClick:f,onMouseUp:this.onMouseUp,className:"".concat(Y,"-input"),tabIndex:g,autoComplete:s,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:He?this.onKeyDown:H,onKeyUp:He?this.onKeyUp:H,autoFocus:Le,maxLength:Ie,readOnly:W,disabled:K,max:ge,min:fe,step:Ae,name:_e,title:P,id:F,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Be),pattern:ke,inputMode:le,onInput:se},be))))}}]),re}(w.a.Component);oe.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:de,min:-de,step:1,style:{},onChange:H,onKeyDown:H,onPressEnter:H,onFocus:H,onBlur:H,parser:ne,required:!1,autoComplete:"off"};var L=oe,J=Ve.a=L},fAei:function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return Se.a});var X=p("rePB"),Oe=p("VTBJ"),xe=p("KQm4"),Ne=p("1OyB"),Ee=p("vuIU"),ce=p("Ji7U"),B=p("LK+K"),D=p("cDcd"),w=p("4IlW"),te=p("Kwbf"),Q=p("TSYQ"),ve=p.n(Q),De=p("sboe"),ie=p("OZM5"),I=p("815F"),j=p("ODXe"),H=p("Ff2n"),ae=p("+nKL"),ne=p("8XRh"),Se=p("WaYH"),Re=function(fe,pe){var P=fe.className,v=fe.style,O=fe.motion,b=fe.motionNodes,_=fe.motionType,d=fe.onMotionStart,f=fe.onMotionEnd,g=fe.active,S=fe.treeNodeRequiredProps,Z=Object(H.a)(fe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),F=D.useState(!0),le=Object(j.a)(F,2),ke=le[0],Ae=le[1],Ie=D.useContext(De.a),Le=Ie.prefixCls,_e=D.useRef(!1),Ge=function(){_e.current||f(),_e.current=!0};return Object(D.useEffect)(function(){b&&_==="hide"&&ke&&Ae(!1)},[b]),Object(D.useEffect)(function(){return b&&d(),function(){b&&Ge()}},[]),b?D.createElement(ne.default,Object.assign({ref:pe,visible:ke},O,{motionAppear:_==="show",onAppearEnd:Ge,onLeaveEnd:Ge}),function(se,Te){var Me=se.className,Pe=se.style;return D.createElement("div",{ref:Te,className:ve()("".concat(Le,"-treenode-motion"),Me),style:Pe},b.map(function(We){var Ue=We.data,be=Ue.key,He=Object(H.a)(Ue,["key"]),Be=We.isStart,we=We.isEnd;delete He.children;var je=Object(I.f)(be,S);return D.createElement(Se.a,Object.assign({},He,je,{active:g,data:We.data,key:be,isStart:Be,isEnd:we}))}))}):D.createElement(Se.a,Object.assign({domRef:pe,className:P,style:v},Z,{active:g}))};Re.displayName="MotionTreeNode";var de=D.forwardRef(Re),ee=de;function he(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],pe=ge.length,P=fe.length;if(Math.abs(pe-P)!==1)return{add:!1,key:null};function v(O,b){var _=new Map;O.forEach(function(f){_.set(f,!0)});var d=b.filter(function(f){return!_.has(f)});return d.length===1?d[0]:null}return pe<P?{add:!0,key:v(ge,fe)}:{add:!1,key:v(fe,ge)}}function oe(ge,fe,pe){var P=ge.findIndex(function(_){var d=_.data;return d.key===pe}),v=ge[P+1],O=fe.findIndex(function(_){var d=_.data;return d.key===pe});if(v){var b=fe.findIndex(function(_){var d=_.data;return d.key===v.data.key});return fe.slice(O+1,b)}return fe.slice(O+1)}var L={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},J=function(){},V="RC_TREE_MOTION_".concat(Math.random()),C={key:V},re={key:V,level:0,index:0,pos:"0",node:C},$={parent:null,children:[],pos:re.pos,data:C,isStart:[],isEnd:[]};function k(ge,fe,pe,P){return fe===!1||!pe?ge:ge.slice(0,Math.ceil(pe/P)+1)}function N(ge){var fe=ge.data.key,pe=ge.pos;return Object(I.e)(fe,pe)}function Y(ge){for(var fe=String(ge.data.key),pe=ge;pe.parent;)pe=pe.parent,fe="".concat(pe.data.key," > ").concat(fe);return fe}var K=function(fe,pe){var P=fe.prefixCls,v=fe.data,O=fe.selectable,b=fe.checkable,_=fe.expandedKeys,d=fe.selectedKeys,f=fe.checkedKeys,g=fe.loadedKeys,S=fe.loadingKeys,Z=fe.halfCheckedKeys,F=fe.keyEntities,le=fe.disabled,ke=fe.dragging,Ae=fe.dragOverNodeKey,Ie=fe.dropPosition,Le=fe.motion,_e=fe.height,Ge=fe.itemHeight,se=fe.virtual,Te=fe.focusable,Me=fe.activeItem,Pe=fe.focused,We=fe.tabIndex,Ue=fe.onKeyDown,be=fe.onFocus,He=fe.onBlur,Be=fe.onActiveChange,we=fe.onListChangeStart,je=fe.onListChangeEnd,A=Object(H.a)(fe,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),M=D.useRef(null);D.useImperativeHandle(pe,function(){return{scrollTo:function(Sn){M.current.scrollTo(Sn)}}});var z=D.useState(_),m=Object(j.a)(z,2),y=m[0],E=m[1],T=D.useState(v),ue=Object(j.a)(T,2),ye=ue[0],Ke=ue[1],nt=D.useState(v),lt=Object(j.a)(nt,2),tt=lt[0],Ct=lt[1],mt=D.useState([]),rt=Object(j.a)(mt,2),At=rt[0],bt=rt[1],vt=D.useState(null),gt=Object(j.a)(vt,2),dt=gt[0],kt=gt[1];function Nt(){Ke(v),Ct(v),bt([]),kt(null),je()}D.useEffect(function(){E(_);var Ot=he(y,_);if(Ot.key!==null)if(Ot.add){var Sn=ye.findIndex(function(zt){var bn=zt.data.key;return bn===Ot.key}),Kt=k(oe(ye,v,Ot.key),se,_e,Ge),jt=ye.slice();jt.splice(Sn+1,0,$),Ct(jt),bt(Kt),kt("show")}else{var ln=v.findIndex(function(zt){var bn=zt.data.key;return bn===Ot.key}),St=k(oe(v,ye,Ot.key),se,_e,Ge),qe=v.slice();qe.splice(ln+1,0,$),Ct(qe),bt(St),kt("hide")}else ye!==v&&(Ke(v),Ct(v))},[_,v]),D.useEffect(function(){ke||Nt()},[ke]);var Bt=Le?tt:v,Qt={expandedKeys:_,selectedKeys:d,loadedKeys:g,loadingKeys:S,checkedKeys:f,halfCheckedKeys:Z,dragOverNodeKey:Ae,dropPosition:Ie,keyEntities:F};return D.createElement(D.Fragment,null,Pe&&Me&&D.createElement("span",{style:L,"aria-live":"assertive"},Y(Me)),D.createElement("div",{role:"tree"},D.createElement("input",{style:L,disabled:Te===!1||le,tabIndex:Te!==!1?We:null,onKeyDown:Ue,onFocus:be,onBlur:He,value:"",onChange:J})),D.createElement(ae.a,Object.assign({},A,{data:Bt,itemKey:N,height:_e,fullHeight:!1,virtual:se,itemHeight:Ge,prefixCls:"".concat(P,"-list"),ref:M}),function(Ot){var Sn=Ot.pos,Kt=Ot.data,jt=Kt.key,ln=Object(H.a)(Kt,["key"]),St=Ot.isStart,qe=Ot.isEnd,zt=Object(I.e)(jt,Sn);delete ln.children;var bn=Object(I.f)(zt,Qt);return D.createElement(ee,Object.assign({},ln,bn,{active:Me&&jt===Me.data.key,pos:Sn,data:Ot.data,isStart:St,isEnd:qe,motion:Le,motionNodes:jt===V?At:null,motionType:dt,onMotionStart:we,onMotionEnd:Nt,treeNodeRequiredProps:Qt,onMouseMove:function(){Be(null)}}))}))},W=D.forwardRef(K);W.displayName="NodeList";var u=W,s=p("NvD2"),x=function(ge){Object(ce.a)(pe,ge);var fe=Object(B.a)(pe);function pe(){var P;return Object(Ne.a)(this,pe),P=fe.apply(this,arguments),P.destroyed=!1,P.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},P.listRef=D.createRef(),P.onNodeDragStart=function(v,O){var b=P.state,_=b.expandedKeys,d=b.keyEntities,f=P.props.onDragStart,g=O.props.eventKey;P.dragNode=O;var S=Object(ie.b)(_,g);P.setState({dragging:!0,dragNodesKeys:Object(ie.g)(g,d)}),P.setExpandedKeys(S),f&&f({event:v,node:Object(I.b)(O.props)})},P.onNodeDragEnter=function(v,O){var b=P.state,_=b.expandedKeys,d=b.keyEntities,f=b.dragNodesKeys,g=P.props.onDragEnter,S=O.props,Z=S.pos,F=S.eventKey;if(!P.dragNode||f.indexOf(F)!==-1)return;var le=Object(ie.c)(v,O);if(P.dragNode.props.eventKey===F&&le===0){P.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){P.setState({dragOverNodeKey:F,dropPosition:le}),P.delayedDragEnterLogic||(P.delayedDragEnterLogic={}),Object.keys(P.delayedDragEnterLogic).forEach(function(ke){clearTimeout(P.delayedDragEnterLogic[ke])}),P.delayedDragEnterLogic[Z]=window.setTimeout(function(){if(!P.state.dragging)return;var ke=Object(xe.a)(_),Ae=d[F];Ae&&(Ae.children||[]).length&&(ke=Object(ie.a)(_,F)),"expandedKeys"in P.props||P.setExpandedKeys(ke),g&&g({event:v,node:Object(I.b)(O.props),expandedKeys:ke})},400)},0)},P.onNodeDragOver=function(v,O){var b=P.state.dragNodesKeys,_=P.props.onDragOver,d=O.props.eventKey;if(b.indexOf(d)!==-1)return;if(P.dragNode&&d===P.state.dragOverNodeKey){var f=Object(ie.c)(v,O);if(f===P.state.dropPosition)return;P.setState({dropPosition:f})}_&&_({event:v,node:Object(I.b)(O.props)})},P.onNodeDragLeave=function(v,O){var b=P.props.onDragLeave;P.setState({dragOverNodeKey:""}),b&&b({event:v,node:Object(I.b)(O.props)})},P.onNodeDragEnd=function(v,O){var b=P.props.onDragEnd;P.setState({dragOverNodeKey:""}),P.cleanDragState(),b&&b({event:v,node:Object(I.b)(O.props)}),P.dragNode=null},P.onNodeDrop=function(v,O){var b=P.state,_=b.dragNodesKeys,d=_===void 0?[]:_,f=b.dropPosition,g=P.props.onDrop,S=O.props,Z=S.eventKey,F=S.pos;if(P.setState({dragOverNodeKey:""}),P.cleanDragState(),d.indexOf(Z)!==-1){Object(te.a)(!1,"Can not drop to dragNode(include it's children node)");return}var le=Object(ie.k)(F),ke={event:v,node:Object(I.b)(O.props),dragNode:P.dragNode?Object(I.b)(P.dragNode.props):null,dragNodesKeys:d.slice(),dropPosition:f+Number(le[le.length-1]),dropToGap:!1};f!==0&&(ke.dropToGap=!0),g&&g(ke),P.dragNode=null},P.cleanDragState=function(){var v=P.state.dragging;v&&P.setState({dragging:!1})},P.onNodeClick=function(v,O){var b=P.props.onClick;b&&b(v,O)},P.onNodeDoubleClick=function(v,O){var b=P.props.onDoubleClick;b&&b(v,O)},P.onNodeSelect=function(v,O){var b=P.state.selectedKeys,_=P.state.keyEntities,d=P.props,f=d.onSelect,g=d.multiple,S=O.selected,Z=O.key,F=!S;F?g?b=Object(ie.a)(b,Z):b=[Z]:b=Object(ie.b)(b,Z);var le=b.map(function(ke){var Ae=_[ke];return Ae?Ae.node:null}).filter(function(ke){return ke});P.setUncontrolledState({selectedKeys:b}),f&&f(b,{event:"select",selected:F,node:O,selectedNodes:le,nativeEvent:v.nativeEvent})},P.onNodeCheck=function(v,O,b){var _=P.state,d=_.keyEntities,f=_.checkedKeys,g=_.halfCheckedKeys,S=P.props,Z=S.checkStrictly,F=S.onCheck,le=O.key,ke,Ae={event:"check",node:O,checked:b,nativeEvent:v.nativeEvent};if(Z){var Ie=b?Object(ie.a)(f,le):Object(ie.b)(f,le),Le=Object(ie.b)(g,le);ke={checked:Ie,halfChecked:Le},Ae.checkedNodes=Ie.map(function(Pe){return d[Pe]}).filter(function(Pe){return Pe}).map(function(Pe){return Pe.node}),P.setUncontrolledState({checkedKeys:Ie})}else{var _e=Object(s.a)([].concat(Object(xe.a)(f),[le]),!0,d),Ge=_e.checkedKeys,se=_e.halfCheckedKeys;if(!b){var Te=new Set(Ge);Te.delete(le);var Me=Object(s.a)(Array.from(Te),{checked:!1,halfCheckedKeys:se},d);Ge=Me.checkedKeys,se=Me.halfCheckedKeys}ke=Ge,Ae.checkedNodes=[],Ae.checkedNodesPositions=[],Ae.halfCheckedKeys=se,Ge.forEach(function(Pe){var We=d[Pe];if(!We)return;var Ue=We.node,be=We.pos;Ae.checkedNodes.push(Ue),Ae.checkedNodesPositions.push({node:Ue,pos:be})}),P.setUncontrolledState({checkedKeys:Ge},!1,{halfCheckedKeys:se})}F&&F(ke,Ae)},P.onNodeLoad=function(v){return new Promise(function(O){P.setState(function(b){var _=b.loadedKeys,d=_===void 0?[]:_,f=b.loadingKeys,g=f===void 0?[]:f,S=P.props,Z=S.loadData,F=S.onLoad,le=v.key;if(!Z||d.indexOf(le)!==-1||g.indexOf(le)!==-1)return{};var ke=Z(v);return ke.then(function(){var Ae=P.state,Ie=Ae.loadedKeys,Le=Ae.loadingKeys,_e=Object(ie.a)(Ie,le),Ge=Object(ie.b)(Le,le);F&&F(_e,{event:"load",node:v}),P.setUncontrolledState({loadedKeys:_e}),P.setState({loadingKeys:Ge}),O()}),{loadingKeys:Object(ie.a)(g,le)}})})},P.onNodeMouseEnter=function(v,O){var b=P.props.onMouseEnter;b&&b({event:v,node:O})},P.onNodeMouseLeave=function(v,O){var b=P.props.onMouseLeave;b&&b({event:v,node:O})},P.onNodeContextMenu=function(v,O){var b=P.props.onRightClick;b&&(v.preventDefault(),b({event:v,node:O}))},P.onFocus=function(){var v=P.props.onFocus;P.setState({focused:!0}),v&&v.apply(void 0,arguments)},P.onBlur=function(){var v=P.props.onBlur;P.setState({focused:!1}),P.onActiveChange(null),v&&v.apply(void 0,arguments)},P.getTreeNodeRequiredProps=function(){var v=P.state,O=v.expandedKeys,b=v.selectedKeys,_=v.loadedKeys,d=v.loadingKeys,f=v.checkedKeys,g=v.halfCheckedKeys,S=v.dragOverNodeKey,Z=v.dropPosition,F=v.keyEntities;return{expandedKeys:O||[],selectedKeys:b||[],loadedKeys:_||[],loadingKeys:d||[],checkedKeys:f||[],halfCheckedKeys:g||[],dragOverNodeKey:S,dropPosition:Z,keyEntities:F}},P.setExpandedKeys=function(v){var O=P.state.treeData,b=Object(I.d)(O,v);P.setUncontrolledState({expandedKeys:v,flattenNodes:b},!0)},P.onNodeExpand=function(v,O){var b=P.state.expandedKeys,_=P.state.listChanging,d=P.props,f=d.onExpand,g=d.loadData,S=O.key,Z=O.expanded;if(_)return;var F=b.indexOf(S),le=!Z;if(Object(te.a)(Z&&F!==-1||!Z&&F===-1,"Expand state not sync with index check"),le?b=Object(ie.a)(b,S):b=Object(ie.b)(b,S),P.setExpandedKeys(b),f&&f(b,{node:O,expanded:le,nativeEvent:v.nativeEvent}),le&&g){var ke=P.onNodeLoad(O);ke&&ke.then(function(){var Ae=Object(I.d)(P.state.treeData,b);P.setUncontrolledState({flattenNodes:Ae})})}},P.onListChangeStart=function(){P.setUncontrolledState({listChanging:!0})},P.onListChangeEnd=function(){setTimeout(function(){P.setUncontrolledState({listChanging:!1})})},P.onActiveChange=function(v){var O=P.state.activeKey,b=P.props.onActiveChange;if(O===v)return;P.setState({activeKey:v}),v!==null&&P.scrollTo({key:v}),b&&b(v)},P.getActiveItem=function(){var v=P.state,O=v.activeKey,b=v.flattenNodes;return O===null?null:b.find(function(_){var d=_.data.key;return d===O})||null},P.offsetActiveKey=function(v){var O=P.state,b=O.flattenNodes,_=O.activeKey,d=b.findIndex(function(S){var Z=S.data.key;return Z===_});d===-1&&v<0&&(d=b.length),d=(d+v+b.length)%b.length;var f=b[d];if(f){var g=f.data.key;P.onActiveChange(g)}else P.onActiveChange(null)},P.onKeyDown=function(v){var O=P.state,b=O.activeKey,_=O.expandedKeys,d=O.checkedKeys,f=P.props,g=f.onKeyDown,S=f.checkable,Z=f.selectable;switch(v.which){case w.a.UP:{P.offsetActiveKey(-1),v.preventDefault();break}case w.a.DOWN:{P.offsetActiveKey(1),v.preventDefault();break}}var F=P.getActiveItem();if(F&&F.data){var le=P.getTreeNodeRequiredProps(),ke=F.data.isLeaf===!1||!!(F.data.children||[]).length,Ae=Object(I.b)(Object(Oe.a)(Object(Oe.a)({},Object(I.f)(b,le)),{},{data:F.data,active:!0}));switch(v.which){case w.a.LEFT:{ke&&_.includes(b)?P.onNodeExpand({},Ae):F.parent&&P.onActiveChange(F.parent.data.key),v.preventDefault();break}case w.a.RIGHT:{ke&&!_.includes(b)?P.onNodeExpand({},Ae):F.children&&F.children.length&&P.onActiveChange(F.children[0].data.key),v.preventDefault();break}case w.a.ENTER:case w.a.SPACE:{S&&!Ae.disabled&&Ae.checkable!==!1&&!Ae.disableCheckbox?P.onNodeCheck({},Ae,!d.includes(b)):!S&&Z&&!Ae.disabled&&Ae.selectable!==!1&&P.onNodeSelect({},Ae);break}}}g&&g(v)},P.setUncontrolledState=function(v){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(P.destroyed)return;var _=!1,d=!0,f={};Object.keys(v).forEach(function(g){if(g in P.props){d=!1;return}_=!0,f[g]=v[g]}),_&&(!O||d)&&P.setState(Object(Oe.a)(Object(Oe.a)({},f),b))},P.scrollTo=function(v){P.listRef.current.scrollTo(v)},P}return Object(Ee.a)(pe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var v,O=this.state,b=O.focused,_=O.flattenNodes,d=O.keyEntities,f=O.dragging,g=O.activeKey,S=this.props,Z=S.prefixCls,F=S.className,le=S.style,ke=S.showLine,Ae=S.focusable,Ie=S.tabIndex,Le=Ie===void 0?0:Ie,_e=S.selectable,Ge=S.showIcon,se=S.icon,Te=S.switcherIcon,Me=S.draggable,Pe=S.checkable,We=S.checkStrictly,Ue=S.disabled,be=S.motion,He=S.loadData,Be=S.filterTreeNode,we=S.height,je=S.itemHeight,A=S.virtual,M=S.titleRender,z=S.onContextMenu,m=Object(ie.f)(this.props);return D.createElement(De.a.Provider,{value:{prefixCls:Z,selectable:_e,showIcon:Ge,icon:se,switcherIcon:Te,draggable:Me,checkable:Pe,checkStrictly:We,disabled:Ue,keyEntities:d,loadData:He,filterTreeNode:Be,titleRender:M,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},D.createElement("div",{className:ve()(Z,F,(v={},Object(X.a)(v,"".concat(Z,"-show-line"),ke),Object(X.a)(v,"".concat(Z,"-focused"),b),Object(X.a)(v,"".concat(Z,"-active-focused"),g!==null),v))},D.createElement(u,Object.assign({ref:this.listRef,prefixCls:Z,style:le,data:_,disabled:Ue,selectable:_e,checkable:!!Pe,motion:be,dragging:f,height:we,itemHeight:je,virtual:A,focusable:Ae,focused:b,tabIndex:Le,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:z},this.getTreeNodeRequiredProps(),m))))}}],[{key:"getDerivedStateFromProps",value:function(v,O){var b=O.prevProps,_={prevProps:v};function d(se){return!b&&se in v||b&&b[se]!==v[se]}var f;if(d("treeData")?f=v.treeData:d("children")&&(Object(te.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=Object(I.c)(v.children)),f){_.treeData=f;var g=Object(I.a)(f);_.keyEntities=Object(Oe.a)(Object(X.a)({},V,re),g.keyEntities)}var S=_.keyEntities||O.keyEntities;if(d("expandedKeys")||b&&d("autoExpandParent"))_.expandedKeys=v.autoExpandParent||!b&&v.defaultExpandParent?Object(ie.e)(v.expandedKeys,S):v.expandedKeys;else if(!b&&v.defaultExpandAll){var Z=Object(Oe.a)({},S);delete Z[V],_.expandedKeys=Object.keys(Z).map(function(se){return Z[se].key})}else!b&&v.defaultExpandedKeys&&(_.expandedKeys=v.autoExpandParent||v.defaultExpandParent?Object(ie.e)(v.defaultExpandedKeys,S):v.defaultExpandedKeys);if(_.expandedKeys||delete _.expandedKeys,f||_.expandedKeys){var F=Object(I.d)(f||O.treeData,_.expandedKeys||O.expandedKeys);_.flattenNodes=F}if(v.selectable&&(d("selectedKeys")?_.selectedKeys=Object(ie.d)(v.selectedKeys,v):!b&&v.defaultSelectedKeys&&(_.selectedKeys=Object(ie.d)(v.defaultSelectedKeys,v))),v.checkable){var le;if(d("checkedKeys")?le=Object(ie.j)(v.checkedKeys)||{}:!b&&v.defaultCheckedKeys?le=Object(ie.j)(v.defaultCheckedKeys)||{}:f&&(le=Object(ie.j)(v.checkedKeys)||{checkedKeys:O.checkedKeys,halfCheckedKeys:O.halfCheckedKeys}),le){var ke=le,Ae=ke.checkedKeys,Ie=Ae===void 0?[]:Ae,Le=ke.halfCheckedKeys,_e=Le===void 0?[]:Le;if(!v.checkStrictly){var Ge=Object(s.a)(Ie,!0,S);Ie=Ge.checkedKeys,_e=Ge.halfCheckedKeys}_.checkedKeys=Ie,_.halfCheckedKeys=_e}}return d("loadedKeys")&&(_.loadedKeys=v.loadedKeys),_}}]),pe}(D.Component);x.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},x.TreeNode=Se.a;var R=x,q=Ve.b=R},gJ3r:function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return X});var X=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},h78n:function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return k});var X=p("cDcd"),Oe=p.n(X),xe=p("TSYQ"),Ne=p.n(xe),Ee={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},ce=function(K){var W=K.map(function(){return Object(X.useRef)()}),u=Object(X.useRef)();return Object(X.useEffect)(function(){var s=Date.now(),x=!1;Object.keys(W).forEach(function(R){var q=W[R].current;if(!q)return;x=!0;var ge=q.style;ge.transitionDuration=".3s, .3s, .3s, .06s",u.current&&s-u.current<100&&(ge.transitionDuration="0s, 0s")}),x&&(u.current=Date.now())}),[W]};function B(){return B=Object.assign||function(Y){for(var K=1;K<arguments.length;K++){var W=arguments[K];for(var u in W)Object.prototype.hasOwnProperty.call(W,u)&&(Y[u]=W[u])}return Y},B.apply(this,arguments)}function D(Y,K){return De(Y)||ve(Y,K)||te(Y,K)||w()}function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(Y,K){if(!Y)return;if(typeof Y=="string")return Q(Y,K);var W=Object.prototype.toString.call(Y).slice(8,-1);if(W==="Object"&&Y.constructor&&(W=Y.constructor.name),W==="Map"||W==="Set")return Array.from(Y);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return Q(Y,K)}function Q(Y,K){(K==null||K>Y.length)&&(K=Y.length);for(var W=0,u=new Array(K);W<K;W++)u[W]=Y[W];return u}function ve(Y,K){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Y)))return;var W=[],u=!0,s=!1,x=void 0;try{for(var R=Y[Symbol.iterator](),q;!(u=(q=R.next()).done)&&!(W.push(q.value),K&&W.length===K);u=!0);}catch(ge){s=!0,x=ge}finally{try{!u&&R.return!=null&&R.return()}finally{if(s)throw x}}return W}function De(Y){if(Array.isArray(Y))return Y}function ie(Y,K){if(Y==null)return{};var W=I(Y,K),u,s;if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(Y);for(s=0;s<x.length;s++){if(u=x[s],K.indexOf(u)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Y,u))continue;W[u]=Y[u]}}return W}function I(Y,K){if(Y==null)return{};var W={},u=Object.keys(Y),s,x;for(x=0;x<u.length;x++){if(s=u[x],K.indexOf(s)>=0)continue;W[s]=Y[s]}return W}var j=function(K){var W=K.className,u=K.percent,s=K.prefixCls,x=K.strokeColor,R=K.strokeLinecap,q=K.strokeWidth,ge=K.style,fe=K.trailColor,pe=K.trailWidth,P=K.transition,v=ie(K,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete v.gapPosition;var O=Array.isArray(u)?u:[u],b=Array.isArray(x)?x:[x],_=ce(O),d=D(_,1),f=d[0],g=q/2,S=100-q/2,Z="M ".concat(R==="round"?g:0,",").concat(g,`
L `).concat(R==="round"?S:100,",").concat(g),F="0 0 100 ".concat(q),le=0;return Oe.a.createElement("svg",B({className:Ne()("".concat(s,"-line"),W),viewBox:F,preserveAspectRatio:"none",style:ge},v),Oe.a.createElement("path",{className:"".concat(s,"-line-trail"),d:Z,strokeLinecap:R,stroke:fe,strokeWidth:pe||q,fillOpacity:"0"}),O.map(function(ke,Ae){var Ie={strokeDasharray:"".concat(ke,"px, 100px"),strokeDashoffset:"-".concat(le,"px"),transition:P||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Le=b[Ae]||b[b.length-1];return le+=ke,Oe.a.createElement("path",{key:Ae,className:"".concat(s,"-line-path"),d:Z,strokeLinecap:R,stroke:Le,strokeWidth:q,fillOpacity:"0",ref:f[Ae],style:Ie})}))};j.defaultProps=Ee;var H=j;function ae(){return ae=Object.assign||function(Y){for(var K=1;K<arguments.length;K++){var W=arguments[K];for(var u in W)Object.prototype.hasOwnProperty.call(W,u)&&(Y[u]=W[u])}return Y},ae.apply(this,arguments)}function ne(Y,K){return he(Y)||ee(Y,K)||Re(Y,K)||Se()}function Se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(Y,K){if(!Y)return;if(typeof Y=="string")return de(Y,K);var W=Object.prototype.toString.call(Y).slice(8,-1);if(W==="Object"&&Y.constructor&&(W=Y.constructor.name),W==="Map"||W==="Set")return Array.from(Y);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return de(Y,K)}function de(Y,K){(K==null||K>Y.length)&&(K=Y.length);for(var W=0,u=new Array(K);W<K;W++)u[W]=Y[W];return u}function ee(Y,K){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Y)))return;var W=[],u=!0,s=!1,x=void 0;try{for(var R=Y[Symbol.iterator](),q;!(u=(q=R.next()).done)&&!(W.push(q.value),K&&W.length===K);u=!0);}catch(ge){s=!0,x=ge}finally{try{!u&&R.return!=null&&R.return()}finally{if(s)throw x}}return W}function he(Y){if(Array.isArray(Y))return Y}function oe(Y,K){if(Y==null)return{};var W=L(Y,K),u,s;if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(Y);for(s=0;s<x.length;s++){if(u=x[s],K.indexOf(u)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Y,u))continue;W[u]=Y[u]}}return W}function L(Y,K){if(Y==null)return{};var W={},u=Object.keys(Y),s,x;for(x=0;x<u.length;x++){if(s=u[x],K.indexOf(s)>=0)continue;W[s]=Y[s]}return W}var J=0;function V(Y){return+Y.replace("%","")}function C(Y){return Array.isArray(Y)?Y:[Y]}function re(Y,K,W,u){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,x=arguments.length>5?arguments[5]:void 0,R=50-u/2,q=0,ge=-R,fe=0,pe=-2*R;switch(x){case"left":q=-R,ge=0,fe=2*R,pe=0;break;case"right":q=R,ge=0,fe=-2*R,pe=0;break;case"bottom":ge=R,pe=2*R;break;default:}var P="M 50,50 m ".concat(q,",").concat(ge,`
a `).concat(R,",").concat(R," 0 1 1 ").concat(fe,",").concat(-pe,`
a `).concat(R,",").concat(R," 0 1 1 ").concat(-fe,",").concat(pe),v=Math.PI*2*R,O={stroke:W,strokeDasharray:"".concat(K/100*(v-s),"px ").concat(v,"px"),strokeDashoffset:"-".concat(s/2+Y/100*(v-s),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:P,pathStyle:O}}var $=function(K){var W=K.prefixCls,u=K.strokeWidth,s=K.trailWidth,x=K.gapDegree,R=K.gapPosition,q=K.trailColor,ge=K.strokeLinecap,fe=K.style,pe=K.className,P=K.strokeColor,v=K.percent,O=oe(K,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),b=Object(X.useMemo)(function(){return J+=1,J},[]),_=re(0,100,q,u,x,R),d=_.pathString,f=_.pathStyle,g=C(v),S=C(P),Z=S.find(function(Ie){return Object.prototype.toString.call(Ie)==="[object Object]"}),F=ce(g),le=ne(F,1),ke=le[0],Ae=function(){var Le=0;return g.map(function(_e,Ge){var se=S[Ge]||S[S.length-1],Te=Object.prototype.toString.call(se)==="[object Object]"?"url(#".concat(W,"-gradient-").concat(b,")"):"",Me=re(Le,_e,se,u,x,R);return Le+=_e,Oe.a.createElement("path",{key:Ge,className:"".concat(W,"-circle-path"),d:Me.pathString,stroke:Te,strokeLinecap:ge,strokeWidth:u,opacity:_e===0?0:1,fillOpacity:"0",style:Me.pathStyle,ref:ke[Ge]})})};return Oe.a.createElement("svg",ae({className:Ne()("".concat(W,"-circle"),pe),viewBox:"0 0 100 100",style:fe},O),Z&&Oe.a.createElement("defs",null,Oe.a.createElement("linearGradient",{id:"".concat(W,"-gradient-").concat(b),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Z).sort(function(Ie,Le){return V(Ie)-V(Le)}).map(function(Ie,Le){return Oe.a.createElement("stop",{key:Le,offset:Ie,stopColor:Z[Ie]})}))),Oe.a.createElement("path",{className:"".concat(W,"-circle-trail"),d,stroke:q,strokeLinecap:ge,strokeWidth:s||u,fillOpacity:"0",style:f}),Ae().reverse())};$.defaultProps=Ee;var k=$,N={Line:H,Circle:k}},hxT0:function(ot,Ve,p){ot.exports={bg:"bg___2samk",flexRow:"flexRow___2Ocys",flexJustifyCenter:"flexJustifyCenter___14s6l",flexAlignEnd:"flexAlignEnd___1lHt8",flexAlignCenter:"flexAlignCenter___2PtCV",flexColumn:"flexColumn___2Ssa4",formWrap:"formWrap___3Fcg8",titleWrap:"titleWrap___3U2TN",fieldWrap:"fieldWrap___3K6pg",mdWrap:"mdWrap___3o_rf",backgroundFa:"backgroundFa___3dwFi",button:"button___1vOOT",cascaderWrap:"cascaderWrap___ETHsj",listItem:"listItem___C62yl",right:"right___1iif8",one:"one___2Qd4F",schoolHintWrap:"schoolHintWrap___34WkA",colorCDCDCD:"colorCDCDCD___HqcpR",color0152d9:"color0152d9___cQ4G4"}},kSUc:function(ot,Ve,p){},lZu9:function(ot,Ve,p){(function(X){X(p("VrN/"),p("1eCo"),p("8EBN"))})(function(X){"use strict";X.defineMode("markdown",function(Oe,xe){var Ne=X.getMode(Oe,"text/html"),Ee=Ne.name=="null";function ce(u){if(X.findModeByName){var s=X.findModeByName(u);s&&(u=s.mime||s.mimes[0])}var x=X.getMode(Oe,u);return x.name=="null"?null:x}xe.highlightFormatting===void 0&&(xe.highlightFormatting=!1),xe.maxBlockquoteDepth===void 0&&(xe.maxBlockquoteDepth=0),xe.taskLists===void 0&&(xe.taskLists=!1),xe.strikethrough===void 0&&(xe.strikethrough=!1),xe.emoji===void 0&&(xe.emoji=!1),xe.fencedCodeBlockHighlighting===void 0&&(xe.fencedCodeBlockHighlighting=!0),xe.fencedCodeBlockDefaultMode===void 0&&(xe.fencedCodeBlockDefaultMode="text/plain"),xe.xml===void 0&&(xe.xml=!0),xe.tokenTypeOverrides===void 0&&(xe.tokenTypeOverrides={});var B={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var D in B)B.hasOwnProperty(D)&&xe.tokenTypeOverrides[D]&&(B[D]=xe.tokenTypeOverrides[D]);var w=/^([*\-_])(?:\s*\1){2,}\s*$/,te=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Q=/^\[(x| )\](?=\s)/i,ve=xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,De=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ie=/^[^#!\[\]*_\\<>` "'(~:]+/,I=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,j=/^\s*\[[^\]]+?\]:.*$/,H=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,ae=" ";function ne(u,s,x){return s.f=s.inline=x,x(u,s)}function Se(u,s,x){return s.f=s.block=x,x(u,s)}function Re(u){return!u||!/\S/.test(u.string)}function de(u){if(u.linkTitle=!1,u.linkHref=!1,u.linkText=!1,u.em=!1,u.strong=!1,u.strikethrough=!1,u.quote=0,u.indentedCode=!1,u.f==he){var s=Ee;if(!s){var x=X.innerMode(Ne,u.htmlState);s=x.mode.name=="xml"&&x.state.tagStart===null&&!x.state.context&&x.state.tokenize.isInText}s&&(u.f=V,u.block=ee,u.htmlState=null)}return u.trailingSpace=0,u.trailingSpaceNewLine=!1,u.prevLine=u.thisLine,u.thisLine={stream:null},null}function ee(u,s){var x=u.column()===s.indentation,R=Re(s.prevLine.stream),q=s.indentedCode,ge=s.prevLine.hr,fe=s.list!==!1,pe=(s.listStack[s.listStack.length-1]||0)+3;s.indentedCode=!1;var P=s.indentation;if(s.indentationDiff===null&&(s.indentationDiff=s.indentation,fe)){for(s.list=null;P<s.listStack[s.listStack.length-1];)s.listStack.pop(),s.listStack.length?s.indentation=s.listStack[s.listStack.length-1]:s.list=!1;s.list!==!1&&(s.indentationDiff=P-s.listStack[s.listStack.length-1])}var v=!R&&!ge&&!s.prevLine.header&&(!fe||!q)&&!s.prevLine.fencedCodeEnd,O=(s.list===!1||ge||R)&&s.indentation<=pe&&u.match(w),b=null;if(s.indentationDiff>=4&&(q||s.prevLine.fencedCodeEnd||s.prevLine.header||R))return u.skipToEnd(),s.indentedCode=!0,B.code;if(u.eatSpace())return null;if(x&&s.indentation<=pe&&(b=u.match(ve))&&b[1].length<=6)return s.quote=0,s.header=b[1].length,s.thisLine.header=!0,xe.highlightFormatting&&(s.formatting="header"),s.f=s.inline,L(s);if(s.indentation<=pe&&u.eat(">"))return s.quote=x?1:s.quote+1,xe.highlightFormatting&&(s.formatting="quote"),u.eatSpace(),L(s);if(!O&&!s.setext&&x&&s.indentation<=pe&&(b=u.match(te))){var _=b[1]?"ol":"ul";return s.indentation=P+u.current().length,s.list=!0,s.quote=0,s.listStack.push(s.indentation),s.em=!1,s.strong=!1,s.code=!1,s.strikethrough=!1,xe.taskLists&&u.match(Q,!1)&&(s.taskList=!0),s.f=s.inline,xe.highlightFormatting&&(s.formatting=["list","list-"+_]),L(s)}else{if(x&&s.indentation<=pe&&(b=u.match(I,!0)))return s.quote=0,s.fencedEndRE=new RegExp(b[1]+"+ *$"),s.localMode=xe.fencedCodeBlockHighlighting&&ce(b[2]||xe.fencedCodeBlockDefaultMode),s.localMode&&(s.localState=X.startState(s.localMode)),s.f=s.block=oe,xe.highlightFormatting&&(s.formatting="code-block"),s.code=-1,L(s);if(s.setext||(!v||!fe)&&!s.quote&&s.list===!1&&!s.code&&!O&&!j.test(u.string)&&(b=u.lookAhead(1))&&(b=b.match(De)))return s.setext?(s.header=s.setext,s.setext=0,u.skipToEnd(),xe.highlightFormatting&&(s.formatting="header")):(s.header=b[0].charAt(0)=="="?1:2,s.setext=s.header),s.thisLine.header=!0,s.f=s.inline,L(s);if(O)return u.skipToEnd(),s.hr=!0,s.thisLine.hr=!0,B.hr;if(u.peek()==="[")return ne(u,s,N)}return ne(u,s,s.inline)}function he(u,s){var x=Ne.token(u,s.htmlState);if(!Ee){var R=X.innerMode(Ne,s.htmlState);(R.mode.name=="xml"&&R.state.tagStart===null&&!R.state.context&&R.state.tokenize.isInText||s.md_inside&&u.current().indexOf(">")>-1)&&(s.f=V,s.block=ee,s.htmlState=null)}return x}function oe(u,s){var x=s.listStack[s.listStack.length-1]||0,R=s.indentation<x,q=x+3;if(s.fencedEndRE&&s.indentation<=q&&(R||u.match(s.fencedEndRE))){xe.highlightFormatting&&(s.formatting="code-block");var ge;return R||(ge=L(s)),s.localMode=s.localState=null,s.block=ee,s.f=V,s.fencedEndRE=null,s.code=0,s.thisLine.fencedCodeEnd=!0,R?Se(u,s,s.block):ge}else return s.localMode?s.localMode.token(u,s.localState):(u.skipToEnd(),B.code)}function L(u){var s=[];if(u.formatting){s.push(B.formatting),typeof u.formatting=="string"&&(u.formatting=[u.formatting]);for(var x=0;x<u.formatting.length;x++)s.push(B.formatting+"-"+u.formatting[x]),u.formatting[x]==="header"&&s.push(B.formatting+"-"+u.formatting[x]+"-"+u.header),u.formatting[x]==="quote"&&(!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=u.quote?s.push(B.formatting+"-"+u.formatting[x]+"-"+u.quote):s.push("error"))}if(u.taskOpen)return s.push("meta"),s.length?s.join(" "):null;if(u.taskClosed)return s.push("property"),s.length?s.join(" "):null;if(u.linkHref?s.push(B.linkHref,"url"):(u.strong&&s.push(B.strong),u.em&&s.push(B.em),u.strikethrough&&s.push(B.strikethrough),u.emoji&&s.push(B.emoji),u.linkText&&s.push(B.linkText),u.code&&s.push(B.code),u.image&&s.push(B.image),u.imageAltText&&s.push(B.imageAltText,"link"),u.imageMarker&&s.push(B.imageMarker)),u.header&&s.push(B.header,B.header+"-"+u.header),u.quote&&(s.push(B.quote),!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=u.quote?s.push(B.quote+"-"+u.quote):s.push(B.quote+"-"+xe.maxBlockquoteDepth)),u.list!==!1){var R=(u.listStack.length-1)%3;R?R===1?s.push(B.list2):s.push(B.list3):s.push(B.list1)}return u.trailingSpaceNewLine?s.push("trailing-space-new-line"):u.trailingSpace&&s.push("trailing-space-"+(u.trailingSpace%2?"a":"b")),s.length?s.join(" "):null}function J(u,s){return u.match(ie,!0)?L(s):void 0}function V(u,s){var x=s.text(u,s);if(typeof x!="undefined")return x;if(s.list)return s.list=null,L(s);if(s.taskList){var R=u.match(Q,!0)[1]===" ";return R?s.taskOpen=!0:s.taskClosed=!0,xe.highlightFormatting&&(s.formatting="task"),s.taskList=!1,L(s)}if(s.taskOpen=!1,s.taskClosed=!1,s.header&&u.match(/^#+$/,!0))return xe.highlightFormatting&&(s.formatting="header"),L(s);var q=u.next();if(s.linkTitle){s.linkTitle=!1;var ge=q;q==="("&&(ge=")"),ge=(ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+ge+"\\\\]+|\\\\\\\\|\\\\.)"+ge;if(u.match(new RegExp(fe),!0))return B.linkHref}if(q==="`"){var pe=s.formatting;xe.highlightFormatting&&(s.formatting="code"),u.eatWhile("`");var P=u.current().length;if(s.code==0&&(!s.quote||P==1))return s.code=P,L(s);if(P==s.code){var v=L(s);return s.code=0,v}else return s.formatting=pe,L(s)}else if(s.code)return L(s);if(q==="\\"&&(u.next(),xe.highlightFormatting)){var O=L(s),b=B.formatting+"-escape";return O?O+" "+b:b}if(q==="!"&&u.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return s.imageMarker=!0,s.image=!0,xe.highlightFormatting&&(s.formatting="image"),L(s);if(q==="["&&s.imageMarker&&u.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return s.imageMarker=!1,s.imageAltText=!0,xe.highlightFormatting&&(s.formatting="image"),L(s);if(q==="]"&&s.imageAltText){xe.highlightFormatting&&(s.formatting="image");var O=L(s);return s.imageAltText=!1,s.image=!1,s.inline=s.f=re,O}if(q==="["&&!s.image)return s.linkText&&u.match(/^.*?\]/)||(s.linkText=!0,xe.highlightFormatting&&(s.formatting="link")),L(s);if(q==="]"&&s.linkText){xe.highlightFormatting&&(s.formatting="link");var O=L(s);return s.linkText=!1,s.inline=s.f=u.match(/\(.*?\)| ?\[.*?\]/,!1)?re:V,O}if(q==="<"&&u.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){s.f=s.inline=C,xe.highlightFormatting&&(s.formatting="link");var O=L(s);return O?O+=" ":O="",O+B.linkInline}if(q==="<"&&u.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){s.f=s.inline=C,xe.highlightFormatting&&(s.formatting="link");var O=L(s);return O?O+=" ":O="",O+B.linkEmail}if(xe.xml&&q==="<"&&u.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var _=u.string.indexOf(">",u.pos);if(_!=-1){var d=u.string.substring(u.start,_);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(d)&&(s.md_inside=!0)}return u.backUp(1),s.htmlState=X.startState(Ne),Se(u,s,he)}if(xe.xml&&q==="<"&&u.match(/^\/\w*?>/))return s.md_inside=!1,"tag";if(q==="*"||q==="_"){for(var f=1,g=u.pos==1?" ":u.string.charAt(u.pos-2);f<3&&u.eat(q);)f++;var S=u.peek()||" ",Z=!/\s/.test(S)&&(!H.test(S)||/\s/.test(g)||H.test(g)),F=!/\s/.test(g)&&(!H.test(g)||/\s/.test(S)||H.test(S)),le=null,ke=null;if(f%2&&(!s.em&&Z&&(q==="*"||!F||H.test(g))?le=!0:s.em==q&&F&&(q==="*"||!Z||H.test(S))&&(le=!1)),f>1&&(!s.strong&&Z&&(q==="*"||!F||H.test(g))?ke=!0:s.strong==q&&F&&(q==="*"||!Z||H.test(S))&&(ke=!1)),ke!=null||le!=null){xe.highlightFormatting&&(s.formatting=le==null?"strong":ke==null?"em":"strong em"),le===!0&&(s.em=q),ke===!0&&(s.strong=q);var v=L(s);return le===!1&&(s.em=!1),ke===!1&&(s.strong=!1),v}}else if(q===" "&&(u.eat("*")||u.eat("_"))){if(u.peek()===" ")return L(s);u.backUp(1)}if(xe.strikethrough){if(q==="~"&&u.eatWhile(q)){if(s.strikethrough){xe.highlightFormatting&&(s.formatting="strikethrough");var v=L(s);return s.strikethrough=!1,v}else if(u.match(/^[^\s]/,!1))return s.strikethrough=!0,xe.highlightFormatting&&(s.formatting="strikethrough"),L(s)}else if(q===" "&&u.match(/^~~/,!0)){if(u.peek()===" ")return L(s);u.backUp(2)}}if(xe.emoji&&q===":"&&u.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){s.emoji=!0,xe.highlightFormatting&&(s.formatting="emoji");var Ae=L(s);return s.emoji=!1,Ae}return q===" "&&(u.match(/^ +$/,!1)?s.trailingSpace++:s.trailingSpace&&(s.trailingSpaceNewLine=!0)),L(s)}function C(u,s){var x=u.next();if(x===">"){s.f=s.inline=V,xe.highlightFormatting&&(s.formatting="link");var R=L(s);return R?R+=" ":R="",R+B.linkInline}return u.match(/^[^>]+/,!0),B.linkInline}function re(u,s){if(u.eatSpace())return null;var x=u.next();return x==="("||x==="["?(s.f=s.inline=k(x==="("?")":"]"),xe.highlightFormatting&&(s.formatting="link-string"),s.linkHref=!0,L(s)):"error"}var $={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function k(u){return function(s,x){var R=s.next();if(R===u){x.f=x.inline=V,xe.highlightFormatting&&(x.formatting="link-string");var q=L(x);return x.linkHref=!1,q}return s.match($[u]),x.linkHref=!0,L(x)}}function N(u,s){return u.match(/^([^\]\\]|\\.)*\]:/,!1)?(s.f=Y,u.next(),xe.highlightFormatting&&(s.formatting="link"),s.linkText=!0,L(s)):ne(u,s,V)}function Y(u,s){if(u.match(/^\]:/,!0)){s.f=s.inline=K,xe.highlightFormatting&&(s.formatting="link");var x=L(s);return s.linkText=!1,x}return u.match(/^([^\]\\]|\\.)+/,!0),B.linkText}function K(u,s){return u.eatSpace()?null:(u.match(/^[^\s]+/,!0),u.peek()===void 0?s.linkTitle=!0:u.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),s.f=s.inline=V,B.linkHref+" url")}var W={startState:function(){return{f:ee,prevLine:{stream:null},thisLine:{stream:null},block:ee,htmlState:null,indentation:0,inline:V,text:J,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(u){return{f:u.f,prevLine:u.prevLine,thisLine:u.thisLine,block:u.block,htmlState:u.htmlState&&X.copyState(Ne,u.htmlState),indentation:u.indentation,localMode:u.localMode,localState:u.localMode?X.copyState(u.localMode,u.localState):null,inline:u.inline,text:u.text,formatting:!1,linkText:u.linkText,linkTitle:u.linkTitle,linkHref:u.linkHref,code:u.code,em:u.em,strong:u.strong,strikethrough:u.strikethrough,emoji:u.emoji,header:u.header,setext:u.setext,hr:u.hr,taskList:u.taskList,list:u.list,listStack:u.listStack.slice(0),quote:u.quote,indentedCode:u.indentedCode,trailingSpace:u.trailingSpace,trailingSpaceNewLine:u.trailingSpaceNewLine,md_inside:u.md_inside,fencedEndRE:u.fencedEndRE}},token:function(u,s){if(s.formatting=!1,u!=s.thisLine.stream){if(s.header=0,s.hr=!1,u.match(/^\s*$/,!0))return de(s),null;if(s.prevLine=s.thisLine,s.thisLine={stream:u},s.taskList=!1,s.trailingSpace=0,s.trailingSpaceNewLine=!1,!s.localState&&(s.f=s.block,s.f!=he)){var x=u.match(/^\s*/,!0)[0].replace(/\t/g,ae).length;if(s.indentation=x,s.indentationDiff=null,x>0)return null}}return s.f(u,s)},innerMode:function(u){return u.block==he?{state:u.htmlState,mode:Ne}:u.localState?{state:u.localState,mode:u.localMode}:{state:u,mode:W}},indent:function(u,s,x){return u.block==he&&Ne.indent?Ne.indent(u.htmlState,s,x):u.localState&&u.localMode.indent?u.localMode.indent(u.localState,s,x):X.Pass},blankLine:de,getType:L,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return W},"xml"),X.defineMIME("text/markdown","markdown"),X.defineMIME("text/x-markdown","markdown")})},osHv:function(ot,Ve,p){(function(X){X(p("VrN/"))})(function(X){"use strict";var Oe=X.Pos;function xe(H,ae){return H.line-ae.line||H.ch-ae.ch}var Ne="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ee=Ne+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ce=new RegExp("<(/?)(["+Ne+"]["+Ee+"]*)","g");function B(H,ae,ne,Se){this.line=ae,this.ch=ne,this.cm=H,this.text=H.getLine(ae),this.min=Se?Math.max(Se.from,H.firstLine()):H.firstLine(),this.max=Se?Math.min(Se.to-1,H.lastLine()):H.lastLine()}function D(H,ae){var ne=H.cm.getTokenTypeAt(Oe(H.line,ae));return ne&&/\btag\b/.test(ne)}function w(H){return H.line>=H.max?void 0:(H.ch=0,H.text=H.cm.getLine(++H.line),!0)}function te(H){return H.line<=H.min?void 0:(H.text=H.cm.getLine(--H.line),H.ch=H.text.length,!0)}function Q(H){for(;;){var ae=H.text.indexOf(">",H.ch);if(ae==-1){if(w(H))continue;return}if(!D(H,ae+1)){H.ch=ae+1;continue}var ne=H.text.lastIndexOf("/",ae),Se=ne>-1&&!/\S/.test(H.text.slice(ne+1,ae));return H.ch=ae+1,Se?"selfClose":"regular"}}function ve(H){for(;;){var ae=H.ch?H.text.lastIndexOf("<",H.ch-1):-1;if(ae==-1){if(te(H))continue;return}if(!D(H,ae+1)){H.ch=ae;continue}ce.lastIndex=ae,H.ch=ae;var ne=ce.exec(H.text);if(ne&&ne.index==ae)return ne}}function De(H){for(;;){ce.lastIndex=H.ch;var ae=ce.exec(H.text);if(!ae){if(w(H))continue;return}if(!D(H,ae.index+1)){H.ch=ae.index+1;continue}return H.ch=ae.index+ae[0].length,ae}}function ie(H){for(;;){var ae=H.ch?H.text.lastIndexOf(">",H.ch-1):-1;if(ae==-1){if(te(H))continue;return}if(!D(H,ae+1)){H.ch=ae;continue}var ne=H.text.lastIndexOf("/",ae),Se=ne>-1&&!/\S/.test(H.text.slice(ne+1,ae));return H.ch=ae+1,Se?"selfClose":"regular"}}function I(H,ae){for(var ne=[];;){var Se=De(H),Re,de=H.line,ee=H.ch-(Se?Se[0].length:0);if(!Se||!(Re=Q(H)))return;if(Re=="selfClose")continue;if(Se[1]){for(var he=ne.length-1;he>=0;--he)if(ne[he]==Se[2]){ne.length=he;break}if(he<0&&(!ae||ae==Se[2]))return{tag:Se[2],from:Oe(de,ee),to:Oe(H.line,H.ch)}}else ne.push(Se[2])}}function j(H,ae){for(var ne=[];;){var Se=ie(H);if(!Se)return;if(Se=="selfClose"){ve(H);continue}var Re=H.line,de=H.ch,ee=ve(H);if(!ee)return;if(ee[1])ne.push(ee[2]);else{for(var he=ne.length-1;he>=0;--he)if(ne[he]==ee[2]){ne.length=he;break}if(he<0&&(!ae||ae==ee[2]))return{tag:ee[2],from:Oe(H.line,H.ch),to:Oe(Re,de)}}}}X.registerHelper("fold","xml",function(H,ae){for(var ne=new B(H,ae.line,0);;){var Se=De(ne);if(!Se||ne.line!=ae.line)return;var Re=Q(ne);if(!Re)return;if(!Se[1]&&Re!="selfClose"){var de=Oe(ne.line,ne.ch),ee=I(ne,Se[2]);return ee&&xe(ee.from,de)>0?{from:de,to:ee.from}:null}}}),X.findMatchingTag=function(H,ae,ne){var Se=new B(H,ae.line,ae.ch,ne);if(Se.text.indexOf(">")==-1&&Se.text.indexOf("<")==-1)return;var Re=Q(Se),de=Re&&Oe(Se.line,Se.ch),ee=Re&&ve(Se);if(!Re||!ee||xe(Se,ae)>0)return;var he={from:Oe(Se.line,Se.ch),to:de,tag:ee[2]};return Re=="selfClose"?{open:he,close:null,at:"open"}:ee[1]?{open:j(Se,ee[2]),close:he,at:"close"}:(Se=new B(H,de.line,de.ch,ne),{open:he,close:I(Se,ee[2]),at:"open"})},X.findEnclosingTag=function(H,ae,ne,Se){for(var Re=new B(H,ae.line,ae.ch,ne);;){var de=j(Re,Se);if(!de)break;var ee=new B(H,ae.line,ae.ch,ne),he=I(ee,de.tag);if(he)return{open:de,close:he}}},X.scanForClosingTag=function(H,ae,ne,Se){var Re=new B(H,ae.line,ae.ch,Se?{from:0,to:Se}:null);return I(Re,ne)}})},p5ED:function(ot,Ve,p){"use strict";var X=p("+L6B"),Oe=p("2/Rp"),xe=p("5Dmo"),Ne=p("3S7+"),Ee=p("k1fw"),ce=p("tJVT"),B=p("cDcd"),D=p.n(B),w=p("vHTk"),te=p.n(w),Q=p("yEEn"),ve=p("ZW9T"),De=p("1vsH");Ve.a=function(ie){var I=ie.name,j=ie.data,H=ie.theme,ae=ie.type,ne=ie.filename,Se=ie.monacoEditor,Re=ie.className,de=ie.style,ee=ie.close,he=ie.onClose,oe=ie.hasMask,L=Object(B.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),J=Object(ce.a)(L,2),V=J[0],C=J[1],re=Object(B.useState)(""),$=Object(ce.a)(re,2),k=$[0],N=$[1],Y=Object(B.useRef)();ne&&(Se.filename=ne),Object(B.useEffect)(function(){var u,s,x=(u=document.cookie)===null||u===void 0||((s=u.replace(/\s/g,""))===null||s===void 0)?void 0:s.split(";");x==null||x.map(function(R){var q=R.split("=");q[0]==="_educoder_session"&&N(q[1])})},[]);var K=function(){if(j.startsWith("http")||j.startsWith("/")){W();return}Object(De.x)(ne||"educoder",j,ne)},W=function(){Object(De.v)(ne||I,j)};return console.log("data:",j,"fileanme:",ne," name:",I),D.a.createElement("div",{style:Object(Ee.a)({},de||{}),className:"".concat(oe&&te.a.bgBlack," ").concat(ae?te.a.wrp:"hide")},ee&&D.a.createElement("div",{className:te.a.close,ref:Y},D.a.createElement(Ne.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Y.current}},D.a.createElement("span",{onClick:W},D.a.createElement("i",{className:"icon-quxiaozhiding"}))),D.a.createElement(Ne.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Y.current}},D.a.createElement("span",{className:"",onClick:he},D.a.createElement("i",{className:"icon-guanbi1"})))),D.a.createElement("div",{className:"".concat(te.a[Re]," ").concat(Re," ").concat(te.a.monaco," ").concat(ae==="txt"?"show":"hide")},ae==="txt"&&D.a.createElement(ve.b,Se)),ae==="audio"&&D.a.createElement("audio",{src:"".concat(j!=null&&j.startsWith("/")||(j==null?void 0:j.indexOf("https://"))>-1?j:"data:audio/mp3;base64,").concat(j),autoPlay:!0}),ae==="video"&&D.a.createElement(D.a.Fragment,null,j!=null&&j.startsWith("/")?D.a.createElement("video",{controls:!0,src:"".concat(j),autoPlay:!0}):D.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(j),autoPlay:!0})),ae==="pdf"&&D.a.createElement("embed",{className:te.a.embed,src:j}),ae==="image"&&D.a.createElement(D.a.Fragment,null,D.a.createElement("img",{src:"".concat(j!=null&&j.startsWith("/")||(j==null?void 0:j.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(j)})),ae==="other"&&D.a.createElement("div",null,D.a.createElement(Oe.a,{type:"primary",size:"large",onClick:K},D.a.createElement(Q.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(ae==="download"||ae==="office")&&D.a.createElement(Oe.a,{type:"primary",size:"large",onClick:K},D.a.createElement(Q.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(ot,Ve,p){},"rAM+":function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return Oe});var X=p("Qw5x");function Oe(xe,Ne){var Ee;if(typeof Symbol=="undefined"||xe[Symbol.iterator]==null){if(Array.isArray(xe)||(Ee=Object(X.a)(xe))||Ne&&xe&&typeof xe.length=="number"){Ee&&(xe=Ee);var ce=0,B=function(){};return{s:B,n:function(){return ce>=xe.length?{done:!0}:{done:!1,value:xe[ce++]}},e:function(ve){throw ve},f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D=!0,w=!1,te;return{s:function(){Ee=xe[Symbol.iterator]()},n:function(){var ve=Ee.next();return D=ve.done,ve},e:function(ve){w=!0,te=ve},f:function(){try{!D&&Ee.return!=null&&Ee.return()}finally{if(w)throw te}}}}},rUJ1:function(ot,Ve){const p=/[&<>"']/,X=/[&<>"']/g,Oe=/[<>"']|&(?!#?\w+;)/,xe=/[<>"']|&(?!#?\w+;)/g,Ne={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ee=oe=>Ne[oe];function ce(oe,L){if(L){if(p.test(oe))return oe.replace(X,Ee)}else if(Oe.test(oe))return oe.replace(xe,Ee);return oe}const B=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function D(oe){return oe.replace(B,(L,J)=>(J=J.toLowerCase(),J==="colon"?":":J.charAt(0)==="#"?J.charAt(1)==="x"?String.fromCharCode(parseInt(J.substring(2),16)):String.fromCharCode(+J.substring(1)):""))}const w=/(^|[^\[])\^/g;function te(oe,L){oe=oe.source||oe,L=L||"";const J={replace:(V,C)=>(C=C.source||C,C=C.replace(w,"$1"),oe=oe.replace(V,C),J),getRegex:()=>new RegExp(oe,L)};return J}const Q=/[^\w:]/g,ve=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function De(oe,L,J){if(oe){let V;try{V=decodeURIComponent(D(J)).replace(Q,"").toLowerCase()}catch(C){return null}if(V.indexOf("javascript:")===0||V.indexOf("vbscript:")===0||V.indexOf("data:")===0)return null}L&&!ve.test(J)&&(J=ae(L,J));try{J=encodeURI(J).replace(/%25/g,"%")}catch(V){return null}return J}const ie={},I=/^[^:]+:\/*[^/]*$/,j=/^([^:]+:)[\s\S]*$/,H=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ae(oe,L){ie[" "+oe]||(I.test(oe)?ie[" "+oe]=oe+"/":ie[" "+oe]=de(oe,"/",!0)),oe=ie[" "+oe];const J=oe.indexOf(":")===-1;return L.substring(0,2)==="//"?J?L:oe.replace(j,"$1")+L:L.charAt(0)==="/"?J?L:oe.replace(H,"$1")+L:oe+L}const ne={exec:function(){}};function Se(oe){let L=1,J,V;for(;L<arguments.length;L++){J=arguments[L];for(V in J)Object.prototype.hasOwnProperty.call(J,V)&&(oe[V]=J[V])}return oe}function Re(oe,L){const J=oe.replace(/\|/g,(re,$,k)=>{let N=!1,Y=$;for(;--Y>=0&&k[Y]==="\\";)N=!N;return N?"|":" |"}),V=J.split(/ \|/);let C=0;if(V.length>L)V.splice(L);else for(;V.length<L;)V.push("");for(;C<V.length;C++)V[C]=V[C].trim().replace(/\\\|/g,"|");return V}function de(oe,L,J){const V=oe.length;if(V===0)return"";let C=0;for(;C<V;){const re=oe.charAt(V-C-1);if(re===L&&!J)C++;else if(re!==L&&J)C++;else break}return oe.substr(0,V-C)}function ee(oe,L){if(oe.indexOf(L[1])===-1)return-1;const J=oe.length;let V=0,C=0;for(;C<J;C++)if(oe[C]==="\\")C++;else if(oe[C]===L[0])V++;else if(oe[C]===L[1]&&(V--,V<0))return C;return-1}function he(oe){oe&&oe.sanitize&&!oe.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}ot.exports={escape:ce,unescape:D,edit:te,cleanUrl:De,resolveUrl:ae,noopTest:ne,merge:Se,splitCells:Re,rtrim:de,findClosingBracket:ee,checkSanitizeDeprecation:he}},sboe:function(ot,Ve,p){"use strict";p.d(Ve,"a",function(){return xe});var X=p("cDcd"),Oe=p.n(X),xe=X.createContext(null)},uK0f:function(ot,Ve,p){(function(X,Oe){ot.exports=Oe()})(this,function(){"use strict";function X(Oe,xe,Ne){Ne=Ne||{},Ne.childrenKeyName=Ne.childrenKeyName||"children";var Ee=Oe||[],ce=[],B=0;do{var D=Ee.filter(function(w){return xe(w,B)})[0];if(!D)break;ce.push(D),Ee=D[Ne.childrenKeyName]||[],B+=1}while(Ee.length>0);return ce}return X})},vHTk:function(ot,Ve,p){ot.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}}}]);