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.
123 lines
510 KiB
123 lines
510 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[179,6,7,16],{"+NIl":function(ct,Ge,v){(function(X){X(v("VrN/"))})(function(X){"use strict";X.defineMode("stex",function(Oe,xe){"use strict";function je(le,U){le.cmdState.push(U)}function Ce(le){return le.cmdState.length>0?le.cmdState[le.cmdState.length-1]:null}function ie(le){var U=le.cmdState.pop();U&&U.closeBracket()}function B(le){for(var U=le.cmdState,M=U.length-1;M>=0;M--){var z=U[M];if(z.name=="DEFAULT")continue;return z}return{styleIdentifier:function(){return null}}}function A(le,U,M){return function(){this.name=le,this.bracketNo=0,this.style=U,this.styles=M,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var k={};k.importmodule=A("importmodule","tag",["string","builtin"]),k.documentclass=A("documentclass","tag",["","atom"]),k.usepackage=A("usepackage","tag",["atom"]),k.begin=A("begin","tag",["atom"]),k.end=A("end","tag",["atom"]),k.label=A("label","tag",["atom"]),k.ref=A("ref","tag",["atom"]),k.eqref=A("eqref","tag",["atom"]),k.cite=A("cite","tag",["atom"]),k.bibitem=A("bibitem","tag",["atom"]),k.Bibitem=A("Bibitem","tag",["atom"]),k.RBibitem=A("RBibitem","tag",["atom"]),k.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ne(le,U){le.f=U}function q(le,U){var M;if(le.match(/^\\[a-zA-Z@]+/)){var z=le.current().slice(1);return M=k.hasOwnProperty(z)?k[z]:k.DEFAULT,M=new M,je(U,M),ne(U,Ae),M.style}if(le.match(/^\\[$&%#{}_]/))return"tag";if(le.match(/^\\[,;!\/\\]/))return"tag";if(le.match("\\["))return ne(U,function(ae,we){return me(ae,we,"\\]")}),"keyword";if(le.match("\\("))return ne(U,function(ae,we){return me(ae,we,"\\)")}),"keyword";if(le.match("$$"))return ne(U,function(ae,we){return me(ae,we,"$$")}),"keyword";if(le.match("$"))return ne(U,function(ae,we){return me(ae,we,"$")}),"keyword";var re=le.next();if(re=="%")return le.skipToEnd(),"comment";if(re=="}"||re=="]"){if(M=Ce(U),M)M.closeBracket(re),ne(U,Ae);else return"error";return"bracket"}else return re=="{"||re=="["?(M=k.DEFAULT,M=new M,je(U,M),"bracket"):/\d/.test(re)?(le.eatWhile(/[\w.%]/),"atom"):(le.eatWhile(/[\w\-_]/),M=B(U),M.name=="begin"&&(M.argument=le.current()),M.styleIdentifier())}function me(le,U,M){if(le.eatSpace())return null;if(M&&le.match(M))return ne(U,q),"keyword";if(le.match(/^\\[a-zA-Z@]+/))return"tag";if(le.match(/^[a-zA-Z]+/))return"variable-2";if(le.match(/^\\[$&%#{}_]/))return"tag";if(le.match(/^\\[,;!\/]/))return"tag";if(le.match(/^[\^_&]/))return"tag";if(le.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(le.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var z=le.next();return z=="{"||z=="}"||z=="["||z=="]"||z=="("||z==")"?"bracket":z=="%"?(le.skipToEnd(),"comment"):"error"}function Ae(le,U){var M=le.peek(),z;return M=="{"||M=="["?(z=Ce(U),z.openBracket(M),le.eat(M),ne(U,q),"bracket"):/[ \t\r]/.test(M)?(le.eat(M),null):(ne(U,q),ie(U),q(le,U))}return{startState:function(){var le=xe.inMathMode?function(U,M){return me(U,M)}:q;return{cmdState:[],f:le}},copyState:function(le){return{cmdState:le.cmdState.slice(),f:le.f}},token:function(le,U){return U.f(le,U)},blankLine:function(le){le.f=q,le.cmdState.length=0},lineComment:"%"}}),X.defineMIME("text/x-stex","stex"),X.defineMIME("text/x-latex","stex")})},"19Vz":function(ct,Ge,v){(function(X){X(v("VrN/"))})(function(X){X.defineOption("placeholder","",function(A,k,ne){var q=ne&&ne!=X.Init;if(k&&!q)A.on("blur",Ce),A.on("change",ie),A.on("swapDoc",ie),X.on(A.getInputField(),"compositionupdate",A.state.placeholderCompose=function(){je(A)}),ie(A);else if(!k&&q){A.off("blur",Ce),A.off("change",ie),A.off("swapDoc",ie),X.off(A.getInputField(),"compositionupdate",A.state.placeholderCompose),Oe(A);var me=A.getWrapperElement();me.className=me.className.replace(" CodeMirror-empty","")}k&&!A.hasFocus()&&Ce(A)});function Oe(A){A.state.placeholder&&(A.state.placeholder.parentNode.removeChild(A.state.placeholder),A.state.placeholder=null)}function xe(A){Oe(A);var k=A.state.placeholder=document.createElement("pre");k.style.cssText="height: 0; overflow: visible",k.style.direction=A.getOption("direction"),k.className="CodeMirror-placeholder CodeMirror-line-like";var ne=A.getOption("placeholder");typeof ne=="string"&&(ne=document.createTextNode(ne)),k.appendChild(ne),A.display.lineSpace.insertBefore(k,A.display.lineSpace.firstChild)}function je(A){setTimeout(function(){var k=!1,ne=A.getInputField();ne.nodeName=="TEXTAREA"?k=!ne.value:A.lineCount()==1&&(k=!/[^\u200b]/.test(ne.querySelector(".CodeMirror-line").textContent)),k?xe(A):Oe(A)},20)}function Ce(A){B(A)&&xe(A)}function ie(A){var k=A.getWrapperElement(),ne=B(A);k.className=k.className.replace(" CodeMirror-empty","")+(ne?" CodeMirror-empty":""),ne?xe(A):Oe(A)}function B(A){return A.lineCount()===1&&A.getLine(0)===""}})},"1eCo":function(ct,Ge,v){(function(X){X(v("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(je,Ce){var ie=je.indentUnit,B={},A=Ce.htmlMode?Oe:xe;for(var k in A)B[k]=A[k];for(var k in Ce)B[k]=Ce[k];var ne,q;function me(w,oe){function V(J){return oe.tokenize=J,J(w,oe)}var S=w.next();if(S=="<")return w.eat("!")?w.eat("[")?w.match("CDATA[")?V(U("atom","]]>")):null:w.match("--")?V(U("comment","-->")):w.match("DOCTYPE",!0,!0)?(w.eatWhile(/[\w\._\-]/),V(M(1))):null:w.eat("?")?(w.eatWhile(/[\w\._\-]/),oe.tokenize=U("meta","?>"),"meta"):(ne=w.eat("/")?"closeTag":"openTag",oe.tokenize=Ae,"tag bracket");if(S=="&"){var N;return w.eat("#")?w.eat("x")?N=w.eatWhile(/[a-fA-F\d]/)&&w.eat(";"):N=w.eatWhile(/[\d]/)&&w.eat(";"):N=w.eatWhile(/[\w\.\-:]/)&&w.eat(";"),N?"atom":"error"}else return w.eatWhile(/[^&<]/),null}me.isInText=!0;function Ae(w,oe){var V=w.next();if(V==">"||V=="/"&&w.eat(">"))return oe.tokenize=me,ne=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return ne="equals",null;if(V=="<"){oe.tokenize=me,oe.state=we,oe.tagName=oe.tagStart=null;var S=oe.tokenize(w,oe);return S?S+" tag error":"tag error"}else return/[\'\"]/.test(V)?(oe.tokenize=le(V),oe.stringStartCol=w.column(),oe.tokenize(w,oe)):(w.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function le(w){var oe=function(V,S){for(;!V.eol();)if(V.next()==w){S.tokenize=Ae;break}return"string"};return oe.isInAttribute=!0,oe}function U(w,oe){return function(V,S){for(;!V.eol();){if(V.match(oe)){S.tokenize=me;break}V.next()}return w}}function M(w){return function(oe,V){for(var S;(S=oe.next())!=null;){if(S=="<")return V.tokenize=M(w+1),V.tokenize(oe,V);if(S==">")if(w==1){V.tokenize=me;break}else return V.tokenize=M(w-1),V.tokenize(oe,V)}return"meta"}}function z(w,oe,V){this.prev=w.context,this.tagName=oe,this.indent=w.indented,this.startOfLine=V,(B.doNotIndent.hasOwnProperty(oe)||w.context&&w.context.noIndent)&&(this.noIndent=!0)}function re(w){w.context&&(w.context=w.context.prev)}function ae(w,oe){for(var V;;){if(!w.context)return;if(V=w.context.tagName,!B.contextGrabbers.hasOwnProperty(V)||!B.contextGrabbers[V].hasOwnProperty(oe))return;re(w)}}function we(w,oe,V){return w=="openTag"?(V.tagStart=oe.column(),Ne):w=="closeTag"?fe:we}function Ne(w,oe,V){return w=="word"?(V.tagName=oe.current(),q="tag",se):B.allowMissingTagName&&w=="endTag"?(q="tag bracket",se(w,oe,V)):(q="error",Ne)}function fe(w,oe,V){if(w=="word"){var S=oe.current();return V.context&&V.context.tagName!=S&&B.implicitlyClosed.hasOwnProperty(V.context.tagName)&&re(V),V.context&&V.context.tagName==S||B.matchClosing===!1?(q="tag",Z):(q="tag error",he)}else return B.allowMissingTagName&&w=="endTag"?(q="tag bracket",Z(w,oe,V)):(q="error",he)}function Z(w,oe,V){return w!="endTag"?(q="error",Z):(re(V),we)}function he(w,oe,V){return q="error",Z(w,oe,V)}function se(w,oe,V){if(w=="word")return q="attribute",_;if(w=="endTag"||w=="selfcloseTag"){var S=V.tagName,N=V.tagStart;return V.tagName=V.tagStart=null,w=="selfcloseTag"||B.autoSelfClosers.hasOwnProperty(S)?ae(V,S):(ae(V,S),V.context=new z(V,S,N==V.indented)),we}return q="error",se}function _(w,oe,V){return w=="equals"?Q:(B.allowMissing||(q="error"),se(w,oe,V))}function Q(w,oe,V){return w=="string"?P:w=="word"&&B.allowUnquoted?(q="string",se):(q="error",se(w,oe,V))}function P(w,oe,V){return w=="string"?P:se(w,oe,V)}return{startState:function(w){var oe={tokenize:me,state:we,indented:w||0,tagName:null,tagStart:null,context:null};return w!=null&&(oe.baseIndent=w),oe},token:function(w,oe){if(!oe.tagName&&w.sol()&&(oe.indented=w.indentation()),w.eatSpace())return null;ne=null;var V=oe.tokenize(w,oe);return(V||ne)&&V!="comment"&&(q=null,oe.state=oe.state(ne||V,w,oe),q&&(V=q=="error"?V+" error":q)),V},indent:function(w,oe,V){var S=w.context;if(w.tokenize.isInAttribute)return w.tagStart==w.indented?w.stringStartCol+1:w.indented+ie;if(S&&S.noIndent)return X.Pass;if(w.tokenize!=Ae&&w.tokenize!=me)return V?V.match(/^(\s*)/)[0].length:0;if(w.tagName)return B.multilineTagIndentPastTag!==!1?w.tagStart+w.tagName.length+2:w.tagStart+ie*(B.multilineTagIndentFactor||1);if(B.alignCDATA&&/<!\[CDATA\[/.test(oe))return 0;var N=oe&&/^<(\/)?([\w_:\.-]*)/.exec(oe);if(N&&N[1])for(;S;)if(S.tagName==N[2]){S=S.prev;break}else if(B.implicitlyClosed.hasOwnProperty(S.tagName))S=S.prev;else break;else if(N)for(;S;){var J=B.contextGrabbers[S.tagName];if(J&&J.hasOwnProperty(N[2]))S=S.prev;else break}for(;S&&S.prev&&!S.startOfLine;)S=S.prev;return S?S.indent+ie:w.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:B.htmlMode?"html":"xml",helperType:B.htmlMode?"html":"xml",skipAttribute:function(w){w.state==Q&&(w.state=se)},xmlCurrentTag:function(w){return w.tagName?{name:w.tagName,close:w.type=="closeTag"}:null},xmlCurrentContext:function(w){for(var oe=[],V=w.context;V;V=V.prev)V.tagName&&oe.push(V.tagName);return oe.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(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return Ne});var X=v("k1fw"),Oe=v("0Owb"),xe=v("+L6B"),je=v("2/Rp"),Ce=v("y8nQ"),ie=v("Vl3Y"),B=v("tJVT"),A=v("OaEy"),k=v("2fM7"),ne=v("q1tI"),q=v.n(ne),me=v("VrN/"),Ae=v.n(me),le=v("p77/"),U=v.n(le),M=v("c5Ni"),z=v.n(M),re=k.a.Option,ae={labelCol:{span:4},wrapperCol:{span:20}},we={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"]};Ge.b=function(fe){var Z=fe.callback,he=fe.onCancel,se=Object(ne.useState)("python"),_=Object(B.a)(se,2),Q=_[0],P=_[1];function w(V){P(we[V][1])}function oe(V){Z(V)}return q.a.createElement(ie.a,Object(Oe.a)({},ae,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:oe}),q.a.createElement(ie.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},q.a.createElement(k.a,{onChange:w},Object.keys(we).map(function(V){return q.a.createElement(re,{key:V,value:V},we[V][0])}))),q.a.createElement(ie.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},q.a.createElement(Ne,{mode:Q})),q.a.createElement("div",{className:"flex-container flex-end"},q.a.createElement(je.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),q.a.createElement(je.a,{type:"ghost",onClick:he},"\u53D6\u6D88")))};function Ne(fe){var Z=fe.value,he=fe.onChange,se=fe.mode,_=fe.options,Q=_===void 0?{}:_,P=Object(ne.useRef)(),w=Object(ne.useState)(),oe=Object(B.a)(w,2),V=oe[0],S=oe[1];return Object(ne.useEffect)(function(){if(V){function N(J){var K=J.getValue();he&&he(K)}return V.on("change",N),function(){V.off("change",N)}}},[V,he]),Object(ne.useEffect)(function(){V&&V.setOption("mode",se)},[V,se]),Object(ne.useEffect)(function(){V&&((Z!==V.getValue()||Z==="")&&setTimeout(function(){V.setValue(Z||" ")},300))},[V,Z]),Object(ne.useEffect)(function(){if(P.current&&!V){var N=Ae.a.fromTextArea(P.current,Object(X.a)({mode:se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Q));S(N)}},[P.current,V]),q.a.createElement("div",{className:"my-codemirror-container"},q.a.createElement("textarea",{ref:P}))}},"7ixt":function(ct,Ge,v){"use strict";v.d(Ge,"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}},je=xe},"815F":function(ct,Ge,v){"use strict";v.d(Ge,"e",function(){return B}),v.d(Ge,"c",function(){return k}),v.d(Ge,"d",function(){return ne}),v.d(Ge,"a",function(){return me}),v.d(Ge,"f",function(){return Ae}),v.d(Ge,"b",function(){return le});var X=v("KQm4"),Oe=v("VTBJ"),xe=v("Ff2n"),je=v("Zm9Q"),Ce=v("Kwbf"),ie=v("OZM5");function B(U,M){return U!=null?U:M}function A(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=new Map;function z(re){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(re||[]).forEach(function(we){var Ne=we.key,fe=we.children;Object(Ce.a)(Ne!=null,"Tree node must have a certain key: [".concat(ae).concat(Ne,"]"));var Z=String(Ne);Object(Ce.a)(!M.has(Z)||Ne===null||Ne===void 0,"Same 'key' exist in the Tree: ".concat(Z)),M.set(Z,!0),z(fe,"".concat(ae).concat(Z," > "))})}z(U)}function k(U){function M(z){var re=Object(je.a)(z);return re.map(function(ae){if(!Object(ie.i)(ae))return Object(Ce.a)(!ae,"Tree/TreeNode can only accept TreeNode as children."),null;var we=ae.key,Ne=ae.props,fe=Ne.children,Z=Object(xe.a)(Ne,["children"]),he=Object(Oe.a)({key:we},Z),se=M(fe);return se.length&&(he.children=se),he}).filter(function(ae){return ae})}return M(U)}function ne(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(M===!0?[]:M),re=[];function ae(we){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return we.map(function(fe,Z){var he=Object(ie.h)(Ne?Ne.pos:"0",Z),se=B(fe.key,he),_=Object(Oe.a)(Object(Oe.a)({},fe),{},{parent:Ne,pos:he,children:null,data:fe,isStart:[].concat(Object(X.a)(Ne?Ne.isStart:[]),[Z===0]),isEnd:[].concat(Object(X.a)(Ne?Ne.isEnd:[]),[Z===we.length-1])});return re.push(_),M===!0||z.has(se)?_.children=ae(fe.children||[],_):_.children=[],_})}return ae(U),re}function q(U,M,z){var re;z?typeof z=="string"?re=function(Ne){return Ne[z]}:typeof z=="function"&&(re=function(Ne){return z(Ne)}):re=function(Ne,fe){return B(Ne.key,fe)};function ae(we,Ne,fe){var Z=we?we.children:U,he=we?Object(ie.h)(fe.pos,Ne):"0";if(we){var se=re(we,he),_={node:we,index:Ne,pos:he,key:se,parentPos:fe.node?fe.pos:null,level:fe.level+1};M(_)}Z&&Z.forEach(function(Q,P){ae(Q,P,{node:we,pos:he,level:fe?fe.level+1:-1})})}ae(null)}function me(U){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=M.initWrapper,re=M.processEntity,ae=M.onProcessFinished,we=arguments.length>2?arguments[2]:void 0,Ne={},fe={},Z={posEntities:Ne,keyEntities:fe};return z&&(Z=z(Z)||Z),q(U,function(he){var se=he.node,_=he.index,Q=he.pos,P=he.key,w=he.parentPos,oe=he.level,V={node:se,index:_,key:P,pos:Q,level:oe},S=B(P,Q);Ne[Q]=V,fe[S]=V,V.parent=Ne[w],V.parent&&(V.parent.children=V.parent.children||[],V.parent.children.push(V)),re&&re(V,Z)},we),ae&&ae(Z),Z}function Ae(U,M){var z=M.expandedKeys,re=M.selectedKeys,ae=M.loadedKeys,we=M.loadingKeys,Ne=M.checkedKeys,fe=M.halfCheckedKeys,Z=M.dragOverNodeKey,he=M.dropPosition,se=M.keyEntities,_=se[U],Q={eventKey:U,expanded:z.indexOf(U)!==-1,selected:re.indexOf(U)!==-1,loaded:ae.indexOf(U)!==-1,loading:we.indexOf(U)!==-1,checked:Ne.indexOf(U)!==-1,halfChecked:fe.indexOf(U)!==-1,pos:String(_?_.pos:""),dragOver:Z===U&&he===0,dragOverGapTop:Z===U&&he===-1,dragOverGapBottom:Z===U&&he===1};return Q}function le(U){var M=U.data,z=U.expanded,re=U.selected,ae=U.checked,we=U.loaded,Ne=U.loading,fe=U.halfChecked,Z=U.dragOver,he=U.dragOverGapTop,se=U.dragOverGapBottom,_=U.pos,Q=U.active,P=Object(Oe.a)(Object(Oe.a)({},M),{},{expanded:z,selected:re,checked:ae,loaded:we,loading:Ne,halfChecked:fe,dragOver:Z,dragOverGapTop:he,dragOverGapBottom:se,pos:_,active:Q});return"props"in P||Object.defineProperty(P,"props",{get:function(){return Object(Ce.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),U}}),P}},"8EBN":function(ct,Ge,v){(function(X){X(v("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(je){je=je.toLowerCase();for(var Ce=0;Ce<X.modeInfo.length;Ce++){var ie=X.modeInfo[Ce];if(ie.mime==je)return ie;if(ie.mimes){for(var B=0;B<ie.mimes.length;B++)if(ie.mimes[B]==je)return ie}}if(/\+xml$/.test(je))return X.findModeByMIME("application/xml");if(/\+json$/.test(je))return X.findModeByMIME("application/json")},X.findModeByExtension=function(je){je=je.toLowerCase();for(var Ce=0;Ce<X.modeInfo.length;Ce++){var ie=X.modeInfo[Ce];if(ie.ext){for(var B=0;B<ie.ext.length;B++)if(ie.ext[B]==je)return ie}}},X.findModeByFileName=function(je){for(var Ce=0;Ce<X.modeInfo.length;Ce++){var ie=X.modeInfo[Ce];if(ie.file&&ie.file.test(je))return ie}var B=je.lastIndexOf("."),A=B>-1&&je.substring(B+1,je.length);if(A)return X.findModeByExtension(A)},X.findModeByName=function(je){je=je.toLowerCase();for(var Ce=0;Ce<X.modeInfo.length;Ce++){var ie=X.modeInfo[Ce];if(ie.name.toLowerCase()==je)return ie;if(ie.alias){for(var B=0;B<ie.alias.length;B++)if(ie.alias[B].toLowerCase()==je)return ie}}}})},"8Jsi":function(ct,Ge,v){"use strict";v.d(Ge,"d",function(){return w}),v.d(Ge,"a",function(){return f}),v.d(Ge,"b",function(){return G}),v.d(Ge,"c",function(){return y});var X=v("1OyB"),Oe=v("vuIU"),xe=v("Ji7U"),je=v("LK+K"),Ce=v("KQm4"),ie=v("U8pU"),B=v("ODXe"),A=v("VTBJ"),k=v("q1tI"),ne=v("qNPg"),q=v("2Qr1"),me=v("815F"),Ae=v("NvD2"),le=v("wPlo"),U=v("6cGi"),M=v("Kwbf"),z=v("4IlW"),re=v("YrtM"),ae=v("fAei"),we=k.createContext(null);function Ne(ue,Te){if(!ue)return!0;var Re=ue.data,Fe=Re.disabled,We=Re.disableCheckbox;switch(Te){case"select":return Fe;case"checkbox":return Fe||We}return!1}function fe(ue,Te){var Re=k.useCallback(function(We){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ve=arguments.length>2?arguments[2]:void 0,ze=ue.get(We);return!ve&&Ne(ze,Pe)?null:ze},[ue]),Fe=k.useCallback(function(We){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ve=arguments.length>2?arguments[2]:void 0,ze=Te.get(We);return!ve&&Ne(ze,Pe)?null:ze},[Te]);return[Re,Fe]}function Z(ue){return k.useMemo(function(){var Te=new Map,Re=new Map;return ue.forEach(function(Fe){Te.set(Fe.key,Fe),Re.set(Fe.data.value,Fe)}),[Te,Re]},[ue])}var he={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},se=function(Te,Re){var Fe=Te.prefixCls,We=Te.height,Pe=Te.itemHeight,ve=Te.virtual,ze=Te.options,He=Te.flattenOptions,ke=Te.multiple,Ue=Te.searchValue,Y=Te.onSelect,W=Te.onToggleOpen,D=Te.open,m=Te.notFoundContent,x=Te.onMouseEnter,C=k.useContext(we),O=C.checkable,ce=C.checkedKeys,ye=C.halfCheckedKeys,Ke=C.treeExpandedKeys,rt=C.treeDefaultExpandAll,Qe=C.treeDefaultExpandedKeys,it=C.onTreeExpand,gt=C.treeIcon,xt=C.showTreeIcon,lt=C.switcherIcon,Pt=C.treeLine,kt=C.treeNodeFilterProp,Et=C.loadData,bt=C.treeLoadedKeys,pt=C.treeMotion,Ot=C.onTreeLoad,It=k.useRef(),Kt=Object(re.a)(function(){return ze},[D,ze],function(Ze,nt){return nt[0]&&Ze[1]!==nt[1]}),Yt=Z(He),Mt=Object(B.a)(Yt,2),hn=Mt[0],Jt=Mt[1],Wt=fe(hn,Jt),nn=Object(B.a)(Wt,2),Rt=nn[0],tt=nn[1],Ut=k.useMemo(function(){return ce.map(function(Ze){var nt=tt(Ze);return nt?nt.key:null})},[ce]),pn=k.useMemo(function(){return O?{checked:Ut,halfChecked:ye}:null},[Ut,ye,O]);k.useEffect(function(){if(D&&!ke&&Ut.length){var Ze;(Ze=It.current)===null||Ze===void 0||Ze.scrollTo({key:Ut[0]})}},[D]);var on=String(Ue).toLowerCase(),At=function(nt){return on?String(nt[kt]).toLowerCase().includes(on):!1},an=k.useState(Qe),Gt=Object(B.a)(an,2),wn=Gt[0],Xe=Gt[1],ft=k.useState(null),mn=Object(B.a)(ft,2),sn=mn[0],Ye=mn[1],kn=k.useMemo(function(){return Ke?Object(Ce.a)(Ke):Ue?sn:wn},[wn,sn,on,Ke]);k.useEffect(function(){Ue&&Ye(He.map(function(Ze){return Ze.key}))},[Ue]);var aa=function(nt){Xe(nt),Ye(nt),it&&it(nt)},ht=function(nt){nt.preventDefault()},Vt=function(nt,Ct){var yt=Ct.node.key,jt=Rt(yt,O?"checkbox":"select");jt!==null&&Y(jt.data.value,{selected:!ce.includes(jt.data.value)}),ke||W(!1)},Nn=k.useState(null),jn=Object(B.a)(Nn,2),en=jn[0],Sn=jn[1],st=Rt(en);if(k.useImperativeHandle(Re,function(){return{onKeyDown:function(nt){var Ct,yt=nt.which;switch(yt){case z.a.UP:case z.a.DOWN:case z.a.LEFT:case z.a.RIGHT:(Ct=It.current)===null||Ct===void 0||Ct.onKeyDown(nt);break;case z.a.ENTER:{st!==null&&Vt(null,{node:{key:en},selected:!ce.includes(st.data.value)});break}case z.a.ESC:W(!1)}},onKeyUp:function(){}}}),Kt.length===0)return k.createElement("div",{role:"listbox",className:"".concat(Fe,"-empty"),onMouseDown:ht},m);var _e={};return bt&&(_e.loadedKeys=bt),kn&&(_e.expandedKeys=kn),k.createElement("div",{onMouseDown:ht,onMouseEnter:x},st&&D&&k.createElement("span",{style:he,"aria-live":"assertive"},st.data.value),k.createElement(ae.b,Object.assign({ref:It,focusable:!1,prefixCls:"".concat(Fe,"-tree"),treeData:Kt,height:We,itemHeight:Pe,virtual:ve,multiple:ke,icon:gt,showIcon:xt,switcherIcon:lt,showLine:Pt,loadData:Ue?null:Et,motion:pt,checkable:O,checkStrictly:!0,checkedKeys:pn,selectedKeys:O?[]:Ut,defaultExpandAll:rt},_e,{onActiveChange:Sn,onSelect:Vt,onCheck:Vt,onExpand:aa,onLoad:Ot,filterTreeNode:At})))},_=k.forwardRef(se);_.displayName="OptionList";var Q=_,P=function(){return null},w=P,oe=v("Ff2n"),V=v("Zm9Q");function S(ue){return Object(V.a)(ue).map(function(Te){if(!k.isValidElement(Te)||!Te.type)return null;var Re=Te.key,Fe=Te.props,We=Fe.children,Pe=Fe.value,ve=Object(oe.a)(Fe,["children","value"]),ze=Object(A.a)({key:Re,value:Pe},ve),He=S(We);return He.length&&(ze.children=He),ze}).filter(function(Te){return Te})}function N(ue){if(!ue)return ue;var Te=Object(A.a)({},ue);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return Object(M.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Te}}),Te}function J(ue,Te,Re,Fe,We){var Pe=null,ve=null;function ze(){function He(ke){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return ke.map(function(W,D){var m="".concat(Ue,"-").concat(D),x=Re.includes(W.value),C=He(W.children||[],m,x),O=k.createElement(w,Object.assign({},W),C.map(function(ye){return ye.node}));if(Te===W.value&&(Pe=O),x){var ce={pos:m,node:O,children:C};return Y||ve.push(ce),ce}return null}).filter(function(W){return W})}ve||(ve=[],He(Fe),ve.sort(function(ke,Ue){var Y=ke.node.props.value,W=Ue.node.props.value,D=Re.indexOf(Y),m=Re.indexOf(W);return D-m}))}Object.defineProperty(ue,"triggerNode",{get:function(){return Object(M.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),ze(),Pe}}),Object.defineProperty(ue,"allCheckedNodes",{get:function(){return Object(M.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),ze(),We?ve:ve.map(function(ke){var Ue=ke.node;return Ue})}})}function K(ue){return Array.isArray(ue)?ue:ue!==void 0?[ue]:[]}function H(ue,Te){var Re=new Map;return Te.forEach(function(Fe){var We=Fe.data;Re.set(We.value,We)}),ue.map(function(Fe){return N(Re.get(Fe))})}function u(ue,Te){var Re=H([ue],Te)[0];return Re?Re.disabled:!1}function s(ue){return ue.disabled||ue.disableCheckbox||ue.checkable===!1}function E(ue){for(var Te=ue.parent,Re=0,Fe=Te;Fe;)Fe=Fe.parent,Re+=1;return Re}function R(ue){function Te(Fe){return(Fe||[]).map(function(We){var Pe=We.value,ve=We.key,ze=We.children,He=Object(A.a)(Object(A.a)({},We),{},{key:"key"in We?ve:Pe});return ze&&(He.children=Te(ze)),He})}var Re=Object(me.d)(Te(ue),!0);return Re.map(function(Fe){return{key:Fe.data.key,data:Fe.data,level:E(Fe)}})}function ee(ue){return function(Te,Re){var Fe=Re[ue];return String(Fe).toLowerCase().includes(String(Te).toLowerCase())}}function be(ue,Te,Re){var Fe=Re.optionFilterProp,We=Re.filterOption;if(We===!1)return Te;var Pe;typeof We=="function"?Pe=We:Pe=ee(Fe);function ve(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ze.map(function(ke){var Ue=ke.children,Y=He||Pe(ue,N(ke)),W=ve(Ue||[],Y);return Y||W.length?Object(A.a)(Object(A.a)({},ke),{},{children:W}):null}).filter(function(ke){return ke})}return ve(Te)}function de(ue,Te,Re,Fe){var We=new Map;return K(Te).forEach(function(Pe){Pe&&Object(ie.a)(Pe)==="object"&&"value"in Pe&&We.set(Pe.value,Pe)}),ue.map(function(Pe){var ve={value:Pe},ze=Re(Pe,"select",!0),He=ze?Fe(ze.data):Pe;if(We.has(Pe)){var ke=We.get(Pe);ve.label="label"in ke?ke.label:He,"halfChecked"in ke&&(ve.halfChecked=ke.halfChecked)}else ve.label=He;return ve})}function pe(ue,Te){var Re=new Set(ue);return Re.add(Te),Array.from(Re)}function I(ue,Te){var Re=new Set(ue);return Re.delete(Te),Array.from(Re)}function g(ue){var Te=ue.searchPlaceholder,Re=ue.treeCheckStrictly,Fe=ue.treeCheckable,We=ue.labelInValue,Pe=ue.value,ve=ue.multiple;Object(M.a)(!Te,"`searchPlaceholder` has been removed."),Re&&We===!1&&Object(M.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(We||Re)&&Object(M.a)(K(Pe).every(function(ze){return ze&&Object(ie.a)(ze)==="object"&&"value"in ze}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Re||ve||Fe?Object(M.a)(!Pe||Array.isArray(Pe),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(M.a)(!Array.isArray(Pe),"`value` should not be array when `TreeSelect` is single mode.")}var T=g,b=10;function L(ue,Te){var Re=Te.id,Fe=Te.pId,We=Te.rootPId,Pe={},ve=[],ze=ue.map(function(He){var ke=Object(A.a)({},He),Ue=ke[Re];return Pe[Ue]=ke,ke.key=ke.key||Ue,ke});return ze.forEach(function(He){var ke=He[Fe],Ue=Pe[ke];Ue&&(Ue.children=Ue.children||[],Ue.children.push(He)),(ke===We||!Ue&&We===null)&&ve.push(He)}),ve}function d(ue,Te){var Re=0,Fe=new Set;function We(Pe){return(Pe||[]).map(function(ve){var ze=ve.key,He=ve.value,ke=ve.children,Ue=Object(oe.a)(ve,["key","value","children"]),Y="value"in ve?He:ze,W=Object(A.a)(Object(A.a)({},Ue),{},{key:ze!=null?ze:Y,value:Y,title:Te(ve)});return"children"in ve&&(W.children=We(ke)),W})}return We(ue)}function h(ue,Te,Re){var Fe=Re.getLabelProp,We=Re.simpleMode,Pe=k.useRef({});return ue?(Pe.current.formatTreeData=Pe.current.treeData===ue?Pe.current.formatTreeData:d(We?L(ue,Object(A.a)({id:"id",pId:"pId",rootPId:null},We!==!0?We:{})):ue,Fe),Pe.current.treeData=ue):Pe.current.formatTreeData=Pe.current.children===Te?Pe.current.formatTreeData:d(S(Te),Fe),Pe.current.formatTreeData}var f="SHOW_ALL",y="SHOW_PARENT",G="SHOW_CHILD";function j(ue,Te,Re){var Fe=new Set(ue);return Te===G?ue.filter(function(We){var Pe=Re[We];return!(Pe&&Pe.children&&Pe.children.every(function(ve){var ze=ve.node;return s(ze)||Fe.has(ze.key)}))}):Te===y?ue.filter(function(We){var Pe=Re[We],ve=Pe?Pe.parent:null;return!(ve&&!s(ve.node)&&Fe.has(ve.node.key))}):ue}function te(ue,Te){var Re=Te.value,Fe=Te.getEntityByValue,We=Te.getEntityByKey,Pe=Te.treeConduction,ve=Te.showCheckedStrategy,ze=Te.conductKeyEntities,He=Te.getLabelProp;return k.useMemo(function(){var ke=ue;if(Pe){var Ue=j(ue.map(function(Y){var W=Fe(Y);return W?W.key:Y}),ve,ze);ke=Ue.map(function(Y){var W=We(Y);return W?W.data.value:Y})}return de(ke,Re,Fe,He)},[ue,Re,Pe,ve,Fe])}var Ee=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Le=Object(ne.a)({prefixCls:"rc-tree-select",components:{optionList:Q},convertChildrenToData:function(){return null},flattenOptions:R,getLabeledValue:q.e,filterOptions:be,isValueDisabled:u,findValueOption:H,omitDOMProps:function(Te){var Re=Object(A.a)({},Te);return Ee.forEach(function(Fe){delete Re[Fe]}),Re}});Le.displayName="Select";var Ie=k.forwardRef(function(ue,Te){var Re=ue.multiple,Fe=ue.treeCheckable,We=ue.treeCheckStrictly,Pe=ue.showCheckedStrategy,ve=Pe===void 0?"SHOW_CHILD":Pe,ze=ue.labelInValue,He=ue.loadData,ke=ue.treeLoadedKeys,Ue=ue.treeNodeFilterProp,Y=Ue===void 0?"value":Ue,W=ue.treeNodeLabelProp,D=ue.treeDataSimpleMode,m=ue.treeData,x=ue.treeExpandedKeys,C=ue.treeDefaultExpandedKeys,O=ue.treeDefaultExpandAll,ce=ue.children,ye=ue.treeIcon,Ke=ue.showTreeIcon,rt=ue.switcherIcon,Qe=ue.treeLine,it=ue.treeMotion,gt=ue.filterTreeNode,xt=ue.dropdownPopupAlign,lt=ue.onChange,Pt=ue.onTreeExpand,kt=ue.onTreeLoad,Et=ue.onDropdownVisibleChange,bt=ue.onSelect,pt=ue.onDeselect,Ot=Fe||We,It=Re||Ot,Kt=Fe&&!We,Yt=We||ze,Mt=k.useRef(null);k.useImperativeHandle(Te,function(){return{focus:Mt.current.focus,blur:Mt.current.blur}});var hn=function(yt){return m&&yt.label||yt.title},Jt=function(yt){return W?yt[W]:hn(yt)},Wt=h(m,ce,{getLabelProp:hn,simpleMode:D}),nn=Object(k.useMemo)(function(){return R(Wt)},[Wt]),Rt=Z(nn),tt=Object(B.a)(Rt,2),Ut=tt[0],pn=tt[1],on=fe(Ut,pn),At=Object(B.a)(on,2),an=At[0],Gt=At[1],wn=Object(k.useMemo)(function(){return Kt?Object(me.a)(Wt):{keyEntities:null}},[Wt,Fe,We]),Xe=wn.keyEntities,ft=Object(U.a)(ue.defaultValue,{value:ue.value}),mn=Object(B.a)(ft,2),sn=mn[0],Ye=mn[1],kn=function(yt){var jt=[],Nt=[];return yt.forEach(function(_t){Gt(_t)?Nt.push(_t):jt.push(_t)}),{missingRawValues:jt,existRawValues:Nt}},aa=Object(k.useMemo)(function(){var Ct=[],yt=[];if(K(sn).forEach(function(Qt){if(Qt&&Object(ie.a)(Qt)==="object"&&"value"in Qt)if(Qt.halfChecked&&We){var Pn=Gt(Qt.value);Ct.push(Pn?Pn.key:Qt.value)}else yt.push(Qt.value);else yt.push(Qt)}),Kt){var jt=kn(yt),Nt=jt.missingRawValues,_t=jt.existRawValues,En=_t.map(function(Qt){return Gt(Qt).key}),Zt=Object(Ae.a)(En,!0,Xe),un=Zt.checkedKeys,tn=Zt.halfCheckedKeys;return[[].concat(Object(Ce.a)(Nt),Object(Ce.a)(un.map(function(Qt){return an(Qt).data.value}))),tn]}return[yt,Ct]},[sn,It,Yt,Fe,We]),ht=Object(B.a)(aa,2),Vt=ht[0],Nn=ht[1],jn=te(Vt,{treeConduction:Kt,value:sn,showCheckedStrategy:ve,conductKeyEntities:Xe,getEntityByValue:Gt,getEntityByKey:an,getLabelProp:Jt}),en=function(yt,jt,Nt){if(Ye(It?yt:yt[0]),lt){var _t=yt;if(Kt&&ve!=="SHOW_ALL"){var En=yt.map(function(Tn){var zn=Gt(Tn);return zn?zn.key:Tn}),Zt=j(En,ve,Xe);_t=Zt.map(function(Tn){var zn=an(Tn);return zn?zn.data.value:Tn})}var un=jt||{triggerValue:void 0,selected:void 0},tn=un.triggerValue,Qt=un.selected,Pn=Yt?de(_t,sn,Gt,Jt):_t;if(We){var Kn=Nn.map(function(Tn){var zn=an(Tn);return zn?zn.data.value:Tn}).filter(function(Tn){return!_t.includes(Tn)});Pn=[].concat(Object(Ce.a)(Pn),Object(Ce.a)(de(Kn,sn,Gt,Jt)))}var cn={preValue:jn,triggerValue:tn},wa=!0;(We||Nt==="selection"&&!Qt)&&(wa=!1),J(cn,tn,yt,Wt,wa),Ot?cn.checked=Qt:cn.selected=Qt,lt(It?Pn:Pn[0],Yt?null:_t.map(function(Tn){var zn=Gt(Tn);return zn?Jt(zn.data):null}),cn)}},Sn=function(yt,jt,Nt){var _t=yt;if(!It)en([yt],{selected:!0,triggerValue:yt},Nt);else{var En=pe(Vt,yt);if(Kt){var Zt=kn(En),un=Zt.missingRawValues,tn=Zt.existRawValues,Qt=tn.map(function(cn){return Gt(cn).key}),Pn=Object(Ae.a)(Qt,!0,Xe),Kn=Pn.checkedKeys;En=[].concat(Object(Ce.a)(un),Object(Ce.a)(Kn.map(function(cn){return an(cn).data.value})))}en(En,{selected:!0,triggerValue:yt},Nt)}bt&&bt(_t,jt)},st=function(yt,jt,Nt){var _t=yt,En=I(Vt,yt);if(Kt){var Zt=kn(En),un=Zt.missingRawValues,tn=Zt.existRawValues,Qt=tn.map(function(cn){return Gt(cn).key}),Pn=Object(Ae.a)(Qt,{checked:!1,halfCheckedKeys:Nn},Xe),Kn=Pn.checkedKeys;En=[].concat(Object(Ce.a)(un),Object(Ce.a)(Kn.map(function(cn){return an(cn).data.value})))}en(En,{selected:!1,triggerValue:yt},Nt),pt&&pt(_t,jt)},_e=function(){en([],null,"clear")},Ze=k.useCallback(function(Ct){if(Et){var yt={};Object.defineProperty(yt,"documentClickClose",{get:function(){return Object(M.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Et(Ct,yt)}},[Et]),nt={optionLabelProp:null,optionFilterProp:Y,dropdownAlign:xt,internalProps:{mark:le.a,onClear:_e,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Sn,onRawDeselect:st}};return"filterTreeNode"in ue&&(nt.filterOption=gt),k.createElement(we.Provider,{value:{checkable:Ot,loadData:He,treeLoadedKeys:ke,onTreeLoad:kt,checkedKeys:Vt,halfCheckedKeys:Nn,treeDefaultExpandAll:O,treeExpandedKeys:x,treeDefaultExpandedKeys:C,onTreeExpand:Pt,treeIcon:ye,treeMotion:it,showTreeIcon:Ke,switcherIcon:rt,treeLine:Qe,treeNodeFilterProp:Y}},k.createElement(Le,Object.assign({ref:Mt,mode:It?"multiple":null},ue,nt,{value:jn,labelInValue:!0,options:Wt,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Ze})))}),De=function(ue){Object(xe.a)(Re,ue);var Te=Object(je.a)(Re);function Re(){var Fe;return Object(X.a)(this,Re),Fe=Te.apply(this,arguments),Fe.selectRef=k.createRef(),Fe.focus=function(){Fe.selectRef.current.focus()},Fe.blur=function(){Fe.selectRef.current.blur()},Fe}return Object(Oe.a)(Re,[{key:"render",value:function(){return k.createElement(Ie,Object.assign({ref:this.selectRef},this.props))}}]),Re}(k.Component);De.TreeNode=w,De.SHOW_ALL=f,De.SHOW_PARENT=y,De.SHOW_CHILD=G;var Me=De,$e=Ge.e=Me},"8pgt":function(ct,Ge,v){ct.exports={flexRow:"flexRow___2kcn2",flexColumn:"flexColumn___2bS_0",formWrap:"formWrap___3t-wi",example:"example___2J2YZ",footerWrap:"footerWrap___3u6gg"}},"9Bee":function(ct,Ge,v){"use strict";var X=v("k1fw"),Oe=v("tJVT"),xe=v("q1tI"),je=v.n(xe),Ce=v("vg9a"),ie=v("DlQD"),B=v.n(ie),A=v("rUJ1");function k(E,R){var ee=E.match(/^(\s+)(?:```)/);if(ee===null)return R;var be=ee[1];return R.split(`
|
|
`).map(function(de){var pe=de.match(/^\s+/);if(pe===null)return de;var I=Object(Oe.a)(pe,1),g=I[0];return g.length>=be.length?de.slice(be.length):de}).join(`
|
|
`)}var ne=[],q=["<ul>"],me=new B.a.Renderer,Ae=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){ne.length=0,q=["<ul>"]}var U={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function M(E,R,ee,be){if(R>=E.length||E[R].level<=ee)return R;var de=E[R];be.push("<li><a href='#"+de.anchor+"'>"+de.text+"</a>"),R++;var pe=[];return R=M(E,R,de.level,pe),pe.length>0&&(be.push("<ul>"),pe.forEach(function(I){be.push(I)}),be.push("</ul>")),be.push("</li>"),R=M(E,R,ee,be),R}function z(){return M(ne,0,0,q),q.push("</ul>"),q.join("")}var re={heading:function(R){var ee=Ae.exec(R);if(ee)return{type:"heading",raw:ee[0],depth:ee[1].length,text:ee[2]}},fences:function(R){var ee=this.rules.block.fences.exec(R);if(ee){var be=ee[0],de=k(be,ee[3]||""),pe=ee[2]?ee[2].trim():ee[2];if(["latex","katex","math"].indexOf(pe)>=0){var I=Ne(),g=de;de=I,fe[I]={type:"block",expression:g}}return{type:"code",raw:be,lang:pe,text:de}}}},ae=/(?:\${2})([^\n`]+?)(?:\${2})/gi,we=0,Ne=function(){return"__special_katext_id_".concat(we++,"__")},fe={};function Z(){return fe}function he(){we=0,fe={}}function se(E){return E=E.replace(ae,function(R,ee){var be=Ne();return fe[be]={type:"inline",expression:ee},be}),E}var _=me.listitem;me.listitem=function(E){return _(se(E))};var Q=me.paragraph;me.paragraph=function(E){return Q(se(E))};var P=me.tablecell;me.tablecell=function(E,R){return P(se(E),R)},me.code=function(E,R,ee){var be=(R||"").match(/\S*/)[0];return be?["latex","katex","math"].indexOf(be)>=0?"<p class='editormd-tex'>".concat(E,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(R,'">').concat(ee?E:Object(A.escape)(E,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(ee?E:Object(A.escape)(E,!0))+"</code></pre>"},me.heading=function(E,R,ee){var be=this.options.headerPrefix+ee.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ne.push({anchor:be,level:R,text:E}),"<h"+R+' id="'+be+'">'+E+"</h"+R+">"},B.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),B.a.use({tokenizer:re,renderer:me});var w=B.a,oe=v("SJMd"),V=v("ulZh"),S=v.n(V),N=v("m3rI"),J=v("Oy/b"),K=v("p5ED"),H=/<pre[^>]*>/g;function u(E){var R=document.createElement("div");return R.innerHTML=E,R.childNodes.length===0?"":R.childNodes[0].nodeValue}var s=Ge.a=function(E){var R,ee=E.value,be=ee===void 0?"":ee,de=E.className,pe=E.showTextOnly,I=E.showLines,g=E.style,T=g===void 0?{}:g,b=E.stylesPrev,L=b===void 0?{}:b,d=(R=String(be))===null||R===void 0?void 0:R.replace(/<script.*?>|<\/script>/gi,"").replace(/on\w+="[^"]*"/gi,""),h=Object(xe.useState)(""),f=Object(Oe.a)(h,2),y=f[0],G=f[1],j=Object(xe.useMemo)(function(){try{var Ie=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,De=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Me=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;d=d.replace(Ie,"("+N.a.API_SERVER+"/api/attachments/").replace(De,'"'+N.a.API_SERVER+"/api/attachments/").replace(Me,'"'+N.a.API_SERVER+"/files/uploads/").replace(/\r\n/g,`
|
|
`),d=d.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
|
|
`)}catch(Re){}var $e=w(d),ue=Z();if(d.match(/\[TOC\]/)&&($e=$e.replace("<p>[TOC]</p>",z()),le()),$e=$e.replace(/(__special_katext_id_\d+__)/g,function(Re,Fe){var We=ue[Fe],Pe=We.type,ve=We.expression;return Object(J.renderToString)(u(ve)||"",{displayMode:Pe==="block",throwOnError:!1,output:"html"})}),$e=$e.replace(/▁/g,"\u2581\u2581\u2581"),he(),pe){var Te=document.createElement("div");return Te.innerHTML=$e,Te.innerText}return setTimeout(function(){return Le()},500),$e},[d]),te=Object(xe.useRef)();U.WebkitLineClamp=I,I&&(T=Object(X.a)(Object(X.a)({},T),U));function Ee(Ie){var De=Ie.target;if(De.tagName.toUpperCase()==="A"){var Me=De.getAttribute("href");if(Me.indexOf("office")>-1)Ie.preventDefault(),G(Me);else if(Me.startsWith("#")){Ie.preventDefault();var $e=document.getElementById(Me.replace("#",""));$e&&$e.scrollIntoView(!0)}}}var Le=function(){var De,Me=(De=te.current)===null||De===void 0?void 0:De.querySelectorAll("video");Me==null||Me.forEach(function($e){if($e.oncontextmenu=function(){return!1},$e.src.indexOf(".m3u8")>-1&&!$e.canPlayType("application/vnd.apple.mpegurl")){if(S.a.isSupported()){var ue=new S.a;ue.loadSource($e.src),ue.attachMedia($e)}}})};return Object(xe.useEffect)(function(){if(te.current&&j&&(j.match(H)&&window.PR.prettyPrint()),te.current)return te.current.addEventListener("click",Ee),function(){te.current.removeEventListener("click",Ee),he(),le()}},[j,te.current,Ee]),je.a.createElement(je.a.Fragment,null,je.a.createElement("div",{ref:te,style:Object(X.a)({},T),className:"".concat(de||""," markdown-body "),dangerouslySetInnerHTML:{__html:j}}),je.a.createElement(K.a,{close:!0,data:y,type:y!=null&&y.length?"office":"",style:Object(X.a)({},L),onClose:function(){return G("")}}))}},"9VGf":function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return xe});var X=v("q1tI"),Oe=v.n(X);function xe(je,Ce){var ie=Object(X.useRef)();Object(X.useEffect)(function(){ie.current=je}),Object(X.useEffect)(function(){function B(){ie.current()}if(Ce!==null){var A=setInterval(B,Ce);return function(){return clearInterval(A)}}},[Ce])}},Bd2K:function(ct,Ge,v){(function(X){X(v("VrN/"),v("osHv"))})(function(X){X.defineOption("autoCloseTags",!1,function(k,ne,q){if(q!=X.Init&&q&&k.removeKeyMap("autoCloseTags"),!ne)return;var me={name:"autoCloseTags"};(typeof ne!="object"||ne.whenClosing!==!1)&&(me["'/'"]=function(Ae){return ie(Ae)}),(typeof ne!="object"||ne.whenOpening!==!1)&&(me["'>'"]=function(Ae){return je(Ae)}),k.addKeyMap(me)});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 je(k){if(k.getOption("disableInput"))return X.Pass;for(var ne=k.listSelections(),q=[],me=k.getOption("autoCloseTags"),Ae=0;Ae<ne.length;Ae++){if(!ne[Ae].empty())return X.Pass;var le=ne[Ae].head,U=k.getTokenAt(le),M=X.innerMode(k.getMode(),U.state),z=M.state,re=M.mode.xmlCurrentTag&&M.mode.xmlCurrentTag(z),ae=re&&re.name;if(!ae)return X.Pass;var we=M.mode.configuration=="html",Ne=typeof me=="object"&&me.dontCloseTags||we&&Oe,fe=typeof me=="object"&&me.indentTags||we&&xe;U.end>le.ch&&(ae=ae.slice(0,ae.length-U.end+le.ch));var Z=ae.toLowerCase();if(!ae||U.type=="string"&&(U.end!=le.ch||!/[\"\']/.test(U.string.charAt(U.string.length-1))||U.string.length==1)||U.type=="tag"&&re.close||U.string.indexOf("/")==le.ch-U.start-1||Ne&&B(Ne,Z)>-1||A(k,M.mode.xmlCurrentContext&&M.mode.xmlCurrentContext(z)||[],ae,le,!0))return X.Pass;var he=typeof me=="object"&&me.emptyTags;if(he&&B(he,ae)>-1){q[Ae]={text:"/>",newPos:X.Pos(le.line,le.ch+2)};continue}var se=fe&&B(fe,Z)>-1;q[Ae]={indent:se,text:">"+(se?`
|
|
|
|
`:"")+"</"+ae+">",newPos:se?X.Pos(le.line+1,0):X.Pos(le.line,le.ch+1)}}for(var _=typeof me=="object"&&me.dontIndentOnAutoClose,Ae=ne.length-1;Ae>=0;Ae--){var Q=q[Ae];k.replaceRange(Q.text,ne[Ae].head,ne[Ae].anchor,"+insert");var P=k.listSelections().slice(0);P[Ae]={head:Q.newPos,anchor:Q.newPos},k.setSelections(P),!_&&Q.indent&&(k.indentLine(Q.newPos.line,null,!0),k.indentLine(Q.newPos.line+1,null,!0))}}function Ce(k,ne){for(var q=k.listSelections(),me=[],Ae=ne?"/":"</",le=k.getOption("autoCloseTags"),U=typeof le=="object"&&le.dontIndentOnSlash,M=0;M<q.length;M++){if(!q[M].empty())return X.Pass;var z=q[M].head,re=k.getTokenAt(z),ae=X.innerMode(k.getMode(),re.state),we=ae.state;if(ne&&(re.type=="string"||re.string.charAt(0)!="<"||re.start!=z.ch-1))return X.Pass;var Ne,fe=ae.mode.name!="xml"&&k.getMode().name=="htmlmixed";if(fe&&ae.mode.name=="javascript")Ne=Ae+"script";else if(fe&&ae.mode.name=="css")Ne=Ae+"style";else{var Z=ae.mode.xmlCurrentContext&&ae.mode.xmlCurrentContext(we);if(!Z||Z.length&&A(k,Z,Z[Z.length-1],z))return X.Pass;Ne=Ae+Z[Z.length-1]}k.getLine(z.line).charAt(re.end)!=">"&&(Ne+=">"),me[M]=Ne}if(k.replaceSelections(me),q=k.listSelections(),!U)for(var M=0;M<q.length;M++)(M==q.length-1||q[M].head.line<q[M+1].head.line)&&k.indentLine(q[M].head.line)}function ie(k){return k.getOption("disableInput")?X.Pass:Ce(k,!0)}X.commands.closeTag=function(k){return Ce(k)};function B(k,ne){if(k.indexOf)return k.indexOf(ne);for(var q=0,me=k.length;q<me;++q)if(k[q]==ne)return q;return-1}function A(k,ne,q,me,Ae){if(!X.scanForClosingTag)return!1;var le=Math.min(k.lastLine()+1,me.line+500),U=X.scanForClosingTag(k,me,null,le);if(!U||U.tag!=q)return!1;for(var M=Ae?1:0,z=ne.length-1;z>=0&&ne[z]==q;z--)++M;me=U.to;for(var z=1;z<M;z++){var re=X.scanForClosingTag(k,me,null,le);if(!re||re.tag!=q)return!1;me=re.to}return!0}})},BjJ7:function(ct,Ge,v){"use strict";v.d(Ge,"d",function(){return Oe}),v.d(Ge,"c",function(){return xe}),v.d(Ge,"e",function(){return je}),v.d(Ge,"b",function(){return Ce}),v.d(Ge,"a",function(){return B});var X=v("m3rI");function Oe(A){var k=!0;if(A.length>0){for(var ne=0;ne<A.length;ne++)if(A[ne].compile_success==0||!A[ne].compile_success){k=!1;break}}else k=!1;return k}function xe(A){for(var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",ne=[],q=0;q<A.length;q++){var me=A[q],Ae=k?"".concat(k,"/").concat(me.name):"".concat(me.name);ne.push({title:me.name,isLeaf:!(me.type==="tree"),key:Ae})}return ne}function je(A,k,ne){for(var q=0;q<A.length;q++){var me=A[q];if(me.key===k){me.children=ne;break}me.children&&je(me.children,k,ne)}return A}function Ce(A,k,ne){var q;return function(){var me=this,Ae=arguments,le=function(){q=null,ne||A.apply(me,Ae)},U=ne&&!q;clearTimeout(q),q=setTimeout(le,k),U&&A.apply(me,Ae)}}var ie=!0,B=X.a.API_SERVER},"C+DQ":function(ct,Ge,v){},DlQD:function(ct,Ge,v){(function(X,Oe){ct.exports=Oe()})(this,function(){"use strict";function X(Y,W){for(var D=0;D<W.length;D++){var m=W[D];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(Y,m.key,m)}}function Oe(Y,W,D){return W&&X(Y.prototype,W),D&&X(Y,D),Y}function xe(Y,W){if(!Y)return;if(typeof Y=="string")return je(Y,W);var D=Object.prototype.toString.call(Y).slice(8,-1);if(D==="Object"&&Y.constructor&&(D=Y.constructor.name),D==="Map"||D==="Set")return Array.from(Y);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return je(Y,W)}function je(Y,W){(W==null||W>Y.length)&&(W=Y.length);for(var D=0,m=new Array(W);D<W;D++)m[D]=Y[D];return m}function Ce(Y,W){var D;if(typeof Symbol=="undefined"||Y[Symbol.iterator]==null){if(Array.isArray(Y)||(D=xe(Y))||W&&Y&&typeof Y.length=="number"){D&&(Y=D);var m=0;return function(){return m>=Y.length?{done:!0}:{done:!1,value:Y[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 D=Y[Symbol.iterator](),D.next.bind(D)}function ie(Y,W){return W={exports:{}},Y(W,W.exports),W.exports}var B=ie(function(Y){function W(){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 D(m){Y.exports.defaults=m}Y.exports={defaults:W(),getDefaults:W,changeDefaults:D}}),A=B.defaults,k=B.getDefaults,ne=B.changeDefaults,q=/[&<>"']/,me=/[&<>"']/g,Ae=/[<>"']|&(?!#?\w+;)/,le=/[<>"']|&(?!#?\w+;)/g,U={"&":"&","<":"<",">":">",'"':""","'":"'"},M=function(W){return U[W]};function z(Y,W){if(W){if(q.test(Y))return Y.replace(me,M)}else if(Ae.test(Y))return Y.replace(le,M);return Y}var re=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ae(Y){return Y.replace(re,function(W,D){return D=D.toLowerCase(),D==="colon"?":":D.charAt(0)==="#"?D.charAt(1)==="x"?String.fromCharCode(parseInt(D.substring(2),16)):String.fromCharCode(+D.substring(1)):""})}var we=/(^|[^\[])\^/g;function Ne(Y,W){Y=Y.source||Y,W=W||"";var D={replace:function(x,C){return C=C.source||C,C=C.replace(we,"$1"),Y=Y.replace(x,C),D},getRegex:function(){return new RegExp(Y,W)}};return D}var fe=/[^\w:]/g,Z=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function he(Y,W,D){if(Y){var m;try{m=decodeURIComponent(ae(D)).replace(fe,"").toLowerCase()}catch(x){return null}if(m.indexOf("javascript:")===0||m.indexOf("vbscript:")===0||m.indexOf("data:")===0)return null}W&&!Z.test(D)&&(D=w(W,D));try{D=encodeURI(D).replace(/%25/g,"%")}catch(x){return null}return D}var se={},_=/^[^:]+:\/*[^/]*$/,Q=/^([^:]+:)[\s\S]*$/,P=/^([^:]+:\/*[^/]*)[\s\S]*$/;function w(Y,W){se[" "+Y]||(_.test(Y)?se[" "+Y]=Y+"/":se[" "+Y]=N(Y,"/",!0)),Y=se[" "+Y];var D=Y.indexOf(":")===-1;return W.substring(0,2)==="//"?D?W:Y.replace(Q,"$1")+W:W.charAt(0)==="/"?D?W:Y.replace(P,"$1")+W:Y+W}var oe={exec:function(){}};function V(Y){for(var W=1,D,m;W<arguments.length;W++){D=arguments[W];for(m in D)Object.prototype.hasOwnProperty.call(D,m)&&(Y[m]=D[m])}return Y}function S(Y,W){var D=Y.replace(/\|/g,function(C,O,ce){for(var ye=!1,Ke=O;--Ke>=0&&ce[Ke]==="\\";)ye=!ye;return ye?"|":" |"}),m=D.split(/ \|/),x=0;if(m.length>W)m.splice(W);else for(;m.length<W;)m.push("");for(;x<m.length;x++)m[x]=m[x].trim().replace(/\\\|/g,"|");return m}function N(Y,W,D){var m=Y.length;if(m===0)return"";for(var x=0;x<m;){var C=Y.charAt(m-x-1);if(C===W&&!D)x++;else if(C!==W&&D)x++;else break}return Y.substr(0,m-x)}function J(Y,W){if(Y.indexOf(W[1])===-1)return-1;for(var D=Y.length,m=0,x=0;x<D;x++)if(Y[x]==="\\")x++;else if(Y[x]===W[0])m++;else if(Y[x]===W[1]&&(m--,m<0))return x;return-1}function K(Y){Y&&Y.sanitize&&!Y.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 H={escape:z,unescape:ae,edit:Ne,cleanUrl:he,resolveUrl:w,noopTest:oe,merge:V,splitCells:S,rtrim:N,findClosingBracket:J,checkSanitizeDeprecation:K},u=B.defaults,s=H.rtrim,E=H.splitCells,R=H.escape,ee=H.findClosingBracket;function be(Y,W,D){var m=W.href,x=W.title?R(W.title):null,C=Y[1].replace(/\\([\[\]])/g,"$1");return Y[0].charAt(0)!=="!"?{type:"link",raw:D,href:m,title:x,text:C}:{type:"image",raw:D,href:m,title:x,text:R(C)}}function de(Y,W){var D=Y.match(/^(\s+)(?:```)/);if(D===null)return W;var m=D[1];return W.split(`
|
|
`).map(function(x){var C=x.match(/^\s+/);if(C===null)return x;var O=C[0];return O.length>=m.length?x.slice(m.length):x}).join(`
|
|
`)}var pe=function(){function Y(D){this.options=D||u}var W=Y.prototype;return W.space=function(m){var x=this.rules.block.newline.exec(m);if(x)return x[0].length>1?{type:"space",raw:x[0]}:{raw:`
|
|
`}},W.code=function(m,x){var C=this.rules.block.code.exec(m);if(C){var O=x[x.length-1];if(O&&O.type==="paragraph")return{raw:C[0],text:C[0].trimRight()};var ce=C[0].replace(/^ {4}/gm,"");return{type:"code",raw:C[0],codeBlockStyle:"indented",text:this.options.pedantic?ce:s(ce,`
|
|
`)}}},W.fences=function(m){var x=this.rules.block.fences.exec(m);if(x){var C=x[0],O=de(C,x[3]||"");return{type:"code",raw:C,lang:x[2]?x[2].trim():x[2],text:O}}},W.heading=function(m){var x=this.rules.block.heading.exec(m);if(x)return{type:"heading",raw:x[0],depth:x[1].length,text:x[2]}},W.nptable=function(m){var x=this.rules.block.nptable.exec(m);if(x){var C={type:"table",header:E(x[1].replace(/^ *| *\| *$/g,"")),align:x[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:x[3]?x[3].replace(/\n$/,"").split(`
|
|
`):[],raw:x[0]};if(C.header.length===C.align.length){var O=C.align.length,ce;for(ce=0;ce<O;ce++)/^ *-+: *$/.test(C.align[ce])?C.align[ce]="right":/^ *:-+: *$/.test(C.align[ce])?C.align[ce]="center":/^ *:-+ *$/.test(C.align[ce])?C.align[ce]="left":C.align[ce]=null;for(O=C.cells.length,ce=0;ce<O;ce++)C.cells[ce]=E(C.cells[ce],C.header.length);return C}}},W.hr=function(m){var x=this.rules.block.hr.exec(m);if(x)return{type:"hr",raw:x[0]}},W.blockquote=function(m){var x=this.rules.block.blockquote.exec(m);if(x){var C=x[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:x[0],text:C}}},W.list=function(m){var x=this.rules.block.list.exec(m);if(x){for(var C=x[0],O=x[2],ce=O.length>1,ye=O[O.length-1]===")",Ke={type:"list",raw:C,ordered:ce,start:ce?+O.slice(0,-1):"",loose:!1,items:[]},rt=x[0].match(this.rules.block.item),Qe=!1,it,gt,xt,lt,Pt,kt,Et,bt=rt.length,pt=0;pt<bt;pt++)it=rt[pt],C=it,gt=it.length,it=it.replace(/^ *([*+-]|\d+[.)]) */,""),~it.indexOf(`
|
|
`)&&(gt-=it.length,it=this.options.pedantic?it.replace(/^ {1,4}/gm,""):it.replace(new RegExp("^ {1,"+gt+"}","gm"),"")),pt!==bt-1&&(xt=this.rules.block.bullet.exec(rt[pt+1])[0],(ce?xt.length===1||!ye&&xt[xt.length-1]===")":xt.length>1||this.options.smartLists&&xt!==O)&&(lt=rt.slice(pt+1).join(`
|
|
`),Ke.raw=Ke.raw.substring(0,Ke.raw.length-lt.length),pt=bt-1)),Pt=Qe||/\n\n(?!\s*$)/.test(it),pt!==bt-1&&(Qe=it.charAt(it.length-1)===`
|
|
`,Pt||(Pt=Qe)),Pt&&(Ke.loose=!0),kt=/^\[[ xX]\] /.test(it),Et=void 0,kt&&(Et=it[1]!==" ",it=it.replace(/^\[[ xX]\] +/,"")),Ke.items.push({type:"list_item",raw:C,task:kt,checked:Et,loose:Pt,text:it});return Ke}},W.html=function(m){var x=this.rules.block.html.exec(m);if(x)return{type:this.options.sanitize?"paragraph":"html",raw:x[0],pre:!this.options.sanitizer&&(x[1]==="pre"||x[1]==="script"||x[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(x[0]):R(x[0]):x[0]}},W.def=function(m){var x=this.rules.block.def.exec(m);if(x){x[3]&&(x[3]=x[3].substring(1,x[3].length-1));var C=x[1].toLowerCase().replace(/\s+/g," ");return{tag:C,raw:x[0],href:x[2],title:x[3]}}},W.table=function(m){var x=this.rules.block.table.exec(m);if(x){var C={type:"table",header:E(x[1].replace(/^ *| *\| *$/g,"")),align:x[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:x[3]?x[3].replace(/\n$/,"").split(`
|
|
`):[]};if(C.header.length===C.align.length){C.raw=x[0];var O=C.align.length,ce;for(ce=0;ce<O;ce++)/^ *-+: *$/.test(C.align[ce])?C.align[ce]="right":/^ *:-+: *$/.test(C.align[ce])?C.align[ce]="center":/^ *:-+ *$/.test(C.align[ce])?C.align[ce]="left":C.align[ce]=null;for(O=C.cells.length,ce=0;ce<O;ce++)C.cells[ce]=E(C.cells[ce].replace(/^ *\| *| *\| *$/g,""),C.header.length);return C}}},W.lheading=function(m){var x=this.rules.block.lheading.exec(m);if(x)return{type:"heading",raw:x[0],depth:x[2].charAt(0)==="="?1:2,text:x[1]}},W.paragraph=function(m){var x=this.rules.block.paragraph.exec(m);if(x)return{type:"paragraph",raw:x[0],text:x[1].charAt(x[1].length-1)===`
|
|
`?x[1].slice(0,-1):x[1]}},W.text=function(m,x){var C=this.rules.block.text.exec(m);if(C){var O=x[x.length-1];return O&&O.type==="text"?{raw:C[0],text:C[0]}:{type:"text",raw:C[0],text:C[0]}}},W.escape=function(m){var x=this.rules.inline.escape.exec(m);if(x)return{type:"escape",raw:x[0],text:R(x[1])}},W.tag=function(m,x,C){var O=this.rules.inline.tag.exec(m);if(O)return!x&&/^<a /i.test(O[0])?x=!0:x&&/^<\/a>/i.test(O[0])&&(x=!1),!C&&/^<(pre|code|kbd|script)(\s|>)/i.test(O[0])?C=!0:C&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(O[0])&&(C=!1),{type:this.options.sanitize?"text":"html",raw:O[0],inLink:x,inRawBlock:C,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(O[0]):R(O[0]):O[0]}},W.link=function(m){var x=this.rules.inline.link.exec(m);if(x){var C=ee(x[2],"()");if(C>-1){var O=x[0].indexOf("!")===0?5:4,ce=O+x[1].length+C;x[2]=x[2].substring(0,C),x[0]=x[0].substring(0,ce).trim(),x[3]=""}var ye=x[2],Ke="";if(this.options.pedantic){var rt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ye);rt?(ye=rt[1],Ke=rt[3]):Ke=""}else Ke=x[3]?x[3].slice(1,-1):"";ye=ye.trim().replace(/^<([\s\S]*)>$/,"$1");var Qe=be(x,{href:ye&&ye.replace(this.rules.inline._escapes,"$1"),title:Ke&&Ke.replace(this.rules.inline._escapes,"$1")},x[0]);return Qe}},W.reflink=function(m,x){var C;if((C=this.rules.inline.reflink.exec(m))||(C=this.rules.inline.nolink.exec(m))){var O=(C[2]||C[1]).replace(/\s+/g," ");if(O=x[O.toLowerCase()],!O||!O.href){var ce=C[0].charAt(0);return{type:"text",raw:ce,text:ce}}var ye=be(C,O,C[0]);return ye}},W.strong=function(m,x,C){C===void 0&&(C="");var O=this.rules.inline.strong.start.exec(m);if(O&&(!O[1]||O[1]&&(C===""||this.rules.inline.punctuation.exec(C)))){x=x.slice(-1*m.length);var ce=O[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ce.lastIndex=0;for(var ye;(O=ce.exec(x))!=null;)if(ye=this.rules.inline.strong.middle.exec(x.slice(0,O.index+3)),ye)return{type:"strong",raw:m.slice(0,ye[0].length),text:m.slice(2,ye[0].length-2)}}},W.em=function(m,x,C){C===void 0&&(C="");var O=this.rules.inline.em.start.exec(m);if(O&&(!O[1]||O[1]&&(C===""||this.rules.inline.punctuation.exec(C)))){x=x.slice(-1*m.length);var ce=O[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ce.lastIndex=0;for(var ye;(O=ce.exec(x))!=null;)if(ye=this.rules.inline.em.middle.exec(x.slice(0,O.index+2)),ye)return{type:"em",raw:m.slice(0,ye[0].length),text:m.slice(1,ye[0].length-1)}}},W.codespan=function(m){var x=this.rules.inline.code.exec(m);if(x){var C=x[2].replace(/\n/g," "),O=/[^ ]/.test(C),ce=C.startsWith(" ")&&C.endsWith(" ");return O&&ce&&(C=C.substring(1,C.length-1)),C=R(C,!0),{type:"codespan",raw:x[0],text:C}}},W.br=function(m){var x=this.rules.inline.br.exec(m);if(x)return{type:"br",raw:x[0]}},W.del=function(m){var x=this.rules.inline.del.exec(m);if(x)return{type:"del",raw:x[0],text:x[1]}},W.autolink=function(m,x){var C=this.rules.inline.autolink.exec(m);if(C){var O,ce;return C[2]==="@"?(O=R(this.options.mangle?x(C[1]):C[1]),ce="mailto:"+O):(O=R(C[1]),ce=O),{type:"link",raw:C[0],text:O,href:ce,tokens:[{type:"text",raw:O,text:O}]}}},W.url=function(m,x){var C;if(C=this.rules.inline.url.exec(m)){var O,ce;if(C[2]==="@")O=R(this.options.mangle?x(C[0]):C[0]),ce="mailto:"+O;else{var ye;do ye=C[0],C[0]=this.rules.inline._backpedal.exec(C[0])[0];while(ye!==C[0]);O=R(C[0]),C[1]==="www."?ce="http://"+O:ce=O}return{type:"link",raw:C[0],text:O,href:ce,tokens:[{type:"text",raw:O,text:O}]}}},W.inlineText=function(m,x,C){var O=this.rules.inline.text.exec(m);if(O){var ce;return x?ce=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(O[0]):R(O[0]):O[0]:ce=R(this.options.smartypants?C(O[0]):O[0]),{type:"text",raw:O[0],text:ce}}},Y}(),I=H.noopTest,g=H.edit,T=H.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:I,table:I,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=g(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=g(b.item,"gm").replace(/bull/g,b.bullet).getRegex(),b.list=g(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=g(b.html,"i").replace("comment",b._comment).replace("tag",b._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),b.paragraph=g(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=g(b.blockquote).replace("paragraph",b.paragraph).getRegex(),b.normal=T({},b),b.gfm=T({},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=g(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=g(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=T({},b.normal,{html:g(`^ *(?: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:I,paragraph:g(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 L={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,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:I,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};L._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",L.punctuation=g(L.punctuation).replace(/punctuation/g,L._punctuation).getRegex(),L._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",L._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",L.em.start=g(L.em.start).replace(/punctuation/g,L._punctuation).getRegex(),L.em.middle=g(L.em.middle).replace(/punctuation/g,L._punctuation).replace(/overlapSkip/g,L._overlapSkip).getRegex(),L.em.endAst=g(L.em.endAst,"g").replace(/punctuation/g,L._punctuation).getRegex(),L.em.endUnd=g(L.em.endUnd,"g").replace(/punctuation/g,L._punctuation).getRegex(),L.strong.start=g(L.strong.start).replace(/punctuation/g,L._punctuation).getRegex(),L.strong.middle=g(L.strong.middle).replace(/punctuation/g,L._punctuation).replace(/blockSkip/g,L._blockSkip).getRegex(),L.strong.endAst=g(L.strong.endAst,"g").replace(/punctuation/g,L._punctuation).getRegex(),L.strong.endUnd=g(L.strong.endUnd,"g").replace(/punctuation/g,L._punctuation).getRegex(),L.blockSkip=g(L._blockSkip,"g").getRegex(),L.overlapSkip=g(L._overlapSkip,"g").getRegex(),L._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,L._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,L._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])?)+(?![-_])/,L.autolink=g(L.autolink).replace("scheme",L._scheme).replace("email",L._email).getRegex(),L._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,L.tag=g(L.tag).replace("comment",b._comment).replace("attribute",L._attribute).getRegex(),L._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,L._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,L._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,L.link=g(L.link).replace("label",L._label).replace("href",L._href).replace("title",L._title).getRegex(),L.reflink=g(L.reflink).replace("label",L._label).getRegex(),L.reflinkSearch=g(L.reflinkSearch,"g").replace("reflink",L.reflink).replace("nolink",L.nolink).getRegex(),L.normal=T({},L),L.pedantic=T({},L.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:g(/^!?\[(label)\]\((.*?)\)/).replace("label",L._label).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L._label).getRegex()}),L.gfm=T({},L.normal,{escape:g(L.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),L.gfm.url=g(L.gfm.url,"i").replace("email",L.gfm._extended_email).getRegex(),L.breaks=T({},L.gfm,{br:g(L.br).replace("{2,}","*").getRegex(),text:g(L.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var d={block:b,inline:L},h=B.defaults,f=d.block,y=d.inline;function G(Y){return Y.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 j(Y){var W="",D,m,x=Y.length;for(D=0;D<x;D++)m=Y.charCodeAt(D),Math.random()>.5&&(m="x"+m.toString(16)),W+="&#"+m+";";return W}var te=function(){function Y(D){this.tokens=[],this.tokens.links=Object.create(null),this.options=D||h,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var m={block:f.normal,inline:y.normal};this.options.pedantic?(m.block=f.pedantic,m.inline=y.pedantic):this.options.gfm&&(m.block=f.gfm,this.options.breaks?m.inline=y.breaks:m.inline=y.gfm),this.tokenizer.rules=m}Y.lex=function(m,x){var C=new Y(x);return C.lex(m)};var W=Y.prototype;return W.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},W.blockTokens=function(m,x,C){x===void 0&&(x=[]),C===void 0&&(C=!0),m=m.replace(/^ +$/gm,"");for(var O,ce,ye,Ke;m;){if(O=this.tokenizer.space(m)){m=m.substring(O.raw.length),O.type&&x.push(O);continue}if(O=this.tokenizer.code(m,x)){m=m.substring(O.raw.length),O.type?x.push(O):(Ke=x[x.length-1],Ke.raw+=`
|
|
`+O.raw,Ke.text+=`
|
|
`+O.text);continue}if(O=this.tokenizer.fences(m)){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.heading(m)){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.nptable(m)){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.hr(m)){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.blockquote(m)){m=m.substring(O.raw.length),O.tokens=this.blockTokens(O.text,[],C),x.push(O);continue}if(O=this.tokenizer.list(m)){for(m=m.substring(O.raw.length),ye=O.items.length,ce=0;ce<ye;ce++)O.items[ce].tokens=this.blockTokens(O.items[ce].text,[],!1);x.push(O);continue}if(O=this.tokenizer.html(m)){m=m.substring(O.raw.length),x.push(O);continue}if(C&&(O=this.tokenizer.def(m))){m=m.substring(O.raw.length),this.tokens.links[O.tag]||(this.tokens.links[O.tag]={href:O.href,title:O.title});continue}if(O=this.tokenizer.table(m)){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.lheading(m)){m=m.substring(O.raw.length),x.push(O);continue}if(C&&(O=this.tokenizer.paragraph(m))){m=m.substring(O.raw.length),x.push(O);continue}if(O=this.tokenizer.text(m,x)){m=m.substring(O.raw.length),O.type?x.push(O):(Ke=x[x.length-1],Ke.raw+=`
|
|
`+O.raw,Ke.text+=`
|
|
`+O.text);continue}if(m){var rt="Infinite loop on byte: "+m.charCodeAt(0);if(this.options.silent){console.error(rt);break}else throw new Error(rt)}}return x},W.inline=function(m){var x,C,O,ce,ye,Ke,rt=m.length;for(x=0;x<rt;x++){Ke=m[x];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:[]},ce=Ke.header.length,C=0;C<ce;C++)Ke.tokens.header[C]=[],this.inlineTokens(Ke.header[C],Ke.tokens.header[C]);for(ce=Ke.cells.length,C=0;C<ce;C++)for(ye=Ke.cells[C],Ke.tokens.cells[C]=[],O=0;O<ye.length;O++)Ke.tokens.cells[C][O]=[],this.inlineTokens(ye[O],Ke.tokens.cells[C][O]);break}case"blockquote":{this.inline(Ke.tokens);break}case"list":{for(ce=Ke.items.length,C=0;C<ce;C++)this.inline(Ke.items[C].tokens);break}}}return m},W.inlineTokens=function(m,x,C,O,ce){x===void 0&&(x=[]),C===void 0&&(C=!1),O===void 0&&(O=!1),ce===void 0&&(ce="");var ye,Ke=m,rt;if(this.tokens.links){var Qe=Object.keys(this.tokens.links);if(Qe.length>0)for(;(rt=this.tokenizer.rules.inline.reflinkSearch.exec(Ke))!=null;)Qe.includes(rt[0].slice(rt[0].lastIndexOf("[")+1,-1))&&(Ke=Ke.slice(0,rt.index)+"["+"a".repeat(rt[0].length-2)+"]"+Ke.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(rt=this.tokenizer.rules.inline.blockSkip.exec(Ke))!=null;)Ke=Ke.slice(0,rt.index)+"["+"a".repeat(rt[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),x.push(ye);continue}if(ye=this.tokenizer.tag(m,C,O)){m=m.substring(ye.raw.length),C=ye.inLink,O=ye.inRawBlock,x.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,O)),x.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,O)),x.push(ye);continue}if(ye=this.tokenizer.strong(m,Ke,ce)){m=m.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],C,O),x.push(ye);continue}if(ye=this.tokenizer.em(m,Ke,ce)){m=m.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],C,O),x.push(ye);continue}if(ye=this.tokenizer.codespan(m)){m=m.substring(ye.raw.length),x.push(ye);continue}if(ye=this.tokenizer.br(m)){m=m.substring(ye.raw.length),x.push(ye);continue}if(ye=this.tokenizer.del(m)){m=m.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],C,O),x.push(ye);continue}if(ye=this.tokenizer.autolink(m,j)){m=m.substring(ye.raw.length),x.push(ye);continue}if(!C&&(ye=this.tokenizer.url(m,j))){m=m.substring(ye.raw.length),x.push(ye);continue}if(ye=this.tokenizer.inlineText(m,O,G)){m=m.substring(ye.raw.length),ce=ye.raw.slice(-1),x.push(ye);continue}if(m){var it="Infinite loop on byte: "+m.charCodeAt(0);if(this.options.silent){console.error(it);break}else throw new Error(it)}}return x},Oe(Y,null,[{key:"rules",get:function(){return{block:f,inline:y}}}]),Y}(),Ee=B.defaults,Le=H.cleanUrl,Ie=H.escape,De=function(){function Y(D){this.options=D||Ee}var W=Y.prototype;return W.code=function(m,x,C){var O=(x||"").match(/\S*/)[0];if(this.options.highlight){var ce=this.options.highlight(m,O);ce!=null&&ce!==m&&(C=!0,m=ce)}return O?'<pre><code class="'+this.options.langPrefix+Ie(O,!0)+'">'+(C?m:Ie(m,!0))+`</code></pre>
|
|
`:"<pre><code>"+(C?m:Ie(m,!0))+`</code></pre>
|
|
`},W.blockquote=function(m){return`<blockquote>
|
|
`+m+`</blockquote>
|
|
`},W.html=function(m){return m},W.heading=function(m,x,C,O){return this.options.headerIds?"<h"+x+' id="'+this.options.headerPrefix+O.slug(C)+'">'+m+"</h"+x+`>
|
|
`:"<h"+x+">"+m+"</h"+x+`>
|
|
`},W.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},W.list=function(m,x,C){var O=x?"ol":"ul",ce=x&&C!==1?' start="'+C+'"':"";return"<"+O+ce+`>
|
|
`+m+"</"+O+`>
|
|
`},W.listitem=function(m){return"<li>"+m+`</li>
|
|
`},W.checkbox=function(m){return"<input "+(m?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},W.paragraph=function(m){return"<p>"+m+`</p>
|
|
`},W.table=function(m,x){return x&&(x="<tbody>"+x+"</tbody>"),`<table>
|
|
<thead>
|
|
`+m+`</thead>
|
|
`+x+`</table>
|
|
`},W.tablerow=function(m){return`<tr>
|
|
`+m+`</tr>
|
|
`},W.tablecell=function(m,x){var C=x.header?"th":"td",O=x.align?"<"+C+' align="'+x.align+'">':"<"+C+">";return O+m+"</"+C+`>
|
|
`},W.strong=function(m){return"<strong>"+m+"</strong>"},W.em=function(m){return"<em>"+m+"</em>"},W.codespan=function(m){return"<code>"+m+"</code>"},W.br=function(){return this.options.xhtml?"<br/>":"<br>"},W.del=function(m){return"<del>"+m+"</del>"},W.link=function(m,x,C){if(m=Le(this.options.sanitize,this.options.baseUrl,m),m===null)return C;var O='<a href="'+Ie(m)+'"';return x&&(O+=' title="'+x+'"'),O+=">"+C+"</a>",O},W.image=function(m,x,C){if(m=Le(this.options.sanitize,this.options.baseUrl,m),m===null)return C;var O='<img src="'+m+'" alt="'+C+'"';return x&&(O+=' title="'+x+'"'),O+=this.options.xhtml?"/>":">",O},W.text=function(m){return m},Y}(),Me=function(){function Y(){}var W=Y.prototype;return W.strong=function(m){return m},W.em=function(m){return m},W.codespan=function(m){return m},W.del=function(m){return m},W.html=function(m){return m},W.text=function(m){return m},W.link=function(m,x,C){return""+C},W.image=function(m,x,C){return""+C},W.br=function(){return""},Y}(),$e=function(){function Y(){this.seen={}}var W=Y.prototype;return W.slug=function(m){var x=m.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(x)){var C=x;do this.seen[C]++,x=C+"-"+this.seen[C];while(this.seen.hasOwnProperty(x))}return this.seen[x]=0,x},Y}(),ue=B.defaults,Te=H.unescape,Re=function(){function Y(D){this.options=D||ue,this.options.renderer=this.options.renderer||new De,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Me,this.slugger=new $e}Y.parse=function(m,x){var C=new Y(x);return C.parse(m)};var W=Y.prototype;return W.parse=function(m,x){x===void 0&&(x=!0);var C="",O,ce,ye,Ke,rt,Qe,it,gt,xt,lt,Pt,kt,Et,bt,pt,Ot,It,Kt,Yt=m.length;for(O=0;O<Yt;O++){lt=m[O];switch(lt.type){case"space":continue;case"hr":{C+=this.renderer.hr();continue}case"heading":{C+=this.renderer.heading(this.parseInline(lt.tokens),lt.depth,Te(this.parseInline(lt.tokens,this.textRenderer)),this.slugger);continue}case"code":{C+=this.renderer.code(lt.text,lt.lang,lt.escaped);continue}case"table":{for(gt="",it="",Ke=lt.header.length,ce=0;ce<Ke;ce++)it+=this.renderer.tablecell(this.parseInline(lt.tokens.header[ce]),{header:!0,align:lt.align[ce]});for(gt+=this.renderer.tablerow(it),xt="",Ke=lt.cells.length,ce=0;ce<Ke;ce++){for(Qe=lt.tokens.cells[ce],it="",rt=Qe.length,ye=0;ye<rt;ye++)it+=this.renderer.tablecell(this.parseInline(Qe[ye]),{header:!1,align:lt.align[ye]});xt+=this.renderer.tablerow(it)}C+=this.renderer.table(gt,xt);continue}case"blockquote":{xt=this.parse(lt.tokens),C+=this.renderer.blockquote(xt);continue}case"list":{for(Pt=lt.ordered,kt=lt.start,Et=lt.loose,Ke=lt.items.length,xt="",ce=0;ce<Ke;ce++)pt=lt.items[ce],Ot=pt.checked,It=pt.task,bt="",pt.task&&(Kt=this.renderer.checkbox(Ot),Et?pt.tokens.length>0&&pt.tokens[0].type==="text"?(pt.tokens[0].text=Kt+" "+pt.tokens[0].text,pt.tokens[0].tokens&&pt.tokens[0].tokens.length>0&&pt.tokens[0].tokens[0].type==="text"&&(pt.tokens[0].tokens[0].text=Kt+" "+pt.tokens[0].tokens[0].text)):pt.tokens.unshift({type:"text",text:Kt}):bt+=Kt),bt+=this.parse(pt.tokens,Et),xt+=this.renderer.listitem(bt,It,Ot);C+=this.renderer.list(xt,Pt,kt);continue}case"html":{C+=this.renderer.html(lt.text);continue}case"paragraph":{C+=this.renderer.paragraph(this.parseInline(lt.tokens));continue}case"text":{for(xt=lt.tokens?this.parseInline(lt.tokens):lt.text;O+1<Yt&&m[O+1].type==="text";)lt=m[++O],xt+=`
|
|
`+(lt.tokens?this.parseInline(lt.tokens):lt.text);C+=x?this.renderer.paragraph(xt):xt;continue}default:{var Mt='Token with "'+lt.type+'" type was not found.';if(this.options.silent){console.error(Mt);return}else throw new Error(Mt)}}}return C},W.parseInline=function(m,x){x=x||this.renderer;var C="",O,ce,ye=m.length;for(O=0;O<ye;O++){ce=m[O];switch(ce.type){case"escape":{C+=x.text(ce.text);break}case"html":{C+=x.html(ce.text);break}case"link":{C+=x.link(ce.href,ce.title,this.parseInline(ce.tokens,x));break}case"image":{C+=x.image(ce.href,ce.title,ce.text);break}case"strong":{C+=x.strong(this.parseInline(ce.tokens,x));break}case"em":{C+=x.em(this.parseInline(ce.tokens,x));break}case"codespan":{C+=x.codespan(ce.text);break}case"br":{C+=x.br();break}case"del":{C+=x.del(this.parseInline(ce.tokens,x));break}case"text":{C+=x.text(ce.text);break}default:{var Ke='Token with "'+ce.type+'" type was not found.';if(this.options.silent){console.error(Ke);return}else throw new Error(Ke)}}}return C},Y}(),Fe=H.merge,We=H.checkSanitizeDeprecation,Pe=H.escape,ve=B.getDefaults,ze=B.changeDefaults,He=B.defaults;function ke(Y,W,D){if(typeof Y=="undefined"||Y===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Y!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Y)+", string expected");if(typeof W=="function"&&(D=W,W=null),W=Fe({},ke.defaults,W||{}),We(W),D){var m=W.highlight,x;try{x=te.lex(Y,W)}catch(ye){return D(ye)}var C=function(Ke){var rt;if(!Ke)try{rt=Re.parse(x,W)}catch(Qe){Ke=Qe}return W.highlight=m,Ke?D(Ke):D(null,rt)};if(!m||m.length<3)return C();if(delete W.highlight,!x.length)return C();var O=0;ke.walkTokens(x,function(ye){ye.type==="code"&&(O++,setTimeout(function(){m(ye.text,ye.lang,function(Ke,rt){if(Ke)return C(Ke);rt!=null&&rt!==ye.text&&(ye.text=rt,ye.escaped=!0),O--,O===0&&C()})},0))}),O===0&&C();return}try{var ce=te.lex(Y,W);return W.walkTokens&&ke.walkTokens(ce,W.walkTokens),Re.parse(ce,W)}catch(ye){if(ye.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,W.silent)return"<p>An error occurred:</p><pre>"+Pe(ye.message+"",!0)+"</pre>";throw ye}}ke.options=ke.setOptions=function(Y){return Fe(ke.defaults,Y),ze(ke.defaults),ke},ke.getDefaults=ve,ke.defaults=He,ke.use=function(Y){var W=Fe({},Y);if(Y.renderer&&function(){var m=ke.defaults.renderer||new De,x=function(ce){var ye=m[ce];m[ce]=function(){for(var Ke=arguments.length,rt=new Array(Ke),Qe=0;Qe<Ke;Qe++)rt[Qe]=arguments[Qe];var it=Y.renderer[ce].apply(m,rt);return it===!1&&(it=ye.apply(m,rt)),it}};for(var C in Y.renderer)x(C);W.renderer=m}(),Y.tokenizer&&function(){var m=ke.defaults.tokenizer||new pe,x=function(ce){var ye=m[ce];m[ce]=function(){for(var Ke=arguments.length,rt=new Array(Ke),Qe=0;Qe<Ke;Qe++)rt[Qe]=arguments[Qe];var it=Y.tokenizer[ce].apply(m,rt);return it===!1&&(it=ye.apply(m,rt)),it}};for(var C in Y.tokenizer)x(C);W.tokenizer=m}(),Y.walkTokens){var D=ke.defaults.walkTokens;W.walkTokens=function(m){Y.walkTokens(m),D&&D(m)}}ke.setOptions(W)},ke.walkTokens=function(Y,W){for(var D=Ce(Y),m;!(m=D()).done;){var x=m.value;W(x);switch(x.type){case"table":{for(var C=Ce(x.tokens.header),O;!(O=C()).done;){var ce=O.value;ke.walkTokens(ce,W)}for(var ye=Ce(x.tokens.cells),Ke;!(Ke=ye()).done;)for(var rt=Ke.value,Qe=Ce(rt),it;!(it=Qe()).done;){var gt=it.value;ke.walkTokens(gt,W)}break}case"list":{ke.walkTokens(x.items,W);break}default:x.tokens&&ke.walkTokens(x.tokens,W)}}},ke.Parser=Re,ke.parser=Re.parse,ke.Renderer=De,ke.TextRenderer=Me,ke.Lexer=te,ke.lexer=te.lex,ke.Tokenizer=pe,ke.Slugger=$e,ke.parse=ke;var Ue=ke;return Ue})},ELLl:function(ct,Ge,v){(function(X){X(v("VrN/"))})(function(X){var Oe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},xe=X.Pos;X.defineOption("autoCloseBrackets",!1,function(U,M,z){z&&z!=X.Init&&(U.removeKeyMap(Ce),U.state.closeBrackets=null),M&&(ie(je(M,"pairs")),U.state.closeBrackets=M,U.addKeyMap(Ce))});function je(U,M){return M=="pairs"&&typeof U=="string"?U:typeof U=="object"&&U[M]!=null?U[M]:Oe[M]}var Ce={Backspace:k,Enter:ne};function ie(U){for(var M=0;M<U.length;M++){var z=U.charAt(M),re="'"+z+"'";Ce[re]||(Ce[re]=B(z))}}ie(Oe.pairs+"`");function B(U){return function(M){return me(M,U)}}function A(U){var M=U.state.closeBrackets;if(!M||M.override)return M;var z=U.getModeAt(U.getCursor());return z.closeBrackets||M}function k(U){var M=A(U);if(!M||U.getOption("disableInput"))return X.Pass;for(var z=je(M,"pairs"),re=U.listSelections(),ae=0;ae<re.length;ae++){if(!re[ae].empty())return X.Pass;var we=Ae(U,re[ae].head);if(!we||z.indexOf(we)%2!=0)return X.Pass}for(var ae=re.length-1;ae>=0;ae--){var Ne=re[ae].head;U.replaceRange("",xe(Ne.line,Ne.ch-1),xe(Ne.line,Ne.ch+1),"+delete")}}function ne(U){var M=A(U),z=M&&je(M,"explode");if(!z||U.getOption("disableInput"))return X.Pass;for(var re=U.listSelections(),ae=0;ae<re.length;ae++){if(!re[ae].empty())return X.Pass;var we=Ae(U,re[ae].head);if(!we||z.indexOf(we)%2!=0)return X.Pass}U.operation(function(){var Ne=U.lineSeparator()||`
|
|
`;U.replaceSelection(Ne+Ne,null),U.execCommand("goCharLeft"),re=U.listSelections();for(var fe=0;fe<re.length;fe++){var Z=re[fe].head.line;U.indentLine(Z,null,!0),U.indentLine(Z+1,null,!0)}})}function q(U){var M=X.cmpPos(U.anchor,U.head)>0;return{anchor:new xe(U.anchor.line,U.anchor.ch+(M?-1:1)),head:new xe(U.head.line,U.head.ch+(M?1:-1))}}function me(U,M){var z=A(U);if(!z||U.getOption("disableInput"))return X.Pass;var re=je(z,"pairs"),ae=re.indexOf(M);if(ae==-1)return X.Pass;for(var we=je(z,"closeBefore"),Ne=je(z,"triples"),fe=re.charAt(ae+1)==M,Z=U.listSelections(),he=ae%2==0,se,_=0;_<Z.length;_++){var Q=Z[_],P=Q.head,w,oe=U.getRange(P,xe(P.line,P.ch+1));if(he&&!Q.empty())w="surround";else if((fe||!he)&&oe==M)fe&&le(U,P)?w="both":Ne.indexOf(M)>=0&&U.getRange(P,xe(P.line,P.ch+3))==M+M+M?w="skipThree":w="skip";else if(fe&&P.ch>1&&Ne.indexOf(M)>=0&&U.getRange(xe(P.line,P.ch-2),P)==M+M){if(P.ch>2&&/\bstring/.test(U.getTokenTypeAt(xe(P.line,P.ch-2))))return X.Pass;w="addFour"}else if(fe){var V=P.ch==0?" ":U.getRange(xe(P.line,P.ch-1),P);if(!X.isWordChar(oe)&&V!=M&&!X.isWordChar(V))w="both";else return X.Pass}else if(he&&(oe.length===0||/\s/.test(oe)||we.indexOf(oe)>-1))w="both";else return X.Pass;if(!se)se=w;else if(se!=w)return X.Pass}var S=ae%2?re.charAt(ae-1):M,N=ae%2?M:re.charAt(ae+1);U.operation(function(){if(se=="skip")U.execCommand("goCharRight");else if(se=="skipThree")for(var J=0;J<3;J++)U.execCommand("goCharRight");else if(se=="surround"){for(var K=U.getSelections(),J=0;J<K.length;J++)K[J]=S+K[J]+N;U.replaceSelections(K,"around"),K=U.listSelections().slice();for(var J=0;J<K.length;J++)K[J]=q(K[J]);U.setSelections(K)}else se=="both"?(U.replaceSelection(S+N,null),U.triggerElectric(S+N),U.execCommand("goCharLeft")):se=="addFour"&&(U.replaceSelection(S+S+S+S,"before"),U.execCommand("goCharRight"))})}function Ae(U,M){var z=U.getRange(xe(M.line,M.ch-1),xe(M.line,M.ch+1));return z.length==2?z:null}function le(U,M){var z=U.getTokenAt(xe(M.line,M.ch+1));return/\bstring/.test(z.type)&&z.start==M.ch&&(M.ch==0||!/\bstring/.test(U.getTokenTypeAt(M)))}})},GfqC:function(ct,Ge,v){"use strict";var X=v("q1tI"),Oe=v.n(X),xe=v("TSYQ"),je=v.n(xe);function Ce(H,u){var s="cannot "+H.method+" "+H.action+" "+u.status+"'",E=new Error(s);return E.status=u.status,E.method=H.method,E.url=H.action,E}function ie(H){var u=H.responseText||H.response;if(!u)return u;try{return JSON.parse(u)}catch(s){return u}}function B(H){var u=new XMLHttpRequest;H.onProgress&&u.upload&&(u.upload.onprogress=function(ee){ee.total>0&&(ee.percent=ee.loaded/ee.total*100),H.onProgress(ee)});var s=new FormData;H.data&&Object.keys(H.data).forEach(function(R){var ee=H.data[R];if(Array.isArray(ee)){ee.forEach(function(be){s.append(R+"[]",be)});return}s.append(R,H.data[R])}),H.file instanceof Blob?s.append(H.filename,H.file,H.file.name):s.append(H.filename,H.file),u.onerror=function(ee){H.onError(ee)},u.onload=function(){return u.status<200||u.status>=300?H.onError(Ce(H,u),ie(u)):H.onSuccess(ie(u),u)},u.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in u&&(u.withCredentials=!0);var E=H.headers||{};return E["X-Requested-With"]!==null&&u.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(E).forEach(function(R){E[R]!==null&&u.setRequestHeader(R,E[R])}),u.send(s),{abort:function(){u.abort()}}}var A=+new Date,k=0;function ne(){return"rc-upload-"+A+"-"+ ++k}function q(H,u){return H.indexOf(u,H.length-u.length)!==-1}var me=function(H,u){if(H&&u){var s=Array.isArray(u)?u:u.split(","),E=H.name||"",R=H.type||"",ee=R.replace(/\/.*$/,"");return s.some(function(be){var de=be.trim();return de.charAt(0)==="."?q(E.toLowerCase(),de.toLowerCase()):/\/\*$/.test(de)?ee===de.replace(/\/.*$/,""):R===de})}return!0};function Ae(H,u){var s=H.createReader(),E=[];function R(){s.readEntries(function(ee){var be=Array.prototype.slice.apply(ee);E=E.concat(be);var de=!be.length;de?u(E):R()})}R()}var le=function(u,s,E){var R=function ee(be,de){de=de||"",be.isFile?be.file(function(pe){E(pe)&&(be.fullPath&&!pe.webkitRelativePath&&(Object.defineProperties(pe,{webkitRelativePath:{writable:!0}}),pe.webkitRelativePath=be.fullPath.replace(/^\//,""),Object.defineProperties(pe,{webkitRelativePath:{writable:!1}})),s([pe]))}):be.isDirectory&&Ae(be,function(pe){pe.forEach(function(I){ee(I,""+de+be.name+"/")})})};u.forEach(function(ee){R(ee.webkitGetAsEntry())})},U=le,M=Object.assign||function(H){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var E in s)Object.prototype.hasOwnProperty.call(s,E)&&(H[E]=s[E])}return H},z=function(){function H(u,s){var E=[],R=!0,ee=!1,be=void 0;try{for(var de=u[Symbol.iterator](),pe;!(R=(pe=de.next()).done)&&!(E.push(pe.value),s&&E.length===s);R=!0);}catch(I){ee=!0,be=I}finally{try{!R&&de.return&&de.return()}finally{if(ee)throw be}}return E}return function(u,s){if(Array.isArray(u))return u;if(Symbol.iterator in Object(u))return H(u,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),re=function(){function H(u,s){for(var E=0;E<s.length;E++){var R=s[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(u,R.key,R)}}return function(u,s,E){return s&&H(u.prototype,s),E&&H(u,E),u}}();function ae(H,u,s){return u in H?Object.defineProperty(H,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):H[u]=s,H}function we(H,u){var s={};for(var E in H){if(u.indexOf(E)>=0)continue;if(!Object.prototype.hasOwnProperty.call(H,E))continue;s[E]=H[E]}return s}function Ne(H,u){if(!(H instanceof u))throw new TypeError("Cannot call a class as a function")}function fe(H,u){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:H}function Z(H,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);H.prototype=Object.create(u&&u.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(H,u):H.__proto__=u)}var he=function(u){return Object.keys(u).reduce(function(s,E){return(E.substr(0,5)==="data-"||E.substr(0,5)==="aria-"||E==="role")&&(s[E]=u[E]),s},{})},se=function(H){Z(u,H);function u(){var s,E,R,ee;Ne(this,u);for(var be=arguments.length,de=Array(be),pe=0;pe<be;pe++)de[pe]=arguments[pe];return ee=(E=(R=fe(this,(s=u.__proto__||Object.getPrototypeOf(u)).call.apply(s,[this].concat(de))),R),R.state={uid:ne()},R.reqs={},R.onChange=function(I){var g=I.target.files;R.uploadFiles(g),R.reset()},R.onClick=function(I){var g=R.fileInput;if(!g)return;var T=R.props,b=T.children,L=T.onClick;b&&b.type==="button"&&(g.parentNode.focus(),g.parentNode.querySelector("button").blur()),g.click(),L&&L(I)},R.onKeyDown=function(I){I.key==="Enter"&&R.onClick()},R.onFileDrop=function(I){var g=R.props.multiple;if(I.preventDefault(),I.type==="dragover")return;if(R.props.directory)U(Array.prototype.slice.call(I.dataTransfer.items),R.uploadFiles,function(b){return me(b,R.props.accept)});else{var T=Array.prototype.slice.call(I.dataTransfer.files).filter(function(b){return me(b,R.props.accept)});g===!1&&(T=T.slice(0,1)),R.uploadFiles(T)}},R.uploadFiles=function(I){var g=Array.prototype.slice.call(I);g.map(function(T){return T.uid=ne(),T}).forEach(function(T){R.upload(T,g)})},R.saveFileInput=function(I){R.fileInput=I},E),fe(R,ee)}return re(u,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(E,R){var ee=this,be=this.props;if(!be.beforeUpload)return setTimeout(function(){return ee.post(E)},0);var de=be.beforeUpload(E,R);de&&de.then?de.then(function(pe){var I=Object.prototype.toString.call(pe);return I==="[object File]"||I==="[object Blob]"?ee.post(pe):ee.post(E)}).catch(function(pe){console.log(pe)}):de!==!1&&setTimeout(function(){return ee.post(E)},0);return}},{key:"post",value:function(E){var R=this;if(!this._isMounted)return;var ee=this.props,be=ee.onStart,de=ee.onProgress,pe=ee.transformFile,I=pe===void 0?function(g){return g}:pe;new Promise(function(g){var T=ee.action;return typeof T=="function"&&(T=T(E)),g(T)}).then(function(g){var T=E.uid,b=ee.customRequest||B,L=Promise.resolve(I(E)).then(function(d){var h=ee.data;return typeof h=="function"&&(h=h(d)),Promise.all([d,h])}).catch(function(d){console.error(d)});L.then(function(d){var h=z(d,2),f=h[0],y=h[1],G={action:g,filename:ee.name,data:y,file:f,headers:ee.headers,withCredentials:ee.withCredentials,method:ee.method||"post",onProgress:de?function(j){de(j,E)}:null,onSuccess:function(te,Ee){delete R.reqs[T],ee.onSuccess(te,E,Ee)},onError:function(te,Ee){delete R.reqs[T],ee.onError(te,Ee,E)}};be(E),R.reqs[T]=b(G)})})}},{key:"reset",value:function(){this.setState({uid:ne()})}},{key:"abort",value:function(E){var R=this.reqs;if(E){var ee=E;E&&E.uid&&(ee=E.uid),R[ee]&&R[ee].abort&&R[ee].abort(),delete R[ee]}else Object.keys(R).forEach(function(be){R[be]&&R[be].abort&&R[be].abort(),delete R[be]})}},{key:"render",value:function(){var E,R=this.props,ee=R.component,be=R.prefixCls,de=R.className,pe=R.disabled,I=R.id,g=R.style,T=R.multiple,b=R.accept,L=R.children,d=R.directory,h=R.openFileDialogOnClick,f=R.onMouseEnter,y=R.onMouseLeave,G=we(R,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),j=je()((E={},ae(E,be,!0),ae(E,be+"-disabled",pe),ae(E,de,de),E)),te=pe?{}:{onClick:h?this.onClick:function(){},onKeyDown:h?this.onKeyDown:function(){},onMouseEnter:f,onMouseLeave:y,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Oe.a.createElement(ee,M({},te,{className:j,role:"button",style:g}),Oe.a.createElement("input",M({},he(G),{id:I,type:"file",ref:this.saveFileInput,onClick:function(Le){return Le.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:b,directory:d?"directory":null,webkitdirectory:d?"webkitdirectory":null,multiple:T,onChange:this.onChange})),L)}}]),u}(X.Component),_=se,Q=Object.assign||function(H){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var E in s)Object.prototype.hasOwnProperty.call(s,E)&&(H[E]=s[E])}return H},P=function(){function H(u,s){for(var E=0;E<s.length;E++){var R=s[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(u,R.key,R)}}return function(u,s,E){return s&&H(u.prototype,s),E&&H(u,E),u}}();function w(H,u){if(!(H instanceof u))throw new TypeError("Cannot call a class as a function")}function oe(H,u){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:H}function V(H,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);H.prototype=Object.create(u&&u.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(H,u):H.__proto__=u)}function S(){}var N=function(H){V(u,H);function u(){var s,E,R,ee;w(this,u);for(var be=arguments.length,de=Array(be),pe=0;pe<be;pe++)de[pe]=arguments[pe];return ee=(E=(R=oe(this,(s=u.__proto__||Object.getPrototypeOf(u)).call.apply(s,[this].concat(de))),R),R.saveUploader=function(I){R.uploader=I},E),oe(R,ee)}return P(u,[{key:"abort",value:function(E){this.uploader.abort(E)}},{key:"render",value:function(){return Oe.a.createElement(_,Q({},this.props,{ref:this.saveUploader}))}}]),u}(X.Component);N.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:S,onError:S,onSuccess:S,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var J=N,K=Ge.a=J},Gytx:function(ct,Ge){ct.exports=function(X,Oe,xe,je){var Ce=xe?xe.call(je,X,Oe):void 0;if(Ce!==void 0)return!!Ce;if(X===Oe)return!0;if(typeof X!="object"||!X||typeof Oe!="object"||!Oe)return!1;var ie=Object.keys(X),B=Object.keys(Oe);if(ie.length!==B.length)return!1;for(var A=Object.prototype.hasOwnProperty.bind(Oe),k=0;k<ie.length;k++){var ne=ie[k];if(!A(ne))return!1;var q=X[ne],me=Oe[ne];if(Ce=xe?xe.call(je,q,me,ne):void 0,Ce===!1||Ce===void 0&&q!==me)return!1}return!0}},HmJG:function(ct,Ge,v){},LdHM:function(ct,Ge,v){"use strict";v.d(Ge,"b",function(){return we}),v.d(Ge,"a",function(){return fe});var X=v("1OyB"),Oe=v("vuIU"),xe=v("Ji7U"),je=v("LK+K"),Ce=v("q1tI"),ie=v("rePB"),B=v("Ff2n"),A=v("ODXe"),k=v("4IlW"),ne=v("bX4T"),q=v("YrtM"),me=v("TSYQ"),Ae=v.n(me),le=v("+nKL"),U=v("8OUc"),M=function(E,R){var ee=E.prefixCls,be=E.id,de=E.flattenOptions,pe=E.childrenAsData,I=E.values,g=E.searchValue,T=E.multiple,b=E.defaultActiveFirstOption,L=E.height,d=E.itemHeight,h=E.notFoundContent,f=E.open,y=E.menuItemSelectedIcon,G=E.virtual,j=E.onSelect,te=E.onToggleOpen,Ee=E.onActiveValue,Le=E.onScroll,Ie=E.onMouseEnter,De="".concat(ee,"-item"),Me=Object(q.a)(function(){return de},[f,de],function(Ue,Y){return Y[0]&&Ue[1]!==Y[1]}),$e=Ce.useRef(null),ue=function(Y){Y.preventDefault()},Te=function(Y){$e.current&&$e.current.scrollTo({index:Y})},Re=function(Y){for(var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,D=Me.length,m=0;m<D;m+=1){var x=(Y+m*W+D)%D,C=Me[x],O=C.group,ce=C.data;if(!O&&!ce.disabled)return x}return-1},Fe=Ce.useState(function(){return Re(0)}),We=Object(A.a)(Fe,2),Pe=We[0],ve=We[1],ze=function(Y){ve(Y);var W=Me[Y];if(!W){Ee(null,-1);return}Ee(W.data.value,Y)};Ce.useEffect(function(){ze(b!==!1?Re(0):-1)},[Me.length,g]),Ce.useEffect(function(){var Ue=setTimeout(function(){if(!T&&f&&I.size===1){var Y=Array.from(I)[0],W=Me.findIndex(function(D){var m=D.data;return m.value===Y});ze(W),Te(W)}});return function(){return clearTimeout(Ue)}},[f]);var He=function(Y){Y!==void 0&&j(Y,{selected:!I.has(Y)}),T||te(!1)};if(Ce.useImperativeHandle(R,function(){return{onKeyDown:function(Y){var W=Y.which;switch(W){case k.a.UP:case k.a.DOWN:{var D=0;if(W===k.a.UP?D=-1:W===k.a.DOWN&&(D=1),D!==0){var m=Re(Pe+D,D);Te(m),ze(m)}break}case k.a.ENTER:{var x=Me[Pe];x&&!x.data.disabled?He(x.data.value):He(void 0),f&&Y.preventDefault();break}case k.a.ESC:te(!1)}},onKeyUp:function(){},scrollTo:function(Y){Te(Y)}}}),Me.length===0)return Ce.createElement("div",{role:"listbox",id:"".concat(be,"_list"),className:"".concat(De,"-empty"),onMouseDown:ue},h);function ke(Ue){var Y=Me[Ue];if(!Y)return null;var W=Y.data||{},D=W.value,m=W.label,x=W.children,C=Object(ne.a)(W,!0),O=pe?x:m;return Y?Ce.createElement("div",Object.assign({"aria-label":typeof O=="string"?O:null},C,{key:Ue,role:"option",id:"".concat(be,"_list_").concat(Ue),"aria-selected":I.has(D)}),D):null}return Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{role:"listbox",id:"".concat(be,"_list"),style:{height:0,width:0,overflow:"hidden"}},ke(Pe-1),ke(Pe),ke(Pe+1)),Ce.createElement(le.a,{itemKey:"key",ref:$e,data:Me,height:L,itemHeight:d,fullHeight:!1,onMouseDown:ue,onScroll:Le,virtual:G,onMouseEnter:Ie},function(Ue,Y){var W,D=Ue.group,m=Ue.groupOption,x=Ue.data,C=x.label,O=x.key;if(D)return Ce.createElement("div",{className:Ae()(De,"".concat(De,"-group"))},C!==void 0?C:O);var ce=x.disabled,ye=x.value,Ke=x.title,rt=x.children,Qe=x.style,it=x.className,gt=Object(B.a)(x,["disabled","value","title","children","style","className"]),xt=I.has(ye),lt="".concat(De,"-option"),Pt=Ae()(De,lt,it,(W={},Object(ie.a)(W,"".concat(lt,"-grouped"),m),Object(ie.a)(W,"".concat(lt,"-active"),Pe===Y&&!ce),Object(ie.a)(W,"".concat(lt,"-disabled"),ce),Object(ie.a)(W,"".concat(lt,"-selected"),xt),W)),kt=pe?rt:C,Et=!y||typeof y=="function"||xt;return Ce.createElement("div",Object.assign({},gt,{"aria-selected":xt,className:Pt,title:Ke,onMouseMove:function(){if(Pe===Y||ce)return;ze(Y)},onClick:function(){ce||He(ye)},style:Qe}),Ce.createElement("div",{className:"".concat(lt,"-content")},kt||ye),Ce.isValidElement(y)||xt,Et&&Ce.createElement(U.a,{className:"".concat(De,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:xt}},xt?"\u2713":null))}))},z=Ce.forwardRef(M);z.displayName="OptionList";var re=z,ae=function(){return null};ae.isSelectOption=!0;var we=ae,Ne=function(){return null};Ne.isSelectOptGroup=!0;var fe=Ne,Z=v("VTBJ"),he=v("Zm9Q");function se(s){var E=s.key,R=s.props,ee=R.children,be=R.value,de=Object(B.a)(R,["children","value"]);return Object(Z.a)({key:E,value:be!==void 0?be:E,children:ee},de)}function _(s){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(he.a)(s).map(function(R,ee){if(!Ce.isValidElement(R)||!R.type)return null;var be=R.type.isSelectOptGroup,de=R.key,pe=R.props,I=pe.children,g=Object(B.a)(pe,["children"]);return E||!be?se(R):Object(Z.a)(Object(Z.a)({key:"__RC_SELECT_GRP__".concat(de===null?ee:de,"__"),label:de},g),{},{options:_(I)})}).filter(function(R){return R})}var Q=v("2Qr1"),P=v("qNPg"),w=v("U8pU"),oe=v("Kwbf"),V=v("WKfj");function S(s){var E=s.mode,R=s.options,ee=s.children,be=s.backfill,de=s.allowClear,pe=s.placeholder,I=s.getInputElement,g=s.showSearch,T=s.onSearch,b=s.defaultOpen,L=s.autoFocus,d=s.labelInValue,h=s.value,f=s.inputValue,y=s.optionLabelProp,G=E==="multiple"||E==="tags",j=g!==void 0?g:G||E==="combobox",te=R||_(ee);if(Object(oe.a)(E!=="tags"||te.every(function(De){return!De.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),E==="tags"||E==="combobox"){var Ee=te.some(function(De){return De.options?De.options.some(function(Me){return typeof("value"in Me?Me.value:Me.key)=="number"}):typeof("value"in De?De.value:De.key)=="number"});Object(oe.a)(!Ee,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(oe.a)(E!=="combobox"||!y,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(oe.a)(E==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(oe.a)(E==="combobox"||!I,"`getInputElement` only work with `combobox` mode."),Object(oe.b)(E!=="combobox"||!I||!de||!pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),T&&!j&&E!=="combobox"&&E!=="tags"&&Object(oe.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(oe.b)(!b||L,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),h!=null){var Le=Object(V.d)(h);Object(oe.a)(!d||Le.every(function(De){return Object(w.a)(De)==="object"&&("key"in De||"value"in De)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(oe.a)(!G||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(ee){var Ie=null;Object(he.a)(ee).some(function(De){if(!Ce.isValidElement(De)||!De.type)return!1;var Me=De.type;if(Me.isSelectOption)return!1;if(Me.isSelectOptGroup){var $e=Object(he.a)(De.props.children).every(function(ue){return!Ce.isValidElement(ue)||!De.type||ue.type.isSelectOption?!0:(Ie=ue.type,!1)});return!$e}return Ie=Me,!0}),Ie&&Object(oe.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(oe.a)(f===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=S,J=Object(P.a)({prefixCls:"rc-select",components:{optionList:re},convertChildrenToData:_,flattenOptions:Q.d,getLabeledValue:Q.e,filterOptions:Q.b,isValueDisabled:Q.g,findValueOption:Q.c,warningProps:N,fillOptionsWithMissingValue:Q.a}),K=function(s){Object(xe.a)(R,s);var E=Object(je.a)(R);function R(){var ee;return Object(X.a)(this,R),ee=E.apply(this,arguments),ee.selectRef=Ce.createRef(),ee.focus=function(){ee.selectRef.current.focus()},ee.blur=function(){ee.selectRef.current.blur()},ee}return Object(Oe.a)(R,[{key:"render",value:function(){return Ce.createElement(J,Object.assign({ref:this.selectRef},this.props))}}]),R}(Ce.Component);K.Option=we,K.OptGroup=fe;var H=K,u=Ge.c=H},M8RZ:function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return k});var X=v("fWQN"),Oe=v("mtLc"),xe=v("yKVA"),je=v("879j"),Ce=v("q1tI"),ie=v.n(Ce),B=v("i8i4"),A=v.n(B),k=function(ne){Object(xe.a)(me,ne);var q=Object(je.a)(me);function me(Ae){var le;Object(X.a)(this,me),le=q.call(this,Ae);var U=window.document;return le.node=U.createElement("div"),U.body.appendChild(le.node),le}return Object(Oe.a)(me,[{key:"render",value:function(){var le=this.props.children;return Object(B.createPortal)(le,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),me}(ie.a.Component)},NvD2:function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return ie});var X=v("Kwbf");function Oe(B,A){var k=new Set;return B.forEach(function(ne){A.has(ne)||k.add(ne)}),k}function xe(B){var A=B||{},k=A.disabled,ne=A.disableCheckbox,q=A.checkable;return!!(k||ne)||q===!1}function je(B,A,k,ne){for(var q=new Set(B),me=new Set,Ae=0;Ae<=k;Ae+=1){var le=A.get(Ae)||new Set;le.forEach(function(re){var ae=re.key,we=re.node,Ne=re.children,fe=Ne===void 0?[]:Ne;q.has(ae)&&!ne(we)&&fe.filter(function(Z){return!ne(Z.node)}).forEach(function(Z){q.add(Z.key)})})}for(var U=new Set,M=k;M>=0;M-=1){var z=A.get(M)||new Set;z.forEach(function(re){var ae=re.parent,we=re.node;if(ne(we)||!re.parent||U.has(re.parent.key))return;if(ne(re.parent.node)){U.add(ae.key);return}var Ne=!0,fe=!1;(ae.children||[]).filter(function(Z){return!ne(Z.node)}).forEach(function(Z){var he=Z.key,se=q.has(he);Ne&&!se&&(Ne=!1),!fe&&(se||me.has(he))&&(fe=!0)}),Ne&&q.add(ae.key),fe&&me.add(ae.key),U.add(ae.key)})}return{checkedKeys:Array.from(q),halfCheckedKeys:Array.from(Oe(me,q))}}function Ce(B,A,k,ne,q){for(var me=new Set(B),Ae=new Set(A),le=0;le<=ne;le+=1){var U=k.get(le)||new Set;U.forEach(function(ae){var we=ae.key,Ne=ae.node,fe=ae.children,Z=fe===void 0?[]:fe;!me.has(we)&&!Ae.has(we)&&!q(Ne)&&Z.filter(function(he){return!q(he.node)}).forEach(function(he){me.delete(he.key)})})}Ae=new Set;for(var M=new Set,z=ne;z>=0;z-=1){var re=k.get(z)||new Set;re.forEach(function(ae){var we=ae.parent,Ne=ae.node;if(q(Ne)||!ae.parent||M.has(ae.parent.key))return;if(q(ae.parent.node)){M.add(we.key);return}var fe=!0,Z=!1;(we.children||[]).filter(function(he){return!q(he.node)}).forEach(function(he){var se=he.key,_=me.has(se);fe&&!_&&(fe=!1),!Z&&(_||Ae.has(se))&&(Z=!0)}),fe||me.delete(we.key),Z&&Ae.add(we.key),M.add(we.key)})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(Oe(Ae,me))}}function ie(B,A,k,ne){var q=[],me;ne?me=ne:me=xe;var Ae=new Set(B.filter(function(z){var re=!!k[z];return re||q.push(z),re})),le=new Map,U=0;Object.keys(k).forEach(function(z){var re=k[z],ae=re.level,we=le.get(ae);we||(we=new Set,le.set(ae,we)),we.add(re),U=Math.max(U,ae)}),Object(X.a)(!q.length,"Tree missing follow keys: ".concat(q.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var M;return A===!0?M=je(Ae,le,U,me):M=Ce(Ae,A.halfCheckedKeys,le,U,me),M}},OLES:function(ct,Ge,v){"use strict";var X=v("U8pU"),Oe=v("VTBJ"),xe=v("Ff2n"),je=v("q1tI"),Ce=v("uciX"),ie=v("7ixt"),B=function(Ae){var le=Ae.overlay,U=Ae.prefixCls,M=Ae.id,z=Ae.overlayInnerStyle;return je.createElement("div",{className:"".concat(U,"-inner"),id:M,role:"tooltip",style:z},typeof le=="function"?le():le)},A=B,k=function(Ae,le){var U=Ae.overlayClassName,M=Ae.trigger,z=M===void 0?["hover"]:M,re=Ae.mouseEnterDelay,ae=re===void 0?0:re,we=Ae.mouseLeaveDelay,Ne=we===void 0?.1:we,fe=Ae.overlayStyle,Z=Ae.prefixCls,he=Z===void 0?"rc-tooltip":Z,se=Ae.children,_=Ae.onVisibleChange,Q=Ae.afterVisibleChange,P=Ae.transitionName,w=Ae.animation,oe=Ae.placement,V=oe===void 0?"right":oe,S=Ae.align,N=S===void 0?{}:S,J=Ae.destroyTooltipOnHide,K=J===void 0?!1:J,H=Ae.defaultVisible,u=Ae.getTooltipContainer,s=Ae.overlayInnerStyle,E=Object(xe.a)(Ae,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),R=Object(je.useRef)(null);Object(je.useImperativeHandle)(le,function(){return R.current});var ee=Object(Oe.a)({},E);"visible"in Ae&&(ee.popupVisible=Ae.visible);var be=function(){var T=Ae.arrowContent,b=T===void 0?null:T,L=Ae.overlay,d=Ae.id;return[je.createElement("div",{className:"".concat(he,"-arrow"),key:"arrow"},b),je.createElement(A,{key:"content",prefixCls:he,id:d,overlay:L,overlayInnerStyle:s})]},de=!1,pe=!1;if(typeof K=="boolean")de=K;else if(K&&Object(X.a)(K)==="object"){var I=K.keepParent;de=I===!0,pe=I===!1}return je.createElement(Ce.a,Object.assign({popupClassName:U,prefixCls:he,popup:be,action:z,builtinPlacements:ie.a,popupPlacement:V,ref:R,popupAlign:N,getPopupContainer:u,onPopupVisibleChange:_,afterPopupVisibleChange:Q,popupTransitionName:P,popupAnimation:w,defaultPopupVisible:H,destroyPopupOnHide:de,autoDestroy:pe,mouseLeaveDelay:Ne,popupStyle:fe,mouseEnterDelay:ae},ee),se)},ne=Object(je.forwardRef)(k),q=Ge.a=ne},OZM5:function(ct,Ge,v){"use strict";v.d(Ge,"b",function(){return ne}),v.d(Ge,"a",function(){return q}),v.d(Ge,"k",function(){return me}),v.d(Ge,"h",function(){return Ae}),v.d(Ge,"i",function(){return le}),v.d(Ge,"g",function(){return U}),v.d(Ge,"c",function(){return M}),v.d(Ge,"d",function(){return z}),v.d(Ge,"j",function(){return we}),v.d(Ge,"e",function(){return Ne}),v.d(Ge,"f",function(){return fe});var X=v("KQm4"),Oe=v("U8pU"),xe=v("Ff2n"),je=v("q1tI"),Ce=v.n(je),ie=v("Kwbf"),B=v("WaYH"),A=.25,k=2;function ne(Z,he){var se=Z.slice(),_=se.indexOf(he);return _>=0&&se.splice(_,1),se}function q(Z,he){var se=Z.slice();return se.indexOf(he)===-1&&se.push(he),se}function me(Z){return Z.split("-")}function Ae(Z,he){return"".concat(Z,"-").concat(he)}function le(Z){return Z&&Z.type&&Z.type.isTreeNode}function U(Z,he){var se=[Z],_=he[Z];function Q(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];P.forEach(function(w){var oe=w.key,V=w.children;se.push(oe),Q(V)})}return Q(_.children),se}function M(Z,he){var se=Z.clientY,_=he.selectHandle.getBoundingClientRect(),Q=_.top,P=_.bottom,w=_.height,oe=Math.max(w*A,k);return se<=Q+oe?-1:se>=P-oe?1:0}function z(Z,he){if(!Z)return;var se=he.multiple;return se?Z.slice():Z.length?[Z[0]]:Z}var re=function(he){return he};function ae(Z,he){if(!Z)return[];var se=he||{},_=se.processProps,Q=_===void 0?re:_,P=Array.isArray(Z)?Z:[Z];return P.map(function(w){var oe=w.children,V=Object(xe.a)(w,["children"]),S=ae(oe,he);return Ce.a.createElement(B.a,Object.assign({},Q(V)),S)})}function we(Z){if(!Z)return null;var he;if(Array.isArray(Z))he={checkedKeys:Z,halfCheckedKeys:void 0};else if(Object(Oe.a)(Z)==="object")he={checkedKeys:Z.checked||void 0,halfCheckedKeys:Z.halfChecked||void 0};else return Object(ie.a)(!1,"`checkedKeys` is not an array or an object"),null;return he}function Ne(Z,he){var se=new Set;function _(Q){if(se.has(Q))return;var P=he[Q];if(!P)return;se.add(Q);var w=P.parent,oe=P.node;if(oe.disabled)return;w&&_(w.key)}return(Z||[]).forEach(function(Q){_(Q)}),Object(X.a)(se)}function fe(Z){var he={};return Object.keys(Z).forEach(function(se){(se.startsWith("data-")||se.startsWith("aria-"))&&(he[se]=Z[se])}),he}},Ot1p:function(ct,Ge,v){"use strict";var X=v("2qtc"),Oe=v("kLXV"),xe=v("rAM+"),je=v("miYZ"),Ce=v("tsqr"),ie=v("tJVT"),B=v("jrin"),A=v("q1tI"),k=v.n(A),ne=v("VrN/"),q=v.n(ne),me=v("bdgK"),Ae=v("p77/"),le=v("Bd2K"),U=v("ELLl"),M=v("19Vz"),z=v("lZu9"),re=v("+NIl"),ae=v("kSUc"),we=v("9Bee"),Ne=function(D){var m=D.value,x=m===void 0?"":m,C=D.className,O=D.showTextOnly,ce=D.showLines,ye=D.style,Ke=ye===void 0?{}:ye,rt=Object(A.useMemo)(function(){return""},[x]);return k.a.createElement(k.a.Fragment,null,k.a.createElement("div",{dangerouslySetInnerHTML:{__html:rt}}))},fe=v("0Owb"),Z=v("dejd"),he=v("C+DQ"),se=[{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 _(D){var m=D.onActionCallback,x=D.title,C=D.icon,O=D.actionName,ce=D.className,ye=ce===void 0?"":ce,Ke=D.children;function rt(){m(O)}return k.a.createElement("a",{title:x,className:ye,onClick:rt},k.a.createElement("i",{className:"md-iconfont ".concat(C)}),Ke)}var Q=function(D){var m=D.watch,x=D.showNullButton,C=D.onActionCallback,O=D.fullScreen,ce=D.insertTemp,ye=D.hidetoolBar,Ke=[].concat(se,[{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 k.a.createElement("ul",{className:"markdown-toolbar-container"},!ye&&Ke.map(function(rt,Qe){return k.a.createElement("li",{key:Qe},rt.actionName?k.a.createElement(_,Object(fe.a)({},rt,{onActionCallback:C})):k.a.createElement("span",{className:"v-line"}))}),x?k.a.createElement("li",null,k.a.createElement(_,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:C},k.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce&&k.a.createElement("li",null,k.a.createElement(_,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ce),onActionCallback:C},k.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),k.a.createElement("li",{className:"btn-full-screen"},k.a.createElement(_,{icon:"".concat(O?"icon-shrink":"icon-enlarge"),title:O?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:C})))},P=v("M8RZ"),w=v("+L6B"),oe=v("2/Rp"),V=v("y8nQ"),S=v("Vl3Y"),N=v("5NDa"),J=v("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},H=function(D){var m=D.callback,x=D.onCancel;function C(O){m(O)}return k.a.createElement(S.a,Object(fe.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:C}),k.a.createElement(S.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},k.a.createElement(J.a,null)),k.a.createElement(S.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},k.a.createElement(J.a,null)),k.a.createElement("div",{className:"flex-container flex-end"},k.a.createElement(oe.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),k.a.createElement(oe.a,{type:"ghost",onClick:x},"\u53D6\u6D88")))},u=v("7ahc"),s=v("HmJG"),E=v("BjJ7"),R=S.a.useForm,ee={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}},de=function(D){var m=D.callback,x=D.onCancel,C=R(),O=Object(ie.a)(C,1),ce=O[0];function ye(Qe){m(Qe)}function Ke(Qe,it){ce.setFieldsValue({src:"/api/attachments/".concat(Qe.id),type:it.type})}function rt(Qe){var it=Qe.target.files[0];I(it,Ke)}return k.a.createElement(S.a,Object(fe.a)({form:ce},be,{className:"upload-image-panel",onFinish:ye}),k.a.createElement(S.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},k.a.createElement("div",{className:"flex-container"},k.a.createElement(S.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},k.a.createElement(J.a,{style:ee})),k.a.createElement(pe,{onFileChange:rt}))),k.a.createElement(S.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},k.a.createElement(J.a,{style:{width:264}})),k.a.createElement(S.a.Item,{style:{textAlign:"right"}},k.a.createElement(oe.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),k.a.createElement(oe.a,{type:"ghost",onClick:x},"\u53D6\u6D88")))};function pe(D){var m=D.onFileChange;return k.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",k.a.createElement("input",{type:"file",onChange:m}))}function I(D,m){if(!D)throw new String("\u6CA1\u6709\u6587\u4EF6");var x=new FormData;x.append("editormd-image-file",D),x.append("file_param_name","editormd-image-file"),x.append("byxhr","true");var C=new window.XMLHttpRequest;C.withCredentials=!0,C.addEventListener("load",function(O){m(JSON.parse(O.target.responseText),D)},!1),C.addEventListener("error",function(O){console.error(O)},!1),C.open("POST","".concat(E.a,"/api/attachments.json")),C.send(x)}var g=v("giR+"),T=v("fyUT"),b=v("7Kak"),L=v("9yH6"),d=L.a.Group,h={margin:"0 8px"},f=function(D){var m=D.callback,x=D.onCancel;function C(O){m(O)}return k.a.createElement(S.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:C},k.a.createElement("div",{className:"flex-container"},k.a.createElement("span",{style:h},"\u5355\u5143\u683C\u6570\uFF1A"),k.a.createElement("span",{style:h},"\u884C\u6570"),k.a.createElement(S.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},k.a.createElement(T.a,null)),k.a.createElement("span",{style:h},"\u5217\u6570"),k.a.createElement(S.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},k.a.createElement(T.a,null))),k.a.createElement("div",{className:"flex-container",style:{marginTop:12}},k.a.createElement("span",{style:h},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),k.a.createElement(S.a.Item,{name:"align"},k.a.createElement(d,null,k.a.createElement(L.a,{value:"default"},k.a.createElement("i",{className:"fa fa-align-justify"})),k.a.createElement(L.a,{value:"left"},k.a.createElement("i",{className:"fa fa-align-left"})),k.a.createElement(L.a,{value:"center"},k.a.createElement("i",{className:"fa fa-align-center"})),k.a.createElement(L.a,{value:"right"},k.a.createElement("i",{className:"fa fa-align-right"}))))),k.a.createElement("div",{className:"flex-container flex-end"},k.a.createElement(oe.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),k.a.createElement(oe.a,{type:"ghost",onClick:x},"\u53D6\u6D88")))},y=v("m3rI"),G=v("wMS7"),j=v.n(G),te="link",Ee="upload-image",Le="code-block",Ie="add-table",De="------------",Me={default:De,left:":".concat(De),center:":".concat(De,":"),right:"".concat(De,":")},$e=v("9VGf"),ue,Te;function Re(){}var Fe=0,We=1e4,Pe="\u2581",ve=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ze(D){return/^\d+$/.test(D)?"".concat(D,"px"):D}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,ke=He?"Cmd":"Ctrl",Ue=(ue={},Object(B.a)(ue,ke+"-B","bold"),Object(B.a)(ue,ke+"-I","italic"),ue),Y=(Te={},Object(B.a)(Te,te,"\u6DFB\u52A0\u94FE\u63A5"),Object(B.a)(Te,Le,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(B.a)(Te,Ee,"\u6DFB\u52A0\u56FE\u7247"),Object(B.a)(Te,Ie,"\u6DFB\u52A0\u8868\u683C"),Te),W=Ge.a=function(D){var m=D.defaultValue,x=m===void 0?"":m,C=D.onChange,O=D.width,ce=O===void 0?"100%":O,ye=D.height,Ke=ye===void 0?400:ye,rt=D.miniToolbar,Qe=rt===void 0?!1:rt,it=D.isFocus,gt=it===void 0?!1:it,xt=D.watch,lt=D.insertTemp,Pt=D.mode,kt=Pt===void 0?"markdown":Pt,Et=D.id,bt=Et===void 0?"markdown-editor-id":Et,pt=D.showResizeBar,Ot=pt===void 0?!1:pt,It=D.noStorage,Kt=It===void 0?!1:It,Yt=D.showNullButton,Mt=Yt===void 0?!1:Yt,hn=D.hidetoolBar,Jt=hn===void 0?!1:hn,Wt=D.fullScreen,nn=Wt===void 0?!1:Wt,Rt=D.onBlur,tt=D.onCMBeforeChange,Ut=D.onFullScreen,pn=D.className,on=pn===void 0?"":pn,At=D.disablePaste,an=At===void 0?!1:At,Gt=D.placeholder,wn=Gt===void 0?"":Gt,Xe=D.values,ft=Xe===void 0?"":Xe,mn=Object(A.useState)(null),sn=Object(ie.a)(mn,2),Ye=sn[0],kn=sn[1],aa=Object(A.useState)(x),ht=Object(ie.a)(aa,2),Vt=ht[0],Nn=ht[1],jn=Object(A.useState)(xt),en=Object(ie.a)(jn,2),Sn=en[0],st=en[1],_e=Object(A.useState)(nn),Ze=Object(ie.a)(_e,2),nt=Ze[0],Ct=Ze[1],yt=Object(A.useState)(""),jt=Object(ie.a)(yt,2),Nt=jt[0],_t=jt[1],En=Object(A.useState)(0),Zt=Object(ie.a)(En,2),un=Zt[0],tn=Zt[1],Qt=Object(A.useState)(Ke),Pn=Object(ie.a)(Qt,2),Kn=Pn[0],cn=Pn[1],wa=Object(A.useState)(!1),Tn=Object(ie.a)(wa,2),zn=Tn[0],Ft=Tn[1],dt=Object(A.useRef)(),at=Object(A.useRef)(),gn=Object(A.useRef)(),zt=Object(A.useRef)();Object(A.useEffect)(function(){Nn(ft),Ye==null||Ye.setValue(ft)},[ft]),Object(A.useEffect)(function(){Ut==null||Ut(nt)},[nt]),Object(A.useEffect)(function(){if(dt.current){var mt=q.a.fromTextArea(dt.current,{mode:kt,lineNumbers:!Qe,lineWrapping:!0,value:x,autoCloseTags:!0,autoCloseBrackets:!0});gt&&mt.focus();function St(Tt,Dt){if(an){Dt.preventDefault();return}var Bt=Dt.clipboardData;if(Bt){var qt=Bt.types.toString(),dn=Bt.items,_n=["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(qt==="Files"||Bt.types.indexOf("Files")>-1){if(Dt.preventDefault(),kt=="stex")return;try{var An,ga=dn[1];((An=dn[0])===null||An===void 0?void 0:An.kind)==="file"&&(ga=dn[0]);var bn=ga.getAsFile(),ka=bn.name.split(".").pop();I(bn,function(Wn){if(Wn.id){var ba,ya,sr;(bn==null||((ba=bn.type)===null||ba===void 0)?void 0:ba.indexOf("image"))>-1?mt.replaceSelection(".concat(Wn.content_type,")")):(bn==null||((ya=bn.type)===null||ya===void 0)?void 0:ya.indexOf("video"))>-1?mt.replaceSelection('<video width="100%" controls src="'.concat(y.a.API_SERVER,"/api/attachments/").concat(Wn.id,'"></video>')):(bn==null||((sr=bn.type)===null||sr===void 0)?void 0:sr.indexOf("pdf"))>-1?mt.replaceSelection('<a href="'.concat(y.a.API_SERVER,"/api/attachments/").concat(Wn.id,"?type=").concat(bn.type,'&disposition=inline" target="_blank">').concat(bn.name,"</a>")):_n.includes(ka)?mt.replaceSelection('<a href="'.concat(y.a.API_SERVER,"/api/attachments/").concat(Wn.id,'?type=office&disposition=inline" target="_blank">').concat(bn.name,"</a>")):mt.replaceSelection("[".concat(bn.name,"](").concat(y.a.API_SERVER,"/api/attachments/").concat(Wn.id,"?type=").concat(Wn.content_type,")"))}else(Wn==null?void 0:Wn.status)===401&&(document.location.href="/user/login")})}catch(Wn){Ce.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return mt.on("paste",St),kn(mt),function(){mt.off("paste",St)}}},[]);var In=Object(A.useCallback)(function(){if(at.current)try{}catch(mt){console.log(mt,"---- to set md editor body height")}},[Kn,at,nt]);Object(A.useEffect)(function(){function mt(){var Tt=new me.default(function(Dt){var Bt=Object(xe.a)(Dt),qt;try{for(Bt.s();!(qt=Bt.n()).done;){var dn=qt.value;(dn.target.offsetHeight>0||dn.target.offsetWidth>0)&&(In(),Ye.setSize("100%","100%"),Ye.refresh())}}catch(_n){Bt.e(_n)}finally{Bt.f()}});return Tt.observe(dt.current.parentElement),Tt}if(Ye){var St=mt();return function(){St.unobserve(dt.current.parentElement)}}},[Ye,In]),Object(A.useEffect)(function(){if(Ye){for(var mt=[],St=function(){var dn=Dt[Tt];Bt=Object(ie.a)(dn,2);var _n=Bt[0],An=Bt[1],ga=Object(B.a)({},_n,function(){ea(An)});mt.push(ga),Ye.addKeyMap(ga)},Tt=0,Dt=Object.entries(Ue);Tt<Dt.length;Tt++){var Bt;St()}return function(){var qt=Object(xe.a)(mt),dn;try{for(qt.s();!(dn=qt.n()).done;){var _n=dn.value;Ye.removeKeyMap(_n)}}catch(An){qt.e(An)}finally{qt.f()}}}},[Ye]),Object(A.useEffect)(function(){nn!==nt&&Ct(nn)},[nn]),Object($e.a)(function(){if(!Kt&&un>0){var mt=new Date().getTime(),St=window.sessionStorage.getItem(bt);mt>=un+We&&(!St||St!==Vt)&&(window.sessionStorage.setItem(bt,Vt),Ft(!0))}},We),Object(A.useEffect)(function(){st(xt)},[Ye,xt]),Object(A.useEffect)(function(){Ye&&(gt&&Ye.focus())},[Ye,gt]),Object(A.useEffect)(function(){if(Sn&&Ye){var mt=Ye.getScrollerElement();function St(Tt){var Dt=Tt.target;if(zt.current){var Bt=Dt.scrollTop/Dt.scrollHeight;zt.current.scrollTop=zt.current.scrollHeight*Bt}}return mt.addEventListener("scroll",St),function(){mt.removeEventListener("scroll",St)}}},[Ye,Sn]),Object(A.useEffect)(function(){if(Ye&&tt){function mt(St,Tt){tt(St,Tt)}return Ye.on("beforeChange",mt),function(){Ye.off("beforeChange",mt)}}},[Ye,tt]),Object(A.useEffect)(function(){if(Ye&&Rt){function mt(){Rt(Ye.getValue())}return Ye.on("blur",mt),function(){Ye.off("blur",mt)}}},[Ye,Rt]),Object(A.useEffect)(function(){if(Ye){function mt(St){var Tt=j.a.sanitize(St.getValue());Nn(Tt),tn(new Date().getTime()),St.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),C&&C(Tt)}return Ye.on("change",mt),function(){Ye.off("change",mt)}}},[Ye,C]),Object(A.useEffect)(function(){Ye&&(x==null?(Ye.setValue(""),Nn("")):x!==Ye.getValue()&&(Ye.setValue(x),Nn(x),Ye.setCursor(Ye.lineCount(),0)))},[Ye,x]);var ea=Object(A.useCallback)(function(mt){var St=Ye.getCursor(),Tt=Ye.getSelection(),Dt=Tt.split(`
|
|
`);switch(mt){case"bold":return Ye.replaceSelection("**"+Tt+"**"),Tt===""&&Ye.setCursor(St.line,St.ch+2),Ye.focus();case"italic":return Ye.replaceSelection("*"+Tt+"*"),Tt===""&&Ye.setCursor(St.line,St.ch+1),Ye.focus();case"code":return Ye.replaceSelection("`"+Tt+"`"),Tt===""&&Ye.setCursor(St.line,St.ch+1),Ye.focus();case"inline-latex":return Ye.replaceSelection("`$$"+Tt+"$$`"),Tt===""&&Ye.setCursor(St.line,St.ch+3),Ye.focus();case"latex":return Ye.replaceSelection("```latex\n"+Tt+"\n```"),Ye.setCursor(St.line+1,Tt.length+1),Ye.focus();case"line-break":return Ye.replaceSelection(`<br/>
|
|
`),Ye.focus();case"list-ul":return Tt===""?Ye.replaceSelection("- "+Tt):Ye.replaceSelection(Dt.map(function(Bt){return Bt===""?"":"- ".concat(Bt)}).join(`
|
|
`)),Ye.focus();case"list-ol":return Tt===""?Ye.replaceSelection("1. "+Tt):Ye.replaceSelection(Dt.map(function(Bt,qt){return Bt===""?"":"".concat(qt+1,". ").concat(Bt)}).join(`
|
|
`)),Ye.focus();case"add-null-ch":return Tt===""&&Ye.setCursor(St.line,St.ch+1),Ye.replaceSelection(Pe),Ye.focus();case"inster-template-1":return Tt===""&&Ye.setCursor(St.line,St.ch),Ye.replaceSelection(ve),Ye.focus();case"eraser":return Ye.setValue(""),Ye.focus();case"trigger-watch":return st(!Sn),Ye.focus();case"trigger-full-screen":return Ct(!nt),Ye.focus();case te:_t(te);return;case Le:_t(Le);return;case Ee:_t(Ee);return;case Ie:_t(Ie);return;default:throw new Error}},[Ye,Sn,nt]),Xn=Object(A.useCallback)(function(mt){_t("");switch(Nt){case te:var St=mt.title,Tt=mt.link;return Ye.replaceSelection("[".concat(St,"](").concat(Tt,")")),Ye.focus();case Le:var Dt=mt.language,Bt=mt.content;return Ye.replaceSelection(["```"+Dt,Bt,"```"].join(`
|
|
`)),Ye.focus();case Ee:var qt=mt.src,dn=mt.alt;return Ye.replaceSelection(".concat(qt,' "').concat(dn,'" )')),Ye.focus();case Ie:for(var _n=mt.row,An=mt.col,ga=mt.align,bn=`
|
|
`,ka=0;ka<_n;ka++){for(var Wn=[],ba=[],ya=0;ya<An;ya++)ka===1&&ba.push(Me[ga]),Wn.push(" ");ka===1&&(bn+="| ".concat(ba.join(" | "),` |
|
|
`)),bn+="| ".concat(Wn.join(An===1?"":" | "),` |
|
|
`)}return Ye.replaceSelection(bn+`
|
|
`),Ye.focus();default:throw new Error}},[Ye,Nt]),la=Object(A.useMemo)(function(){switch(Nt){case te:return k.a.createElement(H,{callback:Xn,onCancel:$n});case Le:return k.a.createElement(u.b,{callback:Xn,onCancel:$n});case Ee:return k.a.createElement(de,{callback:Xn,onCancel:$n});case Ie:return k.a.createElement(f,{callback:Xn,onCancel:$n});default:return null}},[Nt]);function $n(){_t("")}Object(A.useEffect)(function(){if(gn.current){var mt=gn.current,St=!1,Tt=0;function Dt(dn){St=!0,Tt=dn.pageY}function Bt(){St=!1}function qt(dn){if(St){var _n=dn.pageY-Tt;_n<0&&(_n=0),_n>300&&(_n=300);var An=Ke+_n+"px";cn(An)}}return mt.addEventListener("mousedown",Dt),document.addEventListener("mousemove",qt),document.addEventListener("mouseup",Bt),function(){mt.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",qt),document.removeEventListener("mouseup",Bt)}}},[Ye,gn]),Object(A.useEffect)(function(){cn(Ke)},[Ke]);var sa=ze(ce),ra=ze(Kn),ua={width:sa,height:ra},ha=Object(A.useMemo)(function(){if(un){var mt=new Date(un),St=mt.getHours(),Tt=mt.getMinutes(),Dt=mt.getSeconds();return St=St<10?"0"+St:St,Tt=Tt<10?"0"+Tt:Tt,Dt=Dt<10?"0"+Dt:Dt,"".concat(St,":").concat(Tt,":").concat(Dt)}return 0},[un]);function On(){window.sessionStorage.removeItem(bt),Ft(!1),tn(0)}function Ra(){Ft(!1),tn(0),Ye.setValue(window.sessionStorage.getItem(bt))}return k.a.createElement(A.Fragment,null,k.a.createElement("div",{className:"markdown-editor-wrapper",ref:at},k.a.createElement("div",{className:"markdown-editor-container ".concat(on," ").concat(Sn?"on-preview":""," ").concat(Qe?"mini":""," ").concat(nt?"full-screen":""),style:ua},k.a.createElement(Q,{insertTemp:lt,watch:Sn,fullScreen:nt,showNullButton:Mt,onActionCallback:ea,hidetoolBar:Jt}),k.a.createElement("div",{className:"markdown-editor-body"},k.a.createElement("div",{className:"codemirror-container"},k.a.createElement("textarea",{ref:dt,placeholder:wn})),Sn?k.a.createElement("div",{ref:zt,className:"preview-container"},kt==="stex"&&k.a.createElement(Ne,{value:Vt}),kt!=="stex"&&k.a.createElement(we.a,{value:Vt})):null))),Ot?k.a.createElement("a",{ref:gn,className:"editor-resize"}):null,k.a.createElement(P.a,null,Y[Nt]?k.a.createElement(Oe.a,{centered:!0,title:Y[Nt],visible:!0,onCancel:$n,footer:null},la):null))}},RxwV:function(ct,Ge,v){"use strict";var X=v("q1tI"),Oe=v("uciX"),xe=v("2W6z"),je=v.n(xe),Ce=v("4IlW"),ie=v("uK0f"),B=v.n(ie);function A(g,T){if(g===T)return!0;if(!g||!T)return!1;var b=g.length;if(T.length!==b)return!1;for(var L=0;L<b;L++)if(g[L]!==T[L])return!1;return!0}function k(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(b){return typeof b}:k=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},k(g)}function ne(g,T){if(!(g instanceof T))throw new TypeError("Cannot call a class as a function")}function q(g,T){for(var b=0;b<T.length;b++){var L=T[b];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(g,L.key,L)}}function me(g,T,b){return T&&q(g.prototype,T),b&&q(g,b),g}function Ae(g,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(T&&T.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),T&&le(g,T)}function le(g,T){return le=Object.setPrototypeOf||function(L,d){return L.__proto__=d,L},le(g,T)}function U(g){var T=re();return function(){var b=ae(g),L;if(T){var d=ae(this).constructor;L=Reflect.construct(b,arguments,d)}else L=b.apply(this,arguments);return M(this,L)}}function M(g,T){return T&&(k(T)==="object"||typeof T=="function")?T:z(g)}function z(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function re(){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(g){return!1}}function ae(g){return ae=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},ae(g)}var we=function(){var g=function(T){Ae(L,T);var b=U(L);function L(){var d;return ne(this,L),d=b.apply(this,arguments),d.menuItems={},d.saveMenuItem=function(h){return function(f){d.menuItems[h]=f}},d}return me(L,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(h){!h.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(h){var f=this.props,y=f.fieldNames,G=f.defaultFieldNames;return y[h]||G[h]}},{key:"getOption",value:function(h,f){var y=this.props,G=y.prefixCls,j=y.expandTrigger,te=y.expandIcon,Ee=y.loadingIcon,Le=this.props.onSelect.bind(this,h,f),Ie=this.props.onItemDoubleClick.bind(this,h,f),De={onClick:Le,onDoubleClick:Ie},Me="".concat(G,"-menu-item"),$e=null,ue=h[this.getFieldName("children")]&&h[this.getFieldName("children")].length>0;(ue||h.isLeaf===!1)&&(Me+=" ".concat(G,"-menu-item-expand"),h.loading||($e=X.createElement("span",{className:"".concat(G,"-menu-item-expand-icon")},te))),j==="hover"&&(ue||h.isLeaf===!1)&&(De={onMouseEnter:this.delayOnSelect.bind(this,Le),onMouseLeave:this.delayOnSelect.bind(this),onClick:Le}),this.isActiveOption(h,f)&&(Me+=" ".concat(G,"-menu-item-active"),De.ref=this.saveMenuItem(f)),h.disabled&&(Me+=" ".concat(G,"-menu-item-disabled"));var Te=null;h.loading&&(Me+=" ".concat(G,"-menu-item-loading"),Te=Ee||null);var Re="";return"title"in h?Re=h.title:typeof h[this.getFieldName("label")]=="string"&&(Re=h[this.getFieldName("label")]),X.createElement("li",Object.assign({key:h[this.getFieldName("value")],className:Me,title:Re},De,{role:"menuitem",onMouseDown:function(We){return We.preventDefault()}}),h[this.getFieldName("label")],$e,Te)}},{key:"getActiveOptions",value:function(h){var f=this,y=this.props.options,G=h||this.props.activeValue;return B()(y,function(j,te){return j[f.getFieldName("value")]===G[te]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var h=this,f=this.props.options,y=this.getActiveOptions().map(function(G){return G[h.getFieldName("children")]}).filter(function(G){return!!G});return y.unshift(f),y}},{key:"delayOnSelect",value:function(h){for(var f=this,y=arguments.length,G=new Array(y>1?y-1:0),j=1;j<y;j++)G[j-1]=arguments[j];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof h=="function"&&(this.delayTimer=window.setTimeout(function(){h(G),f.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var h=this.getShowOptions().length,f=0;f<h;f++){var y=this.menuItems[f];y&&y.parentElement&&(y.parentElement.scrollTop=y.offsetTop)}}},{key:"isActiveOption",value:function(h,f){var y=this.props.activeValue,G=y===void 0?[]:y;return G[f]===h[this.getFieldName("value")]}},{key:"render",value:function(){var h=this,f=this.props,y=f.prefixCls,G=f.dropdownMenuColumnStyle;return X.createElement("div",null,this.getShowOptions().map(function(j,te){return X.createElement("ul",{className:"".concat(y,"-menu"),key:te,style:G},j.map(function(Ee){return h.getOption(Ee,te)}))}))}}]),L}(X.Component);return g.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},g}(),Ne=we,fe={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}}},Z=fe;function he(g){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(g)}function se(g,T){if(g==null)return{};var b=_(g,T),L,d;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(g);for(d=0;d<h.length;d++){if(L=h[d],T.indexOf(L)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,L))continue;b[L]=g[L]}}return b}function _(g,T){if(g==null)return{};var b={},L=Object.keys(g),d,h;for(h=0;h<L.length;h++){if(d=L[h],T.indexOf(d)>=0)continue;b[d]=g[d]}return b}function Q(g){return V(g)||oe(g)||w(g)||P()}function P(){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 w(g,T){if(!g)return;if(typeof g=="string")return S(g,T);var b=Object.prototype.toString.call(g).slice(8,-1);if(b==="Object"&&g.constructor&&(b=g.constructor.name),b==="Map"||b==="Set")return Array.from(g);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return S(g,T)}function oe(g){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(g))return Array.from(g)}function V(g){if(Array.isArray(g))return S(g)}function S(g,T){(T==null||T>g.length)&&(T=g.length);for(var b=0,L=new Array(T);b<T;b++)L[b]=g[b];return L}function N(g,T){if(!(g instanceof T))throw new TypeError("Cannot call a class as a function")}function J(g,T){for(var b=0;b<T.length;b++){var L=T[b];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(g,L.key,L)}}function K(g,T,b){return T&&J(g.prototype,T),b&&J(g,b),g}function H(g,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(T&&T.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),T&&u(g,T)}function u(g,T){return u=Object.setPrototypeOf||function(L,d){return L.__proto__=d,L},u(g,T)}function s(g){var T=ee();return function(){var b=be(g),L;if(T){var d=be(this).constructor;L=Reflect.construct(b,arguments,d)}else L=b.apply(this,arguments);return E(this,L)}}function E(g,T){return T&&(he(T)==="object"||typeof T=="function")?T:R(g)}function R(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function ee(){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(g){return!1}}function be(g){return be=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},be(g)}var de=function(){var g=function(T){H(L,T);var b=s(L);function L(d){var h;N(this,L),h=b.call(this,d),h.setPopupVisible=function(y){var G=h.state.value;"popupVisible"in h.props||h.setState({popupVisible:y}),y&&!h.state.popupVisible&&h.setState({activeValue:G}),h.props.onPopupVisibleChange(y)},h.handleChange=function(y,G,j){var te=G.visible;(j.type!=="keydown"||j.keyCode===Ce.a.ENTER)&&(h.props.onChange(y.map(function(Ee){return Ee[h.getFieldName("value")]}),y),h.setPopupVisible(te))},h.handlePopupVisibleChange=function(y){h.setPopupVisible(y)},h.handleMenuSelect=function(y,G,j){var te=h.trigger.getRootDomNode();te&&te.focus&&te.focus();var Ee=h.props,Le=Ee.changeOnSelect,Ie=Ee.loadData,De=Ee.expandTrigger;if(!y||y.disabled)return;var Me=h.state.activeValue;Me=Me.slice(0,G+1),Me[G]=y[h.getFieldName("value")];var $e=h.getActiveOptions(Me);if(y.isLeaf===!1&&!y[h.getFieldName("children")]&&Ie){Le&&h.handleChange($e,{visible:!0},j),h.setState({activeValue:Me}),Ie($e);return}var ue={};!y[h.getFieldName("children")]||!y[h.getFieldName("children")].length?(h.handleChange($e,{visible:!1},j),ue.value=Me):Le&&(j.type==="click"||j.type==="keydown")&&(De==="hover"?h.handleChange($e,{visible:!1},j):h.handleChange($e,{visible:!0},j),ue.value=Me),ue.activeValue=Me,("value"in h.props||j.type==="keydown"&&j.keyCode!==Ce.a.ENTER)&&delete ue.value,h.setState(ue)},h.handleItemDoubleClick=function(){var y=h.props.changeOnSelect;y&&h.setPopupVisible(!1)},h.handleKeyDown=function(y){var G=h.props.children;if(G&&G.props.onKeyDown){G.props.onKeyDown(y);return}var j=Q(h.state.activeValue),te=j.length-1<0?0:j.length-1,Ee=h.getCurrentLevelOptions(),Le=Ee.map(function($e){return $e[h.getFieldName("value")]}).indexOf(j[te]);if(y.keyCode!==Ce.a.DOWN&&y.keyCode!==Ce.a.UP&&y.keyCode!==Ce.a.LEFT&&y.keyCode!==Ce.a.RIGHT&&y.keyCode!==Ce.a.ENTER&&y.keyCode!==Ce.a.SPACE&&y.keyCode!==Ce.a.BACKSPACE&&y.keyCode!==Ce.a.ESC&&y.keyCode!==Ce.a.TAB)return;if(!h.state.popupVisible&&y.keyCode!==Ce.a.BACKSPACE&&y.keyCode!==Ce.a.LEFT&&y.keyCode!==Ce.a.RIGHT&&y.keyCode!==Ce.a.ESC&&y.keyCode!==Ce.a.TAB){h.setPopupVisible(!0);return}if(y.keyCode===Ce.a.DOWN||y.keyCode===Ce.a.UP){y.preventDefault();var Ie=Le;Ie!==-1?y.keyCode===Ce.a.DOWN?(Ie+=1,Ie=Ie>=Ee.length?0:Ie):(Ie-=1,Ie=Ie<0?Ee.length-1:Ie):Ie=0,j[te]=Ee[Ie][h.getFieldName("value")]}else if(y.keyCode===Ce.a.LEFT||y.keyCode===Ce.a.BACKSPACE)y.preventDefault(),j.splice(j.length-1,1);else if(y.keyCode===Ce.a.RIGHT)y.preventDefault(),Ee[Le]&&Ee[Le][h.getFieldName("children")]&&j.push(Ee[Le][h.getFieldName("children")][0][h.getFieldName("value")]);else if(y.keyCode===Ce.a.ESC||y.keyCode===Ce.a.TAB){h.setPopupVisible(!1);return}(!j||j.length===0)&&h.setPopupVisible(!1);var De=h.getActiveOptions(j),Me=De[De.length-1];h.handleMenuSelect(Me,De.length-1,y),h.props.onKeyDown&&h.props.onKeyDown(y)},h.saveTrigger=function(y){h.trigger=y};var f=[];return"value"in d?f=d.value||[]:"defaultValue"in d&&(f=d.defaultValue||[]),je()(!("filedNames"in d),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),h.state={popupVisible:d.popupVisible,activeValue:f,value:f,prevProps:d},h.defaultFieldNames={label:"label",value:"value",children:"children"},h}return K(L,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(h){var f=this.defaultFieldNames,y=this.props,G=y.fieldNames,j=y.filedNames;return"filedNames"in this.props?j[h]||f[h]:G[h]||f[h]}},{key:"getFieldNames",value:function(){var h=this.props,f=h.fieldNames,y=h.filedNames;return"filedNames"in this.props?y:f}},{key:"getCurrentLevelOptions",value:function(){var h=this,f=this.props.options,y=f===void 0?[]:f,G=this.state.activeValue,j=G===void 0?[]:G,te=B()(y,function(Ee,Le){return Ee[h.getFieldName("value")]===j[Le]},{childrenKeyName:this.getFieldName("children")});return te[te.length-2]?te[te.length-2][this.getFieldName("children")]:Q(y).filter(function(Ee){return!Ee.disabled})}},{key:"getActiveOptions",value:function(h){var f=this;return B()(this.props.options||[],function(y,G){return y[f.getFieldName("value")]===h[G]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var h=this.props,f=h.prefixCls,y=h.transitionName,G=h.popupClassName,j=h.options,te=j===void 0?[]:j,Ee=h.disabled,Le=h.builtinPlacements,Ie=h.popupPlacement,De=h.children,Me=h.dropdownRender,$e=se(h,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ue=X.createElement("div",null),Te="";te&&te.length>0?ue=X.createElement(Ne,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(f,"-menus-empty");var Re=ue;return Me&&(Re=Me(ue)),X.createElement(Oe.a,Object.assign({ref:this.saveTrigger},$e,{popupPlacement:Ie,builtinPlacements:Le,popupTransitionName:y,action:Ee?[]:["click"],popupVisible:Ee?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(f,"-menus"),popupClassName:G+Te,popup:Re}),X.cloneElement(De,{onKeyDown:this.handleKeyDown,tabIndex:Ee?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(h,f){var y=f.prevProps,G=y===void 0?{}:y,j={prevProps:h};return"value"in h&&!A(G.value,h.value)&&(j.value=h.value||[],"loadData"in h||(j.activeValue=h.value||[])),"popupVisible"in h&&(j.popupVisible=h.popupVisible),j}}]),L}(X.Component);return g.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Z,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},g}(),pe=de,I=Ge.a=pe},SJMd:function(ct,Ge){/**
|
|
* @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 v,X,Oe,xe=!1,je,Ce;window.PR_SHOULD_USE_CONTINUATION=!0;var ie,B;(function(){var A=window,k=["break,continue,do,else,for,if,return,while"],ne=[k,"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=[ne,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],me=[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"],Ae=[q,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],le=[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"],U="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",M=[q,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],z="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",re=[k,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],ae=[k,"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"],we=[k,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Ne=[me,le,Ae,M,z,re,ae,we],fe=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,Z="str",he="kwd",se="com",_="typ",Q="lit",P="pun",w="pln",oe="tag",V="dec",S="src",N="atn",J="atv",K="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function u(j){for(var te=0,Ee=!1,Le=!1,Ie=0,De=j.length;Ie<De;++Ie){var Me=j[Ie];if(Me.ignoreCase)Le=!0;else if(/[a-z]/i.test(Me.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Ee=!0,Le=!1;break}}var $e={b:8,t:9,n:10,v:11,f:12,r:13};function ue(Pe){var ve=Pe.charCodeAt(0);if(ve!==92)return ve;var ze=Pe.charAt(1);return ve=$e[ze],ve||("0"<=ze&&ze<="7"?parseInt(Pe.substring(1),8):ze==="u"||ze==="x"?parseInt(Pe.substring(2),16):Pe.charCodeAt(1))}function Te(Pe){if(Pe<32)return(Pe<16?"\\x0":"\\x")+Pe.toString(16);var ve=String.fromCharCode(Pe);return ve==="\\"||ve==="-"||ve==="]"||ve==="^"?"\\"+ve:ve}function Re(Pe){var ve=Pe.substring(1,Pe.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")),ze=[],He=ve[0]==="^",ke=["["];He&&ke.push("^");for(var Ue=He?1:0,Y=ve.length;Ue<Y;++Ue){var W=ve[Ue];if(/\\[bdsw]/i.test(W))ke.push(W);else{var D=ue(W),m;Ue+2<Y&&ve[Ue+1]==="-"?(m=ue(ve[Ue+2]),Ue+=2):m=D,ze.push([D,m]),m<65||D>122||(m<65||D>90||ze.push([Math.max(65,D)|32,Math.min(m,90)|32]),m<97||D>122||ze.push([Math.max(97,D)&~32,Math.min(m,122)&~32]))}}ze.sort(function(ce,ye){return ce[0]-ye[0]||ye[1]-ce[1]});for(var x=[],C=[],Ue=0;Ue<ze.length;++Ue){var O=ze[Ue];O[0]<=C[1]+1?C[1]=Math.max(C[1],O[1]):x.push(C=O)}for(var Ue=0;Ue<x.length;++Ue){var O=x[Ue];ke.push(Te(O[0])),O[1]>O[0]&&(O[1]+1>O[0]&&ke.push("-"),ke.push(Te(O[1])))}return ke.push("]"),ke.join("")}function Fe(Pe){for(var ve=Pe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ze=ve.length,He=[],ke=0,Ue=0;ke<ze;++ke){var Y=ve[ke];if(Y==="(")++Ue;else if(Y.charAt(0)==="\\"){var W=+Y.substring(1);W&&(W<=Ue?He[W]=-1:ve[ke]=Te(W))}}for(var ke=1;ke<He.length;++ke)He[ke]===-1&&(He[ke]=++te);for(var ke=0,Ue=0;ke<ze;++ke){var Y=ve[ke];if(Y==="(")++Ue,He[Ue]||(ve[ke]="(?:");else if(Y.charAt(0)==="\\"){var W=+Y.substring(1);W&&W<=Ue&&(ve[ke]="\\"+He[W])}}for(var ke=0;ke<ze;++ke)ve[ke]==="^"&&ve[ke+1]!=="^"&&(ve[ke]="");if(Pe.ignoreCase&&Ee)for(var ke=0;ke<ze;++ke){var Y=ve[ke],D=Y.charAt(0);Y.length>=2&&D==="["?ve[ke]=Re(Y):D!=="\\"&&(ve[ke]=Y.replace(/[a-zA-Z]/g,function(C){var O=C.charCodeAt(0);return"["+String.fromCharCode(O&~32,O|32)+"]"}))}return ve.join("")}for(var We=[],Ie=0,De=j.length;Ie<De;++Ie){var Me=j[Ie];if(Me.global||Me.multiline)throw new Error(""+Me);We.push("(?:"+Fe(Me)+")")}return new RegExp(We.join("|"),Le?"gi":"g")}function s(j,te){var Ee=/(?:^|\s)nocode(?:\s|$)/,Le=[],Ie=0,De=[],Me=0;function $e(ue){var Te=ue.nodeType;if(Te==1){if(Ee.test(ue.className))return;for(var Re=ue.firstChild;Re;Re=Re.nextSibling)$e(Re);var Fe=ue.nodeName.toLowerCase();(Fe==="br"||Fe==="li")&&(Le[Me]=`
|
|
`,De[Me<<1]=Ie++,De[Me++<<1|1]=ue)}else if(Te==3||Te==4){var We=ue.nodeValue;We.length&&(te?We=We.replace(/\r\n?/g,`
|
|
`):We=We.replace(/[ \t\r\n]+/g," "),Le[Me]=We,De[Me<<1]=Ie,Ie+=We.length,De[Me++<<1|1]=ue)}}return $e(j),{sourceCode:Le.join("").replace(/\n$/,""),spans:De}}function E(j,te,Ee,Le,Ie){if(!Ee)return;var De={sourceNode:j,pre:1,langExtension:null,numberLines:null,sourceCode:Ee,spans:null,basePos:te,decorations:null};Le(De),Ie.push.apply(Ie,De.decorations)}var R=/\S/;function ee(j){for(var te=void 0,Ee=j.firstChild;Ee;Ee=Ee.nextSibling){var Le=Ee.nodeType;te=Le===1?te?j:Ee:Le===3&&R.test(Ee.nodeValue)?j:te}return te===j?void 0:te}function be(j,te){var Ee={},Le;(function(){for(var Me=j.concat(te),$e=[],ue={},Te=0,Re=Me.length;Te<Re;++Te){var Fe=Me[Te],We=Fe[3];if(We)for(var Pe=We.length;--Pe>=0;)Ee[We.charAt(Pe)]=Fe;var ve=Fe[1],ze=""+ve;ue.hasOwnProperty(ze)||($e.push(ve),ue[ze]=null)}$e.push(/[\0-\uffff]/),Le=u($e)})();var Ie=te.length,De=function(Me){for(var $e=Me.sourceCode,ue=Me.basePos,Te=Me.sourceNode,Re=[ue,w],Fe=0,We=$e.match(Le)||[],Pe={},ve=0,ze=We.length;ve<ze;++ve){var He=We[ve],ke=Pe[He],Ue=void 0,Y;if(typeof ke=="string")Y=!1;else{var W=Ee[He.charAt(0)];if(W)Ue=He.match(W[1]),ke=W[0];else{for(var D=0;D<Ie;++D)if(W=te[D],Ue=He.match(W[1]),Ue){ke=W[0];break}Ue||(ke=w)}Y=ke.length>=5&&ke.substring(0,5)==="lang-",Y&&!(Ue&&typeof Ue[1]=="string")&&(Y=!1,ke=S),Y||(Pe[He]=ke)}var m=Fe;if(Fe+=He.length,!Y)Re.push(ue+m,ke);else{var x=Ue[1],C=He.indexOf(x),O=C+x.length;Ue[2]&&(O=He.length-Ue[2].length,C=O-x.length);var ce=ke.substring(5);E(Te,ue+m,He.substring(0,C),De,Re),E(Te,ue+m+C,x,L(ce,x),Re),E(Te,ue+m+O,He.substring(O),De,Re)}}Me.decorations=Re};return De}function de(j){var te=[],Ee=[];j.tripleQuotedStrings?te.push([Z,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):j.multiLineStrings?te.push([Z,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):te.push([Z,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),j.verbatimStrings&&Ee.push([Z,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Le=j.hashComments;Le&&(j.cStyleComments?(Le>1?te.push([se,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):te.push([se,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ee.push([Z,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):te.push([se,/^#[^\r\n]*/,null,"#"])),j.cStyleComments&&(Ee.push([se,/^\/\/[^\r\n]*/,null]),Ee.push([se,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ie=j.regexLiterals;if(Ie){var De=Ie>1?"":`
|
|
\r`,Me=De?".":"[\\S\\s]",$e="/(?=[^/*"+De+"])(?:[^/\\x5B\\x5C"+De+"]|\\x5C"+Me+"|\\x5B(?:[^\\x5C\\x5D"+De+"]|\\x5C"+Me+")*(?:\\x5D|$))+/";Ee.push(["lang-regex",RegExp("^"+H+"("+$e+")")])}var ue=j.types;ue&&Ee.push([_,ue]);var Te=(""+j.keywords).replace(/^ | $/g,"");Te.length&&Ee.push([he,new RegExp("^(?:"+Te.replace(/[\s,]+/g,"|")+")\\b"),null]),te.push([w,/^\s+/,null,` \r
|
|
\xA0`]);var Re="^.[^\\s\\w.$@'\"`/\\\\]*";return j.regexLiterals&&(Re+="(?!s*/)"),Ee.push([Q,/^@[a-z_$][a-z_$@0-9]*/i,null],[_,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[w,/^[a-z_$][a-z_$@0-9]*/i,null],[Q,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[w,/^\\[\s\S]?/,null],[P,new RegExp(Re),null]),be(te,Ee)}var pe=de({keywords:Ne,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function I(j,te,Ee){for(var Le=/(?:^|\s)nocode(?:\s|$)/,Ie=/\r\n?|\n/,De=j.ownerDocument,Me=De.createElement("li");j.firstChild;)Me.appendChild(j.firstChild);var $e=[Me];function ue(ve){var ze=ve.nodeType;if(ze==1&&!Le.test(ve.className))if(ve.nodeName==="br")Te(ve),ve.parentNode&&ve.parentNode.removeChild(ve);else for(var He=ve.firstChild;He;He=He.nextSibling)ue(He);else if((ze==3||ze==4)&&Ee){var ke=ve.nodeValue,Ue=ke.match(Ie);if(Ue){var Y=ke.substring(0,Ue.index);ve.nodeValue=Y;var W=ke.substring(Ue.index+Ue[0].length);if(W){var D=ve.parentNode;D.insertBefore(De.createTextNode(W),ve.nextSibling)}Te(ve),Y||ve.parentNode.removeChild(ve)}}}function Te(ve){for(;!ve.nextSibling;)if(ve=ve.parentNode,!ve)return;function ze(Ue,Y){var W=Y?Ue.cloneNode(!1):Ue,D=Ue.parentNode;if(D){var m=ze(D,1),x=Ue.nextSibling;m.appendChild(W);for(var C=x;C;C=x)x=C.nextSibling,m.appendChild(C)}return W}for(var He=ze(ve.nextSibling,0),ke;(ke=He.parentNode)&&ke.nodeType===1;)He=ke;$e.push(He)}for(var Re=0;Re<$e.length;++Re)ue($e[Re]);te===(te|0)&&$e[0].setAttribute("value",te);var Fe=De.createElement("ol");Fe.className="linenums";for(var We=Math.max(0,te-1|0)||0,Re=0,Pe=$e.length;Re<Pe;++Re)Me=$e[Re],Me.className="L"+(Re+We)%10,Me.firstChild||Me.appendChild(De.createTextNode("\xA0")),Fe.appendChild(Me);j.appendChild(Fe)}function g(j){var te=/\bMSIE\s(\d+)/.exec(navigator.userAgent);te=te&&+te[1]<=8;var Ee=/\n/g,Le=j.sourceCode,Ie=Le.length,De=0,Me=j.spans,$e=Me.length,ue=0,Te=j.decorations,Re=Te.length,Fe=0;Te[Re]=Ie;var We,Pe;for(Pe=We=0;Pe<Re;)Te[Pe]!==Te[Pe+2]?(Te[We++]=Te[Pe++],Te[We++]=Te[Pe++]):Pe+=2;for(Re=We,Pe=We=0;Pe<Re;){for(var ve=Te[Pe],ze=Te[Pe+1],He=Pe+2;He+2<=Re&&Te[He+1]===ze;)He+=2;Te[We++]=ve,Te[We++]=ze,Pe=He}Re=Te.length=We;var ke=j.sourceNode,Ue="";ke&&(Ue=ke.style.display,ke.style.display="none");try{for(var Y=null;ue<$e;){var W=Me[ue],D=Me[ue+2]||Ie,m=Te[Fe+2]||Ie,He=Math.min(D,m),x=Me[ue+1],C;if(x.nodeType!==1&&(C=Le.substring(De,He))){te&&(C=C.replace(Ee,"\r")),x.nodeValue=C;var O=x.ownerDocument,ce=O.createElement("span");ce.className=Te[Fe+1];var ye=x.parentNode;ye.replaceChild(ce,x),ce.appendChild(x),De<D&&(Me[ue+1]=x=O.createTextNode(Le.substring(He,D)),ye.insertBefore(x,ce.nextSibling))}De=He,De>=D&&(ue+=2),De>=m&&(Fe+=2)}}finally{ke&&(ke.style.display=Ue)}}var T={};function b(j,te){for(var Ee=te.length;--Ee>=0;){var Le=te[Ee];T.hasOwnProperty(Le)?A.console&&console.warn("cannot override language handler %s",Le):T[Le]=j}}function L(j,te){return j&&T.hasOwnProperty(j)||(j=/^\s*</.test(te)?"default-markup":"default-code"),T[j]}b(pe,["default-code"]),b(be([],[[w,/^[^<?]+/],[V,/^<!\w[^>]*(?:>|$)/],[se,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[P,/^(?:<[%?]|[%?]>)/],["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(be([[w,/^[\s]+/,null,` \r
|
|
`],[J,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[oe,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[P,/^[=<>\/]+/],["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(be([],[[J,/^[\s\S]+/]]),["uq.val"]),b(de({keywords:me,hashComments:!0,cStyleComments:!0,types:fe}),["c","cc","cpp","cxx","cyc","m"]),b(de({keywords:"null,true,false"}),["json"]),b(de({keywords:le,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:fe}),["cs"]),b(de({keywords:Ae,cStyleComments:!0}),["java"]),b(de({keywords:we,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),b(de({keywords:re,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),b(de({keywords:z,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),b(de({keywords:ae,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),b(de({keywords:M,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),b(de({keywords:U,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),b(be([],[[Z,/^[\s\S]+/]]),["regex"]);function d(j){var te=j.langExtension;try{var Ee=s(j.sourceNode,j.pre),Le=Ee.sourceCode;j.sourceCode=Le,j.spans=Ee.spans,j.basePos=0,L(te,Le)(j),g(j)}catch(Ie){A.console&&console.log(Ie&&Ie.stack||Ie)}}function h(j,te,Ee){var Le=Ee||!1,Ie=te||null,De=document.createElement("div");De.innerHTML="<pre>"+j+"</pre>",De=De.firstChild,Le&&I(De,Le,!0);var Me={langExtension:Ie,numberLines:Le,sourceNode:De,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return d(Me),De.innerHTML}function f(j,te){var Ee=te||document.body,Le=Ee.ownerDocument||document;function Ie(W){return Ee.getElementsByTagName(W)}for(var De=[Ie("pre"),Ie("code"),Ie("xmp")],Me=[],$e=0;$e<De.length;++$e)for(var ue=0,Te=De[$e].length;ue<Te;++ue)Me.push(De[$e][ue]);De=null;var Re=Date;Re.now||(Re={now:function(){return+new Date}});var Fe=0,We=/\blang(?:uage)?-([\w.]+)(?!\S)/,Pe=/\bprettyprint\b/,ve=/\bprettyprinted\b/,ze=/pre|xmp/i,He=/^code$/i,ke=/^(?:pre|code|xmp)$/i,Ue={};function Y(){for(var W=A.PR_SHOULD_USE_CONTINUATION?Re.now()+250:Infinity;Fe<Me.length&&Re.now()<W;Fe++){for(var D=Me[Fe],m=Ue,x=D;x=x.previousSibling;){var C=x.nodeType,O=(C===7||C===8)&&x.nodeValue;if(O?!/^\??prettify\b/.test(O):C!==3||/\S/.test(x.nodeValue))break;if(O){m={},O.replace(/\b(\w+)=([\w:.%+-]+)/g,function(bt,pt,Ot){m[pt]=Ot});break}}var ce=D.className;if((m!==Ue||Pe.test(ce))&&!ve.test(ce)){for(var ye=!1,Ke=D.parentNode;Ke;Ke=Ke.parentNode){var rt=Ke.tagName;if(ke.test(rt)&&Ke.className&&Pe.test(Ke.className)){ye=!0;break}}if(!ye){D.className+=" prettyprinted";var Qe=m.lang;if(!Qe){Qe=ce.match(We);var it;!Qe&&(it=ee(D))&&He.test(it.tagName)&&(Qe=it.className.match(We)),Qe&&(Qe=Qe[1])}var gt;if(ze.test(D.tagName))gt=1;else{var xt=D.currentStyle,lt=Le.defaultView,Pt=xt?xt.whiteSpace:lt&<.getComputedStyle?lt.getComputedStyle(D,null).getPropertyValue("white-space"):0;gt=Pt&&Pt.substring(0,3)==="pre"}var kt=m.linenums;(kt=kt==="true"||+kt)||(kt=ce.match(/\blinenums\b(?::(\d+))?/),kt=kt?kt[1]&&kt[1].length?+kt[1]:!0:!1),kt&&I(D,kt,gt);var Et={langExtension:Qe,sourceNode:D,numberLines:kt,pre:gt,sourceCode:null,basePos:null,spans:null,decorations:null};d(Et)}}}Fe<Me.length?A.setTimeout(Y,250):typeof j=="function"&&j()}Y()}var y=A.PR={createSimpleLexer:be,registerLangHandler:b,sourceDecorator:de,PR_ATTRIB_NAME:N,PR_ATTRIB_VALUE:J,PR_COMMENT:se,PR_DECLARATION:V,PR_KEYWORD:he,PR_LITERAL:Q,PR_NOCODE:K,PR_PLAIN:w,PR_PUNCTUATION:P,PR_SOURCE:S,PR_STRING:Z,PR_TAG:oe,PR_TYPE:_,prettyPrintOne:xe?A.prettyPrintOne=h:ie=h,prettyPrint:B=xe?A.prettyPrint=f:B=f},G=A.define;typeof G=="function"&&G.amd&&G("google-code-prettify",[],function(){return y})})()},"VrN/":function(ct,Ge,v){(function(X,Oe){ct.exports=Oe()})(this,function(){"use strict";var X=navigator.userAgent,Oe=navigator.platform,xe=/gecko\/\d/i.test(X),je=/MSIE \d/.test(X),Ce=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),ie=/Edge\/(\d+)/.exec(X),B=je||Ce||ie,A=B&&(je?document.documentMode||6:+(ie||Ce)[1]),k=!ie&&/WebKit\//.test(X),ne=k&&/Qt\/\d+\.\d+/.test(X),q=!ie&&/Chrome\//.test(X),me=/Opera\//.test(X),Ae=/Apple Computer/.test(navigator.vendor),le=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),U=/PhantomJS/.test(X),M=!ie&&/AppleWebKit/.test(X)&&/Mobile\/\w+/.test(X),z=/Android/.test(X),re=M||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),ae=M||/Mac/.test(Oe),we=/\bCrOS\b/.test(X),Ne=/win/i.test(Oe),fe=me&&X.match(/Version\/(\d*\.\d*)/);fe&&(fe=Number(fe[1])),fe&&fe>=15&&(me=!1,k=!0);var Z=ae&&(ne||me&&(fe==null||fe<12.11)),he=xe||B&&A>=9;function se(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _=function(e,t){var a=e.className,n=se(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 Q(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function P(e,t){return Q(e).appendChild(t)}function w(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 oe(e,t,a,n){var r=w(e,t,a,n);return r.setAttribute("role","presentation"),r}var V;document.createRange?V=function(e,t,a,n){var r=document.createRange();return r.setEnd(n||e,a),r.setStart(e,t),r}:V=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 S(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 J(e,t){var a=e.className;se(t).test(a)||(e.className+=(a?" ":"")+t)}function K(e,t){for(var a=e.split(" "),n=0;n<a.length;n++)a[n]&&!se(a[n]).test(t)&&(t+=" "+a[n]);return t}var H=function(e){e.select()};M?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:B&&(H=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 E(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 ee(e,t){for(var a=0;a<e.length;++a)if(e[a]==t)return a;return-1}var be=50,de={toString:function(){return"CodeMirror.Pass"}},pe={scroll:!1},I={origin:"*mouse"},g={origin:"+move"};function T(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 L(e){for(;b.length<=e;)b.push(d(b)+" ");return b[e]}function d(e){return e[e.length-1]}function h(e,t){for(var a=[],n=0;n<e.length;n++)a[n]=t(e[n],n);return a}function f(e,t,a){for(var n=0,r=a(t);n<e.length&&a(e[n])<=r;)n++;e.splice(n,0,t)}function y(){}function G(e,t){var a;return Object.create?a=Object.create(e):(y.prototype=e,a=new y),t&&s(t,a),a}var j=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||j.test(e))}function Ee(e,t){return t?t.source.indexOf("\\w")>-1&&te(e)?!0:t.test(e):te(e)}function Le(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 De(e){return e.charCodeAt(0)>=768&&Ie.test(e)}function Me(e,t,a){for(;(a<0?t>0:t<e.length)&&De(e.charAt(t));)t+=a;return t}function $e(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 ue(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 Re(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 Fe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(p){return p<=247?e.charAt(p):1424<=p&&p<=1524?"R":1536<=p&&p<=1785?t.charAt(p-1536):1774<=p&&p<=2220?"r":8192<=p&&p<=8203?"w":p==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function c(p,F,$){this.level=p,this.from=F,this.to=$}return function(p,F){var $=F=="ltr"?"L":"R";if(p.length==0||F=="ltr"&&!n.test(p))return!1;for(var Se=p.length,ge=[],Be=0;Be<Se;++Be)ge.push(a(p.charCodeAt(Be)));for(var Ve=0,Je=$;Ve<Se;++Ve){var qe=ge[Ve];qe=="m"?ge[Ve]=Je:Je=qe}for(var ot=0,et=$;ot<Se;++ot){var ut=ge[ot];ut=="1"&&et=="r"?ge[ot]="n":i.test(ut)&&(et=ut,ut=="r"&&(ge[ot]="R"))}for(var wt=1,vt=ge[0];wt<Se-1;++wt){var Lt=ge[wt];Lt=="+"&&vt=="1"&&ge[wt+1]=="1"?ge[wt]="1":Lt==","&&vt==ge[wt+1]&&(vt=="1"||vt=="n")&&(ge[wt]=vt),vt=Lt}for(var $t=0;$t<Se;++$t){var Mn=ge[$t];if(Mn==",")ge[$t]="N";else if(Mn=="%"){var ln=void 0;for(ln=$t+1;ln<Se&&ge[ln]=="%";++ln);for(var na=$t&&ge[$t-1]=="!"||ln<Se&&ge[ln]=="1"?"1":"N",Zn=$t;Zn<ln;++Zn)ge[Zn]=na;$t=ln-1}}for(var yn=0,Qn=$;yn<Se;++yn){var Fn=ge[yn];Qn=="L"&&Fn=="1"?ge[yn]="L":i.test(Fn)&&(Qn=Fn)}for(var Cn=0;Cn<Se;++Cn)if(r.test(ge[Cn])){var xn=void 0;for(xn=Cn+1;xn<Se&&r.test(ge[xn]);++xn);for(var fn=(Cn?ge[Cn-1]:$)=="L",qn=(xn<Se?ge[xn]:$)=="L",or=fn==qn?fn?"L":"R":$,Ma=Cn;Ma<xn;++Ma)ge[Ma]=or;Cn=xn-1}for(var Hn=[],va,Rn=0;Rn<Se;)if(o.test(ge[Rn])){var Fi=Rn;for(++Rn;Rn<Se&&o.test(ge[Rn]);++Rn);Hn.push(new c(0,Fi,Rn))}else{var Ca=Rn,Ha=Hn.length,Ka=F=="rtl"?1:0;for(++Rn;Rn<Se&&ge[Rn]!="L";++Rn);for(var Vn=Ca;Vn<Rn;)if(l.test(ge[Vn])){Ca<Vn&&(Hn.splice(Ha,0,new c(1,Ca,Vn)),Ha+=Ka);var lr=Vn;for(++Vn;Vn<Rn&&l.test(ge[Vn]);++Vn);Hn.splice(Ha,0,new c(2,lr,Vn)),Ha+=Ka,Ca=Vn}else++Vn;Ca<Rn&&Hn.splice(Ha,0,new c(1,Ca,Rn))}return F=="ltr"&&(Hn[0].level==1&&(va=p.match(/^\s+/))&&(Hn[0].from=va[0].length,Hn.unshift(new c(0,0,va[0].length))),d(Hn).level==1&&(va=p.match(/\s+$/))&&(d(Hn).to-=va[0].length,Hn.push(new c(0,Se-va[0].length,Se)))),F=="rtl"?Hn.reverse():Hn}}();function We(e,t){var a=e.order;return a==null&&(a=e.order=Fe(e.text,t)),a}var Pe=[],ve=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]||Pe).concat(a)}};function ze(e,t){return e._handlers&&e._handlers[t]||Pe}function He(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=ee(r,a);i>-1&&(n[t]=r.slice(0,i).concat(r.slice(i+1)))}}}function ke(e,t){var a=ze(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 Ue(e,t,a){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ke(e,a||t.type,e,t),C(t)||t.codemirrorIgnore}function Y(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)ee(a,t[n])==-1&&a.push(t[n])}function W(e,t){return ze(e,t).length>0}function D(e){e.prototype.on=function(t,a){ve(this,t,a)},e.prototype.off=function(t,a){He(this,t,a)}}function m(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function x(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function C(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function O(e){m(e),x(e)}function ce(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)),ae&&e.ctrlKey&&t==1&&(t=3),t}var Ke=function(){if(B&&A<9)return!1;var e=w("div");return"draggable"in e||"dragDrop"in e}(),rt;function Qe(e){if(rt==null){var t=w("span","\u200B");P(e,w("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(rt=t.offsetWidth<=1&&t.offsetHeight>2&&!(B&&A<8))}var a=rt?w("span","\u200B"):w("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var it;function gt(e){if(it!=null)return it;var t=P(e,document.createTextNode("A\u062EA")),a=V(t,0,1).getBoundingClientRect(),n=V(t,1,2).getBoundingClientRect();return Q(e),!a||a.left==a.right?!1:it=n.right-a.right<3}var xt=`
|
|
|
|
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/)},lt=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},Pt=function(){var e=w("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),kt=null;function Et(e){if(kt!=null)return kt;var t=P(e,w("span","x")),a=t.getBoundingClientRect(),n=V(t,0,1).getBoundingClientRect();return kt=Math.abs(a.left-n.left)>1}var bt={},pt={};function Ot(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),bt[e]=t}function It(e,t){pt[e]=t}function Kt(e){if(typeof e=="string"&&pt.hasOwnProperty(e))e=pt[e];else if(e&&typeof e.name=="string"&&pt.hasOwnProperty(e.name)){var t=pt[e.name];typeof t=="string"&&(t={name:t}),e=G(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Kt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Kt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Yt(e,t){t=Kt(t);var a=bt[t.name];if(!a)return Yt(e,"text/plain");var n=a(e,t);if(Mt.hasOwnProperty(t.name)){var r=Mt[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 Mt={};function hn(e,t){var a=Mt.hasOwnProperty(e)?Mt[e]:Mt[e]={};s(t,a)}function Jt(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 Wt(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 nn(e,t,a){return e.startState?e.startState(t,a):!0}var Rt=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};Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rt.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},Rt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Rt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Rt.prototype.backUp=function(e){this.pos-=e},Rt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=E(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?E(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.indentation=function(){return E(this.string,null,this.tabSize)-(this.lineStart?E(this.string,this.lineStart,this.tabSize):0)},Rt.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)}},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Rt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Rt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function tt(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 Ut(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 pn(e,t,a){var n=[];return e.iter(t,a,function(r){n.push(r.text)}),n}function on(e,t){var a=t-e.height;if(a)for(var n=e;n;n=n.parent)n.height+=a}function At(e){if(e.parent==null)return null;for(var t=e.parent,a=ee(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 an(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 wn(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function Xe(e,t,a){if(a===void 0&&(a=null),!(this instanceof Xe))return new Xe(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 mn(e,t){return e.sticky==t.sticky&&ft(e,t)==0}function sn(e){return Xe(e.line,e.ch)}function Ye(e,t){return ft(e,t)<0?t:e}function kn(e,t){return ft(e,t)<0?e:t}function aa(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ht(e,t){if(t.line<e.first)return Xe(e.first,0);var a=e.first+e.size-1;return t.line>a?Xe(a,tt(e,a).text.length):Vt(t,tt(e,t.line).text.length)}function Vt(e,t){var a=e.ch;return a==null||a>t?Xe(e.line,t):a<0?Xe(e.line,0):e}function Nn(e,t){for(var a=[],n=0;n<t.length;n++)a[n]=ht(e,t[n]);return a}var jn=function(e,t){this.state=e,this.lookAhead=t},en=function(e,t,a,n){this.state=t,this.doc=e,this.line=a,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};en.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},en.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}},en.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},en.fromSaved=function(e,t,a){return t instanceof jn?new en(e,Jt(e.mode,t.state),a,t.lookAhead):new en(e,Jt(e.mode,t),a)},en.prototype.save=function(e){var t=e!==!1?Jt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new jn(t,this.maxLookAhead):t};function Sn(e,t,a,n){var r=[e.state.modeGen],i={};_t(e,t.text,e.doc.mode,a,function(p,F){return r.push(p,F)},i,n);for(var o=a.state,l=function(p){a.baseTokens=r;var F=e.state.overlays[p],$=1,Se=0;a.state=!0,_t(e,t.text,F.mode,a,function(ge,Be){for(var Ve=$;Se<ge;){var Je=r[$];Je>ge&&r.splice($,1,ge,r[$+1],Je),$+=2,Se=Math.min(ge,Je)}if(!Be)return;if(F.opaque)r.splice(Ve,$-Ve,ge,"overlay "+Be),$=Ve+2;else for(;Ve<$;Ve+=2){var qe=r[Ve+1];r[Ve+1]=(qe?qe+" ":"")+"overlay "+Be}},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 st(e,t,a){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=_e(e,At(t)),r=t.text.length>e.options.maxHighlightLength&&Jt(e.doc.mode,n.state),i=Sn(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 _e(e,t,a){var n=e.doc,r=e.display;if(!n.mode.startState)return new en(n,!0,t);var i=En(e,t,a),o=i>n.first&&tt(n,i-1).stateAfter,l=o?en.fromSaved(n,o,i):new en(n,nn(n.mode),i);return n.iter(i,t,function(c){Ze(e,c.text,l);var p=l.line;c.stateAfter=p==t-1||p%5==0||p>=r.viewFrom&&p<r.viewTo?l.save():null,l.nextLine()}),a&&(n.modeFrontier=l.line),l}function Ze(e,t,a,n){var r=e.doc.mode,i=new Rt(t,e.options.tabSize,a);for(i.start=i.pos=n||0,t==""&&nt(r,a.state);!i.eol();)Ct(r,i,a.state),i.start=i.pos}function nt(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var a=Wt(e,t);if(a.mode.blankLine)return a.mode.blankLine(a.state)}function Ct(e,t,a,n){for(var r=0;r<10;r++){n&&(n[0]=Wt(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 jt(e,t,a,n){var r=e.doc,i=r.mode,o;t=ht(r,t);var l=tt(r,t.line),c=_e(e,t.line,a),p=new Rt(l.text,e.options.tabSize,c),F;for(n&&(F=[]);(n||p.pos<t.ch)&&!p.eol();)p.start=p.pos,o=Ct(i,p,c.state),n&&F.push(new yt(p,o,Jt(r.mode,c.state)));return n?F:new yt(p,o,c.state)}function Nt(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 _t(e,t,a,n,r,i,o){var l=a.flattenSpans;l==null&&(l=e.options.flattenSpans);var c=0,p=null,F=new Rt(t,e.options.tabSize,n),$,Se=e.options.addModeClass&&[null];for(t==""&&Nt(nt(a,n.state),i);!F.eol();){if(F.pos>e.options.maxHighlightLength?(l=!1,o&&Ze(e,t,n,F.pos),F.pos=t.length,$=null):$=Nt(Ct(a,F,n.state,Se),i),Se){var ge=Se[0].name;ge&&($="m-"+($?ge+" "+$:ge))}if(!l||p!=$){for(;c<F.start;)c=Math.min(F.start,c+5e3),r(c,p);p=$}F.start=F.pos}for(;c<F.pos;){var Be=Math.min(F.pos,c+5e3);r(Be,p),c=Be}}function En(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=tt(i,l-1),p=c.stateAfter;if(p&&(!a||l+(p instanceof jn?p.lookAhead:0)<=i.modeFrontier))return l;var F=E(c.text,null,e.options.tabSize);(r==null||n>F)&&(r=l-1,n=F)}return r}function Zt(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=tt(e,n).stateAfter;if(r&&(!(r instanceof jn)||n+r.lookAhead<t)){a=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,a)}var un=!1,tn=!1;function Qt(){un=!0}function Pn(){tn=!0}function Kn(e,t,a){this.marker=e,this.from=t,this.to=a}function cn(e,t){if(e)for(var a=0;a<e.length;++a){var n=e[a];if(n.marker==t)return n}}function wa(e,t){for(var a,n=0;n<e.length;++n)e[n]!=t&&(a||(a=[])).push(e[n]);return a}function Tn(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function zn(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 Ft(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 dt(e,t){if(t.full)return null;var a=Gt(e,t.from.line)&&tt(e,t.from.line).markedSpans,n=Gt(e,t.to.line)&&tt(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=zn(a,r,o),c=Ft(n,i,o),p=t.text.length==1,F=d(t.text).length+(p?r:0);if(l)for(var $=0;$<l.length;++$){var Se=l[$];if(Se.to==null){var ge=cn(c,Se.marker);ge?p&&(Se.to=ge.to==null?null:ge.to+F):Se.to=r}}if(c)for(var Be=0;Be<c.length;++Be){var Ve=c[Be];if(Ve.to!=null&&(Ve.to+=F),Ve.from==null){var Je=cn(l,Ve.marker);Je||(Ve.from=F,p&&(l||(l=[])).push(Ve))}else Ve.from+=F,p&&(l||(l=[])).push(Ve)}l&&(l=at(l)),c&&c!=l&&(c=at(c));var qe=[l];if(!p){var ot=t.text.length-2,et;if(ot>0&&l)for(var ut=0;ut<l.length;++ut)l[ut].to==null&&(et||(et=[])).push(new Kn(l[ut].marker,null,null));for(var wt=0;wt<ot;++wt)qe.push(et);qe.push(c)}return qe}function at(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 gn(e,t,a){var n=null;if(e.iter(t.line,a.line+1,function(ge){if(ge.markedSpans)for(var Be=0;Be<ge.markedSpans.length;++Be){var Ve=ge.markedSpans[Be].marker;Ve.readOnly&&(!n||ee(n,Ve)==-1)&&(n||(n=[])).push(Ve)}}),!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 p=r[c];if(ft(p.to,l.from)<0||ft(p.from,l.to)>0)continue;var F=[c,1],$=ft(p.from,l.from),Se=ft(p.to,l.to);($<0||!o.inclusiveLeft&&!$)&&F.push({from:p.from,to:l.from}),(Se>0||!o.inclusiveRight&&!Se)&&F.push({from:l.to,to:p.to}),r.splice.apply(r,F),c+=F.length-3}return r}function zt(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 In(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 Xn(e){return e.inclusiveRight?1:0}function la(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)||Xn(e)-Xn(t);return o||t.id-e.id}function $n(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||la(n,r.marker)<0)&&(n=r.marker);return n}function sa(e){return $n(e,!0)}function ra(e){return $n(e,!1)}function ua(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||la(n,i.marker)<0)&&(n=i.marker)}return n}function ha(e,t,a,n,r){var i=tt(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 p=c.marker.find(0),F=ft(p.from,a)||ea(c.marker)-ea(r),$=ft(p.to,n)||Xn(c.marker)-Xn(r);if(F>=0&&$<=0||F<=0&&$>=0)continue;if(F<=0&&(c.marker.inclusiveRight&&r.inclusiveLeft?ft(p.to,a)>=0:ft(p.to,a)>0)||F>=0&&(c.marker.inclusiveRight&&r.inclusiveLeft?ft(p.from,n)<=0:ft(p.from,n)<0))return!0}}function On(e){for(var t;t=sa(e);)e=t.find(-1,!0).line;return e}function Ra(e){for(var t;t=ra(e);)e=t.find(1,!0).line;return e}function mt(e){for(var t,a;t=ra(e);)e=t.find(1,!0).line,(a||(a=[])).push(e);return a}function St(e,t){var a=tt(e,t),n=On(a);return a==n?t:At(n)}function Tt(e,t){if(t>e.lastLine())return t;var a=tt(e,t),n;if(!Dt(e,a))return t;for(;n=ra(a);)a=n.find(1,!0).line;return At(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&&Bt(e,t,n))return!0}}function Bt(e,t,a){if(a.to==null){var n=a.marker.find(1,!0);return Bt(e,n.line,cn(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)&&Bt(e,t,r))return!0}function qt(e){e=On(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 dn(e){if(e.height==0)return 0;for(var t=e.text.length,a,n=e;a=sa(n);){var r=a.find(0,!0);n=r.from.line,t+=r.from.ch-r.to.ch}for(n=e;a=ra(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 _n(e){var t=e.display,a=e.doc;t.maxLine=tt(a,a.first),t.maxLineLength=dn(t.maxLine),t.maxLineChanged=!0,a.iter(function(n){var r=dn(n);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=n)})}var An=function(e,t,a){this.text=e,In(this,t),this.height=a?a(this):1};An.prototype.lineNo=function(){return At(this)},D(An);function ga(e,t,a,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),zt(e),In(e,a);var r=n?n(e):1;r!=e.height&&on(e,r)}function bn(e){e.parent=null,zt(e)}var ka={},Wn={};function ba(e,t){if(!e||/^\s*$/.test(e))return null;var a=t.addModeClass?Wn:ka;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function ya(e,t){var a=oe("span",null,null,k?"padding-right: .1px":null),n={pre:oe("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,gt(e.display.measure)&&(o=We(i,e.doc.direction))&&(n.addToken=Ol(n.addToken,o)),n.map=[];var l=t!=e.display.externalMeasured&&At(i);_l(i,n,st(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(Qe(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(k){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 ke(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=K(n.pre.className,n.textClass||"")),n}function sr(e){var t=w("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?Tl(t,e.trailingSpace):t,c=e.cm.state.specialChars,p=!1,F;if(!c.test(t))e.col+=t.length,F=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,F),B&&A<9&&(p=!0),e.pos+=t.length;else{F=document.createDocumentFragment();for(var $=0;;){c.lastIndex=$;var Se=c.exec(t),ge=Se?Se.index-$:t.length-$;if(ge){var Be=document.createTextNode(l.slice($,$+ge));B&&A<9?F.appendChild(w("span",[Be])):F.appendChild(Be),e.map.push(e.pos,e.pos+ge,Be),e.col+=ge,e.pos+=ge}if(!Se)break;$+=ge+1;var Ve=void 0;if(Se[0]==" "){var Je=e.cm.options.tabSize,qe=Je-e.col%Je;Ve=F.appendChild(w("span",L(qe),"cm-tab")),Ve.setAttribute("role","presentation"),Ve.setAttribute("cm-text"," "),e.col+=qe}else Se[0]=="\r"||Se[0]==`
|
|
`?(Ve=F.appendChild(w("span",Se[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ve.setAttribute("cm-text",Se[0]),e.col+=1):(Ve=e.cm.options.specialCharPlaceholder(Se[0]),Ve.setAttribute("cm-text",Se[0]),B&&A<9?F.appendChild(w("span",[Ve])):F.appendChild(Ve),e.col+=1);e.map.push(e.pos,e.pos+1,Ve),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,a||n||r||p||i||o){var ot=a||"";n&&(ot+=n),r&&(ot+=r);var et=w("span",[F],ot,i);if(o)for(var ut in o)o.hasOwnProperty(ut)&&ut!="style"&&ut!="class"&&et.setAttribute(ut,o[ut]);return e.content.appendChild(et)}e.content.appendChild(F)}function Tl(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 Ol(e,t){return function(a,n,r,i,o,l,c){r=r?r+" cm-force-border":"cm-force-border";for(var p=a.pos,F=p+n.length;;){for(var $=void 0,Se=0;Se<t.length&&!($=t[Se],$.to>p&&$.from<=p);Se++);if($.to>=F)return e(a,n,r,i,o,l,c);e(a,n.slice(0,$.to-p),r,i,null,l,c),i=null,n=n.slice($.to-p),p=$.to}}}function Bi(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]),ba(a[o+1],t.cm.options));return}for(var l=r.length,c=0,p=1,F="",$,Se,ge=0,Be,Ve,Je,qe,ot;;){if(ge==c){Be=Ve=Je=Se="",ot=null,qe=null,ge=Infinity;for(var et=[],ut=void 0,wt=0;wt<n.length;++wt){var vt=n[wt],Lt=vt.marker;if(Lt.type=="bookmark"&&vt.from==c&&Lt.widgetNode)et.push(Lt);else if(vt.from<=c&&(vt.to==null||vt.to>c||Lt.collapsed&&vt.to==c&&vt.from==c)){if(vt.to!=null&&vt.to!=c&&ge>vt.to&&(ge=vt.to,Ve=""),Lt.className&&(Be+=" "+Lt.className),Lt.css&&(Se=(Se?Se+";":"")+Lt.css),Lt.startStyle&&vt.from==c&&(Je+=" "+Lt.startStyle),Lt.endStyle&&vt.to==ge&&(ut||(ut=[])).push(Lt.endStyle,vt.to),Lt.title&&((ot||(ot={})).title=Lt.title),Lt.attributes)for(var $t in Lt.attributes)(ot||(ot={}))[$t]=Lt.attributes[$t];Lt.collapsed&&(!qe||la(qe.marker,Lt)<0)&&(qe=vt)}else vt.from>c&&ge>vt.from&&(ge=vt.from)}if(ut)for(var Mn=0;Mn<ut.length;Mn+=2)ut[Mn+1]==ge&&(Ve+=" "+ut[Mn]);if(!qe||qe.from==c)for(var ln=0;ln<et.length;++ln)Bi(t,0,et[ln]);if(qe&&(qe.from||0)==c){if(Bi(t,(qe.to==null?l+1:qe.to)-c,qe.marker,qe.from==null),qe.to==null)return;qe.to==c&&(qe=!1)}}if(c>=l)break;for(var na=Math.min(l,ge);;){if(F){var Zn=c+F.length;if(!qe){var yn=Zn>na?F.slice(0,na-c):F;t.addToken(t,yn,$?$+Be:Be,Je,c+yn.length==ge?Ve:"",Se,ot)}if(Zn>=na){F=F.slice(na-c),c=na;break}c=Zn,Je=""}F=r.slice(i,i=a[p++]),$=ba(a[p++],t.cm.options)}}}function Hi(e,t,a){this.line=t,this.rest=mt(t),this.size=this.rest?At(d(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Dt(e,t)}function Nr(e,t,a){for(var n=[],r,i=t;i<a;i=r){var o=new Hi(e.doc,tt(e.doc,i),i);r=i+o.size,n.push(o)}return n}var za=null;function Al(e){za?za.ops.push(e):e.ownsGroup=za={ops:[e],delayedCallbacks:[]}}function Dl(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{Dl(a)}finally{za=null,t(a)}}var ur=null;function Un(e,t){var a=ze(e,t);if(!a.length)return;var n=Array.prototype.slice.call(arguments,2),r;za?r=za.delayedCallbacks:ur?r=ur:(r=ur=[],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=ur;ur=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"?Xi(e,t,a,n):i=="class"?ai(e,t):i=="widget"&&jl(e,t,n)}t.changes=null}function cr(e){return e.node==e.text&&(e.node=w("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),B&&A<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=cr(t);t.background=n.insertBefore(w("div",null,a),n.firstChild),e.display.input.setUneditable(t.background)}}function zi(e,t){var a=e.display.externalMeasured;return a&&a.line==t.line?(e.display.externalMeasured=null,t.measure=a.measure,a.built):ya(e,t)}function Nl(e,t){var a=t.text.className,n=zi(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,ai(e,t)):a&&(t.text.className=a)}function ai(e,t){Rl(e,t),t.line.wrapClass?cr(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 Xi(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=cr(t);t.gutterBackground=w("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=cr(t),l=t.gutter=w("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(w("div",wn(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 p=e.display.gutterSpecs[c].className,F=i.hasOwnProperty(p)&&i[p];F&&l.appendChild(w("div",[F],"CodeMirror-gutter-elt","left: "+n.gutterLeft[p]+"px; width: "+n.gutterWidth[p]+"px"))}}}function jl(e,t,a){t.alignable&&(t.alignable=null);for(var n=se("CodeMirror-linewidget"),r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,n.test(r.className)&&t.node.removeChild(r);Gi(e,t,a)}function Pl(e,t,a,n){var r=zi(e,t);return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),ai(e,t),Xi(e,t,a,n),Gi(e,t,n),t.node}function Gi(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=cr(a),o=0,l=t.widgets;o<l.length;++o){var c=l[o],p=w("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||p.setAttribute("cm-ignore-events","true"),Il(c,p,a,n),e.display.input.setUneditable(p),r&&c.above?i.insertBefore(p,a.gutter||a.text):i.appendChild(p),Un(c,"redraw")}}function Il(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 dr(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!S(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;"),P(t.display.measure,w("div",[e.node],null,a))}return e.height=e.node.parentNode.offsetHeight}function xa(e,t){for(var a=ce(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 jr(e){return e.lineSpace.offsetTop}function ri(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function $i(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=P(e.measure,w("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 be-e.display.nativeBarWidth}function Na(e){return e.display.scroller.clientWidth-pa(e)-e.display.barWidth}function ii(e){return e.display.scroller.clientHeight-pa(e)-e.display.barHeight}function Ul(e,t,a){var n=e.options.lineWrapping,r=n&&Na(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],p=o[l+1];Math.abs(c.bottom-p.bottom)>2&&i.push((c.bottom+p.top)/2-a.top)}}i.push(a.bottom-a.top)}}function Yi(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(At(e.rest[r])>a)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Fl(e,t){t=On(t);var a=At(t),n=e.display.externalMeasured=new Hi(e.doc,t,a);n.lineN=a;var r=n.built=ya(e,n);return n.text=r.pre,P(e.display.lineMeasure,r.pre),n}function Ji(e,t,a,n){return ma(e,Xa(e,t),a,n)}function oi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Ia(e,t)];var a=e.display.externalMeasured;if(a&&t>=a.lineN&&t<a.lineN+a.size)return a}function Xa(e,t){var a=At(t),n=oi(e,a);n&&!n.text?n=null:n&&n.changes&&(Ki(e,n,a,fi(e)),e.curOp.forceUpdate=!0),n||(n=Fl(e,t));var r=Yi(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||(Ul(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 Zi={left:0,right:0,top:0,bottom:0};function Qi(e,t,a){for(var n,r,i,o,l,c,p=0;p<e.length;p+=3)if(l=e[p],c=e[p+1],t<l?(r=0,i=1,o="left"):t<c?(r=t-l,i=r+1):(p==e.length-3||t==c&&e[p+3]>t)&&(i=c-l,r=i-1,t>=c&&(o="right")),r!=null){if(n=e[p+2],l==c&&a==(n.insertLeft?"left":"right")&&(o=a),a=="left"&&r==0)for(;p&&e[p-2]==e[p-3]&&e[p-1].insertLeft;)n=e[(p-=3)+2],o="left";if(a=="right"&&r==c-l)for(;p<e.length-3&&e[p+3]==e[p+4]&&!e[p+5].insertLeft;)n=e[(p+=3)+2],o="right";break}return{node:n,start:r,end:i,collapse:o,coverStart:l,coverEnd:c}}function Wl(e,t){var a=Zi;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=Qi(t.map,a,n),i=r.node,o=r.start,l=r.end,c=r.collapse,p;if(i.nodeType==3){for(var F=0;F<4;F++){for(;o&&De(t.line.text.charAt(r.coverStart+o));)--o;for(;r.coverStart+l<r.coverEnd&&De(t.line.text.charAt(r.coverStart+l));)++l;if(B&&A<9&&o==0&&l==r.coverEnd-r.coverStart?p=i.parentNode.getBoundingClientRect():p=Wl(V(i,o,l).getClientRects(),n),p.left||p.right||o==0)break;l=o,o=o-1,c="right"}B&&A<11&&(p=Hl(e.display.measure,p))}else{o>0&&(c=n="right");var $;e.options.lineWrapping&&($=i.getClientRects()).length>1?p=$[n=="right"?$.length-1:0]:p=i.getBoundingClientRect()}if(B&&A<9&&!o&&(!p||!p.left&&!p.right)){var Se=i.parentNode.getClientRects()[0];Se?p={left:Se.left,right:Se.left+Va(e.display),top:Se.top,bottom:Se.bottom}:p=Zi}for(var ge=p.top-t.rect.top,Be=p.bottom-t.rect.top,Ve=(ge+Be)/2,Je=t.view.measure.heights,qe=0;qe<Je.length-1&&!(Ve<Je[qe]);qe++);var ot=qe?Je[qe-1]:0,et=Je[qe],ut={left:(c=="right"?p.right:p.left)-t.rect.left,right:(c=="left"?p.left:p.right)-t.rect.left,top:ot,bottom:et};return!p.left&&!p.right&&(ut.bogus=!0),e.options.singleCursorHeightPerLine||(ut.rtop=ge,ut.rbottom=Be),ut}function Hl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Et(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 eo(e){e.display.externalMeasure=null,Q(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)qi(e.display.view[t])}function fr(e){eo(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function to(){return q&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function no(){return q&&z?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function li(e){var t=0;if(e.widgets)for(var a=0;a<e.widgets.length;++a)e.widgets[a].above&&(t+=dr(e.widgets[a]));return t}function Pr(e,t,a,n,r){if(!r){var i=li(t);a.top+=i,a.bottom+=i}if(n=="line")return a;n||(n="local");var o=qt(t);if(n=="local"?o+=jr(e.display):o-=e.display.viewOffset,n=="page"||n=="window"){var l=e.display.lineSpace.getBoundingClientRect();o+=l.top+(n=="window"?0:no());var c=l.left+(n=="window"?0:to());a.left+=c,a.right+=c}return a.top+=o,a.bottom+=o,a}function ao(e,t,a){if(a=="div")return t;var n=t.left,r=t.top;if(a=="page")n-=to(),r-=no();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 si(e,t,a,n,r){return n||(n=tt(e.doc,t.line)),Pr(e,n,Ji(e,n,t.ch,r),a)}function ca(e,t,a,n,r,i){n=n||tt(e.doc,t.line),r||(r=Xa(e,n));function o(Be,Ve){var Je=ma(e,r,Be,Ve?"right":"left",i);return Ve?Je.left=Je.right:Je.right=Je.left,Pr(e,n,Je,a)}var l=We(n,e.doc.direction),c=t.ch,p=t.sticky;if(c>=n.text.length?(c=n.text.length,p="before"):c<=0&&(c=0,p="after"),!l)return o(p=="before"?c-1:c,p=="before");function F(Be,Ve,Je){var qe=l[Ve],ot=qe.level==1;return o(Je?Be-1:Be,ot!=Je)}var $=Re(l,c,p),Se=Te,ge=F(c,$,p=="before");return Se!=null&&(ge.other=F(c,Se,p!="before")),ge}function ro(e,t){var a=0;t=ht(e.doc,t),e.options.lineWrapping||(a=Va(e.display)*t.ch);var n=tt(e.doc,t.line),r=qt(n)+jr(e.display);return{left:a,right:a,top:r,bottom:r+n.height}}function ui(e,t,a,n,r){var i=Xe(e,t,a);return i.xRel=r,n&&(i.outside=n),i}function ci(e,t,a){var n=e.doc;if(a+=e.display.viewOffset,a<0)return ui(n.first,0,null,-1,-1);var r=an(n,a),i=n.first+n.size-1;if(r>i)return ui(n.first+n.size-1,tt(n,i).text.length,null,1,1);t<0&&(t=0);for(var o=tt(n,r);;){var l=Kl(e,o,r,t,a),c=ua(o,l.ch+(l.xRel>0||l.outside>0?1:0));if(!c)return l;var p=c.find(1);if(p.line==r)return p;o=tt(n,r=p.line)}}function io(e,t,a,n){n-=li(t);var r=t.text.length,i=$e(function(o){return ma(e,a,o-1).bottom<=n},r,0);return r=$e(function(o){return ma(e,a,o).top>n},i,r),{begin:i,end:r}}function oo(e,t,a,n){a||(a=Xa(e,t));var r=Pr(e,t,ma(e,a,n),"line").top;return io(e,t,a,r)}function di(e,t,a,n){return e.bottom<=a?!1:e.top>a?!0:(n?e.left:e.right)>t}function Kl(e,t,a,n,r){r-=qt(t);var i=Xa(e,t),o=li(t),l=0,c=t.text.length,p=!0,F=We(t,e.doc.direction);if(F){var $=(e.options.lineWrapping?Xl:zl)(e,t,a,i,F,n,r);p=$.level!=1,l=p?$.from:$.to-1,c=p?$.to:$.from-1}var Se=null,ge=null,Be=$e(function(wt){var vt=ma(e,i,wt);return vt.top+=o,vt.bottom+=o,di(vt,n,r,!1)?(vt.top<=r&&vt.left<=n&&(Se=wt,ge=vt),!0):!1},l,c),Ve,Je,qe=!1;if(ge){var ot=n-ge.left<ge.right-n,et=ot==p;Be=Se+(et?0:1),Je=et?"after":"before",Ve=ot?ge.left:ge.right}else{!p&&(Be==c||Be==l)&&Be++,Je=Be==0?"after":Be==t.text.length?"before":ma(e,i,Be-(p?1:0)).bottom+o<=r==p?"after":"before";var ut=ca(e,Xe(a,Be,Je),"line",t,i);Ve=ut.left,qe=r<ut.top?-1:r>=ut.bottom?1:0}return Be=Me(t.text,Be,1),ui(a,Be,Je,qe,n-Ve)}function zl(e,t,a,n,r,i,o){var l=$e(function($){var Se=r[$],ge=Se.level!=1;return di(ca(e,Xe(a,ge?Se.to:Se.from,ge?"before":"after"),"line",t,n),i,o,!0)},0,r.length-1),c=r[l];if(l>0){var p=c.level!=1,F=ca(e,Xe(a,p?c.from:c.to,p?"after":"before"),"line",t,n);di(F,i,o,!0)&&F.top>o&&(c=r[l-1])}return c}function Xl(e,t,a,n,r,i,o){var l=io(e,t,n,o),c=l.begin,p=l.end;/\s/.test(t.text.charAt(p-1))&&p--;for(var F=null,$=null,Se=0;Se<r.length;Se++){var ge=r[Se];if(ge.from>=p||ge.to<=c)continue;var Be=ge.level!=1,Ve=ma(e,n,Be?Math.min(p,ge.to)-1:Math.max(c,ge.from)).right,Je=Ve<i?i-Ve+1e9:Ve-i;(!F||$>Je)&&(F=ge,$=Je)}return F||(F=r[r.length-1]),F.from<c&&(F={from:c,to:F.to,level:F.level}),F.to>p&&(F={from:F.from,to:p,level:F.level}),F}var ja;function Ga(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ja==null){ja=w("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ja.appendChild(document.createTextNode("x")),ja.appendChild(w("br"));ja.appendChild(document.createTextNode("x"))}P(e.measure,ja);var a=ja.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),Q(e.measure),a||1}function Va(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=w("span","xxxxxxxxxx"),a=w("pre",[t],"CodeMirror-line-like");P(e.measure,a);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function fi(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:hi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:a,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function hi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lo(e){var t=Ga(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 pi(e){var t=e.doc,a=lo(e);t.iter(function(n){var r=a(n);r!=n.height&&on(n,r)})}function Pa(e,t,a,n){var r=e.display;if(!a&&ce(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($){return null}var c=ci(e,i,o),p;if(n&&c.xRel>0&&(p=tt(e.doc,c.line).text).length==c.ch){var F=E(p,p.length,e.options.tabSize)-p.length;c=Xe(c.line,Math.max(0,Math.round((i-$i(e.display).left)/Va(e.display))-F))}return c}function Ia(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 Yn(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&&St(e.doc,t)<r.viewTo&&Ta(e);else if(a<=r.viewFrom)tn&&Tt(e.doc,a+n)>r.viewFrom?Ta(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&a>=r.viewTo)Ta(e);else if(t<=r.viewFrom){var i=Ir(e,a,a+n,1);i?(r.view=r.view.slice(i.index),r.viewFrom=i.lineN,r.viewTo+=n):Ta(e)}else if(a>=r.viewTo){var o=Ir(e,t,t,-1);o?(r.view=r.view.slice(0,o.index),r.viewTo=o.lineN):Ta(e)}else{var l=Ir(e,t,t,-1),c=Ir(e,a,a+n,1);l&&c?(r.view=r.view.slice(0,l.index).concat(Nr(e,l.lineN,c.lineN)).concat(r.view.slice(c.index)),r.viewTo+=n):Ta(e)}var p=r.externalMeasured;p&&(a<p.lineN?p.lineN+=n:t<p.lineN+p.size&&(r.externalMeasured=null))}function Sa(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[Ia(e,t)];if(i.node==null)return;var o=i.changes||(i.changes=[]);ee(o,a)==-1&&o.push(a)}function Ta(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ir(e,t,a,n){var r=Ia(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(;St(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 Gl(e,t,a){var n=e.display,r=n.view;r.length==0||t>=n.viewTo||a<=n.viewFrom?(n.view=Nr(e,t,a),n.viewFrom=t):(n.viewFrom>t?n.view=Nr(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Ia(e,t))),n.viewFrom=t,n.viewTo<a?n.view=n.view.concat(Nr(e,n.viewTo,a)):n.viewTo>a&&(n.view=n.view.slice(0,Ia(e,a)))),n.viewTo=a}function so(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 hr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function uo(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)&&co(e,l.head,r),c||Vl(e,l,i)}return n}function co(e,t,a){var n=ca(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=a.appendChild(w("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(w("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 Ur(e,t){return e.top-t.top||e.left-t.left}function Vl(e,t,a){var n=e.display,r=e.doc,i=document.createDocumentFragment(),o=$i(e.display),l=o.left,c=Math.max(n.sizerWidth,Na(e)-n.sizer.offsetLeft)-o.right,p=r.direction=="ltr";function F(et,ut,wt,vt){ut<0&&(ut=0),ut=Math.round(ut),vt=Math.round(vt),i.appendChild(w("div",null,"CodeMirror-selected","position: absolute; left: "+et+`px;
|
|
top: `+ut+"px; width: "+(wt==null?c-et:wt)+`px;
|
|
height: `+(vt-ut)+"px"))}function $(et,ut,wt){var vt=tt(r,et),Lt=vt.text.length,$t,Mn;function ln(yn,Qn){return si(e,Xe(et,yn),"div",vt,Qn)}function na(yn,Qn,Fn){var Cn=oo(e,vt,null,yn),xn=Qn=="ltr"==(Fn=="after")?"left":"right",fn=Fn=="after"?Cn.begin:Cn.end-(/\s/.test(vt.text.charAt(Cn.end-1))?2:1);return ln(fn,xn)[xn]}var Zn=We(vt,r.direction);return ue(Zn,ut||0,wt==null?Lt:wt,function(yn,Qn,Fn,Cn){var xn=Fn=="ltr",fn=ln(yn,xn?"left":"right"),qn=ln(Qn-1,xn?"right":"left"),or=ut==null&&yn==0,Ma=wt==null&&Qn==Lt,Hn=Cn==0,va=!Zn||Cn==Zn.length-1;if(qn.top-fn.top<=3){var Rn=(p?or:Ma)&&Hn,Fi=(p?Ma:or)&&va,Ca=Rn?l:(xn?fn:qn).left,Ha=Fi?c:(xn?qn:fn).right;F(Ca,fn.top,Ha-Ca,fn.bottom)}else{var Ka,Vn,lr,Wi;xn?(Ka=p&&or&&Hn?l:fn.left,Vn=p?c:na(yn,Fn,"before"),lr=p?l:na(Qn,Fn,"after"),Wi=p&&Ma&&va?c:qn.right):(Ka=p?na(yn,Fn,"before"):l,Vn=!p&&or&&Hn?c:fn.right,lr=!p&&Ma&&va?l:qn.left,Wi=p?na(Qn,Fn,"after"):c),F(Ka,fn.top,Vn-Ka,fn.bottom),fn.bottom<qn.top&&F(l,fn.bottom,null,qn.top),F(lr,qn.top,Wi-lr,qn.bottom)}(!$t||Ur(fn,$t)<0)&&($t=fn),Ur(qn,$t)<0&&($t=qn),(!Mn||Ur(fn,Mn)<0)&&(Mn=fn),Ur(qn,Mn)<0&&(Mn=qn)}),{start:$t,end:Mn}}var Se=t.from(),ge=t.to();if(Se.line==ge.line)$(Se.line,Se.ch,ge.ch);else{var Be=tt(r,Se.line),Ve=tt(r,ge.line),Je=On(Be)==On(Ve),qe=$(Se.line,Se.ch,Je?Be.text.length+1:null).end,ot=$(ge.line,Je?0:null,ge.ch).start;Je&&(qe.top<ot.top-2?(F(qe.right,qe.top,null,qe.bottom),F(l,ot.top,ot.left,ot.bottom)):F(qe.right,qe.top,ot.left-qe.right,qe.bottom)),qe.bottom<ot.top&&F(l,qe.bottom,null,ot.top)}a.appendChild(i)}function mi(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()||$a(e),t.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function fo(e){e.state.focused||(e.display.input.focus(),vi(e))}function ho(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,$a(e))},100)}function vi(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(ke(e,"focus",e,t),e.state.focused=!0,J(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),k&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),mi(e)}function $a(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(ke(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Fr(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&&A<8){var c=r.node.offsetTop+r.node.offsetHeight;o=c-a,a=c}else{var p=r.node.getBoundingClientRect();o=p.bottom-p.top,!i&&r.text.firstChild&&(l=r.text.firstChild.getBoundingClientRect().right-p.left-1)}var F=r.line.height-o;if((F>.005||F<-.005)&&(on(r.line,o),po(r.line),r.rest))for(var $=0;$<r.rest.length;$++)po(r.rest[$]);if(l>e.display.sizerWidth){var Se=Math.ceil(l/Va(e.display));Se>e.display.maxLineLength&&(e.display.maxLineLength=Se,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}function po(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 Wr(e,t,a){var n=a&&a.top!=null?Math.max(0,a.top):e.scroller.scrollTop;n=Math.floor(n-jr(e));var r=a&&a.bottom!=null?a.bottom:n+e.wrapper.clientHeight,i=an(t,n),o=an(t,r);if(a&&a.ensure){var l=a.ensure.from.line,c=a.ensure.to.line;l<i?(i=l,o=an(t,qt(tt(t,l))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=o&&(i=an(t,qt(tt(t,c))-e.wrapper.clientHeight),o=c)}return{from:i,to:Math.max(o,i+1)}}function $l(e,t){if(Ue(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&&!U){var i=w("div","\u200B",null,`position: absolute;
|
|
top: `+(t.top-a.viewOffset-jr(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?Xe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,a=t.sticky=="before"?Xe(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var o=!1,l=ca(e,t),c=!a||a==t?l:ca(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 p=gi(e,r),F=e.doc.scrollTop,$=e.doc.scrollLeft;if(p.scrollTop!=null&&(mr(e,p.scrollTop),Math.abs(e.doc.scrollTop-F)>1&&(o=!0)),p.scrollLeft!=null&&(Ua(e,p.scrollLeft),Math.abs(e.doc.scrollLeft-$)>1&&(o=!0)),!o)break}return r}function Jl(e,t){var a=gi(e,t);a.scrollTop!=null&&mr(e,a.scrollTop),a.scrollLeft!=null&&Ua(e,a.scrollLeft)}function gi(e,t){var a=e.display,n=Ga(e.display);t.top<0&&(t.top=0);var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,i=ii(e),o={};t.bottom-t.top>i&&(t.bottom=t.top+i);var l=e.doc.height+ri(a),c=t.top<n,p=t.bottom>l-n;if(t.top<r)o.scrollTop=c?0:t.top;else if(t.bottom>r+i){var F=Math.min(t.top,(p?l:t.bottom)-i);F!=r&&(o.scrollTop=F)}var $=e.options.fixedGutter?0:a.gutters.offsetWidth,Se=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-$,ge=Na(e)-a.gutters.offsetWidth,Be=t.right-t.left>ge;return Be&&(t.right=t.left+ge),t.left<10?o.scrollLeft=0:t.left<Se?o.scrollLeft=Math.max(0,t.left+$-(Be?0:10)):t.right>ge+Se-3&&(o.scrollLeft=t.right+(Be?0:10)-ge),o}function bi(e,t){if(t==null)return;Br(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Ya(e){Br(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function pr(e,t,a){(t!=null||a!=null)&&Br(e),t!=null&&(e.curOp.scrollLeft=t),a!=null&&(e.curOp.scrollTop=a)}function Zl(e,t){Br(e),e.curOp.scrollToPos=t}function Br(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var a=ro(e,t.from),n=ro(e,t.to);mo(e,a,n,t.margin)}}function mo(e,t,a,n){var r=gi(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});pr(e,r.scrollLeft,r.scrollTop)}function mr(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;xe||xi(e,{top:t}),vo(e,t,!0),xe&&xi(e),br(e,100)}function vo(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 Ua(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,Eo(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function vr(e){var t=e.display,a=t.gutters.offsetWidth,n=Math.round(e.doc.height+ri(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 Fa=function(e,t,a){this.cm=a;var n=this.vert=w("div",[w("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=w("div",[w("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,e(n),e(r),ve(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),ve(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,B&&A<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Fa.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}},Fa.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fa.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fa.prototype.zeroWidthHack=function(){var e=ae&&!le?"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},Fa.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)},Fa.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gr=function(){};gr.prototype.update=function(){return{bottom:0,right:0}},gr.prototype.setScrollLeft=function(){},gr.prototype.setScrollTop=function(){},gr.prototype.clear=function(){};function Ja(e,t){t||(t=vr(e));var a=e.display.barWidth,n=e.display.barHeight;go(e,t);for(var r=0;r<4&&a!=e.display.barWidth||n!=e.display.barHeight;r++)a!=e.display.barWidth&&e.options.lineWrapping&&Fr(e),go(e,vr(e)),a=e.display.barWidth,n=e.display.barHeight}function go(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 bo={native:Fa,null:gr};function yo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bo[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(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"?Ua(e,t):mr(e,t)},e),e.display.scrollbars.addClass&&J(e.display.wrapper,e.display.scrollbars.addClass)}var Ql=0;function Wa(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},Al(e.curOp)}function Ba(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&&_n(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 Hr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ts(e){e.updatedDisplay=e.mustUpdate&&yi(e.cm,e.update)}function ns(e){var t=e.cm,a=t.display;e.updatedDisplay&&Fr(t),e.barMeasure=vr(t),a.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ji(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-Na(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&&Ua(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)&&Ja(t,e.barMeasure),e.updatedDisplay&&Ci(t,e.barMeasure),e.selectionChanged&&mi(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),a&&fo(e.cm)}function rs(e){var t=e.cm,a=t.display,n=t.doc;if(e.updatedDisplay&&xo(t,e.update),a.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),e.scrollTop!=null&&vo(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Ua(t,e.scrollLeft,!0,!0),e.scrollToPos){var r=Yl(t,ht(n,e.scrollToPos.from),ht(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||ke(i[l],"hide");if(o)for(var c=0;c<o.length;++c)o[c].lines.length&&ke(o[c],"unhide");a.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ke(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ta(e,t){if(e.curOp)return t();Wa(e);try{return t()}finally{Ba(e)}}function Dn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Wa(e);try{return t.apply(e,arguments)}finally{Ba(e)}}}function Gn(e){return function(){if(this.curOp)return e.apply(this,arguments);Wa(this);try{return e.apply(this,arguments)}finally{Ba(this)}}}function Ln(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Wa(t);try{return e.apply(this,arguments)}finally{Ba(t)}}}function br(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=_e(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?Jt(t.mode,n.state):null,c=Sn(e,i,n,!0);l&&(n.state=l),i.styles=c.styles;var p=i.styleClasses,F=c.classes;F?i.styleClasses=F:p&&(i.styleClasses=null);for(var $=!o||o.length!=i.styles.length||p!=F&&(!p||!F||p.bgClass!=F.bgClass||p.textClass!=F.textClass),Se=0;!$&&Se<o.length;++Se)$=o[Se]!=i.styles[Se];$&&r.push(n.line),i.stateAfter=n.save(),n.nextLine()}else i.text.length<=e.options.maxHighlightLength&&Ze(e,i.text,n),i.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>a)return br(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),r.length&&ta(e,function(){for(var i=0;i<r.length;i++)Sa(e,r[i],"text")})}var Hr=function(e,t,a){var n=e.display;this.viewport=t,this.visible=Wr(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Na(e),this.force=a,this.dims=fi(e),this.events=[]};Hr.prototype.signal=function(e,t){W(e,t)&&this.events.push(arguments)},Hr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ke.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||!S(e.display.lineDiv,t))return null;var a={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&S(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&&S(document.body,e.anchorNode)&&S(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 yi(e,t){var a=e.display,n=e.doc;if(t.editorIsHidden)return Ta(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&&so(e)==0)return!1;Co(e)&&(Ta(e),t.dims=fi(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=St(e.doc,i),o=Tt(e.doc,o));var l=i!=a.viewFrom||o!=a.viewTo||a.lastWrapHeight!=t.wrapperHeight||a.lastWrapWidth!=t.wrapperWidth;Gl(e,i,o),a.viewOffset=qt(tt(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var c=so(e);if(!l&&c==0&&!t.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var p=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(p),Q(a.cursorDiv),Q(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,l&&(a.lastWrapHeight=t.wrapperHeight,a.lastWrapWidth=t.wrapperWidth,br(e,400)),a.updateLineNumbers=null,!0}function xo(e,t){for(var a=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Na(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+ri(e.display)-ii(e),a.top)}),t.visible=Wr(e.display,e.doc,a),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Wr(e.display,e.doc,a));if(!yi(e,t))break;Fr(e);var r=vr(e);hr(e),Ja(e,r),Ci(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 xi(e,t){var a=new Hr(e,t);if(yi(e,a)){Fr(e),xo(e,a);var n=vr(e);hr(e),Ja(e,n),Ci(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(Be){var Ve=Be.nextSibling;return k&&ae&&e.display.currentWheelTarget==Be?Be.style.display="none":Be.parentNode.removeChild(Be),Ve}for(var c=n.view,p=n.viewFrom,F=0;F<c.length;F++){var $=c[F];if(!$.hidden)if(!$.node||$.node.parentNode!=i){var Se=Pl(e,$,p,a);i.insertBefore(Se,o)}else{for(;o!=$.node;)o=l(o);var ge=r&&t!=null&&t<=p&&$.lineNumber;$.changes&&(ee($.changes,"gutter")>-1&&(ge=!1),Ki(e,$,p,a)),ge&&(Q($.lineNumber),$.lineNumber.appendChild(document.createTextNode(wn(e.options,p)))),o=$.node.nextSibling}p+=$.size}for(;o;)o=l(o)}function Ei(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ci(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 Eo(e){var t=e.display,a=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=hi(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 Co(e){if(!e.options.lineNumbers)return!1;var t=e.doc,a=wn(e.options,t.first+t.size-1),n=e.display;if(a.length!=n.lineNumChars){var r=n.measure.appendChild(w("div",[w("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",Ei(e.display),!0}return!1}function wi(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;Q(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(w("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",Ei(e)}function yr(e){wo(e.display),Yn(e),Eo(e)}function cs(e,t,a,n){var r=this;this.input=a,r.scrollbarFiller=w("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=w("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=oe("div",null,"CodeMirror-code"),r.selectionDiv=w("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=w("div",null,"CodeMirror-cursors"),r.measure=w("div",null,"CodeMirror-measure"),r.lineMeasure=w("div",null,"CodeMirror-measure"),r.lineSpace=oe("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var i=oe("div",[r.lineSpace],"CodeMirror-lines");r.mover=w("div",[i],null,"position: relative"),r.sizer=w("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=w("div",null,null,"position: absolute; height: "+be+"px; width: 1px;"),r.gutters=w("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=w("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=w("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),B&&A<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),!k&&!(xe&&re)&&(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=wi(n.gutters,n.lineNumbers),wo(r),a.init(r)}var Kr=0,ia=null;B?ia=-.53:xe?ia=15:q?ia=-.7:Ae&&(ia=-1/3);function ko(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=ko(e);return t.x*=ia,t.y*=ia,t}function So(e,t){var a=ko(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&&ae&&k){e:for(var p=t.target,F=i.view;p!=o;p=p.parentNode)for(var $=0;$<F.length;$++)if(F[$].node==p){e.display.currentWheelTarget=p;break e}}if(n&&!xe&&!me&&ia!=null){r&&c&&mr(e,Math.max(0,o.scrollTop+r*ia)),Ua(e,Math.max(0,o.scrollLeft+n*ia)),(!r||r&&c)&&m(t),i.wheelStartX=null;return}if(r&&ia!=null){var Se=r*ia,ge=e.doc.scrollTop,Be=ge+i.wrapper.clientHeight;Se<0?ge=Math.max(0,ge+Se-50):Be=Math.min(e.doc.height,Be+Se+50),xi(e,{top:ge,bottom:Be})}Kr<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 Ve=o.scrollLeft-i.wheelStartX,Je=o.scrollTop-i.wheelStartY,qe=Je&&i.wheelDY&&Je/i.wheelDY||Ve&&i.wheelDX&&Ve/i.wheelDX;if(i.wheelStartX=i.wheelStartY=null,!qe)return;ia=(ia*Kr+qe)/(Kr+1),++Kr},200)):(i.wheelDX+=n,i.wheelDY+=r))}var oa=function(e,t){this.ranges=e,this.primIndex=t};oa.prototype.primary=function(){return this.ranges[this.primIndex]},oa.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(!mn(a.anchor,n.anchor)||!mn(a.head,n.head))return!1}return!0},oa.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ht(sn(this.ranges[t].anchor),sn(this.ranges[t].head));return new oa(e,this.primIndex)},oa.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},oa.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 Ht=function(e,t){this.anchor=e,this.head=t};Ht.prototype.from=function(){return kn(this.anchor,this.head)},Ht.prototype.to=function(){return Ye(this.anchor,this.head)},Ht.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function da(e,t,a){var n=e&&e.options.selectionsMayTouch,r=t[a];t.sort(function(Se,ge){return ft(Se.from(),ge.from())}),a=ee(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 p=kn(l.from(),o.from()),F=Ye(l.to(),o.to()),$=l.empty()?o.from()==o.head:l.from()==l.head;i<=a&&--a,t.splice(--i,2,new Ht($?F:p,$?p:F))}}return new oa(t,a)}function Oa(e,t){return new oa([new Ht(e,t||e)],0)}function _a(e){return e.text?Xe(e.from.line+e.text.length-1,d(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function To(e,t){if(ft(e,t.from)<0)return e;if(ft(e,t.to)<=0)return _a(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+=_a(t).ch-t.to.ch),Xe(a,n)}function ki(e,t){for(var a=[],n=0;n<e.sel.ranges.length;n++){var r=e.sel.ranges[n];a.push(new Ht(To(r.anchor,t),To(r.head,t)))}return da(e.cm,a,e.sel.primIndex)}function Oo(e,t,a){return e.line==t.line?Xe(a.line,e.ch-t.ch+a.ch):Xe(a.line+(e.line-t.line),e.ch)}function fs(e,t,a){for(var n=[],r=Xe(e.first,0),i=r,o=0;o<t.length;o++){var l=t[o],c=Oo(l.from,r,i),p=Oo(_a(l),r,i);if(r=l.to,i=p,a=="around"){var F=e.sel.ranges[o],$=ft(F.head,F.anchor)<0;n[o]=new Ht($?p:c,$?c:p)}else n[o]=new Ht(c,c)}return new oa(n,e.sel.primIndex)}function Si(e){e.doc.mode=Yt(e.options,e.doc.modeOption),xr(e)}function xr(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,br(e,100),e.state.modeGen++,e.curOp&&Yn(e)}function _o(e,t){return t.from.ch==0&&t.to.ch==0&&d(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ti(e,t,a,n){function r(ot){return a?a[ot]:null}function i(ot,et,ut){ga(ot,et,ut,n),Un(ot,"change",ot,t)}function o(ot,et){for(var ut=[],wt=ot;wt<et;++wt)ut.push(new An(p[wt],r(wt),n));return ut}var l=t.from,c=t.to,p=t.text,F=tt(e,l.line),$=tt(e,c.line),Se=d(p),ge=r(p.length-1),Be=c.line-l.line;if(t.full)e.insert(0,o(0,p.length)),e.remove(p.length,e.size-p.length);else if(_o(e,t)){var Ve=o(0,p.length-1);i($,$.text,ge),Be&&e.remove(l.line,Be),Ve.length&&e.insert(l.line,Ve)}else if(F==$)if(p.length==1)i(F,F.text.slice(0,l.ch)+Se+F.text.slice(c.ch),ge);else{var Je=o(1,p.length-1);Je.push(new An(Se+F.text.slice(c.ch),ge,n)),i(F,F.text.slice(0,l.ch)+p[0],r(0)),e.insert(l.line+1,Je)}else if(p.length==1)i(F,F.text.slice(0,l.ch)+p[0]+$.text.slice(c.ch),r(0)),e.remove(l.line+1,Be);else{i(F,F.text.slice(0,l.ch)+p[0],r(0)),i($,Se+$.text.slice(c.ch),ge);var qe=o(1,p.length-1);Be>1&&e.remove(l.line+1,Be-1),e.insert(l.line+1,qe)}Un(e,"change",e,t)}function Aa(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 p=o&&c.sharedHist;if(a&&!p)continue;t(c.doc,p),n(c.doc,r,p)}}n(e,null,!0)}function Ao(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,pi(e),Si(e),Do(e),e.options.lineWrapping||_n(e),e.options.mode=t.modeOption,Yn(e)}function Do(e){(e.doc.direction=="rtl"?J:_)(e.display.lineDiv,"CodeMirror-rtl")}function hs(e){ta(e,function(){Do(e),Yn(e)})}function zr(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 Oi(e,t){var a={from:sn(t.from),to:_a(t),text:Ut(e,t.from,t.to)};return Ro(e,a,t.from.line,t.to.line+1),Aa(e,function(n){return Ro(n,a,t.from.line,t.to.line+1)},!0),a}function Lo(e){for(;e.length;){var t=d(e);if(t.ranges)e.pop();else break}}function ps(e,t){if(t)return Lo(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 Mo(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=_a(t):o.changes.push(Oi(e,t));else{var c=d(r.done);for((!c||!c.ranges)&&Xr(e.sel,r.done),o={changes:[Oi(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||ke(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:Xr(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=i,r.lastSelOp=a,n&&n.clearRedo!==!1&&Lo(r.undone)}function Xr(e,t){var a=d(t);a&&a.ranges&&a.equals(e)||t.push(e)}function Ro(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 No(e,t){var a=bs(e,t),n=dt(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],p=0;p<i.length;++p)if(i[p].marker==c.marker)continue e;i.push(c)}}else o&&(a[r]=o)}return a}function Za(e,t,a){for(var n=[],r=0;r<e.length;++r){var i=e[r];if(i.ranges){n.push(a?oa.prototype.deepCopy.call(i):i);continue}var o=i.changes,l=[];n.push({changes:l});for(var c=0;c<o.length;++c){var p=o[c],F=void 0;if(l.push({from:p.from,to:p.to,text:p.text}),t)for(var $ in p)(F=$.match(/^spans_(\d+)$/))&&(ee(t,Number(F[1]))>-1&&(d(l)[$]=p[$],delete p[$]))}}return n}function _i(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 Ht(r,t)}else return new Ht(a||t,t)}function Gr(e,t,a,n,r){r==null&&(r=e.cm&&(e.cm.display.shift||e.extend)),Bn(e,new oa([_i(e.sel.primary(),t,a,r)],0),n)}function jo(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]=_i(e.sel.ranges[i],t[i],null,r);var o=da(e.cm,n,e.sel.primIndex);Bn(e,o,a)}function Ai(e,t,a,n){var r=e.sel.ranges.slice(0);r[t]=a,Bn(e,da(e.cm,r,e.sel.primIndex),n)}function Po(e,t,a,n){Bn(e,Oa(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 Ht(ht(e,r[i].anchor),ht(e,r[i].head))},origin:a&&a.origin};return ke(e,"beforeSelectionChange",e,n),e.cm&&ke(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?da(e.cm,n.ranges,n.ranges.length-1):t}function Io(e,t,a){var n=e.history.done,r=d(n);r&&r.ranges?(n[n.length-1]=t,Vr(e,t,a)):Bn(e,t,a)}function Bn(e,t,a){Vr(e,t,a),vs(e,e.sel,e.cm?e.cm.curOp.id:NaN,a)}function Vr(e,t,a){(W(e,"beforeSelectionChange")||e.cm&&W(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,Wo(e,t,n,!0)),!(a&&a.scroll===!1)&&e.cm&&Ya(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,Y(e.cm)),Un(e,"cursorActivity",e)}function Fo(e){Uo(e,Wo(e,e.sel,null,!1))}function Wo(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=$r(e,o.anchor,l&&l.anchor,a,n),p=$r(e,o.head,l&&l.head,a,n);(r||c!=o.anchor||p!=o.head)&&(r||(r=t.ranges.slice(0,i)),r[i]=new Ht(c,p))}return r?da(e.cm,r,t.primIndex):t}function Qa(e,t,a,n,r){var i=tt(e,t.line);if(i.markedSpans)for(var o=0;o<i.markedSpans.length;++o){var l=i.markedSpans[o],c=l.marker,p="selectLeft"in c?!c.selectLeft:c.inclusiveLeft,F="selectRight"in c?!c.selectRight:c.inclusiveRight;if((l.from==null||(p?l.from<=t.ch:l.from<t.ch))&&(l.to==null||(F?l.to>=t.ch:l.to>t.ch))){if(r&&(ke(c,"beforeCursorEnter"),c.explicitlyCleared))if(i.markedSpans){--o;continue}else break;if(!c.atomic)continue;if(a){var $=c.find(n<0?1:-1),Se=void 0;if((n<0?F:p)&&($=Bo(e,$,-n,$&&$.line==t.line?i:null)),$&&$.line==t.line&&(Se=ft($,a))&&(n<0?Se<0:Se>0))return Qa(e,$,t,n,r)}var ge=c.find(n<0?-1:1);return(n<0?p:F)&&(ge=Bo(e,ge,n,ge.line==t.line?i:null)),ge?Qa(e,ge,t,n,r):null}}return t}function $r(e,t,a,n,r){var i=n||1,o=Qa(e,t,a,i,r)||!r&&Qa(e,t,a,i,!0)||Qa(e,t,a,-i,r)||!r&&Qa(e,t,a,-i,!0);return o||(e.cantEdit=!0,Xe(e.first,0))}function Bo(e,t,a,n){return a<0&&t.ch==0?t.line>e.first?ht(e,Xe(t.line-1)):null:a>0&&t.ch==(n||tt(e,t.line)).text.length?t.line<e.first+e.size-1?Xe(t.line+1,0):null:new Xe(t.line,t.ch+a)}function Ho(e){e.setSelection(Xe(e.firstLine(),0),Xe(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=ht(e,r)),i&&(n.to=ht(e,i)),o&&(n.text=o),l!==void 0&&(n.origin=l)}),ke(e,"beforeChange",e,n),e.cm&&ke(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 Dn(e.cm,qa)(e,t,a);if(e.cm.state.suppressEdits)return}if((W(e,"beforeChange")||e.cm&&W(e.cm,"beforeChange"))&&(t=Ko(e,t,!0),!t))return;var n=un&&!a&&gn(e,t.from,t.to);if(n)for(var r=n.length-1;r>=0;--r)zo(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin});else zo(e,t)}function zo(e,t){if(t.text.length==1&&t.text[0]==""&&ft(t.from,t.to)==0)return;var a=ki(e,t);Mo(e,t,a,e.cm?e.cm.curOp.id:NaN),Er(e,t,a,dt(e,t));var n=[];Aa(e,function(r,i){!i&&ee(n,r.history)==-1&&($o(r.history,t),n.push(r.history)),Er(r,t,null,dt(r,t))})}function Yr(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,p=0;p<l.length&&!(i=l[p],a?i.ranges&&!i.equals(e.sel):!i.ranges);p++);if(p==l.length)return;for(r.lastOrigin=r.lastSelOrigin=null;;)if(i=l.pop(),i.ranges){if(Xr(i,c),a&&!i.equals(e.sel)){Bn(e,i,{clearRedo:!1});return}o=i}else if(n){l.push(i);return}else break;var F=[];Xr(o,c),c.push({changes:F,generation:r.generation}),r.generation=i.generation||++r.maxGeneration;for(var $=W(e,"beforeChange")||e.cm&&W(e.cm,"beforeChange"),Se=function(Ve){var Je=i.changes[Ve];if(Je.origin=t,$&&!Ko(e,Je,!1))return l.length=0,{};F.push(Oi(e,Je));var qe=Ve?ki(e,Je):d(l);Er(e,Je,qe,No(e,Je)),!Ve&&e.cm&&e.cm.scrollIntoView({from:Je.from,to:_a(Je)});var ot=[];Aa(e,function(et,ut){!ut&&ee(ot,et.history)==-1&&($o(et.history,Je),ot.push(et.history)),Er(et,Je,null,No(et,Je))})},ge=i.changes.length-1;ge>=0;--ge){var Be=Se(ge);if(Be)return Be.v}}function Xo(e,t){if(t==0)return;if(e.first+=t,e.sel=new oa(h(e.sel.ranges,function(r){return new Ht(Xe(r.anchor.line+t,r.anchor.ch),Xe(r.head.line+t,r.head.ch))}),e.sel.primIndex),e.cm){Yn(e.cm,e.first,e.first-t,t);for(var a=e.cm.display,n=a.viewFrom;n<a.viewTo;n++)Sa(e.cm,n,"gutter")}}function Er(e,t,a,n){if(e.cm&&!e.cm.curOp)return Dn(e.cm,Er)(e,t,a,n);if(t.to.line<e.first){Xo(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);Xo(e,r),t={from:Xe(e.first,0),to:Xe(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:Xe(i,tt(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ut(e,t.from,t.to),a||(a=ki(e,t)),e.cm?xs(e.cm,t,n):Ti(e,t,n),Vr(e,a,pe),e.cantEdit&&$r(e,Xe(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=At(On(tt(n,i.line))),n.iter(c,o.line+1,function(ge){if(ge==r.maxLine)return l=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Y(e),Ti(n,t,a,lo(e)),e.options.lineWrapping||(n.iter(c,i.line+t.text.length,function(ge){var Be=dn(ge);Be>r.maxLineLength&&(r.maxLine=ge,r.maxLineLength=Be,r.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),Zt(n,i.line),br(e,400);var p=t.text.length-(o.line-i.line)-1;t.full?Yn(e):i.line==o.line&&t.text.length==1&&!_o(e.doc,t)?Sa(e,i.line,"text"):Yn(e,i.line,o.line+1,p);var F=W(e,"changes"),$=W(e,"change");if($||F){var Se={from:i,to:o,text:t.text,removed:t.removed,origin:t.origin};$&&Un(e,"change",e,Se),F&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Se)}e.display.selForContextMenu=null}function er(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 Go(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++)Go(i.ranges[l].anchor,t,a,n),Go(i.ranges[l].head,t,a,n);continue}for(var c=0;c<i.changes.length;++c){var p=i.changes[c];if(a<p.from.line)p.from=Xe(p.from.line+n,p.from.ch),p.to=Xe(p.to.line+n,p.to.ch);else if(t<=p.to.line){o=!1;break}}o||(e.splice(0,r+1),r=0)}}function $o(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 Cr(e,t,a,n){var r=t,i=t;return typeof t=="number"?i=tt(e,aa(e,t)):r=At(t),r==null?null:(n(i,r)&&e.cm&&Sa(e.cm,r,a),i)}function wr(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}wr.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,bn(r),Un(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 kr(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}kr.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 wr))){var l=[];this.collapse(l),this.children=[new wr(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 wr(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 kr(t);if(e.parent){e.size-=a.size,e.height-=a.height;var r=ee(e.parent.children,e);e.parent.children.splice(r+1,0,a)}else{var n=new kr(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 Sr=function(e,t,a){if(a)for(var n in a)a.hasOwnProperty(n)&&(this[n]=a[n]);this.doc=e,this.node=t};Sr.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,a=this.line,n=At(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=dr(this);on(a,Math.max(0,a.height-i)),e&&(ta(e,function(){Yo(e,a,-i),Sa(e,n,"widget")}),Un(e,"lineWidgetCleared",e,this,n))},Sr.prototype.changed=function(){var e=this,t=this.height,a=this.doc.cm,n=this.line;this.height=null;var r=dr(this)-t;if(!r)return;Dt(this.doc,n)||on(n,n.height+r),a&&ta(a,function(){a.curOp.forceUpdate=!0,Yo(a,n,r),Un(a,"lineWidgetChanged",a,e,At(n))})},D(Sr);function Yo(e,t,a){qt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&bi(e,a)}function Es(e,t,a,n){var r=new Sr(e,a,n),i=e.cm;return i&&r.noHScroll&&(i.display.alignWidgets=!0),Cr(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=qt(o)<e.scrollTop;on(o,o.height+dr(r)),c&&bi(i,r.height),i.curOp.forceUpdate=!0}return!0}),i&&Un(i,"lineWidgetAdded",i,r,typeof t=="number"?t:At(t)),r}var Jo=0,Da=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Jo};Da.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&Wa(e),W(this,"clear")){var a=this.find();a&&Un(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=cn(o.markedSpans,this);e&&!this.collapsed?Sa(e,At(o),"text"):e&&(l.to!=null&&(r=At(o)),l.from!=null&&(n=At(o))),o.markedSpans=wa(o.markedSpans,l),l.from==null&&this.collapsed&&!Dt(this.doc,o)&&e&&on(o,Ga(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var p=On(this.lines[c]),F=dn(p);F>e.display.maxLineLength&&(e.display.maxLine=p,e.display.maxLineLength=F,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Yn(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Fo(e.doc)),e&&Un(e,"markerCleared",e,this,n,r),t&&Ba(e),this.parent&&this.parent.clear()},Da.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=cn(i.markedSpans,this);if(o.from!=null&&(a=Xe(t?i:At(i),o.from),e==-1))return a;if(o.to!=null&&(n=Xe(t?i:At(i),o.to),e==1))return n}return a&&{from:a,to:n}},Da.prototype.changed=function(){var e=this,t=this.find(-1,!0),a=this,n=this.doc.cm;if(!t||!n)return;ta(n,function(){var r=t.line,i=At(t.line),o=oi(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=dr(a)-l;c&&on(r,r.height+c)}Un(n,"markerChanged",n,e)})},Da.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||ee(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Da.prototype.detachLine=function(e){if(this.lines.splice(ee(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},D(Da);function tr(e,t,a,n,r){if(n&&n.shared)return Cs(e,t,a,n,r);if(e.cm&&!e.cm.curOp)return Dn(e.cm,tr)(e,t,a,n,r);var i=new Da(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=oe("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");Pn()}i.addToHistory&&Mo(e,{from:t,to:a,origin:"markText"},e.sel,NaN);var l=t.line,c=e.cm,p;if(e.iter(l,a.line+1,function($){c&&i.collapsed&&!c.options.lineWrapping&&On($)==c.display.maxLine&&(p=!0),i.collapsed&&l!=t.line&&on($,0),Tn($,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($){Dt(e,$)&&on($,0)}),i.clearOnEnter&&ve(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(Qt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++Jo,i.atomic=!0),c){if(p&&(c.curOp.updateMaxLine=!0),i.collapsed)Yn(c,t.line,a.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var F=t.line;F<=a.line;F++)Sa(c,F,"text");i.atomic&&Fo(c.doc),Un(c,"markerAdded",c,i)}return i}var Tr=function(e,t){this.markers=e,this.primary=t;for(var a=0;a<e.length;++a)e[a].parent=this};Tr.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Un(this,"clear")},Tr.prototype.find=function(e,t){return this.primary.find(e,t)},D(Tr);function Cs(e,t,a,n,r){n=s(n),n.shared=!1;var i=[tr(e,t,a,n,r)],o=i[0],l=n.widgetNode;return Aa(e,function(c){l&&(n.widgetNode=l.cloneNode(!0)),i.push(tr(c,ht(c,t),ht(c,a),n,r));for(var p=0;p<c.linked.length;++p)if(c.linked[p].isParent)return;o=d(i)}),new Tr(i,o)}function Zo(e){return e.findMarks(Xe(e.first,0),e.clipPos(Xe(e.lastLine())),function(t){return t.parent})}function ws(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=tr(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];Aa(r.primary.doc,function(c){return i.push(c)});for(var o=0;o<r.markers.length;o++){var l=r.markers[o];ee(i,l.doc)==-1&&(l.parent=null,r.markers.splice(o--,1))}},a=0;a<e.length;a++)t(a)}var Ss=0,Jn=function(e,t,a,n,r){if(!(this instanceof Jn))return new Jn(e,t,a,n,r);a==null&&(a=0),kr.call(this,[new wr([new An("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var i=Xe(a,0);this.sel=Oa(i),this.history=new zr(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)),Ti(this,{from:i,to:i,text:e}),Bn(this,Oa(i),pe)};Jn.prototype=G(kr.prototype,{constructor:Jn,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=pn(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:Ln(function(e){var t=Xe(this.first,0),a=this.first+this.size-1;qa(this,{from:t,to:Xe(a,tt(this,a).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&pr(this.cm,0,0),Bn(this,Oa(t),pe)}),replaceRange:function(e,t,a,n){t=ht(this,t),a=a?ht(this,a):t,er(this,e,t,a,n)},getRange:function(e,t,a){var n=Ut(this,ht(this,e),ht(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 tt(this,e)},getLineNumber:function(e){return At(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=tt(this,e)),On(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ht(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:Ln(function(e,t,a){Po(this,ht(this,typeof e=="number"?Xe(e,t||0):e),null,a)}),setSelection:Ln(function(e,t,a){Po(this,ht(this,e),ht(this,t||e),a)}),extendSelection:Ln(function(e,t,a){Gr(this,ht(this,e),t&&ht(this,t),a)}),extendSelections:Ln(function(e,t){jo(this,Nn(this,e),t)}),extendSelectionsBy:Ln(function(e,t){var a=h(this.sel.ranges,e);jo(this,Nn(this,a),t)}),setSelections:Ln(function(e,t,a){if(!e.length)return;for(var n=[],r=0;r<e.length;r++)n[r]=new Ht(ht(this,e[r].anchor),ht(this,e[r].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Bn(this,da(this.cm,n,t),a)}),addSelection:Ln(function(e,t,a){var n=this.sel.ranges.slice(0);n.push(new Ht(ht(this,e),ht(this,t||e))),Bn(this,da(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=Ut(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=Ut(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:Ln(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?Io(this,l):this.cm&&Ya(this.cm)}),undo:Ln(function(){Yr(this,"undo")}),redo:Ln(function(){Yr(this,"redo")}),undoSelection:Ln(function(){Yr(this,"undo",!0)}),redoSelection:Ln(function(){Yr(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 zr(this.history.maxGeneration),Aa(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:Za(this.history.done),undone:Za(this.history.undone)}},setHistory:function(e){var t=this.history=new zr(this.history.maxGeneration);t.done=Za(e.done.slice(0),null,!0),t.undone=Za(e.undone.slice(0),null,!0)},setGutterMarker:Ln(function(e,t,a){return Cr(this,e,"gutter",function(n){var r=n.gutterMarkers||(n.gutterMarkers={});return r[t]=a,!a&&Le(r)&&(n.gutterMarkers=null),!0})}),clearGutter:Ln(function(e){var t=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[e]&&Cr(t,a,"gutter",function(){return a.gutterMarkers[e]=null,Le(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=tt(this,e),!e)return null}else if(t=At(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:Ln(function(e,t,a){return Cr(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(se(a).test(n[r]))return!1;n[r]+=" "+a}return!0})}),removeLineClass:Ln(function(e,t,a){return Cr(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(se(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:Ln(function(e,t,a){return Es(this,e,t,a)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,a){return tr(this,ht(this,e),ht(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=ht(this,e),tr(this,e,e,a,"bookmark")},findMarksAt:function(e){e=ht(this,e);var t=[],a=tt(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=ht(this,e),t=ht(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}),ht(this,Xe(a,t))},indexFromPos:function(e){e=ht(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 Jn(pn(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 Jn(pn(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}],ws(n,Zo(this)),n},unlinkDoc:function(e){if(e instanceof rn&&(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(Zo(this));break}if(e.history==this.history){var n=[e.id];Aa(e,function(r){return n.push(r.id)},!0),e.history=new zr(null),e.history.done=Za(this.history.done,n),e.history.undone=Za(this.history.undone,n)}},iterLinkedDocs:function(e){Aa(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):xt(e)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:Ln(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)})}),Jn.prototype.eachLine=Jn.prototype.iter;var Qo=0;function Ts(e){var t=this;if(qo(t),Ue(t,e)||xa(t.display,e))return;m(e),B&&(Qo=+new Date);var a=Pa(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&&Dn(t,function(){a=ht(t.doc,a);var ge={from:a,to:a,text:t.doc.splitLines(i.filter(function(Be){return Be!=null}).join(t.doc.lineSeparator())),origin:"paste"};qa(t.doc,ge),Io(t.doc,Oa(ht(t.doc,a),ht(t.doc,_a(ge))))})()},c=function(ge,Be){if(t.options.allowDropFileTypes&&ee(t.options.allowDropFileTypes,ge.type)==-1){l();return}var Ve=new FileReader;Ve.onerror=function(){return l()},Ve.onload=function(){var Je=Ve.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Je)){l();return}i[Be]=Je,l()},Ve.readAsText(ge)},p=0;p<n.length;p++)c(n[p],p);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 F=e.dataTransfer.getData("Text");if(F){var $;if(t.state.draggingText&&!t.state.draggingText.copy&&($=t.listSelections()),Vr(t.doc,Oa(a,a)),$)for(var Se=0;Se<$.length;++Se)er(t.doc,"",$[Se].anchor,$[Se].head,"drag");t.replaceSelection(F,"around","paste"),t.display.input.focus()}}catch(ge){}}}function Os(e,t){if(B&&(!e.state.draggingText||+new Date-Qo<100)){O(t);return}if(Ue(e,t)||xa(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Ae){var a=w("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",me&&(a.width=a.height=1,e.display.wrapper.appendChild(a),a._top=a.offsetTop),t.dataTransfer.setDragImage(a,0,0),me&&a.parentNode.removeChild(a)}}function _s(e,t){var a=Pa(e,t);if(!a)return;var n=document.createDocumentFragment();co(e,a,n),e.display.dragCursor||(e.display.dragCursor=w("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),P(e.display.dragCursor,n)}function qo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function el(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 tl=!1;function As(){if(tl)return;Ds(),tl=!0}function Ds(){var e;ve(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,el(Ls)},100))}),ve(window,"blur",function(){return el($a)})}function Ls(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var La={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"},Or=0;Or<10;Or++)La[Or+48]=La[Or+96]=String(Or);for(var Jr=65;Jr<=90;Jr++)La[Jr]=String.fromCharCode(Jr);for(var _r=1;_r<=12;_r++)La[_r+111]=La[_r+63235]="F"+_r;var Ea={};Ea.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"},Ea.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"},Ea.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"},Ea.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"]},Ea.default=ae?Ea.macDefault:Ea.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=h(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 p in t)e[p]=t[p];return e}function nr(e,t,a,n){t=Zr(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 nr(e,t.fallthrough,a,n);for(var i=0;i<t.fallthrough.length;i++){var o=nr(e,t.fallthrough[i],a,n);if(o)return o}}}function nl(e){var t=typeof e=="string"?e:La[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function al(e,t,a){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(Z?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(Z?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!a&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function rl(e,t){if(me&&e.keyCode==34&&e.char)return!1;var a=La[e.keyCode];return a==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(a=e.code),al(a,e,t))}function Zr(e){return typeof e=="string"?Ea[e]:e}function ar(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)}ta(e,function(){for(var l=n.length-1;l>=0;l--)er(e.doc,"",n[l].from,n[l].to,"+delete");Ya(e)})}function Di(e,t,a){var n=Me(e.text,t+a,a);return n<0||n>e.text.length?null:n}function Li(e,t,a){var n=Di(e,t.ch,a);return n==null?null:new Xe(t.line,n,a<0?"after":"before")}function Mi(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",p;if(o.level>0||t.doc.direction=="rtl"){var F=Xa(t,a);p=r<0?a.text.length-1:0;var $=ma(t,F,p).top;p=$e(function(Se){return ma(t,F,Se).top==$},r<0==(o.level==1)?o.from:o.to-1,p),c=="before"&&(p=Di(a,p,1))}else p=r<0?o.to:o.from;return new Xe(n,p,c)}}return new Xe(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 Li(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=Re(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 Li(t,a,n);var l=function(qe,ot){return Di(t,qe instanceof Xe?qe.ch:qe,ot)},c,p=function(qe){return e.options.lineWrapping?(c=c||Xa(e,t),oo(e,t,c,qe)):{begin:0,end:t.text.length}},F=p(a.sticky=="before"?l(a,-1):a.ch);if(e.doc.direction=="rtl"||o.level==1){var $=o.level==1==n<0,Se=l(a,$?1:-1);if(Se!=null&&($?Se<=o.to&&Se<=F.end:Se>=o.from&&Se>=F.begin)){var ge=$?"before":"after";return new Xe(a.line,Se,ge)}}var Be=function(qe,ot,et){for(var ut=function($t,Mn){return Mn?new Xe(a.line,l($t,1),"before"):new Xe(a.line,$t,"after")};qe>=0&&qe<r.length;qe+=ot){var wt=r[qe],vt=ot>0==(wt.level!=1),Lt=vt?et.begin:l(et.end,-1);if(wt.from<=Lt&&Lt<wt.to)return ut(Lt,vt);if(Lt=vt?wt.from:l(wt.to,-1),et.begin<=Lt&&Lt<et.end)return ut(Lt,vt)}},Ve=Be(i+n,n,F);if(Ve)return Ve;var Je=n>0?F.end:l(F.begin,-1);return Je!=null&&!(n>0&&Je==t.text.length)&&(Ve=Be(n>0?0:r.length-1,n,p(Je)),Ve)?Ve:null}var Ar={selectAll:Ho,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),pe)},killLine:function(e){return ar(e,function(t){if(t.empty()){var a=tt(e.doc,t.head.line).text.length;return t.head.ch==a&&t.head.line<e.lastLine()?{from:t.head,to:Xe(t.head.line+1,0)}:{from:t.head,to:Xe(t.head.line,a)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return ar(e,function(t){return{from:Xe(t.from().line,0),to:ht(e.doc,Xe(t.to().line+1,0))}})},delLineLeft:function(e){return ar(e,function(t){return{from:Xe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return ar(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 ar(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(Xe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Xe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return il(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ol(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")},g)},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")},g)},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/)?ol(e,t.head):n},g)},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=E(e.getLine(i.line),i.ch,n);t.push(L(n-o%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ta(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=tt(e.doc,r.line).text;if(i){if(r.ch==i.length&&(r=new Xe(r.line,r.ch-1)),r.ch>0)r=new Xe(r.line,r.ch+1),e.replaceRange(i.charAt(r.ch-1)+i.charAt(r.ch-2),Xe(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var o=tt(e.doc,r.line-1).text;o&&(r=new Xe(r.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),Xe(r.line-1,o.length-1),r,"+transpose"))}}a.push(new Ht(r,r))}e.setSelections(a)})},newlineAndIndent:function(e){return ta(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);Ya(e)})},openLine:function(e){return e.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function il(e,t){var a=tt(e.doc,t),n=On(a);return n!=a&&(t=At(n)),Mi(!0,e,n,t,1)}function js(e,t){var a=tt(e.doc,t),n=Ra(a);return n!=a&&(t=At(n)),Mi(!0,e,a,t,-1)}function ol(e,t){var a=il(e,t.line),n=tt(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 Xe(a.line,o?0:i,a.sticky)}return a}function Qr(e,t,a){if(typeof t=="string"&&(t=Ar[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)!=de}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=nr(t,e.state.keyMaps[n],a,e);if(r)return r}return e.options.extraKeys&&nr(t,e.options.extraKeys,a,e)||nr(t,e.options.keyMap,a,e)}var Is=new R;function Dr(e,t,a,n){var r=e.state.keySeq;if(r){if(nl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Is.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),ll(e,r+" "+t,a,n))return!0}return ll(e,t,a,n)}function ll(e,t,a,n){var r=Ps(e,t,n);return r=="multi"&&(e.state.keySeq=t),r=="handled"&&Un(e,"keyHandled",e,t,a),(r=="handled"||r=="multi")&&(m(a),mi(e)),!!r}function sl(e,t){var a=rl(t,!0);return a?t.shiftKey&&!e.state.keySeq?Dr(e,"Shift-"+a,t,function(n){return Qr(e,n,!0)})||Dr(e,a,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return Qr(e,n)}):Dr(e,a,t,function(n){return Qr(e,n)}):!1}function Us(e,t,a){return Dr(e,"'"+a+"'",t,function(n){return Qr(e,n,!0)})}var Ri=null;function ul(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=N(),Ue(t,e))return;B&&A<11&&e.keyCode==27&&(e.returnValue=!1);var a=e.keyCode;t.display.shift=a==16||e.shiftKey;var n=sl(t,e);me&&(Ri=n?a:null,!n&&a==88&&!Pt&&(ae?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),xe&&!ae&&!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;J(t,"CodeMirror-crosshair");function a(n){(n.keyCode==18||!n.altKey)&&(_(t,"CodeMirror-crosshair"),He(document,"keyup",a),He(document,"mouseover",a))}ve(document,"keyup",a),ve(document,"mouseover",a)}function cl(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ue(this,e)}function dl(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(xa(t.display,e)||Ue(t,e)||e.ctrlKey&&!e.altKey||ae&&e.metaKey)return;var a=e.keyCode,n=e.charCode;if(me&&a==Ri){Ri=null,m(e);return}if(me&&(!e.which||e.which<10)&&sl(t,e))return;var r=String.fromCharCode(n==null?a:n);if(r=="\b")return;if(Us(t,e,r))return;t.display.input.onKeyPress(e)}var Ws=400,Ni=function(e,t,a){this.time=e,this.pos=t,this.button=a};Ni.prototype.compare=function(e,t,a){return this.time+Ws>e&&ft(t,this.pos)==0&&a==this.button};var Lr,Mr;function Bs(e,t){var a=+new Date;return Mr&&Mr.compare(a,e,t)?(Lr=Mr=null,"triple"):Lr&&Lr.compare(a,e,t)?(Mr=new Ni(a,e,t),Lr=null,"double"):(Lr=new Ni(a,e,t),Mr=null,"single")}function fl(e){var t=this,a=t.display;if(Ue(t,e)||a.activeTouch&&a.input.supportsTouch())return;if(a.input.ensurePolled(),a.shift=e.shiftKey,xa(a,e)){k||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(ji(t,e))return;var n=Pa(t,e),r=ye(e),i=n?Bs(n,r):"single";if(window.focus(),r==1&&t.state.selectingText&&t.state.selectingText(e),n&&Hs(t,r,n,i,e))return;r==1?n?zs(t,n,i,e):ce(e)==a.scroller&&m(e):r==2?(n&&Gr(t.doc,n),setTimeout(function(){return a.input.focus()},20)):r==3&&(he?t.display.input.onContextMenu(e):ho(t))}function Hs(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,Dr(e,al(i,r),r,function(o){if(typeof o=="string"&&(o=Ar[o]),!o)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=o(e,a)!=de}finally{e.state.suppressEdits=!1}return l})}function Ks(e,t,a){var n=e.getOption("configureMouse"),r=n?n(e,t,a):{};if(r.unit==null){var i=we?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=ae?a.metaKey:a.ctrlKey),r.moveOnDrag==null&&(r.moveOnDrag=!(ae?a.altKey:a.ctrlKey)),r}function zs(e,t,a,n){B?setTimeout(u(fo,e),0):e.curOp.focus=N();var r=Ks(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):Gs(e,n,t,r)}function Xs(e,t,a,n){var r=e.display,i=!1,o=Dn(e,function(p){k&&(r.scroller.draggable=!1),e.state.draggingText=!1,He(r.wrapper.ownerDocument,"mouseup",o),He(r.wrapper.ownerDocument,"mousemove",l),He(r.scroller,"dragstart",c),He(r.scroller,"drop",o),i||(m(p),n.addNew||Gr(e.doc,a,null,null,n.extend),k&&!Ae||B&&A==9?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),l=function(p){i=i||Math.abs(t.clientX-p.clientX)+Math.abs(t.clientY-p.clientY)>=10},c=function(){return i=!0};k&&(r.scroller.draggable=!0),e.state.draggingText=o,o.copy=!n.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),ve(r.wrapper.ownerDocument,"mouseup",o),ve(r.wrapper.ownerDocument,"mousemove",l),ve(r.scroller,"dragstart",c),ve(r.scroller,"drop",o),ho(e),setTimeout(function(){return r.input.focus()},20)}function hl(e,t,a){if(a=="char")return new Ht(t,t);if(a=="word")return e.findWordAt(t);if(a=="line")return new Ht(Xe(t.line,0),ht(e.doc,Xe(t.line+1,0)));var n=a(e,t);return new Ht(n.from,n.to)}function Gs(e,t,a,n){var r=e.display,i=e.doc;m(t);var o,l,c=i.sel,p=c.ranges;if(n.addNew&&!n.extend?(l=i.sel.contains(a),l>-1?o=p[l]:o=new Ht(a,a)):(o=i.sel.primary(),l=i.sel.primIndex),n.unit=="rectangle")n.addNew||(o=new Ht(a,a)),a=Pa(e,t,!0,!0),l=-1;else{var F=hl(e,a,n.unit);n.extend?o=_i(o,F.anchor,F.head,n.extend):o=F}n.addNew?l==-1?(l=p.length,Bn(i,da(e,p.concat([o]),l),{scroll:!1,origin:"*mouse"})):p.length>1&&p[l].empty()&&n.unit=="char"&&!n.extend?(Bn(i,da(e,p.slice(0,l).concat(p.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=i.sel):Ai(i,l,o,I):(l=0,Bn(i,new oa([o],0),I),c=i.sel);var $=a;function Se(et){if(ft($,et)==0)return;if($=et,n.unit=="rectangle"){for(var ut=[],wt=e.options.tabSize,vt=E(tt(i,a.line).text,a.ch,wt),Lt=E(tt(i,et.line).text,et.ch,wt),$t=Math.min(vt,Lt),Mn=Math.max(vt,Lt),ln=Math.min(a.line,et.line),na=Math.min(e.lastLine(),Math.max(a.line,et.line));ln<=na;ln++){var Zn=tt(i,ln).text,yn=T(Zn,$t,wt);$t==Mn?ut.push(new Ht(Xe(ln,yn),Xe(ln,yn))):Zn.length>yn&&ut.push(new Ht(Xe(ln,yn),Xe(ln,T(Zn,Mn,wt))))}ut.length||ut.push(new Ht(a,a)),Bn(i,da(e,c.ranges.slice(0,l).concat(ut),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(et)}else{var Qn=o,Fn=hl(e,et,n.unit),Cn=Qn.anchor,xn;ft(Fn.anchor,Cn)>0?(xn=Fn.head,Cn=kn(Qn.from(),Fn.anchor)):(xn=Fn.anchor,Cn=Ye(Qn.to(),Fn.head));var fn=c.ranges.slice(0);fn[l]=Vs(e,new Ht(ht(i,Cn),xn)),Bn(i,da(e,fn,l),I)}}var ge=r.wrapper.getBoundingClientRect(),Be=0;function Ve(et){var ut=++Be,wt=Pa(e,et,!0,n.unit=="rectangle");if(!wt)return;if(ft(wt,$)!=0){e.curOp.focus=N(),Se(wt);var vt=Wr(r,i);(wt.line>=vt.to||wt.line<vt.from)&&setTimeout(Dn(e,function(){Be==ut&&Ve(et)}),150)}else{var Lt=et.clientY<ge.top?-20:et.clientY>ge.bottom?20:0;Lt&&setTimeout(Dn(e,function(){if(Be!=ut)return;r.scroller.scrollTop+=Lt,Ve(et)}),50)}}function Je(et){e.state.selectingText=!1,Be=Infinity,et&&(m(et),r.input.focus()),He(r.wrapper.ownerDocument,"mousemove",qe),He(r.wrapper.ownerDocument,"mouseup",ot),i.history.lastSelOrigin=null}var qe=Dn(e,function(et){et.buttons===0||!ye(et)?Je(et):Ve(et)}),ot=Dn(e,Je);e.state.selectingText=ot,ve(r.wrapper.ownerDocument,"mousemove",qe),ve(r.wrapper.ownerDocument,"mouseup",ot)}function Vs(e,t){var a=t.anchor,n=t.head,r=tt(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=Re(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 p;if(n.line!=a.line)p=(n.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var F=Re(i,n.ch,n.sticky),$=F-o||(n.ch-a.ch)*(l.level==1?-1:1);F==c-1||F==c?p=$<0:p=$>0}var Se=i[c+(p?-1:0)],ge=p==(Se.level==1),Be=ge?Se.from:Se.to,Ve=ge?"after":"before";return a.ch==Be&&a.sticky==Ve?t:new Ht(new Xe(a.line,Be,Ve),n)}function pl(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(Se){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||!W(e,a))return C(t);i-=l.top-o.viewOffset;for(var c=0;c<e.display.gutterSpecs.length;++c){var p=o.gutters.childNodes[c];if(p&&p.getBoundingClientRect().right>=r){var F=an(e.doc,i),$=e.display.gutterSpecs[c];return ke(e,a,e,F,$.className,t),C(t)}}}function ji(e,t){return pl(e,t,"gutterClick",!0)}function ml(e,t){if(xa(e.display,t)||$s(e,t))return;if(Ue(e,t,"contextmenu"))return;he||e.display.input.onContextMenu(t)}function $s(e,t){return W(e,"gutterContextMenu")?pl(e,t,"gutterContextMenu",!1):!1}function vl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}var rr={toString:function(){return"CodeMirror.Init"}},gl={},qr={};function Ys(e){var t=e.optionHandlers;function a(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(l,c,p){p!=rr&&i(l,c,p)}:i)}e.defineOption=a,e.Init=rr,a("value","",function(n,r){return n.setValue(r)},!0),a("mode",null,function(n,r){n.doc.modeOption=r,Si(n)},!0),a("indentUnit",2,Si,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(n){xr(n),fr(n),Yn(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 p=0;;){var F=c.text.indexOf(r,p);if(F==-1)break;p=F+r.length,i.push(Xe(o,F))}o++});for(var l=i.length-1;l>=0;l--)er(n.doc,r,i[l],Xe(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!=rr&&n.refresh()}),a("specialCharPlaceholder",sr,function(n){return n.refresh()},!0),a("electricChars",!0),a("inputStyle",re?"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",!Ne),a("wholeLineUpdateBefore",!0),a("theme","default",function(n){vl(n),yr(n)},!0),a("keyMap","default",function(n,r,i){var o=Zr(r),l=i!=rr&&Zr(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=wi(r,n.options.lineNumbers),yr(n)},!0),a("fixedGutter",!0,function(n,r){n.display.gutters.style.left=r?hi(n.display)+"px":"0",n.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(n){return Ja(n)},!0),a("scrollbarStyle","native",function(n){yo(n),Ja(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=wi(n.options.gutters,r),yr(n)},!0),a("firstLineNumber",1,yr,!0),a("lineNumberFormatter",function(n){return n},yr,!0),a("showCursorWhenSelecting",!1,hr,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(n,r){r=="nocursor"&&($a(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,hr,!0),a("singleCursorHeightPerLine",!0,hr,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,xr,!0),a("addModeClass",!1,xr,!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,xr,!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!=rr;if(!t!=!n){var r=e.display.dragFunctions,i=t?ve:He;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?(J(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),_n(e)),pi(e),Yn(e),fr(e),setTimeout(function(){return Ja(e)},100)}function rn(e,t){var a=this;if(!(this instanceof rn))return new rn(e,t);this.options=t=t?s(t):{},s(gl,t,!1);var n=t.value;typeof n=="string"?n=new Jn(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var r=new rn.inputStyles[t.inputStyle](this),i=this.display=new cs(e,n,r,t);i.wrapper.CodeMirror=this,vl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yo(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&&!re&&i.input.focus(),B&&A<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Qs(this),As(),Wa(this),this.curOp.forceUpdate=!0,Ao(this,n),t.autofocus&&!re||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&vi(a)},20):$a(this);for(var o in qr)qr.hasOwnProperty(o)&&qr[o](this,t[o],rr);Co(this),t.finishInit&&t.finishInit(this);for(var l=0;l<Pi.length;++l)Pi[l](this);Ba(this),k&&t.lineWrapping&&getComputedStyle(i.lineDiv).textRendering=="optimizelegibility"&&(i.lineDiv.style.textRendering="auto")}rn.defaults=gl,rn.optionHandlers=qr;function Qs(e){var t=e.display;ve(t.scroller,"mousedown",Dn(e,fl)),B&&A<11?ve(t.scroller,"dblclick",Dn(e,function(c){if(Ue(e,c))return;var p=Pa(e,c);if(!p||ji(e,c)||xa(e.display,c))return;m(c);var F=e.findWordAt(p);Gr(e.doc,F.anchor,F.head)})):ve(t.scroller,"dblclick",function(c){return Ue(e,c)||m(c)}),ve(t.scroller,"contextmenu",function(c){return ml(e,c)}),ve(t.input.getField(),"contextmenu",function(c){t.scroller.contains(c.target)||ml(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 p=c.touches[0];return p.radiusX<=1&&p.radiusY<=1}function o(c,p){if(p.left==null)return!0;var F=p.left-c.left,$=p.top-c.top;return F*F+$*$>20*20}ve(t.scroller,"touchstart",function(c){if(!Ue(e,c)&&!i(c)&&!ji(e,c)){t.input.ensurePolled(),clearTimeout(a);var p=+new Date;t.activeTouch={start:p,moved:!1,prev:p-n.end<=300?n:null},c.touches.length==1&&(t.activeTouch.left=c.touches[0].pageX,t.activeTouch.top=c.touches[0].pageY)}}),ve(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ve(t.scroller,"touchend",function(c){var p=t.activeTouch;if(p&&!xa(t,c)&&p.left!=null&&!p.moved&&new Date-p.start<300){var F=e.coordsChar(t.activeTouch,"page"),$;!p.prev||o(p,p.prev)?$=new Ht(F,F):!p.prev.prev||o(p,p.prev.prev)?$=e.findWordAt(F):$=new Ht(Xe(F.line,0),ht(e.doc,Xe(F.line+1,0))),e.setSelection($.anchor,$.head),e.focus(),m(c)}r()}),ve(t.scroller,"touchcancel",r),ve(t.scroller,"scroll",function(){t.scroller.clientHeight&&(mr(e,t.scroller.scrollTop),Ua(e,t.scroller.scrollLeft,!0),ke(e,"scroll",e))}),ve(t.scroller,"mousewheel",function(c){return So(e,c)}),ve(t.scroller,"DOMMouseScroll",function(c){return So(e,c)}),ve(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(c){Ue(e,c)||O(c)},over:function(c){Ue(e,c)||(_s(e,c),O(c))},start:function(c){return Os(e,c)},drop:Dn(e,Ts),leave:function(c){Ue(e,c)||qo(e)}};var l=t.input.getField();ve(l,"keyup",function(c){return cl.call(e,c)}),ve(l,"keydown",Dn(e,ul)),ve(l,"keypress",Dn(e,dl)),ve(l,"focus",function(c){return vi(e,c)}),ve(l,"blur",function(c){return $a(e,c)})}var Pi=[];rn.defineInitHook=function(e){return Pi.push(e)};function Rr(e,t,a,n){var r=e.doc,i;a==null&&(a="add"),a=="smart"&&(r.mode.indent?i=_e(e,t).state:a="prev");var o=e.options.tabSize,l=tt(r,t),c=E(l.text,null,o);l.stateAfter&&(l.stateAfter=null);var p=l.text.match(/^\s*/)[0],F;if(!n&&!/\S/.test(l.text))F=0,a="not";else if(a=="smart"&&(F=r.mode.indent(i,l.text.slice(p.length),l.text),F==de||F>150)){if(!n)return;a="prev"}a=="prev"?t>r.first?F=E(tt(r,t-1).text,null,o):F=0:a=="add"?F=c+e.options.indentUnit:a=="subtract"?F=c-e.options.indentUnit:typeof a=="number"&&(F=c+a),F=Math.max(0,F);var $="",Se=0;if(e.options.indentWithTabs)for(var ge=Math.floor(F/o);ge;--ge)Se+=o,$+=" ";if(Se<F&&($+=L(F-Se)),$!=p)return er(r,$,Xe(t,0),Xe(t,p.length),"+input"),l.stateAfter=null,!0;for(var Be=0;Be<r.sel.ranges.length;Be++){var Ve=r.sel.ranges[Be];if(Ve.head.line==t&&Ve.head.ch<p.length){var Je=Xe(t,p.length);Ai(r,Be,new Ht(Je,Je));break}}}var fa=null;function ei(e){fa=e}function Ii(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=xt(t),p=null;if(l&&n.ranges.length>1)if(fa&&fa.text.join(`
|
|
`)==t){if(n.ranges.length%fa.text.length==0){p=[];for(var F=0;F<fa.text.length;F++)p.push(i.splitLines(fa.text[F]))}}else c.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(p=h(c,function(qe){return[qe]}));for(var $=e.curOp.updateInput,Se=n.ranges.length-1;Se>=0;Se--){var ge=n.ranges[Se],Be=ge.from(),Ve=ge.to();ge.empty()&&(a&&a>0?Be=Xe(Be.line,Be.ch-a):e.state.overwrite&&!l?Ve=Xe(Ve.line,Math.min(tt(i,Ve.line).text.length,Ve.ch+d(c).length)):l&&fa&&fa.lineWise&&fa.text.join(`
|
|
`)==c.join(`
|
|
`)&&(Be=Ve=Xe(Be.line,0)));var Je={from:Be,to:Ve,text:p?p[Se%p.length]:c,origin:r||(l?"paste":e.state.cutIncoming>o?"cut":"+input")};qa(e.doc,Je),Un(e,"inputRead",e,Je)}t&&!l&&yl(e,t),Ya(e),e.curOp.updateInput<2&&(e.curOp.updateInput=$),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function bl(e,t){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&ta(t,function(){return Ii(t,a,0,null,"paste")}),!0}function yl(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=Rr(e,r.head.line,"smart");break}}else i.electricInput&&(i.electricInput.test(tt(e.doc,r.head.line).text.slice(0,r.head.ch))&&(o=Rr(e,r.head.line,"smart")));o&&Un(e,"electricInput",e,r.head.line)}}function xl(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:Xe(r,0),head:Xe(r+1,0)};a.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:a}}function El(e,t,a,n){e.setAttribute("autocorrect",a?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function Cl(){var e=w("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=w("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return k?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),El(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)&&Dn(this,t[n])(this,r,o),ke(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"](Zr(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:Gn(function(n,r){var i=n.token?n:e.getMode(this.options,n);if(i.startState)throw new Error("Overlays may not be stateful.");f(this.state.overlays,{mode:i,modeSpec:n,opaque:r&&r.opaque,priority:r&&r.priority||0},function(o){return o.priority}),this.state.modeGen++,Yn(this)}),removeOverlay:Gn(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++,Yn(this);return}}}),indentLine:Gn(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)&&Rr(this,n,r,i)}),indentSelection:Gn(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&&(Rr(this,l.head.line,n,!0),i=l.head.line,o==this.doc.sel.primIndex&&Ya(this));else{var c=l.from(),p=l.to(),F=Math.max(i,c.line);i=Math.min(this.lastLine(),p.line-(p.ch?0:1))+1;for(var $=F;$<i;++$)Rr(this,$,n);var Se=this.doc.sel.ranges;c.ch==0&&r.length==Se.length&&Se[o].from().ch>0&&Ai(this.doc,o,new Ht(c,Se[o].to()),pe)}}}),getTokenAt:function(n,r){return jt(this,n,r)},getLineTokens:function(n,r){return jt(this,Xe(n),r,!0)},getTokenTypeAt:function(n){n=ht(this.doc,n);var r=st(this,tt(this.doc,n.line)),i=0,o=(r.length-1)/2,l=n.ch,c;if(l==0)c=r[2];else for(;;){var p=i+o>>1;if((p?r[p*2-1]:0)>=l)o=p;else if(r[p*2+1]<l)i=p+1;else{c=r[p*2+2];break}}var F=c?c.indexOf("overlay "):-1;return F<0?c:F==0?null:c.slice(0,F-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 p=o[l[r][c]];p&&i.push(p)}else l.helperType&&o[l.helperType]?i.push(o[l.helperType]):o[l.name]&&i.push(o[l.name]);for(var F=0;F<o._global.length;F++){var $=o._global[F];$.pred(l,this)&&ee(i,$.val)==-1&&i.push($.val)}return i},getStateAfter:function(n,r){var i=this.doc;return n=aa(i,n==null?i.first+i.size-1:n),_e(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=ht(this.doc,n):i=n?o.from():o.to(),ca(this,i,r||"page")},charCoords:function(n,r){return si(this,ht(this.doc,n),r||"page")},coordsChar:function(n,r){return n=ao(this,n,r||"page"),ci(this,n.left,n.top)},lineAtHeight:function(n,r){return n=ao(this,{top:n,left:0},r||"page").top,an(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=tt(this.doc,n)}else l=n;return Pr(this,l,{top:0,left:0},r||"page",i||o).top+(o?this.doc.height-qt(l):0)},defaultTextHeight:function(){return Ga(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=ca(this,ht(this.doc,n));var p=n.bottom,F=n.left;if(r.style.position="absolute",r.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(r),c.sizer.appendChild(r),o=="over")p=n.top;else if(o=="above"||o=="near"){var $=Math.max(c.wrapper.clientHeight,this.doc.height),Se=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);(o=="above"||n.bottom+r.offsetHeight>$)&&n.top>r.offsetHeight?p=n.top-r.offsetHeight:n.bottom+r.offsetHeight<=$&&(p=n.bottom),F+r.offsetWidth>Se&&(F=Se-r.offsetWidth)}r.style.top=p+"px",r.style.left=r.style.right="",l=="right"?(F=c.sizer.clientWidth-r.offsetWidth,r.style.right="0px"):(l=="left"?F=0:l=="middle"&&(F=(c.sizer.clientWidth-r.offsetWidth)/2),r.style.left=F+"px"),i&&Jl(this,{left:F,top:p,right:F+r.offsetWidth,bottom:p+r.offsetHeight})},triggerOnKeyDown:Gn(ul),triggerOnKeyPress:Gn(dl),triggerOnKeyUp:cl,triggerOnMouseDown:Gn(fl),execCommand:function(n){if(Ar.hasOwnProperty(n))return Ar[n].call(null,this)},triggerElectric:Gn(function(n){yl(this,n)}),findPosH:function(n,r,i,o){var l=1;r<0&&(l=-1,r=-r);for(var c=ht(this.doc,n),p=0;p<r&&!(c=Ui(this.doc,c,l,i,o),c.hitSide);++p);return c},moveH:Gn(function(n,r){var i=this;this.extendSelectionsBy(function(o){return i.display.shift||i.doc.extend||o.empty()?Ui(i.doc,o.head,n,r,i.options.rtlMoveVisually):n<0?o.from():o.to()},g)}),deleteH:Gn(function(n,r){var i=this.doc.sel,o=this.doc;i.somethingSelected()?o.replaceSelection("",null,"+delete"):ar(this,function(l){var c=Ui(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 p=ht(this.doc,n),F=0;F<r;++F){var $=ca(this,p,"div");if(c==null?c=$.left:$.left=c,p=wl(this,$,l,i),p.hitSide)break}return p},moveV:Gn(function(n,r){var i=this,o=this.doc,l=[],c=!this.display.shift&&!o.extend&&o.sel.somethingSelected();if(o.extendSelectionsBy(function(F){if(c)return n<0?F.from():F.to();var $=ca(i,F.head,"div");F.goalColumn!=null&&($.left=F.goalColumn),l.push($.left);var Se=wl(i,$,n,r);return r=="page"&&F==o.sel.primary()&&bi(i,si(i,Se,"div").top-$.top),Se},g),l.length)for(var p=0;p<o.sel.ranges.length;p++)o.sel.ranges[p].goalColumn=l[p]}),findWordAt:function(n){var r=this.doc,i=tt(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 p=i.charAt(o),F=Ee(p,c)?function($){return Ee($,c)}:/\s/.test(p)?function($){return/\s/.test($)}:function($){return!/\s/.test($)&&!Ee($)};o>0&&F(i.charAt(o-1));)--o;for(;l<i.length&&F(i.charAt(l));)++l}return new Ht(Xe(n.line,o),Xe(n.line,l))},toggleOverwrite:function(n){if(n!=null&&n==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?J(this.display.cursorDiv,"CodeMirror-overwrite"):_(this.display.cursorDiv,"CodeMirror-overwrite"),ke(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==N()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Gn(function(n,r){pr(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:ii(this),clientWidth:Na(this)}},scrollIntoView:Gn(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:Xe(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):mo(this,n.from,n.to,n.margin)}),setSize:Gn(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&&eo(this);var l=this.display.viewFrom;this.doc.iter(l,this.display.viewTo,function(c){if(c.widgets){for(var p=0;p<c.widgets.length;p++)if(c.widgets[p].noHScroll){Sa(i,l,"widget");break}}++l}),this.curOp.forceUpdate=!0,ke(this,"refresh",this)}),operation:function(n){return ta(this,n)},startOperation:function(){return Wa(this)},endOperation:function(){return Ba(this)},refresh:Gn(function(){var n=this.display.cachedTextHeight;Yn(this),this.curOp.forceUpdate=!0,fr(this),pr(this,this.doc.scrollLeft,this.doc.scrollTop),Ei(this.display),(n==null||Math.abs(n-Ga(this.display))>.5||this.options.lineWrapping)&&pi(this),ke(this,"refresh",this)}),swapDoc:Gn(function(n){var r=this.doc;return r.cm=null,this.state.selectingText&&this.state.selectingText(),Ao(this,n),fr(this),this.display.input.reset(),pr(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,Un(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}},D(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 Ui(e,t,a,n,r){var i=t,o=a,l=tt(e,t.line),c=r&&e.direction=="rtl"?-a:a;function p(){var ot=t.line+c;return ot<e.first||ot>=e.first+e.size?!1:(t=new Xe(ot,t.ch,t.sticky),l=tt(e,ot))}function F(ot){var et;if(n=="codepoint"){var ut=l.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(ut)?et=null:et=new Xe(t.line,Math.max(0,Math.min(l.text.length,t.ch+a*(ut>=55296&&ut<56320?2:1))),-a)}else r?et=Ns(e.cm,l,t,a):et=Li(l,t,a);if(et==null)if(!ot&&p())t=Mi(r,e.cm,l,t.line,c);else return!1;else t=et;return!0}if(n=="char"||n=="codepoint")F();else if(n=="column")F(!0);else if(n=="word"||n=="group")for(var $=null,Se=n=="group",ge=e.cm&&e.cm.getHelper(t,"wordChars"),Be=!0;!(a<0&&!F(!Be));Be=!1){var Ve=l.text.charAt(t.ch)||`
|
|
`,Je=Ee(Ve,ge)?"w":Se&&Ve==`
|
|
`?"n":!Se||/\s/.test(Ve)?null:"p";if(Se&&!Be&&!Je&&(Je="s"),$&&$!=Je){a<0&&(a=1,F(),t.sticky="after");break}if(Je&&($=Je),a>0&&!F(!Be))break}var qe=$r(e,t,i,o,!0);return mn(i,qe)&&(qe.hitSide=!0),qe}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*Ga(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 p;!(p=ci(e,i,o),!p.outside);){if(a<0?o<=0:o>=r.height){p.hitSide=!0;break}o+=a*5}return p}var Xt=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};Xt.prototype.init=function(e){var t=this,a=this,n=a.cm,r=a.div=e.lineDiv;El(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}ve(r,"paste",function(l){if(!i(l)||Ue(n,l)||bl(l,n))return;A<=11&&setTimeout(Dn(n,function(){return t.updateFromDOM()}),20)}),ve(r,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),ve(r,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),ve(r,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ve(r,"touchstart",function(){return a.forceCompositionEnd()}),ve(r,"input",function(){t.composing||t.readFromDOMSoon()});function o(l){if(!i(l)||Ue(n,l))return;if(n.somethingSelected())ei({lineWise:!1,text:n.getSelections()}),l.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var c=xl(n);ei({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 p=fa.text.join(`
|
|
`);if(l.clipboardData.setData("Text",p),l.clipboardData.getData("Text")==p){l.preventDefault();return}}var F=Cl(),$=F.firstChild;n.display.lineSpace.insertBefore(F,n.display.lineSpace.firstChild),$.value=fa.text.join(`
|
|
`);var Se=document.activeElement;H($),setTimeout(function(){n.display.lineSpace.removeChild(F),Se.focus(),Se==r&&a.showPrimarySelection()},50)}ve(r,"copy",o),ve(r,"cut",o)},Xt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Xt.prototype.prepareSelection=function(){var e=uo(this.cm,!1);return e.focus=document.activeElement==this.div,e},Xt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Xt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Xt.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=ti(t,e.anchorNode,e.anchorOffset),o=ti(t,e.focusNode,e.focusOffset);if(i&&!i.bad&&o&&!o.bad&&ft(kn(i,o),n)==0&&ft(Ye(i,o),r)==0)return;var l=t.display.view,c=n.line>=t.display.viewFrom&&kl(t,n)||{node:l[0].measure.map[2],offset:0},p=r.line<t.display.viewTo&&kl(t,r);if(!p){var F=l[l.length-1].measure,$=F.maps?F.maps[F.maps.length-1]:F.map;p={node:$[$.length-1],offset:$[$.length-2]-$[$.length-3]}}if(!c||!p){e.removeAllRanges();return}var Se=e.rangeCount&&e.getRangeAt(0),ge;try{ge=V(c.node,c.offset,p.offset,p.node)}catch(Be){}ge&&(!xe&&t.state.focused?(e.collapse(c.node,c.offset),ge.collapsed||(e.removeAllRanges(),e.addRange(ge))):(e.removeAllRanges(),e.addRange(ge)),Se&&e.anchorNode==null?e.addRange(Se):xe&&this.startGracePeriod()),this.rememberSelection()},Xt.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)},Xt.prototype.showMultipleSelections=function(e){P(this.cm.display.cursorDiv,e.cursors),P(this.cm.display.selectionDiv,e.selection)},Xt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Xt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return S(this.div,t)},Xt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Xt.prototype.blur=function(){this.div.blur()},Xt.prototype.getField=function(){return this.div},Xt.prototype.supportsTouch=function(){return!0},Xt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():ta(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)},Xt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Xt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(z&&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=ti(t,e.anchorNode,e.anchorOffset),n=ti(t,e.focusNode,e.focusOffset);a&&n&&ta(t,function(){Bn(t.doc,Oa(a,n),pe),(a.bad||n.bad)&&(t.curOp.selectionChanged=!0)})},Xt.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=Xe(n.line-1,tt(e.doc,n.line-1).length)),r.ch==tt(e.doc,r.line).text.length&&r.line<e.lastLine()&&(r=Xe(r.line+1,0)),n.line<t.viewFrom||r.line>t.viewTo-1)return!1;var i,o,l;n.line==t.viewFrom||(i=Ia(e,n.line))==0?(o=At(t.view[0].line),l=t.view[0].node):(o=At(t.view[i].line),l=t.view[i-1].node.nextSibling);var c=Ia(e,r.line),p,F;if(c==t.view.length-1?(p=t.viewTo-1,F=t.lineDiv.lastChild):(p=At(t.view[c+1].line)-1,F=t.view[c+1].node.previousSibling),!l)return!1;for(var $=e.doc.splitLines(tu(e,l,F,o,p)),Se=Ut(e.doc,Xe(o,0),Xe(p,tt(e.doc,p).text.length));$.length>1&&Se.length>1;)if(d($)==d(Se))$.pop(),Se.pop(),p--;else if($[0]==Se[0])$.shift(),Se.shift(),o++;else break;for(var ge=0,Be=0,Ve=$[0],Je=Se[0],qe=Math.min(Ve.length,Je.length);ge<qe&&Ve.charCodeAt(ge)==Je.charCodeAt(ge);)++ge;for(var ot=d($),et=d(Se),ut=Math.min(ot.length-($.length==1?ge:0),et.length-(Se.length==1?ge:0));Be<ut&&ot.charCodeAt(ot.length-Be-1)==et.charCodeAt(et.length-Be-1);)++Be;if($.length==1&&Se.length==1&&o==n.line)for(;ge&&ge>n.ch&&ot.charCodeAt(ot.length-Be-1)==et.charCodeAt(et.length-Be-1);)ge--,Be++;$[$.length-1]=ot.slice(0,ot.length-Be).replace(/^\u200b+/,""),$[0]=$[0].slice(ge).replace(/\u200b+$/,"");var wt=Xe(o,ge),vt=Xe(p,Se.length?d(Se).length-Be:0);if($.length>1||$[0]||ft(wt,vt))return er(e.doc,$,wt,vt,"+input"),!0},Xt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xt.prototype.reset=function(){this.forceCompositionEnd()},Xt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Xt.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)},Xt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&ta(this.cm,function(){return Yn(e.cm)})},Xt.prototype.setUneditable=function(e){e.contentEditable="false"},Xt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Dn(this.cm,Ii)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Xt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Xt.prototype.onContextMenu=function(){},Xt.prototype.resetPosition=function(){},Xt.prototype.needsContentAttribute=!0;function kl(e,t){var a=oi(e,t.line);if(!a||a.hidden)return null;var n=tt(e.doc,t.line),r=Yi(a,n,t.line),i=We(n,e.doc.direction),o="left";if(i){var l=Re(i,t.ch);o=l%2?"right":"left"}var c=Qi(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 ir(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 p(ge){return function(Be){return Be.id==ge}}function F(){o&&(i+=l,c&&(i+=l),o=c=!1)}function $(ge){ge&&(F(),i+=ge)}function Se(ge){if(ge.nodeType==1){var Be=ge.getAttribute("cm-text");if(Be){$(Be);return}var Ve=ge.getAttribute("cm-marker"),Je;if(Ve){var qe=e.findMarks(Xe(n,0),Xe(r+1,0),p(+Ve));qe.length&&(Je=qe[0].find(0))&&$(Ut(e.doc,Je.from,Je.to).join(l));return}if(ge.getAttribute("contenteditable")=="false")return;var ot=/^(pre|div|p|li|table|br)$/i.test(ge.nodeName);if(!/^br$/i.test(ge.nodeName)&&ge.textContent.length==0)return;ot&&F();for(var et=0;et<ge.childNodes.length;et++)Se(ge.childNodes[et]);/^(pre|p)$/i.test(ge.nodeName)&&(c=!0),ot&&(o=!0)}else ge.nodeType==3&&$(ge.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Se(t),t==a);)t=t.nextSibling,c=!1;return i}function ti(e,t,a){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[a],!n)return ir(e.clipPos(Xe(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||!S(n,t))return ir(Xe(At(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 ir(Xe(At(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,p=c.maps;function F(Je,qe,ot){for(var et=-1;et<(p?p.length:0);et++)for(var ut=et<0?c.map:p[et],wt=0;wt<ut.length;wt+=3){var vt=ut[wt+2];if(vt==Je||vt==qe){var Lt=At(et<0?e.line:e.rest[et]),$t=ut[wt]+ot;return(ot<0||vt!=Je)&&($t=ut[wt+(ot?1:0)]),Xe(Lt,$t)}}}var $=F(o,l,a);if($)return ir($,r);for(var Se=l.nextSibling,ge=o?o.nodeValue.length-a:0;Se;Se=Se.nextSibling){if($=F(Se,Se.firstChild,0),$)return ir(Xe($.line,$.ch-ge),r);ge+=Se.textContent.length}for(var Be=l.previousSibling,Ve=a;Be;Be=Be.previousSibling){if($=F(Be,Be.firstChild,-1),$)return ir(Xe($.line,$.ch+Ve),r);Ve+=Be.textContent.length}}var vn=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};vn.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),M&&(r.style.width="0px"),ve(r,"input",function(){B&&A>=9&&t.hasSelection&&(t.hasSelection=null),a.poll()}),ve(r,"paste",function(o){if(Ue(n,o)||bl(o,n))return;n.state.pasteIncoming=+new Date,a.fastPoll()});function i(o){if(Ue(n,o))return;if(n.somethingSelected())ei({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var l=xl(n);ei({lineWise:!0,text:l.text}),o.type=="cut"?n.setSelections(l.ranges,null,pe):(a.prevInput="",r.value=l.text.join(`
|
|
`),H(r))}else return;o.type=="cut"&&(n.state.cutIncoming=+new Date)}ve(r,"cut",i),ve(r,"copy",i),ve(e.scroller,"paste",function(o){if(xa(e,o)||Ue(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)}),ve(e.lineSpace,"selectstart",function(o){xa(e,o)||m(o)}),ve(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"})}}),ve(r,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},vn.prototype.createField=function(e){this.wrapper=Cl(),this.textarea=this.wrapper.firstChild},vn.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},vn.prototype.prepareSelection=function(){var e=this.cm,t=e.display,a=e.doc,n=uo(e);if(e.options.moveInputWithCursor){var r=ca(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},vn.prototype.showSelection=function(e){var t=this.cm,a=t.display;P(a.cursorDiv,e.cursors),P(a.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},vn.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&&H(this.textarea),B&&A>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",B&&A>=9&&(this.hasSelection=null))},vn.prototype.getField=function(){return this.textarea},vn.prototype.supportsTouch=function(){return!1},vn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!re||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},vn.prototype.blur=function(){this.textarea.blur()},vn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vn.prototype.receivedFocus=function(){this.slowPoll()},vn.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()})},vn.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)},vn.prototype.poll=function(){var e=this,t=this.cm,a=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||lt(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&&A>=9&&this.hasSelection===r||ae&&/[\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 ta(t,function(){Ii(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},vn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vn.prototype.onKeyPress=function(){B&&A>=9&&(this.hasSelection=null),this.fastPoll()},vn.prototype.onContextMenu=function(e){var t=this,a=t.cm,n=a.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=Pa(a,e),o=n.scroller.scrollTop;if(!i||me)return;var l=a.options.resetSelectionOnContextMenu;l&&a.doc.sel.contains(i)==-1&&Dn(a,Bn)(a.doc,Oa(i),pe);var c=r.style.cssText,p=t.wrapper.style.cssText,F=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",r.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(e.clientY-F.top-5)+"px; left: "+(e.clientX-F.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 $;k&&($=window.scrollY),n.input.focus(),k&&window.scrollTo(null,$),n.input.reset(),a.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=ge,n.selForContextMenu=a.doc.sel,clearTimeout(n.detectingSelectAll);function Se(){if(r.selectionStart!=null){var Ve=a.somethingSelected(),Je="\u200B"+(Ve?r.value:"");r.value="\u21DA",r.value=Je,t.prevInput=Ve?"":"\u200B",r.selectionStart=1,r.selectionEnd=Je.length,n.selForContextMenu=a.doc.sel}}function ge(){if(t.contextMenuPending!=ge)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=p,r.style.cssText=c,B&&A<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=o),r.selectionStart!=null){(!B||B&&A<9)&&Se();var Ve=0,Je=function(){n.selForContextMenu==a.doc.sel&&r.selectionStart==0&&r.selectionEnd>0&&t.prevInput=="\u200B"?Dn(a,Ho)(a):Ve++<10?n.detectingSelectAll=setTimeout(Je,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(Je,200)}}if(B&&A>=9&&Se(),he){O(e);var Be=function(){He(window,"mouseup",Be),setTimeout(ge,20)};ve(window,"mouseup",Be)}else setTimeout(ge,50)},vn.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},vn.prototype.setUneditable=function(){},vn.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&&(ve(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&&(He(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=r))}},e.style.display="none";var l=rn(function(c){return e.parentNode.insertBefore(c,e.nextSibling)},t);return l}function ru(e){e.off=He,e.on=ve,e.wheelEventPixels=ds,e.Doc=Jn,e.splitLines=xt,e.countColumn=E,e.findColumn=T,e.isWordChar=te,e.Pass=de,e.signal=ke,e.Line=An,e.changeEnd=_a,e.scrollbarModel=bo,e.Pos=Xe,e.cmpPos=ft,e.modes=bt,e.mimeModes=pt,e.resolveMode=Kt,e.getMode=Yt,e.modeExtensions=Mt,e.extendMode=hn,e.copyState=Jt,e.startState=nn,e.innerMode=Wt,e.commands=Ar,e.keyMap=Ea,e.keyName=rl,e.isModifierKey=nl,e.lookupKey=nr,e.normalizeKeyMap=Rs,e.StringStream=Rt,e.SharedTextMarker=Tr,e.TextMarker=Da,e.LineWidget=Sr,e.e_preventDefault=m,e.e_stopPropagation=x,e.e_stop=O,e.addClass=J,e.contains=S,e.rmClass=_,e.keyNames=La}Ys(rn),qs(rn);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ni in Jn.prototype)Jn.prototype.hasOwnProperty(ni)&&ee(iu,ni)<0&&(rn.prototype[ni]=function(e){return function(){return e.apply(this.doc,arguments)}}(Jn.prototype[ni]));return D(Jn),rn.inputStyles={textarea:vn,contenteditable:Xt},rn.defineMode=function(e){!rn.defaults.mode&&e!="null"&&(rn.defaults.mode=e),Ot.apply(this,arguments)},rn.defineMIME=It,rn.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),rn.defineMIME("text/plain","null"),rn.defineExtension=function(e,t){rn.prototype[e]=t},rn.defineDocExtension=function(e,t){Jn.prototype[e]=t},rn.fromTextArea=au,ru(rn),rn.version="5.58.2",rn})},WaYH:function(ct,Ge,v){"use strict";var X=v("rePB"),Oe=v("Ff2n"),xe=v("VTBJ"),je=v("1OyB"),Ce=v("vuIU"),ie=v("JX7q"),B=v("Ji7U"),A=v("LK+K"),k=v("q1tI"),ne=v("TSYQ"),q=v.n(ne),me=v("sboe"),Ae=v("OZM5"),le=function(he){var se=he.prefixCls,_=he.level,Q=he.isStart,P=he.isEnd;if(!_)return null;for(var w="".concat(se,"-indent-unit"),oe=[],V=0;V<_;V+=1){var S;oe.push(k.createElement("span",{key:V,className:q()(w,(S={},Object(X.a)(S,"".concat(w,"-start"),Q[V+1]),Object(X.a)(S,"".concat(w,"-end"),P[V+1]),Object(X.a)(S,"".concat(w,"-end-first-level"),!V&&P[0]),S))}))}return k.createElement("span",{"aria-hidden":"true",className:"".concat(se,"-indent")},oe)},U=le,M=v("815F"),z="open",re="close",ae="---",we=function(Z){Object(B.a)(se,Z);var he=Object(A.a)(se);function se(){var _;return Object(je.a)(this,se),_=he.apply(this,arguments),_.state={dragNodeHighlight:!1},_.onSelectorClick=function(Q){var P=_.props.context.onNodeClick;P(Q,Object(M.b)(_.props)),_.isSelectable()?_.onSelect(Q):_.onCheck(Q)},_.onSelectorDoubleClick=function(Q){var P=_.props.context.onNodeDoubleClick;P(Q,Object(M.b)(_.props))},_.onSelect=function(Q){if(_.isDisabled())return;var P=_.props.context.onNodeSelect;Q.preventDefault(),P(Q,Object(M.b)(_.props))},_.onCheck=function(Q){if(_.isDisabled())return;var P=_.props,w=P.disableCheckbox,oe=P.checked,V=_.props.context.onNodeCheck;if(!_.isCheckable()||w)return;Q.preventDefault();var S=!oe;V(Q,Object(M.b)(_.props),S)},_.onMouseEnter=function(Q){var P=_.props.context.onNodeMouseEnter;P(Q,Object(M.b)(_.props))},_.onMouseLeave=function(Q){var P=_.props.context.onNodeMouseLeave;P(Q,Object(M.b)(_.props))},_.onContextMenu=function(Q){var P=_.props.context.onNodeContextMenu;P(Q,Object(M.b)(_.props))},_.onDragStart=function(Q){var P=_.props.context.onNodeDragStart;Q.stopPropagation(),_.setState({dragNodeHighlight:!0}),P(Q,Object(ie.a)(_));try{Q.dataTransfer.setData("text/plain","")}catch(w){}},_.onDragEnter=function(Q){var P=_.props.context.onNodeDragEnter;Q.preventDefault(),Q.stopPropagation(),P(Q,Object(ie.a)(_))},_.onDragOver=function(Q){var P=_.props.context.onNodeDragOver;Q.preventDefault(),Q.stopPropagation(),P(Q,Object(ie.a)(_))},_.onDragLeave=function(Q){var P=_.props.context.onNodeDragLeave;Q.stopPropagation(),P(Q,Object(ie.a)(_))},_.onDragEnd=function(Q){var P=_.props.context.onNodeDragEnd;Q.stopPropagation(),_.setState({dragNodeHighlight:!1}),P(Q,Object(ie.a)(_))},_.onDrop=function(Q){var P=_.props.context.onNodeDrop;Q.preventDefault(),Q.stopPropagation(),_.setState({dragNodeHighlight:!1}),P(Q,Object(ie.a)(_))},_.onExpand=function(Q){var P=_.props.context.onNodeExpand;P(Q,Object(M.b)(_.props))},_.setSelectHandle=function(Q){_.selectHandle=Q},_.getNodeState=function(){var Q=_.props.expanded;return _.isLeaf()?null:Q?z:re},_.hasChildren=function(){var Q=_.props.eventKey,P=_.props.context.keyEntities,w=P[Q]||{},oe=w.children;return!!(oe||[]).length},_.isLeaf=function(){var Q=_.props,P=Q.isLeaf,w=Q.loaded,oe=_.props.context.loadData,V=_.hasChildren();return P===!1?!1:P||!oe&&!V||oe&&w&&!V},_.isDisabled=function(){var Q=_.props.disabled,P=_.props.context.disabled;return!!(P||Q)},_.isCheckable=function(){var Q=_.props.checkable,P=_.props.context.checkable;return!P||Q===!1?!1:P},_.syncLoadData=function(Q){var P=Q.expanded,w=Q.loading,oe=Q.loaded,V=_.props.context,S=V.loadData,N=V.onNodeLoad;if(w)return;S&&P&&!_.isLeaf()&&(!_.hasChildren()&&!oe&&N(Object(M.b)(_.props)))},_.renderSwitcher=function(){var Q=_.props,P=Q.expanded,w=Q.switcherIcon,oe=_.props.context,V=oe.prefixCls,S=oe.switcherIcon,N=w||S;if(_.isLeaf())return k.createElement("span",{className:q()("".concat(V,"-switcher"),"".concat(V,"-switcher-noop"))},typeof N=="function"?N(Object(xe.a)(Object(xe.a)({},_.props),{},{isLeaf:!0})):N);var J=q()("".concat(V,"-switcher"),"".concat(V,"-switcher_").concat(P?z:re));return k.createElement("span",{onClick:_.onExpand,className:J},typeof N=="function"?N(Object(xe.a)(Object(xe.a)({},_.props),{},{isLeaf:!1})):N)},_.renderCheckbox=function(){var Q=_.props,P=Q.checked,w=Q.halfChecked,oe=Q.disableCheckbox,V=_.props.context.prefixCls,S=_.isDisabled(),N=_.isCheckable();if(!N)return null;var J=typeof N!="boolean"?N:null;return k.createElement("span",{className:q()("".concat(V,"-checkbox"),P&&"".concat(V,"-checkbox-checked"),!P&&w&&"".concat(V,"-checkbox-indeterminate"),(S||oe)&&"".concat(V,"-checkbox-disabled")),onClick:_.onCheck},J)},_.renderIcon=function(){var Q=_.props.loading,P=_.props.context.prefixCls;return k.createElement("span",{className:q()("".concat(P,"-iconEle"),"".concat(P,"-icon__").concat(_.getNodeState()||"docu"),Q&&"".concat(P,"-icon_loading"))})},_.renderSelector=function(){var Q=_.state.dragNodeHighlight,P=_.props,w=P.title,oe=P.selected,V=P.icon,S=P.loading,N=P.data,J=_.props.context,K=J.prefixCls,H=J.showIcon,u=J.icon,s=J.draggable,E=J.loadData,R=J.titleRender,ee=_.isDisabled(),be="".concat(K,"-node-content-wrapper"),de;if(H){var pe=V||u;de=pe?k.createElement("span",{className:q()("".concat(K,"-iconEle"),"".concat(K,"-icon__customize"))},typeof pe=="function"?pe(_.props):pe):_.renderIcon()}else E&&S&&(de=_.renderIcon());var I;typeof w=="function"?I=w(N):R?I=R(N):I=w;var g=k.createElement("span",{className:"".concat(K,"-title")},I);return k.createElement("span",{ref:_.setSelectHandle,title:typeof w=="string"?w:"",className:q()("".concat(be),"".concat(be,"-").concat(_.getNodeState()||"normal"),!ee&&(oe||Q)&&"".concat(K,"-node-selected"),!ee&&s&&"draggable"),draggable:!ee&&s||void 0,"aria-grabbed":!ee&&s||void 0,onMouseEnter:_.onMouseEnter,onMouseLeave:_.onMouseLeave,onContextMenu:_.onContextMenu,onClick:_.onSelectorClick,onDoubleClick:_.onSelectorDoubleClick,onDragStart:s?_.onDragStart:void 0},de,g)},_}return Object(Ce.a)(se,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Q=this.props.selectable,P=this.props.context.selectable;return typeof Q=="boolean"?Q:P}},{key:"render",value:function(){var Q,P=this.props,w=P.eventKey,oe=P.className,V=P.style,S=P.dragOver,N=P.dragOverGapTop,J=P.dragOverGapBottom,K=P.isLeaf,H=P.isStart,u=P.isEnd,s=P.expanded,E=P.selected,R=P.checked,ee=P.halfChecked,be=P.loading,de=P.domRef,pe=P.active,I=P.onMouseMove,g=Object(Oe.a)(P,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),T=this.props.context,b=T.prefixCls,L=T.filterTreeNode,d=T.draggable,h=T.keyEntities,f=this.isDisabled(),y=Object(Ae.f)(g),G=h[w]||{},j=G.level,te=u[u.length-1];return k.createElement("div",Object.assign({ref:de,className:q()(oe,"".concat(b,"-treenode"),(Q={},Object(X.a)(Q,"".concat(b,"-treenode-disabled"),f),Object(X.a)(Q,"".concat(b,"-treenode-switcher-").concat(s?"open":"close"),!K),Object(X.a)(Q,"".concat(b,"-treenode-checkbox-checked"),R),Object(X.a)(Q,"".concat(b,"-treenode-checkbox-indeterminate"),ee),Object(X.a)(Q,"".concat(b,"-treenode-selected"),E),Object(X.a)(Q,"".concat(b,"-treenode-loading"),be),Object(X.a)(Q,"".concat(b,"-treenode-active"),pe),Object(X.a)(Q,"".concat(b,"-treenode-leaf-last"),te),Object(X.a)(Q,"drag-over",!f&&S),Object(X.a)(Q,"drag-over-gap-top",!f&&N),Object(X.a)(Q,"drag-over-gap-bottom",!f&&J),Object(X.a)(Q,"filter-node",L&&L(Object(M.b)(this.props))),Q)),style:V,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:I},y),k.createElement(U,{prefixCls:b,level:j,isStart:H,isEnd:u}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),se}(k.Component),Ne=function(he){return k.createElement(me.a.Consumer,null,function(se){return k.createElement(we,Object.assign({},he,{context:se}))})};Ne.displayName="TreeNode",Ne.defaultProps={title:ae},Ne.isTreeNode=1;var fe=Ge.a=Ne},X8EC:function(ct,Ge,v){"use strict";v.r(Ge);var X=v("DZo9"),Oe=v("8z0m"),xe=v("+L6B"),je=v("2/Rp"),Ce=v("oBTY"),ie=v("sRBo"),B=v("kaz8"),A=v("7Kak"),k=v("9yH6"),ne=v("BoS7"),q=v("Sdc0"),me=v("14J3"),Ae=v("BMrR"),le=v("jCWc"),U=v("kPKH"),M=v("O3gP"),z=v("lrIw"),re=v("k1fw"),ae=v("miYZ"),we=v("tsqr"),Ne=v("9og8"),fe=v("y8nQ"),Z=v("Vl3Y"),he=v("tJVT"),se=v("PpiC"),_=v("nRaC"),Q=v("5RzL"),P=v("5NDa"),w=v("5rEg"),oe=v("WmNS"),V=v.n(oe),S=v("q1tI"),N=v.n(S),J=v("9kvl"),K=v("Ot1p"),H=v("hxT0"),u=v.n(H),s=v("1vsH"),E=v("m3rI"),R=v("ErOA"),ee=v("jrin"),be=v("R9oj"),de=v("ECub"),pe=v("YNHc"),I=v.n(pe),g=v("4i/N"),T=v("UESt"),b=Object(S.createRef)(),L=function(He){var ke=He.dataSource,Ue=He.placeholder,Y=He.defaultValue,W=He.onChange,D=Object(S.useState)(!1),m=Object(he.a)(D,2),x=m[0],C=m[1],O=Object(S.useState)({data:[],objData:{},ids:[]}),ce=Object(he.a)(O,2),ye=ce[0],Ke=ce[1],rt=Object(S.useState)({}),Qe=Object(he.a)(rt,2),it=Qe[0],gt=Qe[1];Object(S.useEffect)(function(){window.addEventListener("click",function(){C(!1),gt({})})},[]),Object(S.useEffect)(function(){if(Y){var Et={},bt=[];Y.forEach(function(pt){var Ot=pt.sub_discipline,It=Object(se.a)(pt,["sub_discipline"]);Ot&&(Et[Ot.id]=Object(re.a)(Object(re.a)({},It),{},{sub_disciplines:[Ot]}),bt.push(Ot.id))}),Ke({ids:bt,data:Object.values(Et),objData:Et}),W(bt)}},[Y]);var xt=function(){return N.a.createElement("div",{className:I.a.emptyWrap},N.a.createElement(de.a,{image:de.a.PRESENTED_IMAGE_SIMPLE}))},lt=function(bt){if(ye.ids.includes(bt.id))return!1;var pt=it.sub_disciplines,Ot=Object(se.a)(it,["sub_disciplines"]),It=Object(re.a)(Object(re.a)({},ye.objData),{},Object(ee.a)({},bt.id,Object(re.a)(Object(re.a)({},Ot),{},{sub_disciplines:[bt]})));Ke({ids:[].concat(Object(Ce.a)(ye.ids),[bt.id]),data:Object.values(It),objData:It}),W([].concat(Object(Ce.a)(ye.ids),[bt.id]))},Pt=function(bt){var pt=ye.objData;delete pt[bt];var Ot=ye.ids.filter(function(It){return It!==bt});Ke({data:Object.values(pt),objData:pt,ids:Ot}),W(Ot)},kt=45;return b&&b.current&&b.current.clientHeight>45&&(kt=b.current.clientHeight+5),N.a.createElement("div",{className:I.a.cascaderContainer,onClick:function(bt){bt.stopPropagation()}},N.a.createElement("div",{ref:b,className:I.a.valueWrap,onClick:function(){return C(!x)}},ye.data.length===0&&N.a.createElement("span",{className:I.a.placeholder},Ue||"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),ye.data.map(function(Et){return N.a.createElement("div",{className:I.a.valueItem,key:Et.id},N.a.createElement("span",null,Et.name),N.a.createElement("span",null,"/"),N.a.createElement("span",null,Et.sub_disciplines[0].name),N.a.createElement("span",{onClick:function(pt){pt.stopPropagation(),pt.preventDefault(),Pt(Et.sub_disciplines[0].id)}},N.a.createElement(g.a,null)))})),x&&N.a.createElement("div",{className:I.a.modalWrap,style:{top:kt}},N.a.createElement("div",{className:I.a.left},ke.length===0&&xt(),ke.length>0&&ke.map(function(Et){return N.a.createElement("div",{key:Et.id,onClick:function(){return gt(Et)}},N.a.createElement("span",null,Et.name),N.a.createElement("span",null,N.a.createElement(T.a,null)))})),it.sub_disciplines&&N.a.createElement("div",{className:I.a.right},it.sub_disciplines.length===0&&xt(),it.sub_disciplines.length>0&&it.sub_disciplines.map(function(Et){var bt=ye.ids.includes(Et.id);return N.a.createElement("div",{key:Et.id,className:bt?I.a.disabled:"",onClick:function(){return lt(Et)}},Et.name)}))))},d=L,h=v("2qtc"),f=v("kLXV"),y=v("6UJt"),G=v("DFOY"),j=v("wd/R"),te=v.n(j),Ee=v("jO45"),Le=v("jN4g"),Ie=v("gJ3r"),De=v("8pgt"),Me=v.n(De),$e=function(He,ke){return ke.some(function(Ue){return Ue.label.toLowerCase().indexOf(He.toLowerCase())>-1})},ue=w.a.TextArea,Te=function(He){var ke=He.newCourse,Ue=He.globalSetting,Y=He.loading,W=He.dispatch,D=He.schoolName,m=He.onSuccess,x=m===void 0?function(){}:m,C=Object(se.a)(He,["newCourse","globalSetting","loading","dispatch","schoolName","onSuccess"]),O=Z.a.useForm(),ce=Object(he.a)(O,1),ye=ce[0];Object(S.useEffect)(function(){ye.setFieldsValue({name:D})},[D]);var Ke=function(){var rt=Object(Ne.a)(V.a.mark(function Qe(it){var gt,xt,lt,Pt,kt,Et,bt;return V.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return gt=it||{},xt=gt.name,lt=gt.city,Pt=lt===void 0?[]:lt,kt=gt.address,Et=gt.remarks,Ot.next=3,W({type:"newCourse/appplySchool",payload:{name:xt,province:Pt[0],city:Pt[1],address:kt,remarks:Et}});case 3:bt=Ot.sent,W({type:"newCourse/setActionTabs",payload:{}}),bt&&(we.b.success("\u65B0\u589E\u53D1\u5E03\u5355\u4F4D\u6210\u529F\uFF01"),x(xt));case 6:case"end":return Ot.stop()}},Qe)}));return function(it){return rt.apply(this,arguments)}}();return N.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:ke.actionTabs.key==="NewCourse-AppplySchool",title:"\u7533\u8BF7\u53D1\u5E03\u5355\u4F4D",width:"600px",footer:null},N.a.createElement(Z.a,{className:Me.a.formWrap,form:ye,labelCol:{span:4},wrapperCol:{span:20},onFinish:Ke},N.a.createElement(Z.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(w.a,{placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D"})),N.a.createElement("div",{className:"".concat(Me.a.flexRow," ").concat(Me.a.example)},N.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),N.a.createElement("div",{className:Me.a.flexColumn},N.a.createElement("div",null,N.a.createElement(Ee.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(Le.a,{style:{color:"red"}}),N.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784",te()().format("YYYY"),"\u6625")))),N.a.createElement(Z.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},N.a.createElement(G.a,{allowClear:!0,size:"large",options:Ie.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:$e}})),N.a.createElement(Z.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},N.a.createElement(w.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),N.a.createElement(Z.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},N.a.createElement(ue,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),N.a.createElement("div",{className:Me.a.footerWrap},N.a.createElement(Z.a.Item,null,N.a.createElement(je.a,{className:"mr5",size:"large",onClick:function(){W({type:"newCourse/setActionTabs",payload:{}})}},"\u53D6\u6D88"),N.a.createElement(je.a,{size:"large",type:"primary",htmlType:"submit",loading:Y["newCourse/appplySchool"]},"\u4FDD\u5B58")))))},Re=Object(J.a)(function(ze){var He=ze.newCourse,ke=ze.loading,Ue=ze.globalSetting;return{newCourse:He,globalSetting:Ue,loading:ke.effects}})(Te),Fe=w.a.TextArea,We=Q.a.TreeNode,Pe=function(He){var ke,Ue,Y=He.user,W=He.newCourse,D=He.globalSetting,m=He.loading,x=He.dispatch,C=Object(se.a)(He,["user","newCourse","globalSetting","loading","dispatch"]),O=Z.a.useForm(),ce=Object(he.a)(O,1),ye=ce[0],Ke=Object(S.useState)({}),rt=Object(he.a)(Ke,2),Qe=rt[0],it=rt[1],gt=Object(S.useState)(),xt=Object(he.a)(gt,2),lt=xt[0],Pt=xt[1],kt=Object(S.useRef)(),Et=Object(S.useState)(!0),bt=Object(he.a)(Et,2),pt=bt[0],Ot=bt[1],It=Object(S.useState)(!1),Kt=Object(he.a)(It,2),Yt=Kt[0],Mt=Kt[1],hn=Object(S.useState)(),Jt=Object(he.a)(hn,2),Wt=Jt[0],nn=Jt[1],Rt=Object(S.useState)(!0),tt=Object(he.a)(Rt,2),Ut=tt[0],pn=tt[1],on=Object(S.useState)(!1),At=Object(he.a)(on,2),an=At[0],Gt=At[1],wn=Object(S.useState)(!1),Xe=Object(he.a)(wn,2),ft=Xe[0],mn=Xe[1],sn=Object(S.useState)(-1),Ye=Object(he.a)(sn,2),kn=Ye[0],aa=Ye[1],ht=Object(S.useState)(!0),Vt=Object(he.a)(ht,2),Nn=Vt[0],jn=Vt[1],en=Object(S.useState)([]),Sn=Object(he.a)(en,2),st=Sn[0],_e=Sn[1],Ze=Object(S.useState)([]),nt=Object(he.a)(Ze,2),Ct=nt[0],yt=nt[1],jt=Object(S.useState)([]),Nt=Object(he.a)(jt,2),_t=Nt[0],En=Nt[1],Zt=Object(S.useState)([]),un=Object(he.a)(Zt,2),tn=un[0],Qt=un[1];Object(S.useEffect)(function(){var Ft,dt;Pn(),Kn(),kt.current=(Ft=C.match.params)===null||Ft===void 0?void 0:Ft.pathId,Pt(!!kt.current),Object(s.W)(D==null||((dt=D.setting)===null||dt===void 0)?void 0:dt.name),ye.setFieldsValue({learning_notes_title:"\u8BFE\u7A0B\u987B\u77E5"}),kt.current&&cn()},[]);var Pn=function(){var Ft=Object(Ne.a)(V.a.mark(function dt(){var at;return V.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return zt.next=2,Object(R.a)("/api/disciplines.json",{method:"get",params:{source:"subject"}});case 2:at=zt.sent,En(at.disciplines);case 4:case"end":return zt.stop()}},dt)}));return function(){return Ft.apply(this,arguments)}}(),Kn=function(){var Ft=Object(Ne.a)(V.a.mark(function dt(){var at;return V.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return jn(!0),zt.next=3,x({type:"newCourse/getSchoolOption"});case 3:at=zt.sent,jn(!1),_e(at==null?void 0:at.schools),yt(at==null?void 0:at.schools);case 7:case"end":return zt.stop()}},dt)}));return function(){return Ft.apply(this,arguments)}}(),cn=function(){var Ft=Object(Ne.a)(V.a.mark(function dt(){var at,gn,zt,In,ea,Xn,la,$n,sa,ra,ua,ha,On;return V.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,x({type:"newCourse/getEditCourseData",payload:{id:kt.current}});case 2:at=mt.sent,at&&(la={name:at.name,name_en:at.name_en,intro:at.description,content:at==null||((gn=at.toast)===null||gn===void 0)?void 0:gn.content,notice:at.learning_notes,school_id:at==null?void 0:at.school,learning_notes_title:at.learning_notes_title||"\u8BFE\u7A0B\u987B\u77E5"},at.disciplines&&at.disciplines.length>0&&Qt(at.disciplines),ye.setFieldsValue(la),mn(at==null||((zt=at.toast)===null||zt===void 0)?void 0:zt.is_open),aa(at==null||((In=at.toast)===null||In===void 0)?void 0:In.open_num),Ot(at==null?void 0:at.cust_seq),Mt(at==null?void 0:at.show_spoc),Gt(at==null?void 0:at.show_history),pn(at==null?void 0:at.show_tag),(at==null||((ea=at.attachments)===null||ea===void 0)?void 0:ea.length)>0&&nn([{uid:at==null||(($n=at.attachments)===null||$n===void 0||((sa=$n[0])===null||sa===void 0))?void 0:sa.id,name:at==null||((ra=at.attachments)===null||ra===void 0||((ua=ra[0])===null||ua===void 0))?void 0:ua.title,response:{id:at==null||((ha=at.attachments)===null||ha===void 0||((On=ha[0])===null||On===void 0))?void 0:On.id}}]),it({name:at.name,intro:at.description,notice:at.learning_notes,content:at==null||((Xn=at.toast)===null||Xn===void 0)?void 0:Xn.content}));case 4:case"end":return mt.stop()}},dt)}));return function(){return Ft.apply(this,arguments)}}(),wa=function(){var Ft=Object(Ne.a)(V.a.mark(function dt(at){var gn,zt,In,ea,Xn,la,$n,sa,ra,ua,ha,On,Ra,mt,St;return V.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(In=at||{},ea=In.name,Xn=In.intro,la=In.notice,$n=In.name_en,sa=In.learning_notes_title,ra=In.sub_discipline_ids,ua=In.school_id,ha=lt?"newCourse/editCourse":"newCourse/submitCourse",On=!1,Ra=null,st.map(function(Bt){ua===Bt.name&&(On=!0,Ra=Bt.id)}),On){Dt.next=7;break}return Dt.abrupt("return",we.b.error("\u672A\u627E\u5230\u5305\u542B'".concat(ua,"'\u7684\u53D1\u5E03\u5355\u4F4D")));case 7:return mt={id:kt.current,name:ea,name_en:$n,description:Xn,learning_notes:la,cust_seq:pt,show_spoc:Yt,school_id:Ra,show_tag:Ut,show_history:an,learning_notes_title:sa,attachment_ids:[Wt==null||((gn=Wt[0])===null||gn===void 0||((zt=gn.response)===null||zt===void 0))?void 0:zt.id],sub_discipline_ids:ra,subject_toast_attributes:{is_open:ft,open_num:kn,content:at.content}},Dt.next=10,x({type:ha,payload:Object(re.a)({},mt)});case 10:St=Dt.sent,(St==null?void 0:St.subject_id)&&J.d.push("/paths/".concat(St.subject_id));case 12:case"end":return Dt.stop()}},dt)}));return function(at){return Ft.apply(this,arguments)}}(),Tn=function(){x({type:"newCourse/setActionTabs",payload:{key:"NewCourse-AppplySchool"}})},zn=function(dt){Kn(),it(Object(re.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,lt?"\u7F16\u8F91":"\u521B\u5EFA","\u5B9E\u8DF5\u8BFE\u7A0B")),N.a.createElement(Z.a,{form:ye,className:u.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){var dt=ye.getFieldsValue();"school_id"in dt&&yt(st.filter(function(at){return at.name.includes(dt.school_id)})),it(Object(re.a)({},dt))},onFinish:wa},N.a.createElement("div",{className:u.a.fieldWrap},N.a.createElement(Z.a.Item,{extra:N.a.createElement("div",{className:"tr c-grey-333 font12 mt3"},"".concat(((ke=Qe.name)===null||ke===void 0?void 0:ke.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(Fe,{maxLength:60,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"})),N.a.createElement(Z.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(w.a,{maxLength:200,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A",addonAfter:"".concat(((Ue=Qe.name_en)===null||Ue===void 0?void 0:Ue.length)||0,"/200")})),N.a.createElement(Z.a.Item,{name:"sub_discipline_ids",label:"\u65B9\u5411&\u8BFE\u7A0B:"},N.a.createElement(d,{defaultValue:tn,dataSource:_t,onChange:function(dt){return ye.setFieldsValue({sub_discipline_ids:dt})}})),N.a.createElement(Z.a.Item,{label:"\u53D1\u5E03\u5355\u4F4D",name:"school_id",wrapperCol:{span:24},extra:!Nn&&Qe.school_id&&!(st!=null&&st.find(function(Ft){return Ft.name===Qe.school_id}))&&N.a.createElement("div",{className:u.a.schoolHintWrap},N.a.createElement("span",{className:u.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",Qe.school_id,"\u201D\u7684\u53D1\u5E03\u5355\u4F4D\uFF0C"),N.a.createElement("span",{className:"".concat(u.a.color0152d9),onClick:Tn},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D"}]},N.a.createElement(z.a,{placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D",showSearch:!0,options:Ct==null?void 0:Ct.map(function(Ft){return{value:Ft.name}})}))),N.a.createElement("div",{className:u.a.mdWrap},N.a.createElement(Z.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:Qe.intro}))),N.a.createElement("div",{className:u.a.mdWrap},N.a.createElement(Ae.a,{align:"middle",className:"mb10 mt10"},N.a.createElement(U.a,null,N.a.createElement("span",{className:"c-red mr10"},"*")),N.a.createElement(U.a,{flex:"1"},N.a.createElement(Z.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(w.a,{placeholder:"\u8BF7\u8F93\u5165"})))),N.a.createElement(Z.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:Qe.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(dt){mn(dt)}}),"\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(Z.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:Qe.content})),ft&&N.a.createElement("div",{style:{marginTop:20}},N.a.createElement("label",null,"\u63D0\u793A\u6B21\u6570\uFF1A"),N.a.createElement(k.a.Group,{value:kn,onChange:function(dt){aa(dt.target.value)}},N.a.createElement(k.a,{value:-1},"\u6BCF\u6B21"),N.a.createElement(k.a,{value:1},"\u4E00\u6B21")))),N.a.createElement("div",{className:u.a.mdWrap},N.a.createElement(B.a,{checked:pt,onChange:function(dt){Ot(dt==null?void 0:dt.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:Yt,onChange:function(dt){return Mt(dt==null?void 0:dt.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:Ut,onChange:function(dt){return pn(dt==null?void 0:dt.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:an,onChange:function(dt){return Gt(dt==null?void 0:dt.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:E.a.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:Wt,onChange:function(dt){var at,gn=(dt==null?void 0:dt.file.size)/1024/1024<2;if(!((at=dt.fileList)!==null&&at!==void 0&&at.length))return!1;if(!gn)nn(Object(Ce.a)(Wt));else{var zt;nn(dt==null||((zt=dt.fileList)===null||zt===void 0)?void 0:zt.slice(-1))}},beforeUpload:function(dt){var at=dt.type==="image/jpeg"||dt.type==="image/png";if(!at)return we.b.error("\u53EA\u80FD\u4E0A\u4F20jpg \u6216\u8005png\u56FE\u7247"),!1;var gn=dt.size/1024/1024<2;return gn?at&&gn:(we.b.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u5927\u4E8E2m"),!1)},onRemove:function(dt){nn([])}},N.a.createElement(je.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(Z.a.Item,null,N.a.createElement(je.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(je.a,{size:"large",type:"primary",ghost:!0,className:u.a.button,onClick:function(){return J.d.push(lt?"/paths/".concat(kt.current):"/paths")}},"\u53D6\u6D88"))))),N.a.createElement(Re,{schoolName:Qe.school_id,onSuccess:zn}))},ve=Ge.default=Object(J.a)(function(ze){var He=ze.user,ke=ze.newCourse,Ue=ze.loading,Y=ze.globalSetting;return{user:He,newCourse:ke,globalSetting:Y,loading:Ue.effects}})(Pe)},XIdC:function(ct,Ge,v){"use strict";var X=v("rePB"),Oe=v("ODXe"),xe=v("Ff2n"),je=v("q1tI"),Ce=v.n(je),ie=v("TSYQ"),B=v.n(ie),A=v("6cGi"),k=v("4IlW"),ne=je.forwardRef(function(q,me){var Ae,le=q.prefixCls,U=le===void 0?"rc-switch":le,M=q.className,z=q.checked,re=q.defaultChecked,ae=q.disabled,we=q.loadingIcon,Ne=q.checkedChildren,fe=q.unCheckedChildren,Z=q.onClick,he=q.onChange,se=q.onKeyDown,_=Object(xe.a)(q,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(A.a)(!1,{value:z,defaultValue:re}),P=Object(Oe.a)(Q,2),w=P[0],oe=P[1];function V(K,H){var u=w;return ae||(u=K,oe(u),he==null||he(u,H)),u}function S(K){K.which===k.a.LEFT?V(!1,K):K.which===k.a.RIGHT&&V(!0,K),se==null||se(K)}function N(K){var H=V(!w,K);Z==null||Z(H,K)}var J=B()(U,M,(Ae={},Object(X.a)(Ae,"".concat(U,"-checked"),w),Object(X.a)(Ae,"".concat(U,"-disabled"),ae),Ae));return je.createElement("button",Object.assign({},_,{type:"button",role:"switch","aria-checked":w,disabled:ae,className:J,ref:me,onKeyDown:S,onClick:N}),we,je.createElement("span",{className:"".concat(U,"-inner")},w?Ne:fe))});ne.displayName="Switch",Ge.a=ne},Y1PL:function(ct,Ge,v){"use strict";v.r(Ge),v.d(Ge,"ResizableTextArea",function(){return ee});var X=v("wx14"),Oe=v("1OyB"),xe=v("vuIU"),je=v("Ji7U"),Ce=v("LK+K"),ie=v("q1tI"),B=v("VTBJ"),A=v("rePB"),k=v("Zm9Q"),ne=v("Kwbf"),q=v("c+Xe"),me=v("m+aA"),Ae=v("bdgK"),le=new Map;function U(pe){pe.forEach(function(I){var g,T=I.target;(g=le.get(T))===null||g===void 0||g.forEach(function(b){return b(T)})})}var M=new Ae.default(U),z=null,re=null;function ae(pe,I){le.has(pe)||(le.set(pe,new Set),M.observe(pe)),le.get(pe).add(I)}function we(pe,I){le.has(pe)&&(le.get(pe).delete(I),le.get(pe).size||(M.unobserve(pe),le.delete(pe)))}var Ne=function(pe){Object(je.a)(g,pe);var I=Object(Ce.a)(g);function g(){return Object(Oe.a)(this,g),I.apply(this,arguments)}return Object(xe.a)(g,[{key:"render",value:function(){return this.props.children}}]),g}(ie.Component),fe=ie.createContext(null);function Z(pe){var I=pe.children,g=pe.onBatchResize,T=ie.useRef(0),b=ie.useRef([]),L=ie.useContext(fe),d=ie.useCallback(function(h,f,y){T.current+=1;var G=T.current;b.current.push({size:h,element:f,data:y}),Promise.resolve().then(function(){G===T.current&&(g==null||g(b.current),b.current=[])}),L==null||L(h,f,y)},[g,L]);return ie.createElement(fe.Provider,{value:d},I)}function he(pe){var I=pe.children,g=pe.disabled,T=ie.useRef(null),b=ie.useRef(null),L=ie.useContext(fe),d=ie.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=ie.isValidElement(I)&&Object(q.c)(I),f=h?I.ref:null,y=ie.useMemo(function(){return Object(q.a)(f,T)},[f,T]),G=ie.useRef(pe);G.current=pe;var j=ie.useCallback(function(te){var Ee=G.current,Le=Ee.onResize,Ie=Ee.data,De=te.getBoundingClientRect(),Me=De.width,$e=De.height,ue=te.offsetWidth,Te=te.offsetHeight,Re=Math.floor(Me),Fe=Math.floor($e);if(d.current.width!==Re||d.current.height!==Fe||d.current.offsetWidth!==ue||d.current.offsetHeight!==Te){var We={width:Re,height:Fe,offsetWidth:ue,offsetHeight:Te};d.current=We;var Pe=ue===Math.round(Me)?Me:ue,ve=Te===Math.round($e)?$e:Te,ze=Object(B.a)(Object(B.a)({},We),{},{offsetWidth:Pe,offsetHeight:ve});L==null||L(ze,te,Ie),Le&&Promise.resolve().then(function(){Le(ze,te)})}},[]);return ie.useEffect(function(){var te=Object(me.a)(T.current)||Object(me.a)(b.current);return te&&!g&&ae(te,j),function(){return we(te,j)}},[T.current,g]),ie.createElement(Ne,{ref:b},h?ie.cloneElement(I,{ref:y}):I)}var se="rc-observer-key";function _(pe){var I=pe.children,g=Object(k.a)(I);return g.map(function(T,b){var L=(T==null?void 0:T.key)||"".concat(se,"-").concat(b);return ie.createElement(he,Object(X.a)({},pe,{key:L}),T)})}_.Collection=Z;var Q=_,P=v("bT9E"),w=v("TSYQ"),oe=v.n(w),V=`
|
|
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
|
|
`,S=["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={},J;function K(pe){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=pe.getAttribute("id")||pe.getAttribute("data-reactid")||pe.getAttribute("name");if(I&&N[g])return N[g];var T=window.getComputedStyle(pe),b=T.getPropertyValue("box-sizing")||T.getPropertyValue("-moz-box-sizing")||T.getPropertyValue("-webkit-box-sizing"),L=parseFloat(T.getPropertyValue("padding-bottom"))+parseFloat(T.getPropertyValue("padding-top")),d=parseFloat(T.getPropertyValue("border-bottom-width"))+parseFloat(T.getPropertyValue("border-top-width")),h=S.map(function(y){return"".concat(y,":").concat(T.getPropertyValue(y))}).join(";"),f={sizingStyle:h,paddingSize:L,borderSize:d,boxSizing:b};return I&&g&&(N[g]=f),f}function H(pe){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;J||(J=document.createElement("textarea"),J.setAttribute("tab-index","-1"),J.setAttribute("aria-hidden","true"),document.body.appendChild(J)),pe.getAttribute("wrap")?J.setAttribute("wrap",pe.getAttribute("wrap")):J.removeAttribute("wrap");var b=K(pe,I),L=b.paddingSize,d=b.borderSize,h=b.boxSizing,f=b.sizingStyle;J.setAttribute("style","".concat(f,";").concat(V)),J.value=pe.value||pe.placeholder||"";var y=Number.MIN_SAFE_INTEGER,G=Number.MAX_SAFE_INTEGER,j=J.scrollHeight,te;if(h==="border-box"?j+=d:h==="content-box"&&(j-=L),g!==null||T!==null){J.value=" ";var Ee=J.scrollHeight-L;g!==null&&(y=Ee*g,h==="border-box"&&(y=y+L+d),j=Math.max(y,j)),T!==null&&(G=Ee*T,h==="border-box"&&(G=G+L+d),te=j>G?"":"hidden",j=Math.min(G,j))}return{height:j,minHeight:y,maxHeight:G,overflowY:te,resize:"none"}}var u=v("Gytx"),s=v.n(u),E;(function(pe){pe[pe.NONE=0]="NONE",pe[pe.RESIZING=1]="RESIZING",pe[pe.RESIZED=2]="RESIZED"})(E||(E={}));var R=function(pe){Object(je.a)(g,pe);var I=Object(Ce.a)(g);function g(T){var b;return Object(Oe.a)(this,g),b=I.call(this,T),b.nextFrameActionId=void 0,b.resizeFrameId=void 0,b.textArea=void 0,b.saveTextArea=function(L){b.textArea=L},b.handleResize=function(L){var d=b.state.resizeStatus,h=b.props,f=h.autoSize,y=h.onResize;if(d!==E.NONE)return;typeof y=="function"&&y(L),f&&b.resizeOnNextFrame()},b.resizeOnNextFrame=function(){cancelAnimationFrame(b.nextFrameActionId),b.nextFrameActionId=requestAnimationFrame(b.resizeTextarea)},b.resizeTextarea=function(){var L=b.props.autoSize;if(!L||!b.textArea)return;var d=L.minRows,h=L.maxRows,f=H(b.textArea,!1,d,h);b.setState({textareaStyles:f,resizeStatus:E.RESIZING},function(){cancelAnimationFrame(b.resizeFrameId),b.resizeFrameId=requestAnimationFrame(function(){b.setState({resizeStatus:E.RESIZED},function(){b.resizeFrameId=requestAnimationFrame(function(){b.setState({resizeStatus:E.NONE}),b.fixFirefoxAutoScroll()})})})})},b.renderTextArea=function(){var L=b.props,d=L.prefixCls,h=d===void 0?"rc-textarea":d,f=L.autoSize,y=L.onResize,G=L.className,j=L.disabled,te=b.state,Ee=te.textareaStyles,Le=te.resizeStatus,Ie=Object(P.a)(b.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),De=oe()(h,G,Object(A.a)({},"".concat(h,"-disabled"),j));"value"in Ie&&(Ie.value=Ie.value||"");var Me=Object(B.a)(Object(B.a)(Object(B.a)({},b.props.style),Ee),Le===E.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return ie.createElement(Q,{onResize:b.handleResize,disabled:!(f||y)},ie.createElement("textarea",Object(X.a)({},Ie,{className:De,style:Me,ref:b.saveTextArea})))},b.state={textareaStyles:{},resizeStatus:E.NONE},b}return Object(xe.a)(g,[{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,L=this.textArea.selectionEnd;this.textArea.setSelectionRange(b,L)}}catch(d){}}},{key:"render",value:function(){return this.renderTextArea()}}]),g}(ie.Component),ee=R,be=function(pe){Object(je.a)(g,pe);var I=Object(Ce.a)(g);function g(T){var b;Object(Oe.a)(this,g),b=I.call(this,T),b.resizableTextArea=void 0,b.focus=function(){b.resizableTextArea.textArea.focus()},b.saveTextArea=function(d){b.resizableTextArea=d},b.handleChange=function(d){var h=b.props.onChange;b.setValue(d.target.value,function(){b.resizableTextArea.resizeTextarea()}),h&&h(d)},b.handleKeyDown=function(d){var h=b.props,f=h.onPressEnter,y=h.onKeyDown;d.keyCode===13&&f&&f(d),y&&y(d)};var L=typeof T.value=="undefined"||T.value===null?T.defaultValue:T.value;return b.state={value:L},b}return Object(xe.a)(g,[{key:"setValue",value:function(b,L){"value"in this.props||this.setState({value:b},L)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return ie.createElement(ee,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}}]),g}(ie.Component),de=Ge.default=be},YNHc:function(ct,Ge,v){ct.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(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return Ne});var X=v("k1fw"),Oe=v("miYZ"),xe=v("tsqr"),je=v("rAM+"),Ce=v("tJVT"),ie=v("PpiC"),B=v("q1tI"),A=v.n(B),k=v("bdgK");function ne(fe,Z,he,se,_){var Q=Z.getWordUntilPosition(he),P={startLineNumber:he.lineNumber,endLineNumber:he.lineNumber,startColumn:Q.startColumn,endColumn:Q.endColumn},w=se.map(function(oe){return{label:oe,kind:fe.languages.CompletionItemKind.Keyword,insertText:oe,insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:P}});return _.map(function(oe){w.push(Object(X.a)(Object(X.a)({},oe),{},{range:P}))}),w}var q=function(fe){var Z={label:"ifelse",kind:fe.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`),insertTextRules:fe.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"];fe.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(P,w){var oe=ne(fe,P,w,he,[Z]);return{suggestions:oe}}});var se=["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"];fe.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(P,w){var oe=[{label:"print",kind:fe.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
|
|
`),insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet}],V=ne(fe,P,w,se,oe);return{suggestions:V}}});var _=["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"];fe.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(P,w){var oe=[Z,{label:"main",kind:fe.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`),insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:fe.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
|
|
`),insertTextRules:fe.languages.CompletionItemInsertTextRule.InsertAsSnippet}],V=ne(fe,P,w,_,oe);return{suggestions:V}}})},me="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",Ae=v("LvDl");function le(fe){return/^\d+$/.test(fe)?"".concat(fe,"px"):fe}function U(){}var M=!1,z={"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 re(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Z=fe;if(Array.isArray(fe)){for(var he=0;he<fe.length;he++){var se=z[fe[he]];if(se)return se}return Z[0]}return z[Z]||Z}var ae=null,we=Ge.b=function(fe){var Z=fe.width,he=Z===void 0?"100%":Z,se=fe.height,_=se===void 0?"100%":se,Q=fe.value,P=fe.language,w=P===void 0?"javascript":P,oe=fe.style,V=oe===void 0?{}:oe,S=fe.options,N=S===void 0?{}:S,J=fe.overrideServices,K=J===void 0?{}:J,H=fe.theme,u=H===void 0?"vs-dark":H,s=fe.onEditBlur,E=fe.onSave,R=fe.autoHeight,ee=R===void 0?!1:R,be=fe.forbidCopy,de=be===void 0?!1:be,pe=fe.onChange,I=pe===void 0?U:pe,g=fe.editorDidMount,T=g===void 0?U:g,b=fe.onFocus,L=b===void 0?U:b,d=fe.filename,h=d===void 0?"educoder.txt":d,f=Object(ie.a)(fe,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),y=Object(B.useRef)(),G=Object(B.useRef)({}),j=Object(B.useRef)(),te=Object(B.useRef)(!1),Ee=Object(B.useRef)(),Le=Object(B.useState)(!1),Ie=Object(Ce.a)(Le,2),De=Ie[0],Me=Ie[1];function $e(){var C;return y.current&&(C=new k.default(function(O){var ce=Object(je.a)(O),ye;try{for(ce.s();!(ye=ce.n()).done;){var Ke=ye.value;(Ke.target.offsetHeight>0||Ke.target.offsetWidth>0)&&G.current.instance.layout()}}catch(rt){ce.e(rt)}finally{ce.f()}}),C.observe(y.current)),C}function ue(){xe.b.warn(decodeURIComponent(me))}var Te=function(){var O=G.current.instance;if(Q!=null&&O&&De){var ce=O.getModel();ce&&Q!==ce.getValue()&&(M=!0,ce.setValue(Q),O.layout(),M=!1)}};Object(B.useEffect)(function(){j.current&&clearTimeout(j.current),j.current=setTimeout(function(){Te()},500)},[Q,De,G.current]);function Re(){var C=G.current.instance;if(C){var O=C.getSelection(),ce=G.current.pastePos||{},ye=new ae.Range(ce.startLineNumber||O.endLineNumber,ce.startColumn||O.endColumn,ce.endLineNumber||O.endLineNumber,ce.endColumn||O.endColumn);setTimeout(function(){C.executeEdits("",[{range:ye,text:""}])},300)}}function Fe(C){(window.navigator.platform.match("Mac")?C.metaKey:C.ctrlKey)&&C.keyCode==83&&(C.preventDefault(),E())}var We=function(){if(ee&&G.current.instance){var O=G.current.instance.getContentHeight();m(O<_?_:O)}else m(_)};function Pe(C){var O=document.createEvent("MouseEvents");O.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),C.dispatchEvent(O)}function ve(C,O){var ce=window.URL||window.webkitURL||window,ye=new Blob([O]),Ke=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ke.href=ce.createObjectURL(ye),Ke.download=C,Pe(Ke)}Object(B.useEffect)(function(){We()},[We]),Object(B.useEffect)(function(){y.current&&!De&&v.e(26).then(v.t.bind(null,"M/lh",7)).then(function(C){try{ae=C,G.current.instance=ae.editor.create(y.current,{value:Q,language:re(w),theme:u,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},K);var O=G.current.instance;if(T(O,ae),setTimeout(function(){We(),G.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){ve(h||"educoder.txt",O.getValue())}})},500),G.current.subscription=O.onDidChangeModelContent(function(ye){te.current?clearTimeout(Ee.current):(We(),I(O.getValue(),ye)),Ee.current=setTimeout(function(){te.current=!1},500)}),window.Monaco||q(ae),de&&(O.addCommand(ae.KeyMod.CtrlCmd|ae.KeyMod.Shift|ae.KeyCode.KEY_V,function(){return ue(),null}),O.addCommand(ae.KeyMod.CtrlCmd|ae.KeyCode.KEY_C,function(){return ue(),null})),window.Monaco=ae,s&&O.onDidBlurEditorWidget(function(){s(O.getValue())}),L&&O.onDidFocusEditorText(function(){L(O.getValue())}),de){O.addCommand(ae.KeyMod.CtrlCmd|ae.KeyCode.KEY_V,function(){return ue(),null}),O.onDidPaste(function(ye){G.current.pastePos=ye});try{window.addEventListener("paste",Re)}catch(ye){}}var ce=$e();return Me(!0),function(){var ye=G.current.instance;ye.dispose();var Ke=ye.getModel();Ke&&Ke.dispose(),G.current.subscription&&G.current.subscription.dispose(),de&&window.removeEventListener("paste",Re),ce.unobserve(y.current)}}catch(ye){}})},[]),Object(B.useEffect)(function(){var C=G.current.instance;if(C&&De)return document.addEventListener("keydown",Fe,!1),function(){document.removeEventListener("keydown",Fe)}},[E,De]),Object(B.useEffect)(function(){var C=G.current.instance;if(C&&De){var O=re(w);ae.editor.setModelLanguage(C.getModel(),O),console.log("language:",w,C.getModel(),O)}},[w,De]),Object(B.useEffect)(function(){var C=G.current.instance;C&&De&&ae.editor.setTheme(u)},[u,De]),Object(B.useEffect)(function(){var C=G.current.instance;C&&De&&(C.updateOptions(Object(X.a)({},N)),setTimeout(function(){C.getModel().updateOptions(Object(X.a)({},N))},200))},[JSON.stringify(N),De]),Object(B.useEffect)(function(){var C=G.current.instance;C&&De&&C.layout()},[he,_,De]);var ze=Object(B.useState)(le(he)),He=Object(Ce.a)(ze,2),ke=He[0],Ue=He[1],Y=Object(B.useState)(le(_)),W=Object(Ce.a)(Y,2),D=W[0],m=W[1],x=Object(X.a)(Object(X.a)({},V),{},{width:ke,height:D});return A.a.createElement("div",{className:"my-monaco-editor",ref:y,style:x})};function Ne(fe){var Z=fe.width,he=Z===void 0?"100%":Z,se=fe.height,_=se===void 0?"100%":se,Q=fe.original,P=fe.modified,w=fe.language,oe=fe.options,V=oe===void 0?{}:oe,S=Object(B.useRef)(),N=Object(B.useState)(null),J=Object(Ce.a)(N,2),K=J[0],H=J[1];function u(ee){var be;return S.current&&(be=new k.default(function(de){var pe=Object(je.a)(de),I;try{for(pe.s();!(I=pe.n()).done;){var g=I.value;(g.target.offsetHeight>0||g.target.offsetWidth>0)&&ee.layout()}}catch(T){pe.e(T)}finally{pe.f()}}),be.observe(S.current)),be}Object(B.useEffect)(function(){S.current&&v.e(26).then(v.t.bind(null,"M/lh",7)).then(function(ee){ae=ee;var be=ae.editor.createDiffEditor(S.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},V),{},{wordWrap:!0}));H(be);var de=u(be);return function(){be.dispose();var pe=be.getModel();pe&&pe.dispose(),de.unobserve(S.current)}})},[]),Object(B.useEffect)(function(){K&&K.setModel({original:ae.editor.createModel(Q,w),modified:ae.editor.createModel(P,w)})},[Q,P,w,K]);var s=le(he),E=le(_),R={width:s,height:E};return A.a.createElement("div",{className:"my-diff-editor",ref:S,style:R})}},ZpRC:function(ct,Ge,v){"use strict";function X(q){return typeof q=="object"&&q!=null&&q.nodeType===1}function Oe(q,me){return(!me||q!=="hidden")&&q!=="visible"&&q!=="clip"}function xe(q,me){if(q.clientHeight<q.scrollHeight||q.clientWidth<q.scrollWidth){var Ae=getComputedStyle(q,null);return Oe(Ae.overflowY,me)||Oe(Ae.overflowX,me)||function(le){var U=function(M){if(!M.ownerDocument||!M.ownerDocument.defaultView)return null;try{return M.ownerDocument.defaultView.frameElement}catch(z){return null}}(le);return!!U&&(U.clientHeight<le.scrollHeight||U.clientWidth<le.scrollWidth)}(q)}return!1}function je(q,me,Ae,le,U,M,z,re){return M<q&&z>me||M>q&&z<me?0:M<=q&&re<=Ae||z>=me&&re>=Ae?M-q-le:z>me&&re<Ae||M<q&&re>Ae?z-me+U:0}var Ce=function(q,me){var Ae=window,le=me.scrollMode,U=me.block,M=me.inline,z=me.boundary,re=me.skipOverflowHiddenElements,ae=typeof z=="function"?z:function(Ee){return Ee!==z};if(!X(q))throw new TypeError("Invalid target");for(var we=document.scrollingElement||document.documentElement,Ne=[],fe=q;X(fe)&&ae(fe);){if((fe=fe.parentElement)===we){Ne.push(fe);break}fe!=null&&fe===document.body&&xe(fe)&&!xe(document.documentElement)||fe!=null&&xe(fe,re)&&Ne.push(fe)}for(var Z=Ae.visualViewport?Ae.visualViewport.width:innerWidth,he=Ae.visualViewport?Ae.visualViewport.height:innerHeight,se=window.scrollX||pageXOffset,_=window.scrollY||pageYOffset,Q=q.getBoundingClientRect(),P=Q.height,w=Q.width,oe=Q.top,V=Q.right,S=Q.bottom,N=Q.left,J=U==="start"||U==="nearest"?oe:U==="end"?S:oe+P/2,K=M==="center"?N+w/2:M==="end"?V:N,H=[],u=0;u<Ne.length;u++){var s=Ne[u],E=s.getBoundingClientRect(),R=E.height,ee=E.width,be=E.top,de=E.right,pe=E.bottom,I=E.left;if(le==="if-needed"&&oe>=0&&N>=0&&S<=he&&V<=Z&&oe>=be&&S<=pe&&N>=I&&V<=de)return H;var g=getComputedStyle(s),T=parseInt(g.borderLeftWidth,10),b=parseInt(g.borderTopWidth,10),L=parseInt(g.borderRightWidth,10),d=parseInt(g.borderBottomWidth,10),h=0,f=0,y="offsetWidth"in s?s.offsetWidth-s.clientWidth-T-L:0,G="offsetHeight"in s?s.offsetHeight-s.clientHeight-b-d:0;if(we===s)h=U==="start"?J:U==="end"?J-he:U==="nearest"?je(_,_+he,he,b,d,_+J,_+J+P,P):J-he/2,f=M==="start"?K:M==="center"?K-Z/2:M==="end"?K-Z:je(se,se+Z,Z,T,L,se+K,se+K+w,w),h=Math.max(0,h+_),f=Math.max(0,f+se);else{h=U==="start"?J-be-b:U==="end"?J-pe+d+G:U==="nearest"?je(be,pe,R,b,d+G,J,J+P,P):J-(be+R/2)+G/2,f=M==="start"?K-I-T:M==="center"?K-(I+ee/2)+y/2:M==="end"?K-de+L+y:je(I,de,ee,T,L+y,K,K+w,w);var j=s.scrollLeft,te=s.scrollTop;J+=te-(h=Math.max(0,Math.min(te+h,s.scrollHeight-R+G))),K+=j-(f=Math.max(0,Math.min(j+f,s.scrollWidth-ee+y)))}H.push({el:s,top:h,left:f})}return H};function ie(q){return q===Object(q)&&Object.keys(q).length!==0}function B(q,me){me===void 0&&(me="auto");var Ae="scrollBehavior"in document.body.style;q.forEach(function(le){var U=le.el,M=le.top,z=le.left;U.scroll&&Ae?U.scroll({top:M,left:z,behavior:me}):(U.scrollTop=M,U.scrollLeft=z)})}function A(q){return q===!1?{block:"end",inline:"nearest"}:ie(q)?q:{block:"start",inline:"nearest"}}function k(q,me){var Ae=!q.ownerDocument.documentElement.contains(q);if(ie(me)&&typeof me.behavior=="function")return me.behavior(Ae?[]:Ce(q,me));if(Ae)return;var le=A(me);return B(Ce(q,le),le.behavior)}var ne=Ge.a=k},Zss7:function(ct,Ge,v){var X;(function(Oe){var xe=/^\s+/,je=/\s+$/,Ce=0,ie=Oe.round,B=Oe.min,A=Oe.max,k=Oe.random;function ne(d,h){if(d=d||"",h=h||{},d instanceof ne)return d;if(!(this instanceof ne))return new ne(d,h);var f=q(d);this._originalInput=d,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=ie(100*this._a)/100,this._format=h.format||f.format,this._gradientType=h.gradientType,this._r<1&&(this._r=ie(this._r)),this._g<1&&(this._g=ie(this._g)),this._b<1&&(this._b=ie(this._b)),this._ok=f.ok,this._tc_id=Ce++}ne.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(),h,f,y,G,j,te;return h=d.r/255,f=d.g/255,y=d.b/255,h<=.03928?G=h/12.92:G=Oe.pow((h+.055)/1.055,2.4),f<=.03928?j=f/12.92:j=Oe.pow((f+.055)/1.055,2.4),y<=.03928?te=y/12.92:te=Oe.pow((y+.055)/1.055,2.4),.2126*G+.7152*j+.0722*te},setAlpha:function(d){return this._a=H(d),this._roundA=ie(100*this._a)/100,this},toHsv:function(){var d=U(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=U(this._r,this._g,this._b),h=ie(d.h*360),f=ie(d.s*100),y=ie(d.v*100);return this._a==1?"hsv("+h+", "+f+"%, "+y+"%)":"hsva("+h+", "+f+"%, "+y+"%, "+this._roundA+")"},toHsl:function(){var d=Ae(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=Ae(this._r,this._g,this._b),h=ie(d.h*360),f=ie(d.s*100),y=ie(d.l*100);return this._a==1?"hsl("+h+", "+f+"%, "+y+"%)":"hsla("+h+", "+f+"%, "+y+"%, "+this._roundA+")"},toHex:function(d){return z(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return re(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:ie(this._r),g:ie(this._g),b:ie(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+ie(this._r)+", "+ie(this._g)+", "+ie(this._b)+")":"rgba("+ie(this._r)+", "+ie(this._g)+", "+ie(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:ie(u(this._r,255)*100)+"%",g:ie(u(this._g,255)*100)+"%",b:ie(u(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+ie(u(this._r,255)*100)+"%, "+ie(u(this._g,255)*100)+"%, "+ie(u(this._b,255)*100)+"%)":"rgba("+ie(u(this._r,255)*100)+"%, "+ie(u(this._g,255)*100)+"%, "+ie(u(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:J[z(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var h="#"+ae(this._r,this._g,this._b,this._a),f=h,y=this._gradientType?"GradientType = 1, ":"";if(d){var G=ne(d);f="#"+ae(G._r,G._g,G._b,G._a)}return"progid:DXImageTransform.Microsoft.gradient("+y+"startColorstr="+h+",endColorstr="+f+")"},toString:function(d){var h=!!d;d=d||this._format;var f=!1,y=this._a<1&&this._a>=0,G=!h&&y&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return G?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(f=this.toRgbString()),d==="prgb"&&(f=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(f=this.toHexString()),d==="hex3"&&(f=this.toHexString(!0)),d==="hex4"&&(f=this.toHex8String(!0)),d==="hex8"&&(f=this.toHex8String()),d==="name"&&(f=this.toName()),d==="hsl"&&(f=this.toHslString()),d==="hsv"&&(f=this.toHsvString()),f||this.toHexString())},clone:function(){return ne(this.toString())},_applyModification:function(d,h){var f=d.apply(null,[this].concat([].slice.call(h)));return this._r=f._r,this._g=f._g,this._b=f._b,this.setAlpha(f._a),this},lighten:function(){return this._applyModification(Z,arguments)},brighten:function(){return this._applyModification(he,arguments)},darken:function(){return this._applyModification(se,arguments)},desaturate:function(){return this._applyModification(we,arguments)},saturate:function(){return this._applyModification(Ne,arguments)},greyscale:function(){return this._applyModification(fe,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(d,h){return d.apply(null,[this].concat([].slice.call(h)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(Q,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},ne.fromRatio=function(d,h){if(typeof d=="object"){var f={};for(var y in d)d.hasOwnProperty(y)&&(y==="a"?f[y]=d[y]:f[y]=de(d[y]));d=f}return ne(d,h)};function q(d){var h={r:0,g:0,b:0},f=1,y=null,G=null,j=null,te=!1,Ee=!1;return typeof d=="string"&&(d=b(d)),typeof d=="object"&&(T(d.r)&&T(d.g)&&T(d.b)?(h=me(d.r,d.g,d.b),te=!0,Ee=String(d.r).substr(-1)==="%"?"prgb":"rgb"):T(d.h)&&T(d.s)&&T(d.v)?(y=de(d.s),G=de(d.v),h=M(d.h,y,G),te=!0,Ee="hsv"):T(d.h)&&T(d.s)&&T(d.l)&&(y=de(d.s),j=de(d.l),h=le(d.h,y,j),te=!0,Ee="hsl"),d.hasOwnProperty("a")&&(f=d.a)),f=H(f),{ok:te,format:d.format||Ee,r:B(255,A(h.r,0)),g:B(255,A(h.g,0)),b:B(255,A(h.b,0)),a:f}}function me(d,h,f){return{r:u(d,255)*255,g:u(h,255)*255,b:u(f,255)*255}}function Ae(d,h,f){d=u(d,255),h=u(h,255),f=u(f,255);var y=A(d,h,f),G=B(d,h,f),j,te,Ee=(y+G)/2;if(y==G)j=te=0;else{var Le=y-G;te=Ee>.5?Le/(2-y-G):Le/(y+G);switch(y){case d:j=(h-f)/Le+(h<f?6:0);break;case h:j=(f-d)/Le+2;break;case f:j=(d-h)/Le+4;break}j/=6}return{h:j,s:te,l:Ee}}function le(d,h,f){var y,G,j;d=u(d,360),h=u(h,100),f=u(f,100);function te(Ie,De,Me){return Me<0&&(Me+=1),Me>1&&(Me-=1),Me<1/6?Ie+(De-Ie)*6*Me:Me<1/2?De:Me<2/3?Ie+(De-Ie)*(2/3-Me)*6:Ie}if(h===0)y=G=j=f;else{var Ee=f<.5?f*(1+h):f+h-f*h,Le=2*f-Ee;y=te(Le,Ee,d+1/3),G=te(Le,Ee,d),j=te(Le,Ee,d-1/3)}return{r:y*255,g:G*255,b:j*255}}function U(d,h,f){d=u(d,255),h=u(h,255),f=u(f,255);var y=A(d,h,f),G=B(d,h,f),j,te,Ee=y,Le=y-G;if(te=y===0?0:Le/y,y==G)j=0;else{switch(y){case d:j=(h-f)/Le+(h<f?6:0);break;case h:j=(f-d)/Le+2;break;case f:j=(d-h)/Le+4;break}j/=6}return{h:j,s:te,v:Ee}}function M(d,h,f){d=u(d,360)*6,h=u(h,100),f=u(f,100);var y=Oe.floor(d),G=d-y,j=f*(1-h),te=f*(1-G*h),Ee=f*(1-(1-G)*h),Le=y%6,Ie=[f,te,j,j,Ee,f][Le],De=[Ee,f,f,te,j,j][Le],Me=[j,j,Ee,f,f,te][Le];return{r:Ie*255,g:De*255,b:Me*255}}function z(d,h,f,y){var G=[be(ie(d).toString(16)),be(ie(h).toString(16)),be(ie(f).toString(16))];return y&&G[0].charAt(0)==G[0].charAt(1)&&G[1].charAt(0)==G[1].charAt(1)&&G[2].charAt(0)==G[2].charAt(1)?G[0].charAt(0)+G[1].charAt(0)+G[2].charAt(0):G.join("")}function re(d,h,f,y,G){var j=[be(ie(d).toString(16)),be(ie(h).toString(16)),be(ie(f).toString(16)),be(pe(y))];return G&&j[0].charAt(0)==j[0].charAt(1)&&j[1].charAt(0)==j[1].charAt(1)&&j[2].charAt(0)==j[2].charAt(1)&&j[3].charAt(0)==j[3].charAt(1)?j[0].charAt(0)+j[1].charAt(0)+j[2].charAt(0)+j[3].charAt(0):j.join("")}function ae(d,h,f,y){var G=[be(pe(y)),be(ie(d).toString(16)),be(ie(h).toString(16)),be(ie(f).toString(16))];return G.join("")}ne.equals=function(d,h){return!d||!h?!1:ne(d).toRgbString()==ne(h).toRgbString()},ne.random=function(){return ne.fromRatio({r:k(),g:k(),b:k()})};function we(d,h){h=h===0?0:h||10;var f=ne(d).toHsl();return f.s-=h/100,f.s=s(f.s),ne(f)}function Ne(d,h){h=h===0?0:h||10;var f=ne(d).toHsl();return f.s+=h/100,f.s=s(f.s),ne(f)}function fe(d){return ne(d).desaturate(100)}function Z(d,h){h=h===0?0:h||10;var f=ne(d).toHsl();return f.l+=h/100,f.l=s(f.l),ne(f)}function he(d,h){h=h===0?0:h||10;var f=ne(d).toRgb();return f.r=A(0,B(255,f.r-ie(255*-(h/100)))),f.g=A(0,B(255,f.g-ie(255*-(h/100)))),f.b=A(0,B(255,f.b-ie(255*-(h/100)))),ne(f)}function se(d,h){h=h===0?0:h||10;var f=ne(d).toHsl();return f.l-=h/100,f.l=s(f.l),ne(f)}function _(d,h){var f=ne(d).toHsl(),y=(f.h+h)%360;return f.h=y<0?360+y:y,ne(f)}function Q(d){var h=ne(d).toHsl();return h.h=(h.h+180)%360,ne(h)}function P(d){var h=ne(d).toHsl(),f=h.h;return[ne(d),ne({h:(f+120)%360,s:h.s,l:h.l}),ne({h:(f+240)%360,s:h.s,l:h.l})]}function w(d){var h=ne(d).toHsl(),f=h.h;return[ne(d),ne({h:(f+90)%360,s:h.s,l:h.l}),ne({h:(f+180)%360,s:h.s,l:h.l}),ne({h:(f+270)%360,s:h.s,l:h.l})]}function oe(d){var h=ne(d).toHsl(),f=h.h;return[ne(d),ne({h:(f+72)%360,s:h.s,l:h.l}),ne({h:(f+216)%360,s:h.s,l:h.l})]}function V(d,h,f){h=h||6,f=f||30;var y=ne(d).toHsl(),G=360/f,j=[ne(d)];for(y.h=(y.h-(G*h>>1)+720)%360;--h;)y.h=(y.h+G)%360,j.push(ne(y));return j}function S(d,h){h=h||6;for(var f=ne(d).toHsv(),y=f.h,G=f.s,j=f.v,te=[],Ee=1/h;h--;)te.push(ne({h:y,s:G,v:j})),j=(j+Ee)%1;return te}ne.mix=function(d,h,f){f=f===0?0:f||50;var y=ne(d).toRgb(),G=ne(h).toRgb(),j=f/100,te={r:(G.r-y.r)*j+y.r,g:(G.g-y.g)*j+y.g,b:(G.b-y.b)*j+y.b,a:(G.a-y.a)*j+y.a};return ne(te)},ne.readability=function(d,h){var f=ne(d),y=ne(h);return(Oe.max(f.getLuminance(),y.getLuminance())+.05)/(Oe.min(f.getLuminance(),y.getLuminance())+.05)},ne.isReadable=function(d,h,f){var y=ne.readability(d,h),G,j;j=!1,G=L(f);switch(G.level+G.size){case"AAsmall":case"AAAlarge":j=y>=4.5;break;case"AAlarge":j=y>=3;break;case"AAAsmall":j=y>=7;break}return j},ne.mostReadable=function(d,h,f){var y=null,G=0,j,te,Ee,Le;f=f||{},te=f.includeFallbackColors,Ee=f.level,Le=f.size;for(var Ie=0;Ie<h.length;Ie++)j=ne.readability(d,h[Ie]),j>G&&(G=j,y=ne(h[Ie]));return ne.isReadable(d,y,{level:Ee,size:Le})||!te?y:(f.includeFallbackColors=!1,ne.mostReadable(d,["#fff","#000"],f))};var N=ne.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"},J=ne.hexNames=K(N);function K(d){var h={};for(var f in d)d.hasOwnProperty(f)&&(h[d[f]]=f);return h}function H(d){return d=parseFloat(d),(isNaN(d)||d<0||d>1)&&(d=1),d}function u(d,h){R(d)&&(d="100%");var f=ee(d);return d=B(h,A(0,parseFloat(d))),f&&(d=parseInt(d*h,10)/100),Oe.abs(d-h)<1e-6?1:d%h/parseFloat(h)}function s(d){return B(1,A(0,d))}function E(d){return parseInt(d,16)}function R(d){return typeof d=="string"&&d.indexOf(".")!=-1&&parseFloat(d)===1}function ee(d){return typeof d=="string"&&d.indexOf("%")!=-1}function be(d){return d.length==1?"0"+d:""+d}function de(d){return d<=1&&(d=d*100+"%"),d}function pe(d){return Oe.round(parseFloat(d)*255).toString(16)}function I(d){return E(d)/255}var g=function(){var d="[-\\+]?\\d+%?",h="[-\\+]?\\d*\\.\\d+%?",f="(?:"+h+")|(?:"+d+")",y="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",G="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+y),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+y),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+y),hsva:new RegExp("hsva"+G),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 T(d){return!!g.CSS_UNIT.exec(d)}function b(d){d=d.replace(xe,"").replace(je,"").toLowerCase();var h=!1;if(N[d])d=N[d],h=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=g.rgb.exec(d))?{r:f[1],g:f[2],b:f[3]}:(f=g.rgba.exec(d))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=g.hsl.exec(d))?{h:f[1],s:f[2],l:f[3]}:(f=g.hsla.exec(d))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=g.hsv.exec(d))?{h:f[1],s:f[2],v:f[3]}:(f=g.hsva.exec(d))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=g.hex8.exec(d))?{r:E(f[1]),g:E(f[2]),b:E(f[3]),a:I(f[4]),format:h?"name":"hex8"}:(f=g.hex6.exec(d))?{r:E(f[1]),g:E(f[2]),b:E(f[3]),format:h?"name":"hex"}:(f=g.hex4.exec(d))?{r:E(f[1]+""+f[1]),g:E(f[2]+""+f[2]),b:E(f[3]+""+f[3]),a:I(f[4]+""+f[4]),format:h?"name":"hex8"}:(f=g.hex3.exec(d))?{r:E(f[1]+""+f[1]),g:E(f[2]+""+f[2]),b:E(f[3]+""+f[3]),format:h?"name":"hex"}:!1}function L(d){var h,f;return d=d||{level:"AA",size:"small"},h=(d.level||"AA").toUpperCase(),f=(d.size||"small").toLowerCase(),h!=="AA"&&h!=="AAA"&&(h="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:h,size:f}}ct.exports?ct.exports=ne:!(X=function(){return ne}.call(Ge,v,Ge,ct),X!==void 0&&(ct.exports=X))})(Math)},bT9E:function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return Oe});var X=v("VTBJ");function Oe(xe,je){var Ce=Object(X.a)({},xe);return Array.isArray(je)&&je.forEach(function(ie){delete Ce[ie]}),Ce}},c5Ni:function(ct,Ge,v){},dejd:function(ct,Ge,v){},dmUQ:function(ct,Ge,v){"use strict";var X=v("Ff2n"),Oe=v("rePB"),xe=v("1OyB"),je=v("vuIU"),Ce=v("Ji7U"),ie=v("md7G"),B=v("foSv"),A=v("q1tI"),k=v.n(A),ne=v("TSYQ"),q=v.n(ne),me=v("4IlW");function Ae(P,w){var oe=Object.keys(P);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(P);w&&(V=V.filter(function(S){return Object.getOwnPropertyDescriptor(P,S).enumerable})),oe.push.apply(oe,V)}return oe}function le(P){for(var w=1;w<arguments.length;w++){var oe=arguments[w]!=null?arguments[w]:{};w%2?Ae(Object(oe),!0).forEach(function(V){Object(Oe.a)(P,V,oe[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(oe)):Ae(Object(oe)).forEach(function(V){Object.defineProperty(P,V,Object.getOwnPropertyDescriptor(oe,V))})}return P}function U(P){var w=M();return function(){var V=Object(B.a)(P),S;if(w){var N=Object(B.a)(this).constructor;S=Reflect.construct(V,arguments,N)}else S=V.apply(this,arguments);return Object(ie.a)(this,S)}}function M(){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(P){return!1}}function z(){}function re(P){P.preventDefault()}var ae=function(w){return w.replace(/[^\w.-]+/g,"")},we=200,Ne=600,fe=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Z=function(w){return w!=null},he=function(w,oe){return oe===w||typeof oe=="number"&&typeof w=="number"&&isNaN(oe)&&isNaN(w)},se=function(P){Object(Ce.a)(oe,P);var w=U(oe);function oe(V){var S;Object(xe.a)(this,oe),S=w.call(this,V),S.onKeyDown=function(K){var H=S.props,u=H.onKeyDown,s=H.onPressEnter;if(K.keyCode===me.a.UP){var E=S.getRatio(K);S.up(K,E,null),S.stop()}else if(K.keyCode===me.a.DOWN){var R=S.getRatio(K);S.down(K,R,null),S.stop()}else K.keyCode===me.a.ENTER&&s&&s(K);if(S.recordCursorPosition(),S.lastKeyCode=K.keyCode,u){for(var ee=arguments.length,be=new Array(ee>1?ee-1:0),de=1;de<ee;de++)be[de-1]=arguments[de];u.apply(void 0,[K].concat(be))}},S.onKeyUp=function(K){var H=S.props.onKeyUp;if(S.stop(),S.recordCursorPosition(),H){for(var u=arguments.length,s=new Array(u>1?u-1:0),E=1;E<u;E++)s[E-1]=arguments[E];H.apply(void 0,[K].concat(s))}},S.onChange=function(K){var H=S.props.onChange;S.state.focused&&(S.inputting=!0),S.rawInput=S.props.parser(S.getValueFromEvent(K)),S.setState({inputValue:S.rawInput}),H(S.toNumber(S.rawInput))},S.onMouseUp=function(){var K=S.props.onMouseUp;S.recordCursorPosition(),K&&K.apply(void 0,arguments)},S.onFocus=function(){var K;S.setState({focused:!0}),(K=S.props).onFocus.apply(K,arguments)},S.onBlur=function(){var K=S.props.onBlur;S.inputting=!1,S.setState({focused:!1});var H=S.getCurrentValidValue(S.state.inputValue),u=S.setValue(H,z);if(K){var s=S.input.value,E=S.getInputDisplayValue({focus:!1,value:u});S.input.value=E&&Number(E),K.apply(void 0,arguments),S.input.value=s}},S.getRatio=function(K){var H=1;return K.metaKey||K.ctrlKey?H=.1:K.shiftKey&&(H=10),H},S.getFullNum=function(K){return isNaN(K)?K:/e/i.test(String(K))?Number(K).toFixed(18).replace(/\.?0+$/,""):K},S.getPrecision=function(K){if(Z(S.props.precision))return S.props.precision;var H=String(K);if(H.indexOf("e-")>=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var u=0;return H.indexOf(".")>=0&&(u=H.length-H.indexOf(".")-1),u},S.getInputDisplayValue=function(K){var H=K||S.state,u=H.focused,s=H.inputValue,E=H.value,R;u?R=s:R=S.toPrecisionAsStep(E),R==null&&(R="");var ee=S.formatWrapper(R);return Z(S.props.decimalSeparator)&&(ee=ee.toString().replace(".",S.props.decimalSeparator)),ee},S.recordCursorPosition=function(){try{S.cursorStart=S.input.selectionStart,S.cursorEnd=S.input.selectionEnd,S.currentValue=S.input.value,S.cursorBefore=S.input.value.substring(0,S.cursorStart),S.cursorAfter=S.input.value.substring(S.cursorEnd)}catch(K){}},S.restoreByAfter=function(K){if(K===void 0)return!1;var H=S.input.value,u=H.lastIndexOf(K);if(u===-1)return!1;var s=S.cursorBefore.length;return S.lastKeyCode===me.a.DELETE&&S.cursorBefore.charAt(s-1)===K[0]?(S.fixCaret(s,s),!0):u+K.length===H.length?(S.fixCaret(u,u),!0):!1},S.partRestoreByAfter=function(K){return K===void 0?!1:Array.prototype.some.call(K,function(H,u){var s=K.substring(u);return S.restoreByAfter(s)})},S.isNotCompleteNumber=function(K){return isNaN(K)||K===""||K===null||K&&K.toString().indexOf(".")===K.toString().length-1},S.stop=function(){S.autoStepTimer&&clearTimeout(S.autoStepTimer)},S.down=function(K,H,u){S.pressingUpOrDown=!0,S.step("down",K,H,u)},S.up=function(K,H,u){S.pressingUpOrDown=!0,S.step("up",K,H,u)},S.saveInput=function(K){S.input=K};var N=V.value;N===void 0&&(N=V.defaultValue),S.state={focused:V.autoFocus};var J=S.getValidValue(S.toNumber(N));return S.state=le(le({},S.state),{},{inputValue:S.toPrecisionAsStep(J),value:J}),S}return Object(je.a)(oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(S){var N=this.props,J=N.value,K=N.onChange,H=N.max,u=N.min,s=this.state.focused;if(S){if(!he(S.value,J)||!he(S.max,H)||!he(S.min,u)){var E=s?J:this.getValidValue(J),R;this.pressingUpOrDown?R=E:this.inputting?R=this.rawInput:R=this.toPrecisionAsStep(E),this.setState({value:E,inputValue:R})}var ee="value"in this.props?J:this.state.value;"max"in this.props&&S.max!==H&&typeof ee=="number"&&ee>H&&K&&K(H),"min"in this.props&&S.min!==u&&typeof ee=="number"&&ee<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 be=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===me.a.BACKSPACE?be=this.cursorStart-1:this.lastKeyCode===me.a.DELETE&&(be=this.cursorStart):be=this.input.value.length,this.fixCaret(be,be)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case me.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case me.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(de){}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(S){var N=S;return N===""?N="":this.isNotCompleteNumber(parseFloat(N))?N=this.state.value:N=this.getValidValue(N),this.toNumber(N)}},{key:"getValueFromEvent",value:function(S){var N=S.target.value.trim().replace(/。/g,".");return Z(this.props.decimalSeparator)&&(N=N.replace(this.props.decimalSeparator,".")),N}},{key:"getValidValue",value:function(S){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,K=parseFloat(S);return isNaN(K)?S:(K<N&&(K=N),K>J&&(K=J),K)}},{key:"setValue",value:function(S,N){var J=this.props.precision,K=this.isNotCompleteNumber(parseFloat(S))?null:parseFloat(S),H=this.state.value,u=H===void 0?null:H,s=this.state.inputValue,E=s===void 0?null:s,R=typeof K=="number"?K.toFixed(J):"".concat(K),ee=K!==u||R!=="".concat(E);return"value"in this.props?(E=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:E},N)):this.setState({value:K,inputValue:this.toPrecisionAsStep(S)},N),ee&&this.props.onChange(K),K}},{key:"getMaxPrecision",value:function(S){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,J=this.props,K=J.precision,H=J.step;if(Z(K))return K;var u=this.getPrecision(N),s=this.getPrecision(H),E=this.getPrecision(S);return S?Math.max(E,u+s):u+s}},{key:"getPrecisionFactor",value:function(S){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,J=this.getMaxPrecision(S,N);return Math.pow(10,J)}},{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(S){return this.props.formatter?this.props.formatter(S):S}},{key:"toPrecisionAsStep",value:function(S){if(this.isNotCompleteNumber(S)||S==="")return S;var N=Math.abs(this.getMaxPrecision(S));return isNaN(N)?S.toString():Number(S).toFixed(N)}},{key:"toNumber",value:function(S){var N=this.props.precision,J=this.state.focused,K=S&&S.length>16&&J;return this.isNotCompleteNumber(S)||K?S:Z(N)?Math.round(S*Math.pow(10,N))/Math.pow(10,N):Number(S)}},{key:"upStep",value:function(S,N){var J=this.props.step,K=this.getPrecisionFactor(S,N),H=Math.abs(this.getMaxPrecision(S,N)),u=((K*S+K*J*N)/K).toFixed(H);return this.toNumber(u)}},{key:"downStep",value:function(S,N){var J=this.props.step,K=this.getPrecisionFactor(S,N),H=Math.abs(this.getMaxPrecision(S,N)),u=((K*S-K*J*N)/K).toFixed(H);return this.toNumber(u)}},{key:"step",value:function(S,N){var J=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=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 E=this["".concat(S,"Step")](s,K),R=E>u.max||E<u.min;if(E>u.max?E=u.max:E<u.min&&(E=u.min),this.setValue(E,null),this.setState({focused:!0},function(){J.pressingUpOrDown=!1}),R)return;this.autoStepTimer=setTimeout(function(){J[S](N,K,!0)},H?we:Ne)}},{key:"fixCaret",value:function(S,N){if(S===void 0||N===void 0||!this.input||!this.input.value)return;try{var J=this.input.selectionStart,K=this.input.selectionEnd;(S!==J||N!==K)&&this.input.setSelectionRange(S,N)}catch(H){}}},{key:"render",value:function(){var S,N=this.props,J=N.prefixCls,K=N.disabled,H=N.readOnly,u=N.useTouch,s=N.autoComplete,E=N.upHandler,R=N.downHandler,ee=N.className,be=N.max,de=N.min,pe=N.style,I=N.title,g=N.onMouseEnter,T=N.onMouseLeave,b=N.onMouseOver,L=N.onMouseOut,d=N.required,h=N.onClick,f=N.tabIndex,y=N.type,G=N.placeholder,j=N.id,te=N.inputMode,Ee=N.pattern,Le=N.step,Ie=N.maxLength,De=N.autoFocus,Me=N.name,$e=N.onPaste,ue=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"]),Re=this.state,Fe=Re.value,We=Re.focused,Pe=q()(J,(S={},Object(Oe.a)(S,ee,!!ee),Object(Oe.a)(S,"".concat(J,"-disabled"),K),Object(Oe.a)(S,"".concat(J,"-focused"),We),S)),ve={};Object.keys(Te).forEach(function(O){(O.substr(0,5)==="data-"||O.substr(0,5)==="aria-"||O==="role")&&(ve[O]=Te[O])});var ze=!H&&!K,He=this.getInputDisplayValue(null),ke=(Fe||Fe===0)&&(isNaN(Fe)||Number(Fe)>=be),Ue=(Fe||Fe===0)&&(isNaN(Fe)||Number(Fe)<=de),Y=ke||K||H,W=Ue||K||H,D=q()("".concat(J,"-handler"),"".concat(J,"-handler-up"),Object(Oe.a)({},"".concat(J,"-handler-up-disabled"),Y)),m=q()("".concat(J,"-handler"),"".concat(J,"-handler-down"),Object(Oe.a)({},"".concat(J,"-handler-down-disabled"),W)),x=u?{onTouchStart:Y?z:this.up,onTouchEnd:this.stop}:{onMouseDown:Y?z:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},C=u?{onTouchStart:W?z:this.down,onTouchEnd:this.stop}:{onMouseDown:W?z:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return k.a.createElement("div",{className:Pe,style:pe,title:I,onMouseEnter:g,onMouseLeave:T,onMouseOver:b,onMouseOut:L,onFocus:function(){return null},onBlur:function(){return null}},k.a.createElement("div",{className:"".concat(J,"-handler-wrap")},k.a.createElement("span",Object.assign({unselectable:"on"},x,{role:"button","aria-label":"Increase Value","aria-disabled":Y,className:D}),E||k.a.createElement("span",{unselectable:"on",className:"".concat(J,"-handler-up-inner"),onClick:re})),k.a.createElement("span",Object.assign({unselectable:"on"},C,{role:"button","aria-label":"Decrease Value","aria-disabled":W,className:m}),R||k.a.createElement("span",{unselectable:"on",className:"".concat(J,"-handler-down-inner"),onClick:re}))),k.a.createElement("div",{className:"".concat(J,"-input-wrap")},k.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":de,"aria-valuemax":be,"aria-valuenow":Fe,required:d,type:y,placeholder:G,onPaste:$e,onClick:h,onMouseUp:this.onMouseUp,className:"".concat(J,"-input"),tabIndex:f,autoComplete:s,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ze?this.onKeyDown:z,onKeyUp:ze?this.onKeyUp:z,autoFocus:De,maxLength:Ie,readOnly:H,disabled:K,max:be,min:de,step:Le,name:Me,title:I,id:j,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(He),pattern:Ee,inputMode:te,onInput:ue},ve))))}}]),oe}(k.a.Component);se.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:fe,min:-fe,step:1,style:{},onChange:z,onKeyDown:z,onPressEnter:z,onFocus:z,onBlur:z,parser:ae,required:!1,autoComplete:"off"};var _=se,Q=Ge.a=_},fAei:function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return we.a});var X=v("rePB"),Oe=v("VTBJ"),xe=v("KQm4"),je=v("1OyB"),Ce=v("vuIU"),ie=v("Ji7U"),B=v("LK+K"),A=v("q1tI"),k=v("4IlW"),ne=v("Kwbf"),q=v("TSYQ"),me=v.n(q),Ae=v("sboe"),le=v("OZM5"),U=v("815F"),M=v("ODXe"),z=v("Ff2n"),re=v("+nKL"),ae=v("8XRh"),we=v("WaYH"),Ne=function(de,pe){var I=de.className,g=de.style,T=de.motion,b=de.motionNodes,L=de.motionType,d=de.onMotionStart,h=de.onMotionEnd,f=de.active,y=de.treeNodeRequiredProps,G=Object(z.a)(de,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),j=A.useState(!0),te=Object(M.a)(j,2),Ee=te[0],Le=te[1],Ie=A.useContext(Ae.a),De=Ie.prefixCls,Me=A.useRef(!1),$e=function(){Me.current||h(),Me.current=!0};return Object(A.useEffect)(function(){b&&L==="hide"&&Ee&&Le(!1)},[b]),Object(A.useEffect)(function(){return b&&d(),function(){b&&$e()}},[]),b?A.createElement(ae.default,Object.assign({ref:pe,visible:Ee},T,{motionAppear:L==="show",onAppearEnd:$e,onLeaveEnd:$e}),function(ue,Te){var Re=ue.className,Fe=ue.style;return A.createElement("div",{ref:Te,className:me()("".concat(De,"-treenode-motion"),Re),style:Fe},b.map(function(We){var Pe=We.data,ve=Pe.key,ze=Object(z.a)(Pe,["key"]),He=We.isStart,ke=We.isEnd;delete ze.children;var Ue=Object(U.f)(ve,y);return A.createElement(we.a,Object.assign({},ze,Ue,{active:f,data:We.data,key:ve,isStart:He,isEnd:ke}))}))}):A.createElement(we.a,Object.assign({domRef:pe,className:I,style:g},G,{active:f}))};Ne.displayName="MotionTreeNode";var fe=A.forwardRef(Ne),Z=fe;function he(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],pe=be.length,I=de.length;if(Math.abs(pe-I)!==1)return{add:!1,key:null};function g(T,b){var L=new Map;T.forEach(function(h){L.set(h,!0)});var d=b.filter(function(h){return!L.has(h)});return d.length===1?d[0]:null}return pe<I?{add:!0,key:g(be,de)}:{add:!1,key:g(de,be)}}function se(be,de,pe){var I=be.findIndex(function(L){var d=L.data;return d.key===pe}),g=be[I+1],T=de.findIndex(function(L){var d=L.data;return d.key===pe});if(g){var b=de.findIndex(function(L){var d=L.data;return d.key===g.data.key});return de.slice(T+1,b)}return de.slice(T+1)}var _={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Q=function(){},P="RC_TREE_MOTION_".concat(Math.random()),w={key:P},oe={key:P,level:0,index:0,pos:"0",node:w},V={parent:null,children:[],pos:oe.pos,data:w,isStart:[],isEnd:[]};function S(be,de,pe,I){return de===!1||!pe?be:be.slice(0,Math.ceil(pe/I)+1)}function N(be){var de=be.data.key,pe=be.pos;return Object(U.e)(de,pe)}function J(be){for(var de=String(be.data.key),pe=be;pe.parent;)pe=pe.parent,de="".concat(pe.data.key," > ").concat(de);return de}var K=function(de,pe){var I=de.prefixCls,g=de.data,T=de.selectable,b=de.checkable,L=de.expandedKeys,d=de.selectedKeys,h=de.checkedKeys,f=de.loadedKeys,y=de.loadingKeys,G=de.halfCheckedKeys,j=de.keyEntities,te=de.disabled,Ee=de.dragging,Le=de.dragOverNodeKey,Ie=de.dropPosition,De=de.motion,Me=de.height,$e=de.itemHeight,ue=de.virtual,Te=de.focusable,Re=de.activeItem,Fe=de.focused,We=de.tabIndex,Pe=de.onKeyDown,ve=de.onFocus,ze=de.onBlur,He=de.onActiveChange,ke=de.onListChangeStart,Ue=de.onListChangeEnd,Y=Object(z.a)(de,["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"]),W=A.useRef(null);A.useImperativeHandle(pe,function(){return{scrollTo:function(hn){W.current.scrollTo(hn)}}});var D=A.useState(L),m=Object(M.a)(D,2),x=m[0],C=m[1],O=A.useState(g),ce=Object(M.a)(O,2),ye=ce[0],Ke=ce[1],rt=A.useState(g),Qe=Object(M.a)(rt,2),it=Qe[0],gt=Qe[1],xt=A.useState([]),lt=Object(M.a)(xt,2),Pt=lt[0],kt=lt[1],Et=A.useState(null),bt=Object(M.a)(Et,2),pt=bt[0],Ot=bt[1];function It(){Ke(g),gt(g),kt([]),Ot(null),Ue()}A.useEffect(function(){C(L);var Mt=he(x,L);if(Mt.key!==null)if(Mt.add){var hn=ye.findIndex(function(Ut){var pn=Ut.data.key;return pn===Mt.key}),Jt=S(se(ye,g,Mt.key),ue,Me,$e),Wt=ye.slice();Wt.splice(hn+1,0,V),gt(Wt),kt(Jt),Ot("show")}else{var nn=g.findIndex(function(Ut){var pn=Ut.data.key;return pn===Mt.key}),Rt=S(se(g,ye,Mt.key),ue,Me,$e),tt=g.slice();tt.splice(nn+1,0,V),gt(tt),kt(Rt),Ot("hide")}else ye!==g&&(Ke(g),gt(g))},[L,g]),A.useEffect(function(){Ee||It()},[Ee]);var Kt=De?it:g,Yt={expandedKeys:L,selectedKeys:d,loadedKeys:f,loadingKeys:y,checkedKeys:h,halfCheckedKeys:G,dragOverNodeKey:Le,dropPosition:Ie,keyEntities:j};return A.createElement(A.Fragment,null,Fe&&Re&&A.createElement("span",{style:_,"aria-live":"assertive"},J(Re)),A.createElement("div",{role:"tree"},A.createElement("input",{style:_,disabled:Te===!1||te,tabIndex:Te!==!1?We:null,onKeyDown:Pe,onFocus:ve,onBlur:ze,value:"",onChange:Q})),A.createElement(re.a,Object.assign({},Y,{data:Kt,itemKey:N,height:Me,fullHeight:!1,virtual:ue,itemHeight:$e,prefixCls:"".concat(I,"-list"),ref:W}),function(Mt){var hn=Mt.pos,Jt=Mt.data,Wt=Jt.key,nn=Object(z.a)(Jt,["key"]),Rt=Mt.isStart,tt=Mt.isEnd,Ut=Object(U.e)(Wt,hn);delete nn.children;var pn=Object(U.f)(Ut,Yt);return A.createElement(Z,Object.assign({},nn,pn,{active:Re&&Wt===Re.data.key,pos:hn,data:Mt.data,isStart:Rt,isEnd:tt,motion:De,motionNodes:Wt===P?Pt:null,motionType:pt,onMotionStart:ke,onMotionEnd:It,treeNodeRequiredProps:Yt,onMouseMove:function(){He(null)}}))}))},H=A.forwardRef(K);H.displayName="NodeList";var u=H,s=v("NvD2"),E=function(be){Object(ie.a)(pe,be);var de=Object(B.a)(pe);function pe(){var I;return Object(je.a)(this,pe),I=de.apply(this,arguments),I.destroyed=!1,I.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},I.listRef=A.createRef(),I.onNodeDragStart=function(g,T){var b=I.state,L=b.expandedKeys,d=b.keyEntities,h=I.props.onDragStart,f=T.props.eventKey;I.dragNode=T;var y=Object(le.b)(L,f);I.setState({dragging:!0,dragNodesKeys:Object(le.g)(f,d)}),I.setExpandedKeys(y),h&&h({event:g,node:Object(U.b)(T.props)})},I.onNodeDragEnter=function(g,T){var b=I.state,L=b.expandedKeys,d=b.keyEntities,h=b.dragNodesKeys,f=I.props.onDragEnter,y=T.props,G=y.pos,j=y.eventKey;if(!I.dragNode||h.indexOf(j)!==-1)return;var te=Object(le.c)(g,T);if(I.dragNode.props.eventKey===j&&te===0){I.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){I.setState({dragOverNodeKey:j,dropPosition:te}),I.delayedDragEnterLogic||(I.delayedDragEnterLogic={}),Object.keys(I.delayedDragEnterLogic).forEach(function(Ee){clearTimeout(I.delayedDragEnterLogic[Ee])}),I.delayedDragEnterLogic[G]=window.setTimeout(function(){if(!I.state.dragging)return;var Ee=Object(xe.a)(L),Le=d[j];Le&&(Le.children||[]).length&&(Ee=Object(le.a)(L,j)),"expandedKeys"in I.props||I.setExpandedKeys(Ee),f&&f({event:g,node:Object(U.b)(T.props),expandedKeys:Ee})},400)},0)},I.onNodeDragOver=function(g,T){var b=I.state.dragNodesKeys,L=I.props.onDragOver,d=T.props.eventKey;if(b.indexOf(d)!==-1)return;if(I.dragNode&&d===I.state.dragOverNodeKey){var h=Object(le.c)(g,T);if(h===I.state.dropPosition)return;I.setState({dropPosition:h})}L&&L({event:g,node:Object(U.b)(T.props)})},I.onNodeDragLeave=function(g,T){var b=I.props.onDragLeave;I.setState({dragOverNodeKey:""}),b&&b({event:g,node:Object(U.b)(T.props)})},I.onNodeDragEnd=function(g,T){var b=I.props.onDragEnd;I.setState({dragOverNodeKey:""}),I.cleanDragState(),b&&b({event:g,node:Object(U.b)(T.props)}),I.dragNode=null},I.onNodeDrop=function(g,T){var b=I.state,L=b.dragNodesKeys,d=L===void 0?[]:L,h=b.dropPosition,f=I.props.onDrop,y=T.props,G=y.eventKey,j=y.pos;if(I.setState({dragOverNodeKey:""}),I.cleanDragState(),d.indexOf(G)!==-1){Object(ne.a)(!1,"Can not drop to dragNode(include it's children node)");return}var te=Object(le.k)(j),Ee={event:g,node:Object(U.b)(T.props),dragNode:I.dragNode?Object(U.b)(I.dragNode.props):null,dragNodesKeys:d.slice(),dropPosition:h+Number(te[te.length-1]),dropToGap:!1};h!==0&&(Ee.dropToGap=!0),f&&f(Ee),I.dragNode=null},I.cleanDragState=function(){var g=I.state.dragging;g&&I.setState({dragging:!1})},I.onNodeClick=function(g,T){var b=I.props.onClick;b&&b(g,T)},I.onNodeDoubleClick=function(g,T){var b=I.props.onDoubleClick;b&&b(g,T)},I.onNodeSelect=function(g,T){var b=I.state.selectedKeys,L=I.state.keyEntities,d=I.props,h=d.onSelect,f=d.multiple,y=T.selected,G=T.key,j=!y;j?f?b=Object(le.a)(b,G):b=[G]:b=Object(le.b)(b,G);var te=b.map(function(Ee){var Le=L[Ee];return Le?Le.node:null}).filter(function(Ee){return Ee});I.setUncontrolledState({selectedKeys:b}),h&&h(b,{event:"select",selected:j,node:T,selectedNodes:te,nativeEvent:g.nativeEvent})},I.onNodeCheck=function(g,T,b){var L=I.state,d=L.keyEntities,h=L.checkedKeys,f=L.halfCheckedKeys,y=I.props,G=y.checkStrictly,j=y.onCheck,te=T.key,Ee,Le={event:"check",node:T,checked:b,nativeEvent:g.nativeEvent};if(G){var Ie=b?Object(le.a)(h,te):Object(le.b)(h,te),De=Object(le.b)(f,te);Ee={checked:Ie,halfChecked:De},Le.checkedNodes=Ie.map(function(Fe){return d[Fe]}).filter(function(Fe){return Fe}).map(function(Fe){return Fe.node}),I.setUncontrolledState({checkedKeys:Ie})}else{var Me=Object(s.a)([].concat(Object(xe.a)(h),[te]),!0,d),$e=Me.checkedKeys,ue=Me.halfCheckedKeys;if(!b){var Te=new Set($e);Te.delete(te);var Re=Object(s.a)(Array.from(Te),{checked:!1,halfCheckedKeys:ue},d);$e=Re.checkedKeys,ue=Re.halfCheckedKeys}Ee=$e,Le.checkedNodes=[],Le.checkedNodesPositions=[],Le.halfCheckedKeys=ue,$e.forEach(function(Fe){var We=d[Fe];if(!We)return;var Pe=We.node,ve=We.pos;Le.checkedNodes.push(Pe),Le.checkedNodesPositions.push({node:Pe,pos:ve})}),I.setUncontrolledState({checkedKeys:$e},!1,{halfCheckedKeys:ue})}j&&j(Ee,Le)},I.onNodeLoad=function(g){return new Promise(function(T){I.setState(function(b){var L=b.loadedKeys,d=L===void 0?[]:L,h=b.loadingKeys,f=h===void 0?[]:h,y=I.props,G=y.loadData,j=y.onLoad,te=g.key;if(!G||d.indexOf(te)!==-1||f.indexOf(te)!==-1)return{};var Ee=G(g);return Ee.then(function(){var Le=I.state,Ie=Le.loadedKeys,De=Le.loadingKeys,Me=Object(le.a)(Ie,te),$e=Object(le.b)(De,te);j&&j(Me,{event:"load",node:g}),I.setUncontrolledState({loadedKeys:Me}),I.setState({loadingKeys:$e}),T()}),{loadingKeys:Object(le.a)(f,te)}})})},I.onNodeMouseEnter=function(g,T){var b=I.props.onMouseEnter;b&&b({event:g,node:T})},I.onNodeMouseLeave=function(g,T){var b=I.props.onMouseLeave;b&&b({event:g,node:T})},I.onNodeContextMenu=function(g,T){var b=I.props.onRightClick;b&&(g.preventDefault(),b({event:g,node:T}))},I.onFocus=function(){var g=I.props.onFocus;I.setState({focused:!0}),g&&g.apply(void 0,arguments)},I.onBlur=function(){var g=I.props.onBlur;I.setState({focused:!1}),I.onActiveChange(null),g&&g.apply(void 0,arguments)},I.getTreeNodeRequiredProps=function(){var g=I.state,T=g.expandedKeys,b=g.selectedKeys,L=g.loadedKeys,d=g.loadingKeys,h=g.checkedKeys,f=g.halfCheckedKeys,y=g.dragOverNodeKey,G=g.dropPosition,j=g.keyEntities;return{expandedKeys:T||[],selectedKeys:b||[],loadedKeys:L||[],loadingKeys:d||[],checkedKeys:h||[],halfCheckedKeys:f||[],dragOverNodeKey:y,dropPosition:G,keyEntities:j}},I.setExpandedKeys=function(g){var T=I.state.treeData,b=Object(U.d)(T,g);I.setUncontrolledState({expandedKeys:g,flattenNodes:b},!0)},I.onNodeExpand=function(g,T){var b=I.state.expandedKeys,L=I.state.listChanging,d=I.props,h=d.onExpand,f=d.loadData,y=T.key,G=T.expanded;if(L)return;var j=b.indexOf(y),te=!G;if(Object(ne.a)(G&&j!==-1||!G&&j===-1,"Expand state not sync with index check"),te?b=Object(le.a)(b,y):b=Object(le.b)(b,y),I.setExpandedKeys(b),h&&h(b,{node:T,expanded:te,nativeEvent:g.nativeEvent}),te&&f){var Ee=I.onNodeLoad(T);Ee&&Ee.then(function(){var Le=Object(U.d)(I.state.treeData,b);I.setUncontrolledState({flattenNodes:Le})})}},I.onListChangeStart=function(){I.setUncontrolledState({listChanging:!0})},I.onListChangeEnd=function(){setTimeout(function(){I.setUncontrolledState({listChanging:!1})})},I.onActiveChange=function(g){var T=I.state.activeKey,b=I.props.onActiveChange;if(T===g)return;I.setState({activeKey:g}),g!==null&&I.scrollTo({key:g}),b&&b(g)},I.getActiveItem=function(){var g=I.state,T=g.activeKey,b=g.flattenNodes;return T===null?null:b.find(function(L){var d=L.data.key;return d===T})||null},I.offsetActiveKey=function(g){var T=I.state,b=T.flattenNodes,L=T.activeKey,d=b.findIndex(function(y){var G=y.data.key;return G===L});d===-1&&g<0&&(d=b.length),d=(d+g+b.length)%b.length;var h=b[d];if(h){var f=h.data.key;I.onActiveChange(f)}else I.onActiveChange(null)},I.onKeyDown=function(g){var T=I.state,b=T.activeKey,L=T.expandedKeys,d=T.checkedKeys,h=I.props,f=h.onKeyDown,y=h.checkable,G=h.selectable;switch(g.which){case k.a.UP:{I.offsetActiveKey(-1),g.preventDefault();break}case k.a.DOWN:{I.offsetActiveKey(1),g.preventDefault();break}}var j=I.getActiveItem();if(j&&j.data){var te=I.getTreeNodeRequiredProps(),Ee=j.data.isLeaf===!1||!!(j.data.children||[]).length,Le=Object(U.b)(Object(Oe.a)(Object(Oe.a)({},Object(U.f)(b,te)),{},{data:j.data,active:!0}));switch(g.which){case k.a.LEFT:{Ee&&L.includes(b)?I.onNodeExpand({},Le):j.parent&&I.onActiveChange(j.parent.data.key),g.preventDefault();break}case k.a.RIGHT:{Ee&&!L.includes(b)?I.onNodeExpand({},Le):j.children&&j.children.length&&I.onActiveChange(j.children[0].data.key),g.preventDefault();break}case k.a.ENTER:case k.a.SPACE:{y&&!Le.disabled&&Le.checkable!==!1&&!Le.disableCheckbox?I.onNodeCheck({},Le,!d.includes(b)):!y&&G&&!Le.disabled&&Le.selectable!==!1&&I.onNodeSelect({},Le);break}}}f&&f(g)},I.setUncontrolledState=function(g){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(I.destroyed)return;var L=!1,d=!0,h={};Object.keys(g).forEach(function(f){if(f in I.props){d=!1;return}L=!0,h[f]=g[f]}),L&&(!T||d)&&I.setState(Object(Oe.a)(Object(Oe.a)({},h),b))},I.scrollTo=function(g){I.listRef.current.scrollTo(g)},I}return Object(Ce.a)(pe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var g,T=this.state,b=T.focused,L=T.flattenNodes,d=T.keyEntities,h=T.dragging,f=T.activeKey,y=this.props,G=y.prefixCls,j=y.className,te=y.style,Ee=y.showLine,Le=y.focusable,Ie=y.tabIndex,De=Ie===void 0?0:Ie,Me=y.selectable,$e=y.showIcon,ue=y.icon,Te=y.switcherIcon,Re=y.draggable,Fe=y.checkable,We=y.checkStrictly,Pe=y.disabled,ve=y.motion,ze=y.loadData,He=y.filterTreeNode,ke=y.height,Ue=y.itemHeight,Y=y.virtual,W=y.titleRender,D=y.onContextMenu,m=Object(le.f)(this.props);return A.createElement(Ae.a.Provider,{value:{prefixCls:G,selectable:Me,showIcon:$e,icon:ue,switcherIcon:Te,draggable:Re,checkable:Fe,checkStrictly:We,disabled:Pe,keyEntities:d,loadData:ze,filterTreeNode:He,titleRender:W,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}},A.createElement("div",{className:me()(G,j,(g={},Object(X.a)(g,"".concat(G,"-show-line"),Ee),Object(X.a)(g,"".concat(G,"-focused"),b),Object(X.a)(g,"".concat(G,"-active-focused"),f!==null),g))},A.createElement(u,Object.assign({ref:this.listRef,prefixCls:G,style:te,data:L,disabled:Pe,selectable:Me,checkable:!!Fe,motion:ve,dragging:h,height:ke,itemHeight:Ue,virtual:Y,focusable:Le,focused:b,tabIndex:De,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:D},this.getTreeNodeRequiredProps(),m))))}}],[{key:"getDerivedStateFromProps",value:function(g,T){var b=T.prevProps,L={prevProps:g};function d(ue){return!b&&ue in g||b&&b[ue]!==g[ue]}var h;if(d("treeData")?h=g.treeData:d("children")&&(Object(ne.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),h=Object(U.c)(g.children)),h){L.treeData=h;var f=Object(U.a)(h);L.keyEntities=Object(Oe.a)(Object(X.a)({},P,oe),f.keyEntities)}var y=L.keyEntities||T.keyEntities;if(d("expandedKeys")||b&&d("autoExpandParent"))L.expandedKeys=g.autoExpandParent||!b&&g.defaultExpandParent?Object(le.e)(g.expandedKeys,y):g.expandedKeys;else if(!b&&g.defaultExpandAll){var G=Object(Oe.a)({},y);delete G[P],L.expandedKeys=Object.keys(G).map(function(ue){return G[ue].key})}else!b&&g.defaultExpandedKeys&&(L.expandedKeys=g.autoExpandParent||g.defaultExpandParent?Object(le.e)(g.defaultExpandedKeys,y):g.defaultExpandedKeys);if(L.expandedKeys||delete L.expandedKeys,h||L.expandedKeys){var j=Object(U.d)(h||T.treeData,L.expandedKeys||T.expandedKeys);L.flattenNodes=j}if(g.selectable&&(d("selectedKeys")?L.selectedKeys=Object(le.d)(g.selectedKeys,g):!b&&g.defaultSelectedKeys&&(L.selectedKeys=Object(le.d)(g.defaultSelectedKeys,g))),g.checkable){var te;if(d("checkedKeys")?te=Object(le.j)(g.checkedKeys)||{}:!b&&g.defaultCheckedKeys?te=Object(le.j)(g.defaultCheckedKeys)||{}:h&&(te=Object(le.j)(g.checkedKeys)||{checkedKeys:T.checkedKeys,halfCheckedKeys:T.halfCheckedKeys}),te){var Ee=te,Le=Ee.checkedKeys,Ie=Le===void 0?[]:Le,De=Ee.halfCheckedKeys,Me=De===void 0?[]:De;if(!g.checkStrictly){var $e=Object(s.a)(Ie,!0,y);Ie=$e.checkedKeys,Me=$e.halfCheckedKeys}L.checkedKeys=Ie,L.halfCheckedKeys=Me}}return d("loadedKeys")&&(L.loadedKeys=g.loadedKeys),L}}]),pe}(A.Component);E.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:[]},E.TreeNode=we.a;var R=E,ee=Ge.b=R},gJ3r:function(ct,Ge,v){"use strict";v.d(Ge,"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(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return S});var X=v("q1tI"),Oe=v.n(X),xe=v("TSYQ"),je=v.n(xe),Ce={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},ie=function(K){var H=K.map(function(){return Object(X.useRef)()}),u=Object(X.useRef)();return Object(X.useEffect)(function(){var s=Date.now(),E=!1;Object.keys(H).forEach(function(R){var ee=H[R].current;if(!ee)return;E=!0;var be=ee.style;be.transitionDuration=".3s, .3s, .3s, .06s",u.current&&s-u.current<100&&(be.transitionDuration="0s, 0s")}),E&&(u.current=Date.now())}),[H]};function B(){return B=Object.assign||function(J){for(var K=1;K<arguments.length;K++){var H=arguments[K];for(var u in H)Object.prototype.hasOwnProperty.call(H,u)&&(J[u]=H[u])}return J},B.apply(this,arguments)}function A(J,K){return Ae(J)||me(J,K)||ne(J,K)||k()}function k(){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 ne(J,K){if(!J)return;if(typeof J=="string")return q(J,K);var H=Object.prototype.toString.call(J).slice(8,-1);if(H==="Object"&&J.constructor&&(H=J.constructor.name),H==="Map"||H==="Set")return Array.from(J);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return q(J,K)}function q(J,K){(K==null||K>J.length)&&(K=J.length);for(var H=0,u=new Array(K);H<K;H++)u[H]=J[H];return u}function me(J,K){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(J)))return;var H=[],u=!0,s=!1,E=void 0;try{for(var R=J[Symbol.iterator](),ee;!(u=(ee=R.next()).done)&&!(H.push(ee.value),K&&H.length===K);u=!0);}catch(be){s=!0,E=be}finally{try{!u&&R.return!=null&&R.return()}finally{if(s)throw E}}return H}function Ae(J){if(Array.isArray(J))return J}function le(J,K){if(J==null)return{};var H=U(J,K),u,s;if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(J);for(s=0;s<E.length;s++){if(u=E[s],K.indexOf(u)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(J,u))continue;H[u]=J[u]}}return H}function U(J,K){if(J==null)return{};var H={},u=Object.keys(J),s,E;for(E=0;E<u.length;E++){if(s=u[E],K.indexOf(s)>=0)continue;H[s]=J[s]}return H}var M=function(K){var H=K.className,u=K.percent,s=K.prefixCls,E=K.strokeColor,R=K.strokeLinecap,ee=K.strokeWidth,be=K.style,de=K.trailColor,pe=K.trailWidth,I=K.transition,g=le(K,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete g.gapPosition;var T=Array.isArray(u)?u:[u],b=Array.isArray(E)?E:[E],L=ie(T),d=A(L,1),h=d[0],f=ee/2,y=100-ee/2,G="M ".concat(R==="round"?f:0,",").concat(f,`
|
|
L `).concat(R==="round"?y:100,",").concat(f),j="0 0 100 ".concat(ee),te=0;return Oe.a.createElement("svg",B({className:je()("".concat(s,"-line"),H),viewBox:j,preserveAspectRatio:"none",style:be},g),Oe.a.createElement("path",{className:"".concat(s,"-line-trail"),d:G,strokeLinecap:R,stroke:de,strokeWidth:pe||ee,fillOpacity:"0"}),T.map(function(Ee,Le){var Ie={strokeDasharray:"".concat(Ee,"px, 100px"),strokeDashoffset:"-".concat(te,"px"),transition:I||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},De=b[Le]||b[b.length-1];return te+=Ee,Oe.a.createElement("path",{key:Le,className:"".concat(s,"-line-path"),d:G,strokeLinecap:R,stroke:De,strokeWidth:ee,fillOpacity:"0",ref:h[Le],style:Ie})}))};M.defaultProps=Ce;var z=M;function re(){return re=Object.assign||function(J){for(var K=1;K<arguments.length;K++){var H=arguments[K];for(var u in H)Object.prototype.hasOwnProperty.call(H,u)&&(J[u]=H[u])}return J},re.apply(this,arguments)}function ae(J,K){return he(J)||Z(J,K)||Ne(J,K)||we()}function we(){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 Ne(J,K){if(!J)return;if(typeof J=="string")return fe(J,K);var H=Object.prototype.toString.call(J).slice(8,-1);if(H==="Object"&&J.constructor&&(H=J.constructor.name),H==="Map"||H==="Set")return Array.from(J);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return fe(J,K)}function fe(J,K){(K==null||K>J.length)&&(K=J.length);for(var H=0,u=new Array(K);H<K;H++)u[H]=J[H];return u}function Z(J,K){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(J)))return;var H=[],u=!0,s=!1,E=void 0;try{for(var R=J[Symbol.iterator](),ee;!(u=(ee=R.next()).done)&&!(H.push(ee.value),K&&H.length===K);u=!0);}catch(be){s=!0,E=be}finally{try{!u&&R.return!=null&&R.return()}finally{if(s)throw E}}return H}function he(J){if(Array.isArray(J))return J}function se(J,K){if(J==null)return{};var H=_(J,K),u,s;if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(J);for(s=0;s<E.length;s++){if(u=E[s],K.indexOf(u)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(J,u))continue;H[u]=J[u]}}return H}function _(J,K){if(J==null)return{};var H={},u=Object.keys(J),s,E;for(E=0;E<u.length;E++){if(s=u[E],K.indexOf(s)>=0)continue;H[s]=J[s]}return H}var Q=0;function P(J){return+J.replace("%","")}function w(J){return Array.isArray(J)?J:[J]}function oe(J,K,H,u){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,E=arguments.length>5?arguments[5]:void 0,R=50-u/2,ee=0,be=-R,de=0,pe=-2*R;switch(E){case"left":ee=-R,be=0,de=2*R,pe=0;break;case"right":ee=R,be=0,de=-2*R,pe=0;break;case"bottom":be=R,pe=2*R;break;default:}var I="M 50,50 m ".concat(ee,",").concat(be,`
|
|
a `).concat(R,",").concat(R," 0 1 1 ").concat(de,",").concat(-pe,`
|
|
a `).concat(R,",").concat(R," 0 1 1 ").concat(-de,",").concat(pe),g=Math.PI*2*R,T={stroke:H,strokeDasharray:"".concat(K/100*(g-s),"px ").concat(g,"px"),strokeDashoffset:"-".concat(s/2+J/100*(g-s),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:I,pathStyle:T}}var V=function(K){var H=K.prefixCls,u=K.strokeWidth,s=K.trailWidth,E=K.gapDegree,R=K.gapPosition,ee=K.trailColor,be=K.strokeLinecap,de=K.style,pe=K.className,I=K.strokeColor,g=K.percent,T=se(K,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),b=Object(X.useMemo)(function(){return Q+=1,Q},[]),L=oe(0,100,ee,u,E,R),d=L.pathString,h=L.pathStyle,f=w(g),y=w(I),G=y.find(function(Ie){return Object.prototype.toString.call(Ie)==="[object Object]"}),j=ie(f),te=ae(j,1),Ee=te[0],Le=function(){var De=0;return f.map(function(Me,$e){var ue=y[$e]||y[y.length-1],Te=Object.prototype.toString.call(ue)==="[object Object]"?"url(#".concat(H,"-gradient-").concat(b,")"):"",Re=oe(De,Me,ue,u,E,R);return De+=Me,Oe.a.createElement("path",{key:$e,className:"".concat(H,"-circle-path"),d:Re.pathString,stroke:Te,strokeLinecap:be,strokeWidth:u,opacity:Me===0?0:1,fillOpacity:"0",style:Re.pathStyle,ref:Ee[$e]})})};return Oe.a.createElement("svg",re({className:je()("".concat(H,"-circle"),pe),viewBox:"0 0 100 100",style:de},T),G&&Oe.a.createElement("defs",null,Oe.a.createElement("linearGradient",{id:"".concat(H,"-gradient-").concat(b),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(G).sort(function(Ie,De){return P(Ie)-P(De)}).map(function(Ie,De){return Oe.a.createElement("stop",{key:De,offset:Ie,stopColor:G[Ie]})}))),Oe.a.createElement("path",{className:"".concat(H,"-circle-trail"),d,stroke:ee,strokeLinecap:be,strokeWidth:s||u,fillOpacity:"0",style:h}),Le().reverse())};V.defaultProps=Ce;var S=V,N={Line:z,Circle:S}},hxT0:function(ct,Ge,v){ct.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(ct,Ge,v){},lZu9:function(ct,Ge,v){(function(X){X(v("VrN/"),v("1eCo"),v("8EBN"))})(function(X){"use strict";X.defineMode("markdown",function(Oe,xe){var je=X.getMode(Oe,"text/html"),Ce=je.name=="null";function ie(u){if(X.findModeByName){var s=X.findModeByName(u);s&&(u=s.mime||s.mimes[0])}var E=X.getMode(Oe,u);return E.name=="null"?null:E}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 A in B)B.hasOwnProperty(A)&&xe.tokenTypeOverrides[A]&&(B[A]=xe.tokenTypeOverrides[A]);var k=/^([*\-_])(?:\s*\1){2,}\s*$/,ne=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,q=/^\[(x| )\](?=\s)/i,me=xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ae=/^ {0,3}(?:\={1,}|-{2,})\s*$/,le=/^[^#!\[\]*_\\<>` "'(~:]+/,U=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,M=/^\s*\[[^\]]+?\]:.*$/,z=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,re=" ";function ae(u,s,E){return s.f=s.inline=E,E(u,s)}function we(u,s,E){return s.f=s.block=E,E(u,s)}function Ne(u){return!u||!/\S/.test(u.string)}function fe(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=Ce;if(!s){var E=X.innerMode(je,u.htmlState);s=E.mode.name=="xml"&&E.state.tagStart===null&&!E.state.context&&E.state.tokenize.isInText}s&&(u.f=P,u.block=Z,u.htmlState=null)}return u.trailingSpace=0,u.trailingSpaceNewLine=!1,u.prevLine=u.thisLine,u.thisLine={stream:null},null}function Z(u,s){var E=u.column()===s.indentation,R=Ne(s.prevLine.stream),ee=s.indentedCode,be=s.prevLine.hr,de=s.list!==!1,pe=(s.listStack[s.listStack.length-1]||0)+3;s.indentedCode=!1;var I=s.indentation;if(s.indentationDiff===null&&(s.indentationDiff=s.indentation,de)){for(s.list=null;I<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=I-s.listStack[s.listStack.length-1])}var g=!R&&!be&&!s.prevLine.header&&(!de||!ee)&&!s.prevLine.fencedCodeEnd,T=(s.list===!1||be||R)&&s.indentation<=pe&&u.match(k),b=null;if(s.indentationDiff>=4&&(ee||s.prevLine.fencedCodeEnd||s.prevLine.header||R))return u.skipToEnd(),s.indentedCode=!0,B.code;if(u.eatSpace())return null;if(E&&s.indentation<=pe&&(b=u.match(me))&&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,_(s);if(s.indentation<=pe&&u.eat(">"))return s.quote=E?1:s.quote+1,xe.highlightFormatting&&(s.formatting="quote"),u.eatSpace(),_(s);if(!T&&!s.setext&&E&&s.indentation<=pe&&(b=u.match(ne))){var L=b[1]?"ol":"ul";return s.indentation=I+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(E&&s.indentation<=pe&&(b=u.match(U,!0)))return s.quote=0,s.fencedEndRE=new RegExp(b[1]+"+ *$"),s.localMode=xe.fencedCodeBlockHighlighting&&ie(b[2]||xe.fencedCodeBlockDefaultMode),s.localMode&&(s.localState=X.startState(s.localMode)),s.f=s.block=se,xe.highlightFormatting&&(s.formatting="code-block"),s.code=-1,_(s);if(s.setext||(!g||!de)&&!s.quote&&s.list===!1&&!s.code&&!T&&!M.test(u.string)&&(b=u.lookAhead(1))&&(b=b.match(Ae)))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,_(s);if(T)return u.skipToEnd(),s.hr=!0,s.thisLine.hr=!0,B.hr;if(u.peek()==="[")return ae(u,s,N)}return ae(u,s,s.inline)}function he(u,s){var E=je.token(u,s.htmlState);if(!Ce){var R=X.innerMode(je,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=P,s.block=Z,s.htmlState=null)}return E}function se(u,s){var E=s.listStack[s.listStack.length-1]||0,R=s.indentation<E,ee=E+3;if(s.fencedEndRE&&s.indentation<=ee&&(R||u.match(s.fencedEndRE))){xe.highlightFormatting&&(s.formatting="code-block");var be;return R||(be=_(s)),s.localMode=s.localState=null,s.block=Z,s.f=P,s.fencedEndRE=null,s.code=0,s.thisLine.fencedCodeEnd=!0,R?we(u,s,s.block):be}else return s.localMode?s.localMode.token(u,s.localState):(u.skipToEnd(),B.code)}function _(u){var s=[];if(u.formatting){s.push(B.formatting),typeof u.formatting=="string"&&(u.formatting=[u.formatting]);for(var E=0;E<u.formatting.length;E++)s.push(B.formatting+"-"+u.formatting[E]),u.formatting[E]==="header"&&s.push(B.formatting+"-"+u.formatting[E]+"-"+u.header),u.formatting[E]==="quote"&&(!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=u.quote?s.push(B.formatting+"-"+u.formatting[E]+"-"+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 Q(u,s){return u.match(le,!0)?_(s):void 0}function P(u,s){var E=s.text(u,s);if(typeof E!="undefined")return E;if(s.list)return s.list=null,_(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,_(s)}if(s.taskOpen=!1,s.taskClosed=!1,s.header&&u.match(/^#+$/,!0))return xe.highlightFormatting&&(s.formatting="header"),_(s);var ee=u.next();if(s.linkTitle){s.linkTitle=!1;var be=ee;ee==="("&&(be=")"),be=(be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var de="^\\s*(?:[^"+be+"\\\\]+|\\\\\\\\|\\\\.)"+be;if(u.match(new RegExp(de),!0))return B.linkHref}if(ee==="`"){var pe=s.formatting;xe.highlightFormatting&&(s.formatting="code"),u.eatWhile("`");var I=u.current().length;if(s.code==0&&(!s.quote||I==1))return s.code=I,_(s);if(I==s.code){var g=_(s);return s.code=0,g}else return s.formatting=pe,_(s)}else if(s.code)return _(s);if(ee==="\\"&&(u.next(),xe.highlightFormatting)){var T=_(s),b=B.formatting+"-escape";return T?T+" "+b:b}if(ee==="!"&&u.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return s.imageMarker=!0,s.image=!0,xe.highlightFormatting&&(s.formatting="image"),_(s);if(ee==="["&&s.imageMarker&&u.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return s.imageMarker=!1,s.imageAltText=!0,xe.highlightFormatting&&(s.formatting="image"),_(s);if(ee==="]"&&s.imageAltText){xe.highlightFormatting&&(s.formatting="image");var T=_(s);return s.imageAltText=!1,s.image=!1,s.inline=s.f=oe,T}if(ee==="["&&!s.image)return s.linkText&&u.match(/^.*?\]/)||(s.linkText=!0,xe.highlightFormatting&&(s.formatting="link")),_(s);if(ee==="]"&&s.linkText){xe.highlightFormatting&&(s.formatting="link");var T=_(s);return s.linkText=!1,s.inline=s.f=u.match(/\(.*?\)| ?\[.*?\]/,!1)?oe:P,T}if(ee==="<"&&u.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){s.f=s.inline=w,xe.highlightFormatting&&(s.formatting="link");var T=_(s);return T?T+=" ":T="",T+B.linkInline}if(ee==="<"&&u.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){s.f=s.inline=w,xe.highlightFormatting&&(s.formatting="link");var T=_(s);return T?T+=" ":T="",T+B.linkEmail}if(xe.xml&&ee==="<"&&u.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var L=u.string.indexOf(">",u.pos);if(L!=-1){var d=u.string.substring(u.start,L);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(d)&&(s.md_inside=!0)}return u.backUp(1),s.htmlState=X.startState(je),we(u,s,he)}if(xe.xml&&ee==="<"&&u.match(/^\/\w*?>/))return s.md_inside=!1,"tag";if(ee==="*"||ee==="_"){for(var h=1,f=u.pos==1?" ":u.string.charAt(u.pos-2);h<3&&u.eat(ee);)h++;var y=u.peek()||" ",G=!/\s/.test(y)&&(!z.test(y)||/\s/.test(f)||z.test(f)),j=!/\s/.test(f)&&(!z.test(f)||/\s/.test(y)||z.test(y)),te=null,Ee=null;if(h%2&&(!s.em&&G&&(ee==="*"||!j||z.test(f))?te=!0:s.em==ee&&j&&(ee==="*"||!G||z.test(y))&&(te=!1)),h>1&&(!s.strong&&G&&(ee==="*"||!j||z.test(f))?Ee=!0:s.strong==ee&&j&&(ee==="*"||!G||z.test(y))&&(Ee=!1)),Ee!=null||te!=null){xe.highlightFormatting&&(s.formatting=te==null?"strong":Ee==null?"em":"strong em"),te===!0&&(s.em=ee),Ee===!0&&(s.strong=ee);var g=_(s);return te===!1&&(s.em=!1),Ee===!1&&(s.strong=!1),g}}else if(ee===" "&&(u.eat("*")||u.eat("_"))){if(u.peek()===" ")return _(s);u.backUp(1)}if(xe.strikethrough){if(ee==="~"&&u.eatWhile(ee)){if(s.strikethrough){xe.highlightFormatting&&(s.formatting="strikethrough");var g=_(s);return s.strikethrough=!1,g}else if(u.match(/^[^\s]/,!1))return s.strikethrough=!0,xe.highlightFormatting&&(s.formatting="strikethrough"),_(s)}else if(ee===" "&&u.match(/^~~/,!0)){if(u.peek()===" ")return _(s);u.backUp(2)}}if(xe.emoji&&ee===":"&&u.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){s.emoji=!0,xe.highlightFormatting&&(s.formatting="emoji");var Le=_(s);return s.emoji=!1,Le}return ee===" "&&(u.match(/^ +$/,!1)?s.trailingSpace++:s.trailingSpace&&(s.trailingSpaceNewLine=!0)),_(s)}function w(u,s){var E=u.next();if(E===">"){s.f=s.inline=P,xe.highlightFormatting&&(s.formatting="link");var R=_(s);return R?R+=" ":R="",R+B.linkInline}return u.match(/^[^>]+/,!0),B.linkInline}function oe(u,s){if(u.eatSpace())return null;var E=u.next();return E==="("||E==="["?(s.f=s.inline=S(E==="("?")":"]"),xe.highlightFormatting&&(s.formatting="link-string"),s.linkHref=!0,_(s)):"error"}var V={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function S(u){return function(s,E){var R=s.next();if(R===u){E.f=E.inline=P,xe.highlightFormatting&&(E.formatting="link-string");var ee=_(E);return E.linkHref=!1,ee}return s.match(V[u]),E.linkHref=!0,_(E)}}function N(u,s){return u.match(/^([^\]\\]|\\.)*\]:/,!1)?(s.f=J,u.next(),xe.highlightFormatting&&(s.formatting="link"),s.linkText=!0,_(s)):ae(u,s,P)}function J(u,s){if(u.match(/^\]:/,!0)){s.f=s.inline=K,xe.highlightFormatting&&(s.formatting="link");var E=_(s);return s.linkText=!1,E}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=P,B.linkHref+" url")}var H={startState:function(){return{f:Z,prevLine:{stream:null},thisLine:{stream:null},block:Z,htmlState:null,indentation:0,inline:P,text:Q,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(je,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 fe(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 E=u.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(s.indentation=E,s.indentationDiff=null,E>0)return null}}return s.f(u,s)},innerMode:function(u){return u.block==he?{state:u.htmlState,mode:je}:u.localState?{state:u.localState,mode:u.localMode}:{state:u,mode:H}},indent:function(u,s,E){return u.block==he&&je.indent?je.indent(u.htmlState,s,E):u.localState&&u.localMode.indent?u.localMode.indent(u.localState,s,E):X.Pass},blankLine:fe,getType:_,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),X.defineMIME("text/markdown","markdown"),X.defineMIME("text/x-markdown","markdown")})},osHv:function(ct,Ge,v){(function(X){X(v("VrN/"))})(function(X){"use strict";var Oe=X.Pos;function xe(z,re){return z.line-re.line||z.ch-re.ch}var je="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",Ce=je+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ie=new RegExp("<(/?)(["+je+"]["+Ce+"]*)","g");function B(z,re,ae,we){this.line=re,this.ch=ae,this.cm=z,this.text=z.getLine(re),this.min=we?Math.max(we.from,z.firstLine()):z.firstLine(),this.max=we?Math.min(we.to-1,z.lastLine()):z.lastLine()}function A(z,re){var ae=z.cm.getTokenTypeAt(Oe(z.line,re));return ae&&/\btag\b/.test(ae)}function k(z){return z.line>=z.max?void 0:(z.ch=0,z.text=z.cm.getLine(++z.line),!0)}function ne(z){return z.line<=z.min?void 0:(z.text=z.cm.getLine(--z.line),z.ch=z.text.length,!0)}function q(z){for(;;){var re=z.text.indexOf(">",z.ch);if(re==-1){if(k(z))continue;return}if(!A(z,re+1)){z.ch=re+1;continue}var ae=z.text.lastIndexOf("/",re),we=ae>-1&&!/\S/.test(z.text.slice(ae+1,re));return z.ch=re+1,we?"selfClose":"regular"}}function me(z){for(;;){var re=z.ch?z.text.lastIndexOf("<",z.ch-1):-1;if(re==-1){if(ne(z))continue;return}if(!A(z,re+1)){z.ch=re;continue}ie.lastIndex=re,z.ch=re;var ae=ie.exec(z.text);if(ae&&ae.index==re)return ae}}function Ae(z){for(;;){ie.lastIndex=z.ch;var re=ie.exec(z.text);if(!re){if(k(z))continue;return}if(!A(z,re.index+1)){z.ch=re.index+1;continue}return z.ch=re.index+re[0].length,re}}function le(z){for(;;){var re=z.ch?z.text.lastIndexOf(">",z.ch-1):-1;if(re==-1){if(ne(z))continue;return}if(!A(z,re+1)){z.ch=re;continue}var ae=z.text.lastIndexOf("/",re),we=ae>-1&&!/\S/.test(z.text.slice(ae+1,re));return z.ch=re+1,we?"selfClose":"regular"}}function U(z,re){for(var ae=[];;){var we=Ae(z),Ne,fe=z.line,Z=z.ch-(we?we[0].length:0);if(!we||!(Ne=q(z)))return;if(Ne=="selfClose")continue;if(we[1]){for(var he=ae.length-1;he>=0;--he)if(ae[he]==we[2]){ae.length=he;break}if(he<0&&(!re||re==we[2]))return{tag:we[2],from:Oe(fe,Z),to:Oe(z.line,z.ch)}}else ae.push(we[2])}}function M(z,re){for(var ae=[];;){var we=le(z);if(!we)return;if(we=="selfClose"){me(z);continue}var Ne=z.line,fe=z.ch,Z=me(z);if(!Z)return;if(Z[1])ae.push(Z[2]);else{for(var he=ae.length-1;he>=0;--he)if(ae[he]==Z[2]){ae.length=he;break}if(he<0&&(!re||re==Z[2]))return{tag:Z[2],from:Oe(z.line,z.ch),to:Oe(Ne,fe)}}}}X.registerHelper("fold","xml",function(z,re){for(var ae=new B(z,re.line,0);;){var we=Ae(ae);if(!we||ae.line!=re.line)return;var Ne=q(ae);if(!Ne)return;if(!we[1]&&Ne!="selfClose"){var fe=Oe(ae.line,ae.ch),Z=U(ae,we[2]);return Z&&xe(Z.from,fe)>0?{from:fe,to:Z.from}:null}}}),X.findMatchingTag=function(z,re,ae){var we=new B(z,re.line,re.ch,ae);if(we.text.indexOf(">")==-1&&we.text.indexOf("<")==-1)return;var Ne=q(we),fe=Ne&&Oe(we.line,we.ch),Z=Ne&&me(we);if(!Ne||!Z||xe(we,re)>0)return;var he={from:Oe(we.line,we.ch),to:fe,tag:Z[2]};return Ne=="selfClose"?{open:he,close:null,at:"open"}:Z[1]?{open:M(we,Z[2]),close:he,at:"close"}:(we=new B(z,fe.line,fe.ch,ae),{open:he,close:U(we,Z[2]),at:"open"})},X.findEnclosingTag=function(z,re,ae,we){for(var Ne=new B(z,re.line,re.ch,ae);;){var fe=M(Ne,we);if(!fe)break;var Z=new B(z,re.line,re.ch,ae),he=U(Z,fe.tag);if(he)return{open:fe,close:he}}},X.scanForClosingTag=function(z,re,ae,we){var Ne=new B(z,re.line,re.ch,we?{from:0,to:we}:null);return U(Ne,ae)}})},p5ED:function(ct,Ge,v){"use strict";var X=v("+L6B"),Oe=v("2/Rp"),xe=v("5Dmo"),je=v("3S7+"),Ce=v("k1fw"),ie=v("tJVT"),B=v("q1tI"),A=v.n(B),k=v("vHTk"),ne=v.n(k),q=v("yEEn"),me=v("ZW9T"),Ae=v("1vsH");Ge.a=function(le){var U=le.name,M=le.data,z=le.theme,re=le.type,ae=le.filename,we=le.monacoEditor,Ne=le.className,fe=le.style,Z=le.close,he=le.onClose,se=le.hasMask,_=Object(B.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Q=Object(ie.a)(_,2),P=Q[0],w=Q[1],oe=Object(B.useState)(""),V=Object(ie.a)(oe,2),S=V[0],N=V[1],J=Object(B.useRef)();ae&&(we.filename=ae),Object(B.useEffect)(function(){var u,s,E=(u=document.cookie)===null||u===void 0||((s=u.replace(/\s/g,""))===null||s===void 0)?void 0:s.split(";");E==null||E.map(function(R){var ee=R.split("=");ee[0]==="_educoder_session"&&N(ee[1])})},[]);var K=function(){if(M.startsWith("http")||M.startsWith("/")){H();return}Object(Ae.y)(ae||"educoder",M,ae)},H=function(){Object(Ae.w)(ae||U,M)};return console.log("data:",M,"fileanme:",ae," name:",U),A.a.createElement("div",{style:Object(Ce.a)({},fe||{}),className:"".concat(se&&ne.a.bgBlack," ").concat(re?ne.a.wrp:"hide")},Z&&A.a.createElement("div",{className:ne.a.close,ref:J},A.a.createElement(je.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return J.current}},A.a.createElement("span",{onClick:H},A.a.createElement("i",{className:"icon-quxiaozhiding"}))),A.a.createElement(je.a,{title:"\u5173\u95ED",getPopupContainer:function(){return J.current}},A.a.createElement("span",{className:"",onClick:he},A.a.createElement("i",{className:"icon-guanbi1"})))),A.a.createElement("div",{className:"".concat(ne.a[Ne]," ").concat(Ne," ").concat(ne.a.monaco," ").concat(re==="txt"?"show":"hide")},re==="txt"&&A.a.createElement(me.b,we)),re==="audio"&&A.a.createElement("audio",{src:"".concat(M!=null&&M.startsWith("/")||(M==null?void 0:M.indexOf("https://"))>-1?M:"data:audio/mp3;base64,").concat(M),autoPlay:!0}),re==="video"&&A.a.createElement(A.a.Fragment,null,M!=null&&M.startsWith("/")?A.a.createElement("video",{controls:!0,src:"".concat(M),autoPlay:!0}):A.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(M),autoPlay:!0})),re==="pdf"&&A.a.createElement("embed",{className:ne.a.embed,src:M}),re==="image"&&A.a.createElement(A.a.Fragment,null,A.a.createElement("img",{src:"".concat(M!=null&&M.startsWith("/")||(M==null?void 0:M.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(M)})),re==="other"&&A.a.createElement("div",null,A.a.createElement(Oe.a,{type:"primary",size:"large",onClick:K},A.a.createElement(q.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(re==="download"||re==="office")&&A.a.createElement(Oe.a,{type:"primary",size:"large",onClick:K},A.a.createElement(q.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(ct,Ge,v){},"rAM+":function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return Oe});var X=v("Qw5x");function Oe(xe,je){var Ce;if(typeof Symbol=="undefined"||xe[Symbol.iterator]==null){if(Array.isArray(xe)||(Ce=Object(X.a)(xe))||je&&xe&&typeof xe.length=="number"){Ce&&(xe=Ce);var ie=0,B=function(){};return{s:B,n:function(){return ie>=xe.length?{done:!0}:{done:!1,value:xe[ie++]}},e:function(me){throw me},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 A=!0,k=!1,ne;return{s:function(){Ce=xe[Symbol.iterator]()},n:function(){var me=Ce.next();return A=me.done,me},e:function(me){k=!0,ne=me},f:function(){try{!A&&Ce.return!=null&&Ce.return()}finally{if(k)throw ne}}}}},rUJ1:function(ct,Ge){const v=/[&<>"']/,X=/[&<>"']/g,Oe=/[<>"']|&(?!#?\w+;)/,xe=/[<>"']|&(?!#?\w+;)/g,je={"&":"&","<":"<",">":">",'"':""","'":"'"},Ce=se=>je[se];function ie(se,_){if(_){if(v.test(se))return se.replace(X,Ce)}else if(Oe.test(se))return se.replace(xe,Ce);return se}const B=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function A(se){return se.replace(B,(_,Q)=>(Q=Q.toLowerCase(),Q==="colon"?":":Q.charAt(0)==="#"?Q.charAt(1)==="x"?String.fromCharCode(parseInt(Q.substring(2),16)):String.fromCharCode(+Q.substring(1)):""))}const k=/(^|[^\[])\^/g;function ne(se,_){se=se.source||se,_=_||"";const Q={replace:(P,w)=>(w=w.source||w,w=w.replace(k,"$1"),se=se.replace(P,w),Q),getRegex:()=>new RegExp(se,_)};return Q}const q=/[^\w:]/g,me=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ae(se,_,Q){if(se){let P;try{P=decodeURIComponent(A(Q)).replace(q,"").toLowerCase()}catch(w){return null}if(P.indexOf("javascript:")===0||P.indexOf("vbscript:")===0||P.indexOf("data:")===0)return null}_&&!me.test(Q)&&(Q=re(_,Q));try{Q=encodeURI(Q).replace(/%25/g,"%")}catch(P){return null}return Q}const le={},U=/^[^:]+:\/*[^/]*$/,M=/^([^:]+:)[\s\S]*$/,z=/^([^:]+:\/*[^/]*)[\s\S]*$/;function re(se,_){le[" "+se]||(U.test(se)?le[" "+se]=se+"/":le[" "+se]=fe(se,"/",!0)),se=le[" "+se];const Q=se.indexOf(":")===-1;return _.substring(0,2)==="//"?Q?_:se.replace(M,"$1")+_:_.charAt(0)==="/"?Q?_:se.replace(z,"$1")+_:se+_}const ae={exec:function(){}};function we(se){let _=1,Q,P;for(;_<arguments.length;_++){Q=arguments[_];for(P in Q)Object.prototype.hasOwnProperty.call(Q,P)&&(se[P]=Q[P])}return se}function Ne(se,_){const Q=se.replace(/\|/g,(oe,V,S)=>{let N=!1,J=V;for(;--J>=0&&S[J]==="\\";)N=!N;return N?"|":" |"}),P=Q.split(/ \|/);let w=0;if(P.length>_)P.splice(_);else for(;P.length<_;)P.push("");for(;w<P.length;w++)P[w]=P[w].trim().replace(/\\\|/g,"|");return P}function fe(se,_,Q){const P=se.length;if(P===0)return"";let w=0;for(;w<P;){const oe=se.charAt(P-w-1);if(oe===_&&!Q)w++;else if(oe!==_&&Q)w++;else break}return se.substr(0,P-w)}function Z(se,_){if(se.indexOf(_[1])===-1)return-1;const Q=se.length;let P=0,w=0;for(;w<Q;w++)if(se[w]==="\\")w++;else if(se[w]===_[0])P++;else if(se[w]===_[1]&&(P--,P<0))return w;return-1}function he(se){se&&se.sanitize&&!se.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")}ct.exports={escape:ie,unescape:A,edit:ne,cleanUrl:Ae,resolveUrl:re,noopTest:ae,merge:we,splitCells:Ne,rtrim:fe,findClosingBracket:Z,checkSanitizeDeprecation:he}},sboe:function(ct,Ge,v){"use strict";v.d(Ge,"a",function(){return xe});var X=v("q1tI"),Oe=v.n(X),xe=X.createContext(null)},uK0f:function(ct,Ge,v){(function(X,Oe){ct.exports=Oe()})(this,function(){"use strict";function X(Oe,xe,je){je=je||{},je.childrenKeyName=je.childrenKeyName||"children";var Ce=Oe||[],ie=[],B=0;do{var A=Ce.filter(function(k){return xe(k,B)})[0];if(!A)break;ie.push(A),Ce=A[je.childrenKeyName]||[],B+=1}while(Ce.length>0);return ie}return X})},vHTk:function(ct,Ge,v){ct.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wMS7:function(ct,Ge,v){/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */(function(X,Oe){ct.exports=Oe()})(this,function(){"use strict";function X(f){if(Array.isArray(f)){for(var y=0,G=Array(f.length);y<f.length;y++)G[y]=f[y];return G}else return Array.from(f)}var Oe=Object.hasOwnProperty,xe=Object.setPrototypeOf,je=Object.isFrozen,Ce=Object.keys,ie=Object.freeze,B=Object.seal,A=Object.create,k=typeof Reflect!="undefined"&&Reflect,ne=k.apply,q=k.construct;ne||(ne=function(y,G,j){return y.apply(G,j)}),ie||(ie=function(y){return y}),B||(B=function(y){return y}),q||(q=function(y,G){return new(Function.prototype.bind.apply(y,[null].concat(X(G))))});var me=_(Array.prototype.forEach),Ae=_(Array.prototype.indexOf),le=_(Array.prototype.join),U=_(Array.prototype.pop),M=_(Array.prototype.push),z=_(Array.prototype.slice),re=_(String.prototype.toLowerCase),ae=_(String.prototype.match),we=_(String.prototype.replace),Ne=_(String.prototype.indexOf),fe=_(String.prototype.trim),Z=_(RegExp.prototype.test),he=Q(RegExp),se=Q(TypeError);function _(f){return function(y){for(var G=arguments.length,j=Array(G>1?G-1:0),te=1;te<G;te++)j[te-1]=arguments[te];return ne(f,y,j)}}function Q(f){return function(){for(var y=arguments.length,G=Array(y),j=0;j<y;j++)G[j]=arguments[j];return q(f,G)}}function P(f,y){xe&&xe(f,null);for(var G=y.length;G--;){var j=y[G];if(typeof j=="string"){var te=re(j);te!==j&&(je(y)||(y[G]=te),j=te)}f[j]=!0}return f}function w(f){var y=A(null),G=void 0;for(G in f)ne(Oe,f,[G])&&(y[G]=f[G]);return y}var oe=ie(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V=ie(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),S=ie(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=ie(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),J=ie(["#text"]),K=ie(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),H=ie(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u=ie(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),s=ie(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),E=B(/\{\{[\s\S]*|[\s\S]*\}\}/gm),R=B(/<%[\s\S]*|[\s\S]*%>/gm),ee=B(/^data-[\-\w.\u00B7-\uFFFF]/),be=B(/^aria-[\-\w]+$/),de=B(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pe=B(/^(?:\w+script|data):/i),I=B(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};function T(f){if(Array.isArray(f)){for(var y=0,G=Array(f.length);y<f.length;y++)G[y]=f[y];return G}else return Array.from(f)}var b=function(){return typeof window=="undefined"?null:window},L=function(y,G){if((typeof y=="undefined"?"undefined":g(y))!=="object"||typeof y.createPolicy!="function")return null;var j=null,te="data-tt-policy-suffix";G.currentScript&&G.currentScript.hasAttribute(te)&&(j=G.currentScript.getAttribute(te));var Ee="dompurify"+(j?"#"+j:"");try{return y.createPolicy(Ee,{createHTML:function(Ie){return Ie}})}catch(Le){return console.warn("TrustedTypes policy "+Ee+" could not be created."),null}};function d(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b(),y=function(_e){return d(_e)};if(y.version="2.0.15",y.removed=[],!f||!f.document||f.document.nodeType!==9)return y.isSupported=!1,y;var G=f.document,j=!1,te=f.document,Ee=f.DocumentFragment,Le=f.HTMLTemplateElement,Ie=f.Node,De=f.NodeFilter,Me=f.NamedNodeMap,$e=Me===void 0?f.NamedNodeMap||f.MozNamedAttrMap:Me,ue=f.Text,Te=f.Comment,Re=f.DOMParser,Fe=f.trustedTypes;if(typeof Le=="function"){var We=te.createElement("template");We.content&&We.content.ownerDocument&&(te=We.content.ownerDocument)}var Pe=L(Fe,G),ve=Pe&&Wt?Pe.createHTML(""):"",ze=te,He=ze.implementation,ke=ze.createNodeIterator,Ue=ze.getElementsByTagName,Y=ze.createDocumentFragment,W=G.importNode,D=w(te).documentMode?te.documentMode:{},m={};y.isSupported=He&&typeof He.createHTMLDocument!="undefined"&&D!==9;var x=E,C=R,O=ee,ce=be,ye=pe,Ke=I,rt=de,Qe=null,it=P({},[].concat(T(oe),T(V),T(S),T(N),T(J))),gt=null,xt=P({},[].concat(T(K),T(H),T(u),T(s))),lt=null,Pt=null,kt=!0,Et=!0,bt=!1,pt=!1,Ot=!1,It=!1,Kt=!1,Yt=!1,Mt=!1,hn=!1,Jt=!1,Wt=!1,nn=!0,Rt=!0,tt=!1,Ut={},pn=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),on=null,At=P({},["audio","video","img","source","image","track"]),an=null,Gt=P({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),wn=null,Xe=te.createElement("form"),ft=function(_e){if(wn&&wn===_e)return;(!_e||(typeof _e=="undefined"?"undefined":g(_e))!=="object")&&(_e={}),_e=w(_e),Qe="ALLOWED_TAGS"in _e?P({},_e.ALLOWED_TAGS):it,gt="ALLOWED_ATTR"in _e?P({},_e.ALLOWED_ATTR):xt,an="ADD_URI_SAFE_ATTR"in _e?P(w(Gt),_e.ADD_URI_SAFE_ATTR):Gt,on="ADD_DATA_URI_TAGS"in _e?P(w(At),_e.ADD_DATA_URI_TAGS):At,lt="FORBID_TAGS"in _e?P({},_e.FORBID_TAGS):{},Pt="FORBID_ATTR"in _e?P({},_e.FORBID_ATTR):{},Ut="USE_PROFILES"in _e?_e.USE_PROFILES:!1,kt=_e.ALLOW_ARIA_ATTR!==!1,Et=_e.ALLOW_DATA_ATTR!==!1,bt=_e.ALLOW_UNKNOWN_PROTOCOLS||!1,pt=_e.SAFE_FOR_JQUERY||!1,Ot=_e.SAFE_FOR_TEMPLATES||!1,It=_e.WHOLE_DOCUMENT||!1,Mt=_e.RETURN_DOM||!1,hn=_e.RETURN_DOM_FRAGMENT||!1,Jt=_e.RETURN_DOM_IMPORT||!1,Wt=_e.RETURN_TRUSTED_TYPE||!1,Yt=_e.FORCE_BODY||!1,nn=_e.SANITIZE_DOM!==!1,Rt=_e.KEEP_CONTENT!==!1,tt=_e.IN_PLACE||!1,rt=_e.ALLOWED_URI_REGEXP||rt,Ot&&(Et=!1),hn&&(Mt=!0),Ut&&(Qe=P({},[].concat(T(J))),gt=[],Ut.html===!0&&(P(Qe,oe),P(gt,K)),Ut.svg===!0&&(P(Qe,V),P(gt,H),P(gt,s)),Ut.svgFilters===!0&&(P(Qe,S),P(gt,H),P(gt,s)),Ut.mathMl===!0&&(P(Qe,N),P(gt,u),P(gt,s))),_e.ADD_TAGS&&(Qe===it&&(Qe=w(Qe)),P(Qe,_e.ADD_TAGS)),_e.ADD_ATTR&&(gt===xt&&(gt=w(gt)),P(gt,_e.ADD_ATTR)),_e.ADD_URI_SAFE_ATTR&&P(an,_e.ADD_URI_SAFE_ATTR),Rt&&(Qe["#text"]=!0),It&&P(Qe,["html","head","body"]),Qe.table&&(P(Qe,["tbody"]),delete lt.tbody),ie&&ie(_e),wn=_e},mn=function(_e){M(y.removed,{element:_e});try{_e.parentNode.removeChild(_e)}catch(Ze){_e.outerHTML=ve}},sn=function(_e,Ze){try{M(y.removed,{attribute:Ze.getAttributeNode(_e),from:Ze})}catch(nt){M(y.removed,{attribute:null,from:Ze})}Ze.removeAttribute(_e)},Ye=function(_e){var Ze=void 0,nt=void 0;if(Yt)_e="<remove></remove>"+_e;else{var Ct=ae(_e,/^[\r\n\t ]+/);nt=Ct&&Ct[0]}var yt=Pe?Pe.createHTML(_e):_e;try{Ze=new Re().parseFromString(yt,"text/html")}catch(_t){}if(j&&P(lt,["title"]),!Ze||!Ze.documentElement){Ze=He.createHTMLDocument("");var jt=Ze,Nt=jt.body;Nt.parentNode.removeChild(Nt.parentNode.firstElementChild),Nt.outerHTML=yt}return _e&&nt&&Ze.body.insertBefore(te.createTextNode(nt),Ze.body.childNodes[0]||null),Ue.call(Ze,It?"html":"body")[0]};y.isSupported&&function(){try{var st=Ye("<x/><title></title><img>");Z(/<\/title/,st.querySelector("title").innerHTML)&&(j=!0)}catch(_e){}}();var kn=function(_e){return ke.call(_e.ownerDocument||_e,_e,De.SHOW_ELEMENT|De.SHOW_COMMENT|De.SHOW_TEXT,function(){return De.FILTER_ACCEPT},!1)},aa=function(_e){return _e instanceof ue||_e instanceof Te?!1:typeof _e.nodeName!="string"||typeof _e.textContent!="string"||typeof _e.removeChild!="function"||!(_e.attributes instanceof $e)||typeof _e.removeAttribute!="function"||typeof _e.setAttribute!="function"||typeof _e.namespaceURI!="string"},ht=function(_e){return(typeof Ie=="undefined"?"undefined":g(Ie))==="object"?_e instanceof Ie:_e&&(typeof _e=="undefined"?"undefined":g(_e))==="object"&&typeof _e.nodeType=="number"&&typeof _e.nodeName=="string"},Vt=function(_e,Ze,nt){if(!m[_e])return;me(m[_e],function(Ct){Ct.call(y,Ze,nt,wn)})},Nn=function(_e){var Ze=void 0;if(Vt("beforeSanitizeElements",_e,null),aa(_e))return mn(_e),!0;if(ae(_e.nodeName,/[\u0080-\uFFFF]/))return mn(_e),!0;var nt=re(_e.nodeName);if(Vt("uponSanitizeElement",_e,{tagName:nt,allowedTags:Qe}),(nt==="svg"||nt==="math")&&_e.querySelectorAll("p, br").length!==0)return mn(_e),!0;if(!Qe[nt]||lt[nt]){if(Rt&&!pn[nt]&&typeof _e.insertAdjacentHTML=="function")try{var Ct=_e.innerHTML;_e.insertAdjacentHTML("AfterEnd",Pe?Pe.createHTML(Ct):Ct)}catch(yt){}return mn(_e),!0}return nt==="noscript"&&Z(/<\/noscript/i,_e.innerHTML)||nt==="noembed"&&Z(/<\/noembed/i,_e.innerHTML)?(mn(_e),!0):(pt&&!ht(_e.firstElementChild)&&(!ht(_e.content)||!ht(_e.content.firstElementChild))&&Z(/</g,_e.textContent)&&(M(y.removed,{element:_e.cloneNode()}),_e.innerHTML?_e.innerHTML=we(_e.innerHTML,/</g,"<"):_e.innerHTML=we(_e.textContent,/</g,"<")),Ot&&_e.nodeType===3&&(Ze=_e.textContent,Ze=we(Ze,x," "),Ze=we(Ze,C," "),_e.textContent!==Ze&&(M(y.removed,{element:_e.cloneNode()}),_e.textContent=Ze)),Vt("afterSanitizeElements",_e,null),!1)},jn=function(_e,Ze,nt){if(nn&&(Ze==="id"||Ze==="name")&&(nt in te||nt in Xe))return!1;if(!(Et&&Z(O,Ze))){if(!(kt&&Z(ce,Ze))){if(!gt[Ze]||Pt[Ze])return!1;if(!an[Ze]){if(!Z(rt,we(nt,Ke,""))){if(!((Ze==="src"||Ze==="xlink:href"||Ze==="href")&&_e!=="script"&&Ne(nt,"data:")===0&&on[_e])){if(!(bt&&!Z(ye,we(nt,Ke,"")))){if(nt)return!1}}}}}}return!0},en=function(_e){var Ze=void 0,nt=void 0,Ct=void 0,yt=void 0,jt=void 0;Vt("beforeSanitizeAttributes",_e,null);var Nt=_e.attributes;if(!Nt)return;var _t={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:gt};for(jt=Nt.length;jt--;){Ze=Nt[jt];var En=Ze,Zt=En.name,un=En.namespaceURI;if(nt=fe(Ze.value),Ct=re(Zt),_t.attrName=Ct,_t.attrValue=nt,_t.keepAttr=!0,_t.forceKeepAttr=void 0,Vt("uponSanitizeAttribute",_e,_t),nt=_t.attrValue,_t.forceKeepAttr)continue;if(Ct==="name"&&_e.nodeName==="IMG"&&Nt.id)yt=Nt.id,Nt=z(Nt,[]),sn("id",_e),sn(Zt,_e),Ae(Nt,yt)>jt&&_e.setAttribute("id",yt.value);else{if(_e.nodeName==="INPUT"&&Ct==="type"&&nt==="file"&&_t.keepAttr&&(gt[Ct]||!Pt[Ct]))continue;Zt==="id"&&_e.setAttribute(Zt,""),sn(Zt,_e)}if(!_t.keepAttr)continue;if(pt&&Z(/\/>/i,nt)){sn(Zt,_e);continue}if(Z(/svg|math/i,_e.namespaceURI)&&Z(he("</("+le(Ce(pn),"|")+")","i"),nt)){sn(Zt,_e);continue}Ot&&(nt=we(nt,x," "),nt=we(nt,C," "));var tn=_e.nodeName.toLowerCase();if(!jn(tn,Ct,nt))continue;try{un?_e.setAttributeNS(un,Zt,nt):_e.setAttribute(Zt,nt),U(y.removed)}catch(Qt){}}Vt("afterSanitizeAttributes",_e,null)},Sn=function st(_e){var Ze=void 0,nt=kn(_e);for(Vt("beforeSanitizeShadowDOM",_e,null);Ze=nt.nextNode();){if(Vt("uponSanitizeShadowNode",Ze,null),Nn(Ze))continue;Ze.content instanceof Ee&&st(Ze.content),en(Ze)}Vt("afterSanitizeShadowDOM",_e,null)};return y.sanitize=function(st,_e){var Ze=void 0,nt=void 0,Ct=void 0,yt=void 0,jt=void 0;if(st||(st="<!-->"),typeof st!="string"&&!ht(st)){if(typeof st.toString!="function")throw se("toString is not a function");if(st=st.toString(),typeof st!="string")throw se("dirty is not a string, aborting")}if(!y.isSupported){if(g(f.toStaticHTML)==="object"||typeof f.toStaticHTML=="function"){if(typeof st=="string")return f.toStaticHTML(st);if(ht(st))return f.toStaticHTML(st.outerHTML)}return st}if(Kt||ft(_e),y.removed=[],typeof st=="string"&&(tt=!1),!tt)if(st instanceof Ie)Ze=Ye("<!-->"),nt=Ze.ownerDocument.importNode(st,!0),nt.nodeType===1&&nt.nodeName==="BODY"||nt.nodeName==="HTML"?Ze=nt:Ze.appendChild(nt);else{if(!Mt&&!Ot&&!It&&st.indexOf("<")===-1)return Pe&&Wt?Pe.createHTML(st):st;if(Ze=Ye(st),!Ze)return Mt?null:ve}Ze&&Yt&&mn(Ze.firstChild);for(var Nt=kn(tt?st:Ze);Ct=Nt.nextNode();){if(Ct.nodeType===3&&Ct===yt)continue;if(Nn(Ct))continue;Ct.content instanceof Ee&&Sn(Ct.content),en(Ct),yt=Ct}if(yt=null,tt)return st;if(Mt){if(hn)for(jt=Y.call(Ze.ownerDocument);Ze.firstChild;)jt.appendChild(Ze.firstChild);else jt=Ze;return Jt&&(jt=W.call(G,jt,!0)),jt}var _t=It?Ze.outerHTML:Ze.innerHTML;return Ot&&(_t=we(_t,x," "),_t=we(_t,C," ")),Pe&&Wt?Pe.createHTML(_t):_t},y.setConfig=function(st){ft(st),Kt=!0},y.clearConfig=function(){wn=null,Kt=!1},y.isValidAttribute=function(st,_e,Ze){wn||ft({});var nt=re(st),Ct=re(_e);return jn(nt,Ct,Ze)},y.addHook=function(st,_e){if(typeof _e!="function")return;m[st]=m[st]||[],M(m[st],_e)},y.removeHook=function(st){m[st]&&U(m[st])},y.removeHooks=function(st){m[st]&&(m[st]=[])},y.removeAllHooks=function(){m={}},y}var h=d();return h})}}]);
|