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

349 lines
751 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[202,7,9],{"+NIl":function(ke,_,d){(function(G){G(d("VrN/"))})(function(G){"use strict";G.defineMode("stex",function(be,re){"use strict";function fe(E,A){E.cmdState.push(A)}function de(E){return E.cmdState.length>0?E.cmdState[E.cmdState.length-1]:null}function ne(E){var A=E.cmdState.pop();A&&A.closeBracket()}function W(E){for(var A=E.cmdState,L=A.length-1;L>=0;L--){var g=A[L];if(g.name=="DEFAULT")continue;return g}return{styleIdentifier:function(){return null}}}function Y(E,A,L){return function(){this.name=E,this.bracketNo=0,this.style=A,this.styles=L,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var O={};O.importmodule=Y("importmodule","tag",["string","builtin"]),O.documentclass=Y("documentclass","tag",["","atom"]),O.usepackage=Y("usepackage","tag",["atom"]),O.begin=Y("begin","tag",["atom"]),O.end=Y("end","tag",["atom"]),O.label=Y("label","tag",["atom"]),O.ref=Y("ref","tag",["atom"]),O.eqref=Y("eqref","tag",["atom"]),O.cite=Y("cite","tag",["atom"]),O.bibitem=Y("bibitem","tag",["atom"]),O.Bibitem=Y("Bibitem","tag",["atom"]),O.RBibitem=Y("RBibitem","tag",["atom"]),O.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function B(E,A){E.f=A}function b(E,A){var L;if(E.match(/^\\[a-zA-Z@]+/)){var g=E.current().slice(1);return L=O.hasOwnProperty(g)?O[g]:O.DEFAULT,L=new L,fe(A,L),B(A,k),L.style}if(E.match(/^\\[$&%#{}_]/))return"tag";if(E.match(/^\\[,;!\/\\]/))return"tag";if(E.match("\\["))return B(A,function(w,I){return C(w,I,"\\]")}),"keyword";if(E.match("\\("))return B(A,function(w,I){return C(w,I,"\\)")}),"keyword";if(E.match("$$"))return B(A,function(w,I){return C(w,I,"$$")}),"keyword";if(E.match("$"))return B(A,function(w,I){return C(w,I,"$")}),"keyword";var v=E.next();if(v=="%")return E.skipToEnd(),"comment";if(v=="}"||v=="]"){if(L=de(A),L)L.closeBracket(v),B(A,k);else return"error";return"bracket"}else return v=="{"||v=="["?(L=O.DEFAULT,L=new L,fe(A,L),"bracket"):/\d/.test(v)?(E.eatWhile(/[\w.%]/),"atom"):(E.eatWhile(/[\w\-_]/),L=W(A),L.name=="begin"&&(L.argument=E.current()),L.styleIdentifier())}function C(E,A,L){if(E.eatSpace())return null;if(L&&E.match(L))return B(A,b),"keyword";if(E.match(/^\\[a-zA-Z@]+/))return"tag";if(E.match(/^[a-zA-Z]+/))return"variable-2";if(E.match(/^\\[$&%#{}_]/))return"tag";if(E.match(/^\\[,;!\/]/))return"tag";if(E.match(/^[\^_&]/))return"tag";if(E.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(E.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var g=E.next();return g=="{"||g=="}"||g=="["||g=="]"||g=="("||g==")"?"bracket":g=="%"?(E.skipToEnd(),"comment"):"error"}function k(E,A){var L=E.peek(),g;return L=="{"||L=="["?(g=de(A),g.openBracket(L),E.eat(L),B(A,b),"bracket"):/[ \t\r]/.test(L)?(E.eat(L),null):(B(A,b),ne(A),b(E,A))}return{startState:function(){var E=re.inMathMode?function(A,L){return C(A,L)}:b;return{cmdState:[],f:E}},copyState:function(E){return{cmdState:E.cmdState.slice(),f:E.f}},token:function(E,A){return A.f(E,A)},blankLine:function(E){E.f=b,E.cmdState.length=0},lineComment:"%"}}),G.defineMIME("text/x-stex","stex"),G.defineMIME("text/x-latex","stex")})},"+ua5":function(ke,_,d){},"/GNS":function(ke,_,d){ke.exports=d.p+"static/search1.c4136dd4.png"},"/cxE":function(ke,_,d){"use strict";d.d(_,"e",function(){return re}),d.d(_,"f",function(){return fe}),d.d(_,"g",function(){return de}),d.d(_,"d",function(){return W}),d.d(_,"a",function(){return Y}),d.d(_,"b",function(){return O}),d.d(_,"c",function(){return B});var G=function(){function b(){this.listeners=[],this.unexpectedErrorHandler=function(C){setTimeout(function(){throw C.stack?new Error(C.message+`
`+C.stack):C},0)}}return b.prototype.emit=function(C){this.listeners.forEach(function(k){k(C)})},b.prototype.onUnexpectedError=function(C){this.unexpectedErrorHandler(C),this.emit(C)},b.prototype.onUnexpectedExternalError=function(C){this.unexpectedErrorHandler(C)},b}(),be=new G;function re(b){W(b)||be.onUnexpectedError(b);return}function fe(b){W(b)||be.onUnexpectedExternalError(b);return}function de(b){if(b instanceof Error){var C=b.name,k=b.message,E=b.stacktrace||b.stack;return{$isError:!0,name:C,message:k,stack:E}}return b}var ne="Canceled";function W(b){return b instanceof Error&&b.name===ne&&b.message===ne}function Y(){var b=new Error(ne);return b.name=b.message,b}function O(b){return b?new Error("Illegal argument: "+b):new Error("Illegal argument")}function B(b){return b?new Error("Illegal state: "+b):new Error("Illegal state")}},"19Vz":function(ke,_,d){(function(G){G(d("VrN/"))})(function(G){G.defineOption("placeholder","",function(Y,O,B){var b=B&&B!=G.Init;if(O&&!b)Y.on("blur",de),Y.on("change",ne),Y.on("swapDoc",ne),G.on(Y.getInputField(),"compositionupdate",Y.state.placeholderCompose=function(){fe(Y)}),ne(Y);else if(!O&&b){Y.off("blur",de),Y.off("change",ne),Y.off("swapDoc",ne),G.off(Y.getInputField(),"compositionupdate",Y.state.placeholderCompose),be(Y);var C=Y.getWrapperElement();C.className=C.className.replace(" CodeMirror-empty","")}O&&!Y.hasFocus()&&de(Y)});function be(Y){Y.state.placeholder&&(Y.state.placeholder.parentNode.removeChild(Y.state.placeholder),Y.state.placeholder=null)}function re(Y){be(Y);var O=Y.state.placeholder=document.createElement("pre");O.style.cssText="height: 0; overflow: visible",O.style.direction=Y.getOption("direction"),O.className="CodeMirror-placeholder CodeMirror-line-like";var B=Y.getOption("placeholder");typeof B=="string"&&(B=document.createTextNode(B)),O.appendChild(B),Y.display.lineSpace.insertBefore(O,Y.display.lineSpace.firstChild)}function fe(Y){setTimeout(function(){var O=!1,B=Y.getInputField();B.nodeName=="TEXTAREA"?O=!B.value:Y.lineCount()==1&&(O=!/[^\u200b]/.test(B.querySelector(".CodeMirror-line").textContent)),O?re(Y):be(Y)},20)}function de(Y){W(Y)&&re(Y)}function ne(Y){var O=Y.getWrapperElement(),B=W(Y);O.className=O.className.replace(" CodeMirror-empty","")+(B?" CodeMirror-empty":""),B?re(Y):be(Y)}function W(Y){return Y.lineCount()===1&&Y.getLine(0)===""}})},"1eCo":function(ke,_,d){(function(G){G(d("VrN/"))})(function(G){"use strict";var be={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},re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};G.defineMode("xml",function(fe,de){var ne=fe.indentUnit,W={},Y=de.htmlMode?be:re;for(var O in Y)W[O]=Y[O];for(var O in de)W[O]=de[O];var B,b;function C(R,ue){function K(ie){return ue.tokenize=ie,ie(R,ue)}var N=R.next();if(N=="<")return R.eat("!")?R.eat("[")?R.match("CDATA[")?K(A("atom","]]>")):null:R.match("--")?K(A("comment","-->")):R.match("DOCTYPE",!0,!0)?(R.eatWhile(/[\w\._\-]/),K(L(1))):null:R.eat("?")?(R.eatWhile(/[\w\._\-]/),ue.tokenize=A("meta","?>"),"meta"):(B=R.eat("/")?"closeTag":"openTag",ue.tokenize=k,"tag bracket");if(N=="&"){var X;return R.eat("#")?R.eat("x")?X=R.eatWhile(/[a-fA-F\d]/)&&R.eat(";"):X=R.eatWhile(/[\d]/)&&R.eat(";"):X=R.eatWhile(/[\w\.\-:]/)&&R.eat(";"),X?"atom":"error"}else return R.eatWhile(/[^&<]/),null}C.isInText=!0;function k(R,ue){var K=R.next();if(K==">"||K=="/"&&R.eat(">"))return ue.tokenize=C,B=K==">"?"endTag":"selfcloseTag","tag bracket";if(K=="=")return B="equals",null;if(K=="<"){ue.tokenize=C,ue.state=I,ue.tagName=ue.tagStart=null;var N=ue.tokenize(R,ue);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(K)?(ue.tokenize=E(K),ue.stringStartCol=R.column(),ue.tokenize(R,ue)):(R.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function E(R){var ue=function(K,N){for(;!K.eol();)if(K.next()==R){N.tokenize=k;break}return"string"};return ue.isInAttribute=!0,ue}function A(R,ue){return function(K,N){for(;!K.eol();){if(K.match(ue)){N.tokenize=C;break}K.next()}return R}}function L(R){return function(ue,K){for(var N;(N=ue.next())!=null;){if(N=="<")return K.tokenize=L(R+1),K.tokenize(ue,K);if(N==">")if(R==1){K.tokenize=C;break}else return K.tokenize=L(R-1),K.tokenize(ue,K)}return"meta"}}function g(R,ue,K){this.prev=R.context,this.tagName=ue,this.indent=R.indented,this.startOfLine=K,(W.doNotIndent.hasOwnProperty(ue)||R.context&&R.context.noIndent)&&(this.noIndent=!0)}function v(R){R.context&&(R.context=R.context.prev)}function w(R,ue){for(var K;;){if(!R.context)return;if(K=R.context.tagName,!W.contextGrabbers.hasOwnProperty(K)||!W.contextGrabbers[K].hasOwnProperty(ue))return;v(R)}}function I(R,ue,K){return R=="openTag"?(K.tagStart=ue.column(),le):R=="closeTag"?te:I}function le(R,ue,K){return R=="word"?(K.tagName=ue.current(),b="tag",ge):W.allowMissingTagName&&R=="endTag"?(b="tag bracket",ge(R,ue,K)):(b="error",le)}function te(R,ue,K){if(R=="word"){var N=ue.current();return K.context&&K.context.tagName!=N&&W.implicitlyClosed.hasOwnProperty(K.context.tagName)&&v(K),K.context&&K.context.tagName==N||W.matchClosing===!1?(b="tag",oe):(b="tag error",Me)}else return W.allowMissingTagName&&R=="endTag"?(b="tag bracket",oe(R,ue,K)):(b="error",Me)}function oe(R,ue,K){return R!="endTag"?(b="error",oe):(v(K),I)}function Me(R,ue,K){return b="error",oe(R,ue,K)}function ge(R,ue,K){if(R=="word")return b="attribute",xe;if(R=="endTag"||R=="selfcloseTag"){var N=K.tagName,X=K.tagStart;return K.tagName=K.tagStart=null,R=="selfcloseTag"||W.autoSelfClosers.hasOwnProperty(N)?w(K,N):(w(K,N),K.context=new g(K,N,X==K.indented)),I}return b="error",ge}function xe(R,ue,K){return R=="equals"?ve:(W.allowMissing||(b="error"),ge(R,ue,K))}function ve(R,ue,K){return R=="string"?T:R=="word"&&W.allowUnquoted?(b="string",ge):(b="error",ge(R,ue,K))}function T(R,ue,K){return R=="string"?T:ge(R,ue,K)}return{startState:function(R){var ue={tokenize:C,state:I,indented:R||0,tagName:null,tagStart:null,context:null};return R!=null&&(ue.baseIndent=R),ue},token:function(R,ue){if(!ue.tagName&&R.sol()&&(ue.indented=R.indentation()),R.eatSpace())return null;B=null;var K=ue.tokenize(R,ue);return(K||B)&&K!="comment"&&(b=null,ue.state=ue.state(B||K,R,ue),b&&(K=b=="error"?K+" error":b)),K},indent:function(R,ue,K){var N=R.context;if(R.tokenize.isInAttribute)return R.tagStart==R.indented?R.stringStartCol+1:R.indented+ne;if(N&&N.noIndent)return G.Pass;if(R.tokenize!=k&&R.tokenize!=C)return K?K.match(/^(\s*)/)[0].length:0;if(R.tagName)return W.multilineTagIndentPastTag!==!1?R.tagStart+R.tagName.length+2:R.tagStart+ne*(W.multilineTagIndentFactor||1);if(W.alignCDATA&&/<!\[CDATA\[/.test(ue))return 0;var X=ue&&/^<(\/)?([\w_:\.-]*)/.exec(ue);if(X&&X[1])for(;N;)if(N.tagName==X[2]){N=N.prev;break}else if(W.implicitlyClosed.hasOwnProperty(N.tagName))N=N.prev;else break;else if(X)for(;N;){var ie=W.contextGrabbers[N.tagName];if(ie&&ie.hasOwnProperty(X[2]))N=N.prev;else break}for(;N&&N.prev&&!N.startOfLine;)N=N.prev;return N?N.indent+ne:R.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:W.htmlMode?"html":"xml",helperType:W.htmlMode?"html":"xml",skipAttribute:function(R){R.state==ve&&(R.state=ge)},xmlCurrentTag:function(R){return R.tagName?{name:R.tagName,close:R.type=="closeTag"}:null},xmlCurrentContext:function(R){for(var ue=[],K=R.context;K;K=K.prev)K.tagName&&ue.push(K.tagName);return ue.reverse()}}}),G.defineMIME("text/xml","xml"),G.defineMIME("application/xml","xml"),G.mimeModes.hasOwnProperty("text/html")||G.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"24hK":function(ke,_,d){"use strict";d.d(_,"a",function(){return re});var G=d("JYp7"),be=function(){function fe(de){this.element=de,this.next=fe.Undefined,this.prev=fe.Undefined}return fe.Undefined=new fe(void 0),fe}(),re=function(){function fe(){this._first=be.Undefined,this._last=be.Undefined,this._size=0}return Object.defineProperty(fe.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),fe.prototype.isEmpty=function(){return this._first===be.Undefined},fe.prototype.clear=function(){this._first=be.Undefined,this._last=be.Undefined,this._size=0},fe.prototype.unshift=function(de){return this._insert(de,!1)},fe.prototype.push=function(de){return this._insert(de,!0)},fe.prototype._insert=function(de,ne){var W=this,Y=new be(de);if(this._first===be.Undefined)this._first=Y,this._last=Y;else if(ne){var O=this._last;this._last=Y,Y.prev=O,O.next=Y}else{var B=this._first;this._first=Y,Y.next=B,B.prev=Y}this._size+=1;var b=!1;return function(){b||(b=!0,W._remove(Y))}},fe.prototype.shift=function(){if(this._first===be.Undefined)return;var de=this._first.element;return this._remove(this._first),de},fe.prototype.pop=function(){if(this._last===be.Undefined)return;var de=this._last.element;return this._remove(this._last),de},fe.prototype._remove=function(de){if(de.prev!==be.Undefined&&de.next!==be.Undefined){var ne=de.prev;ne.next=de.next,de.next.prev=ne}else de.prev===be.Undefined&&de.next===be.Undefined?(this._first=be.Undefined,this._last=be.Undefined):de.next===be.Undefined?(this._last=this._last.prev,this._last.next=be.Undefined):de.prev===be.Undefined&&(this._first=this._first.next,this._first.prev=be.Undefined);this._size-=1},fe.prototype.iterator=function(){var de,ne=this._first;return{next:function(){return ne===be.Undefined?G.c:(de?de.value=ne.element:de={done:!1,value:ne.element},ne=ne.next,de)}}},fe.prototype.toArray=function(){for(var de=[],ne=this._first;ne!==be.Undefined;ne=ne.next)de.push(ne.element);return de},fe}()},"2RCv":function(ke,_,d){"use strict";var G=d("Awhp"),be=d("KrTs"),re=d("+L6B"),fe=d("2/Rp"),de=d("5NDa"),ne=d("5rEg"),W=d("0Owb"),Y=d("oBTY"),O=d("tJVT"),B=d("PpiC"),b=d("q1tI"),C=d.n(b),k=function(A){var L=A.InputRight,g=A.value,v=g===void 0?[]:g,w=A.onChange,I=w===void 0?function(){}:w,le=Object(B.a)(A,["InputRight","value","onChange"]),te=Object(b.useState)(),oe=Object(O.a)(te,2),Me=oe[0],ge=oe[1],xe=function(R){var ue=v.filter(function(K,N){return N!==R});I(ue)},ve=function(R){if(R.preventDefault(),!Me)return;I([].concat(Object(Y.a)(v),[Me])),ge(null)};return C.a.createElement("div",null,C.a.createElement(ne.a,Object(W.a)({},le,{value:Me,onChange:function(R){return ge(R.target.value)},onPressEnter:ve,onBlur:ve})),L,C.a.createElement("div",{className:"mt20"},v==null?void 0:v.map(function(T,R){return C.a.createElement(be.a,{className:"ml10 mr10",count:"x",onClick:function(){return xe(R)}},C.a.createElement(fe.a,{type:"primary",ghost:!0},T))})))};_.a=k},"4qgm":function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h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e6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(ke,_,d){"use strict";d.d(_,"a",function(){return w}),d.d(_,"b",function(){return ge});var G=d("Ty5D"),be=d("dI71"),re=d("q1tI"),fe=d.n(re),de=d("YS25"),ne=d("17x9"),W=d.n(ne),Y=d("wx14"),O=d("zLVn"),B=d("9R94"),b=function(ve){Object(be.a)(T,ve);function T(){for(var ue,K=arguments.length,N=new Array(K),X=0;X<K;X++)N[X]=arguments[X];return ue=ve.call.apply(ve,[this].concat(N))||this,ue.history=Object(de.a)(ue.props),ue}var R=T.prototype;return R.render=function(){return fe.a.createElement(G.c,{history:this.history,children:this.props.children})},T}(fe.a.Component),C=function(ve){Object(be.a)(T,ve);function T(){for(var ue,K=arguments.length,N=new Array(K),X=0;X<K;X++)N[X]=arguments[X];return ue=ve.call.apply(ve,[this].concat(N))||this,ue.history=Object(de.b)(ue.props),ue}var R=T.prototype;return R.render=function(){return fe.a.createElement(G.c,{history:this.history,children:this.props.children})},T}(fe.a.Component),k=function(T,R){return typeof T=="function"?T(R):T},E=function(T,R){return typeof T=="string"?Object(de.c)(T,null,null,R):T},A=function(T){return T},L=fe.a.forwardRef;typeof L=="undefined"&&(L=A);function g(ve){return!!(ve.metaKey||ve.altKey||ve.ctrlKey||ve.shiftKey)}var v=L(function(ve,T){var R=ve.innerRef,ue=ve.navigate,K=ve.onClick,N=Object(O.a)(ve,["innerRef","navigate","onClick"]),X=N.target,ie=Object(Y.a)({},N,{onClick:function(me){try{K&&K(me)}catch(D){throw me.preventDefault(),D}!me.defaultPrevented&&me.button===0&&(!X||X==="_self")&&!g(me)&&(me.preventDefault(),ue())}});return A!==L?ie.ref=T||R:ie.ref=R,fe.a.createElement("a",ie)}),w=L(function(ve,T){var R=ve.component,ue=R===void 0?v:R,K=ve.replace,N=ve.to,X=ve.innerRef,ie=Object(O.a)(ve,["component","replace","to","innerRef"]);return fe.a.createElement(G.e.Consumer,null,function(J){J||Object(B.a)(!1);var me=J.history,D=E(k(N,J.location),J.location),y=D?me.createHref(D):"",q=Object(Y.a)({},ie,{href:y,navigate:function(){var Se=k(N,J.location),nt=K?me.replace:me.push;nt(Se)}});return A!==L?q.ref=T||X:q.innerRef=X,fe.a.createElement(ue,q)})});if(!1)var I,le;var te=function(T){return T},oe=fe.a.forwardRef;typeof oe=="undefined"&&(oe=te);function Me(){for(var ve=arguments.length,T=new Array(ve),R=0;R<ve;R++)T[R]=arguments[R];return T.filter(function(ue){return ue}).join(" ")}var ge=oe(function(ve,T){var R=ve["aria-current"],ue=R===void 0?"page":R,K=ve.activeClassName,N=K===void 0?"active":K,X=ve.activeStyle,ie=ve.className,J=ve.exact,me=ve.isActive,D=ve.location,y=ve.sensitive,q=ve.strict,Ae=ve.style,Se=ve.to,nt=ve.innerRef,at=Object(O.a)(ve,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return fe.a.createElement(G.e.Consumer,null,function(We){We||Object(B.a)(!1);var Le=D||We.location,Ie=E(k(Se,Le),Le),Ne=Ie.pathname,se=Ne&&Ne.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),Z=se?Object(G.f)(Le.pathname,{path:se,exact:J,sensitive:y,strict:q}):null,ze=!!(me?me(Z,Le):Z),Ye=ze?Me(ie,N):ie,Ke=ze?Object(Y.a)({},Ae,{},X):Ae,rt=Object(Y.a)({"aria-current":ze&&ue||null,className:Ye,style:Ke,to:Ie},at);return te!==oe?rt.ref=T||nt:rt.innerRef=nt,fe.a.createElement(w,rt)})});if(!1)var xe},"5D2P":function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3n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/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"746U":function(ke,_,d){"use strict";d.d(_,"d",function(){return be}),d.d(_,"j",function(){return re}),d.d(_,"i",function(){return fe}),d.d(_,"h",function(){return de}),d.d(_,"e",function(){return ne}),d.d(_,"k",function(){return W}),d.d(_,"l",function(){return Y}),d.d(_,"a",function(){return O}),d.d(_,"f",function(){return b}),d.d(_,"g",function(){return C}),d.d(_,"m",function(){return k}),d.d(_,"c",function(){return L}),d.d(_,"b",function(){return g}),d.d(_,"n",function(){return v}),d.d(_,"o",function(){return w});var G={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function be(I){return Array.isArray?Array.isArray(I):!!(I&&typeof I.length===G.number&&I.constructor===Array)}function re(I){return typeof I===G.string||I instanceof String}function fe(I){return typeof I===G.object&&I!==null&&!Array.isArray(I)&&!(I instanceof RegExp)&&!(I instanceof Date)}function de(I){return(typeof I===G.number||I instanceof Number)&&!isNaN(I)}function ne(I){return I===!0||I===!1}function W(I){return typeof I===G.undefined}function Y(I){return W(I)||I===null}function O(I,le){if(!I)throw new Error(le?"Unexpected type, expected '"+le+"'":"Unexpected type")}var B=Object.prototype.hasOwnProperty;function b(I){if(!fe(I))return!1;for(var le in I)if(B.call(I,le))return!1;return!0}function C(I){return typeof I===G.function}function k(I,le){for(var te=Math.min(I.length,le.length),oe=0;oe<te;oe++)E(I[oe],le[oe])}function E(I,le){if(re(le)){if(typeof I!==le)throw new Error("argument does not match constraint: typeof "+le)}else if(C(le)){try{if(I instanceof le)return}catch(te){}if(!Y(I)&&I.constructor===le)return;if(le.length===1&&le.call(void 0,I)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function A(I){for(var le=[],te=Object.getPrototypeOf(I);Object.prototype!==te;)le=le.concat(Object.getOwnPropertyNames(te)),te=Object.getPrototypeOf(te);return le}function L(I){for(var le=[],te=0,oe=A(I);te<oe.length;te++){var Me=oe[te];typeof I[Me]=="function"&&le.push(Me)}return le}function g(I,le){for(var te=function(ve){return function(){var T=Array.prototype.slice.call(arguments,0);return le(ve,T)}},oe={},Me=0,ge=I;Me<ge.length;Me++){var xe=ge[Me];oe[xe]=te(xe)}return oe}function v(I){return I===null?void 0:I}function w(I){return typeof I=="undefined"?null:I}},"7Cbv":function(ke,_,d){"use strict";var G=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),be=new Uint8Array(16);function re(){if(!G)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return G(be)}var fe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function de(k){return typeof k=="string"&&fe.test(k)}for(var ne=de,W=[],Y=0;Y<256;++Y)W.push((Y+256).toString(16).substr(1));function O(k){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,A=(W[k[E+0]]+W[k[E+1]]+W[k[E+2]]+W[k[E+3]]+"-"+W[k[E+4]]+W[k[E+5]]+"-"+W[k[E+6]]+W[k[E+7]]+"-"+W[k[E+8]]+W[k[E+9]]+"-"+W[k[E+10]]+W[k[E+11]]+W[k[E+12]]+W[k[E+13]]+W[k[E+14]]+W[k[E+15]]).toLowerCase();if(!ne(A))throw TypeError("Stringified UUID is invalid");return A}var B=O;function b(k,E,A){k=k||{};var L=k.random||(k.rng||re)();if(L[6]=L[6]&15|64,L[8]=L[8]&63|128,E){A=A||0;for(var g=0;g<16;++g)E[A+g]=L[g];return E}return B(L)}var C=_.a=b},"7ZXX":function(ke,_,d){ke.exports=d.p+"static/err.6e7c5817.png"},"7ahc":function(ke,_,d){"use strict";d.d(_,"a",function(){return le});var G=d("k1fw"),be=d("0Owb"),re=d("+L6B"),fe=d("2/Rp"),de=d("y8nQ"),ne=d("Vl3Y"),W=d("tJVT"),Y=d("OaEy"),O=d("2fM7"),B=d("q1tI"),b=d.n(B),C=d("VrN/"),k=d.n(C),E=d("p77/"),A=d.n(E),L=d("c5Ni"),g=d.n(L),v=O.a.Option,w={labelCol:{span:4},wrapperCol:{span:20}},I={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"]};_.b=function(te){var oe=te.callback,Me=te.onCancel,ge=Object(B.useState)("python"),xe=Object(W.a)(ge,2),ve=xe[0],T=xe[1];function R(K){T(I[K][1])}function ue(K){oe(K)}return b.a.createElement(ne.a,Object(be.a)({},w,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ue}),b.a.createElement(ne.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.a.createElement(O.a,{onChange:R},Object.keys(I).map(function(K){return b.a.createElement(v,{key:K,value:K},I[K][0])}))),b.a.createElement(ne.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.a.createElement(le,{mode:ve})),b.a.createElement("div",{className:"flex-container flex-end"},b.a.createElement(fe.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.a.createElement(fe.a,{type:"ghost",onClick:Me},"\u53D6\u6D88")))};function le(te){var oe=te.value,Me=te.onChange,ge=te.mode,xe=te.options,ve=xe===void 0?{}:xe,T=Object(B.useRef)(),R=Object(B.useState)(),ue=Object(W.a)(R,2),K=ue[0],N=ue[1];return Object(B.useEffect)(function(){if(K){function X(ie){var J=ie.getValue();Me&&Me(J)}return K.on("change",X),function(){K.off("change",X)}}},[K,Me]),Object(B.useEffect)(function(){K&&K.setOption("mode",ge)},[K,ge]),Object(B.useEffect)(function(){K&&((oe!==K.getValue()||oe==="")&&setTimeout(function(){K.setValue(oe||" ")},300))},[K,oe]),Object(B.useEffect)(function(){if(T.current&&!K){var X=k.a.fromTextArea(T.current,Object(G.a)({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ve));N(X)}},[T.current,K]),b.a.createElement("div",{className:"my-codemirror-container"},b.a.createElement("textarea",{ref:T}))}},"7ixt":function(ke,_,d){"use strict";d.d(_,"a",function(){return re});var G={adjustX:1,adjustY:1},be=[0,0],re={left:{points:["cr","cl"],overflow:G,offset:[-4,0],targetOffset:be},right:{points:["cl","cr"],overflow:G,offset:[4,0],targetOffset:be},top:{points:["bc","tc"],overflow:G,offset:[0,-4],targetOffset:be},bottom:{points:["tc","bc"],overflow:G,offset:[0,4],targetOffset:be},topLeft:{points:["bl","tl"],overflow:G,offset:[0,-4],targetOffset:be},leftTop:{points:["tr","tl"],overflow:G,offset:[-4,0],targetOffset:be},topRight:{points:["br","tr"],overflow:G,offset:[0,-4],targetOffset:be},rightTop:{points:["tl","tr"],overflow:G,offset:[4,0],targetOffset:be},bottomRight:{points:["tr","br"],overflow:G,offset:[0,4],targetOffset:be},rightBottom:{points:["bl","br"],overflow:G,offset:[4,0],targetOffset:be},bottomLeft:{points:["tl","bl"],overflow:G,offset:[0,4],targetOffset:be},leftBottom:{points:["br","bl"],overflow:G,offset:[-4,0],targetOffset:be}},fe=re},"7v3h":function(ke,_,d){ke.exports=d.p+"static/empty2.dd73f390.png"},"8/bI":function(ke,_,d){ke.exports=d.p+"static/empty.8918e228.png"},"8EBN":function(ke,_,d){(function(G){G(d("VrN/"))})(function(G){"use strict";G.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var be=0;be<G.modeInfo.length;be++){var re=G.modeInfo[be];re.mimes&&(re.mime=re.mimes[0])}G.findModeByMIME=function(fe){fe=fe.toLowerCase();for(var de=0;de<G.modeInfo.length;de++){var ne=G.modeInfo[de];if(ne.mime==fe)return ne;if(ne.mimes){for(var W=0;W<ne.mimes.length;W++)if(ne.mimes[W]==fe)return ne}}if(/\+xml$/.test(fe))return G.findModeByMIME("application/xml");if(/\+json$/.test(fe))return G.findModeByMIME("application/json")},G.findModeByExtension=function(fe){fe=fe.toLowerCase();for(var de=0;de<G.modeInfo.length;de++){var ne=G.modeInfo[de];if(ne.ext){for(var W=0;W<ne.ext.length;W++)if(ne.ext[W]==fe)return ne}}},G.findModeByFileName=function(fe){for(var de=0;de<G.modeInfo.length;de++){var ne=G.modeInfo[de];if(ne.file&&ne.file.test(fe))return ne}var W=fe.lastIndexOf("."),Y=W>-1&&fe.substring(W+1,fe.length);if(Y)return G.findModeByExtension(Y)},G.findModeByName=function(fe){fe=fe.toLowerCase();for(var de=0;de<G.modeInfo.length;de++){var ne=G.modeInfo[de];if(ne.name.toLowerCase()==fe)return ne;if(ne.alias){for(var W=0;W<ne.alias.length;W++)if(ne.alias[W].toLowerCase()==fe)return ne}}}})},"8HAY":function(ke,_,d){"use strict";d.d(_,"a",function(){return ne}),d.d(_,"b",function(){return W});var G=d("pmY6"),be=d("MI8n"),re=function(){var Y=function(O,B){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,C){b.__proto__=C}||function(b,C){for(var k in C)C.hasOwnProperty(k)&&(b[k]=C[k])},Y(O,B)};return function(O,B){Y(O,B);function b(){this.constructor=O}O.prototype=B===null?Object.create(B):(b.prototype=B.prototype,new b)}}(),fe=function(Y,O,B,b){function C(k){return k instanceof B?k:new B(function(E){E(k)})}return new(B||(B=Promise))(function(k,E){function A(v){try{g(b.next(v))}catch(w){E(w)}}function L(v){try{g(b.throw(v))}catch(w){E(w)}}function g(v){v.done?k(v.value):C(v.value).then(A,L)}g((b=b.apply(Y,O||[])).next())})},de=function(Y,O){var B={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},b,C,k,E;return E={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function A(g){return function(v){return L([g,v])}}function L(g){if(b)throw new TypeError("Generator is already executing.");for(;B;)try{if(b=1,C&&(k=g[0]&2?C.return:g[0]?C.throw||((k=C.return)&&k.call(C),0):C.next)&&!(k=k.call(C,g[1])).done)return k;(C=0,k)&&(g=[g[0]&2,k.value]);switch(g[0]){case 0:case 1:k=g;break;case 4:return B.label++,{value:g[1],done:!1};case 5:B.label++,C=g[1],g=[0];continue;case 7:g=B.ops.pop(),B.trys.pop();continue;default:if(!(k=B.trys,k=k.length>0&&k[k.length-1])&&(g[0]===6||g[0]===2)){B=0;continue}if(g[0]===3&&(!k||g[1]>k[0]&&g[1]<k[3])){B.label=g[1];break}if(g[0]===6&&B.label<k[1]){B.label=k[1],k=g;break}if(k&&B.label<k[2]){B.label=k[2],B.ops.push(g);break}k[2]&&B.ops.pop(),B.trys.pop();continue}g=O.call(Y,B)}catch(v){g=[6,v],C=0}finally{b=k=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},ne=function(Y){re(O,Y);function O(B,b,C,k,E){b===void 0&&(b=""),C===void 0&&(C=""),k===void 0&&(k=!0);var A=Y.call(this)||this;return A._onDidChange=A._register(new be.a),A.onDidChange=A._onDidChange.event,A._enabled=!0,A._checked=!1,A._id=B,A._label=b,A._cssClass=C,A._enabled=k,A._actionCallback=E,A}return Object.defineProperty(O.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"label",{get:function(){return this._label},set:function(B){this._setLabel(B)},enumerable:!0,configurable:!0}),O.prototype._setLabel=function(B){this._label!==B&&(this._label=B,this._onDidChange.fire({label:B}))},Object.defineProperty(O.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(B){this._setTooltip(B)},enumerable:!0,configurable:!0}),O.prototype._setTooltip=function(B){this._tooltip!==B&&(this._tooltip=B,this._onDidChange.fire({tooltip:B}))},Object.defineProperty(O.prototype,"class",{get:function(){return this._cssClass},set:function(B){this._setClass(B)},enumerable:!0,configurable:!0}),O.prototype._setClass=function(B){this._cssClass!==B&&(this._cssClass=B,this._onDidChange.fire({class:B}))},Object.defineProperty(O.prototype,"enabled",{get:function(){return this._enabled},set:function(B){this._setEnabled(B)},enumerable:!0,configurable:!0}),O.prototype._setEnabled=function(B){this._enabled!==B&&(this._enabled=B,this._onDidChange.fire({enabled:B}))},Object.defineProperty(O.prototype,"checked",{get:function(){return this._checked},set:function(B){this._setChecked(B)},enumerable:!0,configurable:!0}),O.prototype._setChecked=function(B){this._checked!==B&&(this._checked=B,this._onDidChange.fire({checked:B}))},O.prototype.run=function(B,b){return this._actionCallback?this._actionCallback(B):Promise.resolve(!0)},O}(G.a),W=function(Y){re(O,Y);function O(){var B=Y!==null&&Y.apply(this,arguments)||this;return B._onDidBeforeRun=B._register(new be.a),B.onDidBeforeRun=B._onDidBeforeRun.event,B._onDidRun=B._register(new be.a),B.onDidRun=B._onDidRun.event,B}return O.prototype.run=function(B,b){return fe(this,void 0,void 0,function(){var C,k;return de(this,function(E){switch(E.label){case 0:if(!B.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:B}),E.label=1;case 1:return E.trys.push([1,3,,4]),[4,this.runAction(B,b)];case 2:return C=E.sent(),this._onDidRun.fire({action:B,result:C}),[3,4];case 3:return k=E.sent(),this._onDidRun.fire({action:B,error:k}),[3,4];case 4:return[2]}})})},O.prototype.runAction=function(B,b){var C=b?B.run(b):B.run();return Promise.resolve(C)},O}(G.a)},"8hTe":function(ke,_,d){ke.exports={button:"button___1wy9m"}},"9Bee":function(ke,_,d){"use strict";var G=d("DYRE"),be=d("zeV3"),re=d("+L6B"),fe=d("2/Rp"),de=d("k1fw"),ne=d("9og8"),W=d("tJVT"),Y=d("WmNS"),O=d.n(Y),B=d("q1tI"),b=d.n(B),C=d("vg9a"),k=d("DlQD"),E=d.n(k),A=d("rUJ1");function L(c,o){var a=c.match(/^(\s+)(?:```)/);if(a===null)return o;var u=a[1];return o.split(`
`).map(function(f){var h=f.match(/^\s+/);if(h===null)return f;var V=Object(W.a)(h,1),Oe=V[0];return Oe.length>=u.length?f.slice(u.length):f}).join(`
`)}var g=[],v=["<ul>"],w=new E.a.Renderer,I=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){g.length=0,v=["<ul>"]}var te={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function oe(c,o,a,u){if(o>=c.length||c[o].level<=a)return o;var f=c[o];u.push("<li><a href='#"+f.anchor+"'>"+f.text+"</a>"),o++;var h=[];return o=oe(c,o,f.level,h),h.length>0&&(u.push("<ul>"),h.forEach(function(V){u.push(V)}),u.push("</ul>")),u.push("</li>"),o=oe(c,o,a,u),o}function Me(){return oe(g,0,0,v),v.push("</ul>"),v.join("")}var ge={heading:function(o){var a=I.exec(o);if(a)return{type:"heading",raw:a[0],depth:a[1].length,text:a[2]}},fences:function(o){var a=this.rules.block.fences.exec(o);if(a){var u=a[0],f=L(u,a[3]||""),h=a[2]?a[2].trim():a[2];if(["latex","katex","math"].indexOf(h)>=0){var V=T(),Oe=f;f=V,R[V]={type:"block",expression:Oe}}return{type:"code",raw:u,lang:h,text:f}}}},xe=/(?:\${2})([^\n`]+?)(?:\${2})/gi,ve=0,T=function(){return"__special_katext_id_".concat(ve++,"__")},R={};function ue(){return R}function K(){ve=0,R={}}function N(c){return c=c.replace(xe,function(o,a){var u=T();return R[u]={type:"inline",expression:a},u}),c}var X=w.listitem;w.listitem=function(c){return X(N(c))};var ie=w.paragraph;w.paragraph=function(c){return ie(N(c))};var J=w.tablecell;w.tablecell=function(c,o){return J(N(c),o)},w.code=function(c,o,a){var u=(o||"").match(/\S*/)[0];return u?["latex","katex","math"].indexOf(u)>=0?"<p class='editormd-tex'>".concat(c,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(o,'">').concat(a?c:Object(A.escape)(c,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(a?c:Object(A.escape)(c,!0))+"</code></pre>"},w.heading=function(c,o,a){var u=this.options.headerPrefix+a.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return g.push({anchor:u,level:o,text:c}),"<h"+o+' id="'+u+'">'+c+"</h"+o+">"},E.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),E.a.use({tokenizer:ge,renderer:w});var me=E.a,D=d("SJMd"),y=d("ulZh"),q=d.n(y),Ae=d("m3rI"),Se=d("Oy/b"),nt=d("p5ED"),at=d("ErOA");/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var We=function(c,o){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(a[f]=u[f])})(c,o)};function Le(c,o){function a(){this.constructor=c}We(c,o),c.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}function Ie(c,o,a,u){return new(a||(a=Promise))(function(f,h){function V(yt){try{Ze(u.next(yt))}catch(Ue){h(Ue)}}function Oe(yt){try{Ze(u.throw(yt))}catch(Ue){h(Ue)}}function Ze(yt){var Ue;yt.done?f(yt.value):(Ue=yt.value,Ue instanceof a?Ue:new a(function(Tt){Tt(Ue)})).then(V,Oe)}Ze((u=u.apply(c,o||[])).next())})}function Ne(c,o){var a,u,f,h,V={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return h={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function Oe(Ze){return function(yt){return function(Ue){if(a)throw new TypeError("Generator is already executing.");for(;V;)try{if(a=1,u&&(f=2&Ue[0]?u.return:Ue[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,Ue[1])).done)return f;switch(u=0,f&&(Ue=[2&Ue[0],f.value]),Ue[0]){case 0:case 1:f=Ue;break;case 4:return V.label++,{value:Ue[1],done:!1};case 5:V.label++,u=Ue[1],Ue=[0];continue;case 7:Ue=V.ops.pop(),V.trys.pop();continue;default:if(!(f=V.trys,(f=f.length>0&&f[f.length-1])||Ue[0]!==6&&Ue[0]!==2)){V=0;continue}if(Ue[0]===3&&(!f||Ue[1]>f[0]&&Ue[1]<f[3])){V.label=Ue[1];break}if(Ue[0]===6&&V.label<f[1]){V.label=f[1],f=Ue;break}if(f&&V.label<f[2]){V.label=f[2],V.ops.push(Ue);break}f[2]&&V.ops.pop(),V.trys.pop();continue}Ue=o.call(c,V)}catch(Tt){Ue=[6,Tt],u=0}finally{a=f=0}if(5&Ue[0])throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}([Ze,yt])}}}function se(){for(var c=0,o=0,a=arguments.length;o<a;o++)c+=arguments[o].length;var u=Array(c),f=0;for(o=0;o<a;o++)for(var h=arguments[o],V=0,Oe=h.length;V<Oe;V++,f++)u[f]=h[V];return u}var Z=function(){function c(){}return c.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},c.setAttributes=function(o,a){for(var u=0,f=a;u<f.length;u++){var h=f[u],V=h[0],Oe=h[1];o.setAttribute(V,Oe)}},c.createRect=function(o,a,u){var f=document.createElementNS("http://www.w3.org/2000/svg","rect");return f.setAttribute("width",o.toString()),f.setAttribute("height",a.toString()),u&&c.setAttributes(f,u),f},c.createLine=function(o,a,u,f,h){var V=document.createElementNS("http://www.w3.org/2000/svg","line");return V.setAttribute("x1",o.toString()),V.setAttribute("y1",a.toString()),V.setAttribute("x2",u.toString()),V.setAttribute("y2",f.toString()),h&&c.setAttributes(V,h),V},c.createPolygon=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","polygon");return u.setAttribute("points",o),a&&c.setAttributes(u,a),u},c.createCircle=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","circle");return u.setAttribute("cx",(o/2).toString()),u.setAttribute("cy",(o/2).toString()),u.setAttribute("r",o.toString()),a&&c.setAttributes(u,a),u},c.createEllipse=function(o,a,u){var f=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return f.setAttribute("cx",(o/2).toString()),f.setAttribute("cy",(a/2).toString()),f.setAttribute("rx",(o/2).toString()),f.setAttribute("ry",(a/2).toString()),u&&c.setAttributes(f,u),f},c.createGroup=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","g");return o&&c.setAttributes(a,o),a},c.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},c.createMarker=function(o,a,u,f,h,V,Oe){var Ze=document.createElementNS("http://www.w3.org/2000/svg","marker");return c.setAttributes(Ze,[["id",o],["orient",a],["markerWidth",u.toString()],["markerHeight",f.toString()],["refX",h.toString()],["refY",V.toString()]]),Ze.appendChild(Oe),Ze},c.createText=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","text");return a.setAttribute("x","0"),a.setAttribute("y","0"),o&&c.setAttributes(a,o),a},c.createTSpan=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","tspan");return u.textContent=o,a&&c.setAttributes(u,a),u},c.createImage=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","image");return o&&c.setAttributes(a,o),a},c.createPoint=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return u.x=o,u.y=a,u},c.createPath=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","path");return u.setAttribute("d",o),a&&c.setAttributes(u,a),u},c}(),ze=function(){function c(){}return c.addKey=function(o){c.key=o},Object.defineProperty(c,"isLicensed",{get:function(){return!!c.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(c.key)},enumerable:!1,configurable:!0}),c}(),Ye=function(){function c(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return c.prototype.rasterize=function(o,a,u){var f=this;return new Promise(function(h){var V=u!==void 0?u:document.createElement("canvas");o===null&&(f.markersOnly=!0,f.naturalSize=!1);var Oe=document.createElementNS("http://www.w3.org/2000/svg","svg");Oe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Oe.setAttribute("width",a.width.baseVal.valueAsString),Oe.setAttribute("height",a.height.baseVal.valueAsString),Oe.setAttribute("viewBox","0 0 "+a.viewBox.baseVal.width.toString()+" "+a.viewBox.baseVal.height.toString()),Oe.innerHTML=a.innerHTML,f.naturalSize===!0?(Oe.width.baseVal.value=o.naturalWidth,Oe.height.baseVal.value=o.naturalHeight):f.width!==void 0&&f.height!==void 0&&(Oe.width.baseVal.value=f.width,Oe.height.baseVal.value=f.height),V.width=Oe.width.baseVal.value,V.height=Oe.height.baseVal.value;var Ze=Oe.outerHTML,yt=V.getContext("2d");f.markersOnly!==!0&&yt.drawImage(o,0,0,V.width,V.height);var Ue=window.URL,Tt=new Image(V.width,V.height);Tt.setAttribute("crossOrigin","anonymous");var zt=new Blob([Ze],{type:"image/svg+xml"}),sn=Ue.createObjectURL(zt);Tt.onload=function(){yt.drawImage(Tt,0,0),Ue.revokeObjectURL(sn);var Yn=V.toDataURL(f.imageType,f.imageQuality);h(Yn)},Tt.src=sn})},c}(),Ke=function(){},rt=function(){function c(o){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+o+"_"}return Object.defineProperty(c.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),c.prototype.addClass=function(o){return this.styleSheet===void 0&&this.addStyleSheet(),o.name=""+this.classNamePrefix+o.localName,this.classes.push(o),this.styleSheet.sheet.insertRule("."+o.name+" {"+o.style+"}",this.styleSheet.sheet.cssRules.length),o},c.prototype.addRule=function(o){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(o),this.styleSheet.sheet.insertRule(o.selector+" {"+o.style+"}",this.styleSheet.sheet.cssRules.length)},c.prototype.addStyleSheet=function(){var o;this.styleSheet=document.createElement("style"),((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).appendChild(this.styleSheet),this.addRule(new U("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new U("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new U("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new F("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new F("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},c.prototype.removeStyleSheet=function(){var o;this.styleSheet&&(((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},c}(),U=function(c,o){this.selector=c,this.style=o},F=function(c,o){this.localName=c,this.style=o},he=function(){function c(o,a,u,f,h){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=o,this.displayMode=a,this.markerItems=u,this.uiStyleSettings=f,this.styles=h,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return c.prototype.show=function(o){var a=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=o,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var u=document.createElement("div");u.className=this.toolbarBlockStyleClass.name,u.style.whiteSpace="nowrap",this.uiContainer.appendChild(u),this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(u,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(h){var V=document.createElement("div");V.className=""+a.toolbarButtonStyleClass.name,V.setAttribute("data-type-name",h.typeName),V.innerHTML=h.icon,V.addEventListener("click",function(){a.markerToolbarButtonClicked(V,h)}),a.buttons.push(V),a.markerButtons.push(V)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var f=document.createElement("div");f.className=this.toolbarBlockStyleClass.name,f.style.whiteSpace="nowrap",f.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(f),this.addActionButton(f,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(f,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},c.prototype.addButtonClickListener=function(o){this.buttonClickListeners.push(o)},c.prototype.removeButtonClickListener=function(o){this.buttonClickListeners.indexOf(o)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(o),1)},c.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},c.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var o=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var a=0;a<this.markerButtons.length;a++)a<o||a===o&&this.markerButtons.length-1===o?this.markerButtonBlock.appendChild(this.markerButtons[a]):(a===o&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[a]))}},c.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},c.prototype.resetButtonStyles=function(){var o=this;this.buttons.forEach(function(a){a.className=a.className.replace(o.uiStyleSettings.toolbarButtonStyleColorsClassName?o.uiStyleSettings.toolbarButtonStyleColorsClassName:o.toolbarButtonStyleColorsClass.name,"").trim(),a.className=a.className.replace(o.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?o.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:o.toolbarActiveButtonStyleColorsClass.name,"").trim(),a.className+=" "+(o.uiStyleSettings.toolbarButtonStyleColorsClassName?o.uiStyleSettings.toolbarButtonStyleColorsClassName:o.toolbarButtonStyleColorsClass.name)})},c.prototype.addActionButton=function(o,a,u){var f=this,h=document.createElement("div");switch(h.className=""+this.toolbarButtonStyleClass.name,h.innerHTML=a,h.setAttribute("data-action",u),h.addEventListener("click",function(){f.actionToolbarButtonClicked(h,u)}),u){case"select":h.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":h.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":h.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":h.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":h.style.fill=this.uiStyleSettings.closeButtonColor}o.appendChild(h),this.buttons.push(h)},c.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new F("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new F("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new F("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new F("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new F("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var o=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new F("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*o)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*o)+`px;
padding: `+o+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new F("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new F("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new U("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new U("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},c.prototype.markerToolbarButtonClicked=function(o,a){this.setActiveButton(o),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(u){return u("marker",a)}),this.markerButtonOverflowBlock.style.display="none"},c.prototype.actionToolbarButtonClicked=function(o,a){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(u){return u("action",a)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},c.prototype.setActiveButton=function(o){this.resetButtonStyles(),o.className=o.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),o.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},c.prototype.setActiveMarkerButton=function(o){var a=this.markerButtons.find(function(u){return u.getAttribute("data-type-name")===o});a&&this.setActiveButton(a)},c.prototype.setCurrentMarker=function(o){var a=this;this.currentMarker=o,this.buttons.filter(function(u){return/delete|notes/.test(u.getAttribute("data-action"))}).forEach(function(u){a.currentMarker===void 0?(u.style.fillOpacity="0.4",u.style.pointerEvents="none"):(u.style.fillOpacity="1",u.style.pointerEvents="all")})},c}(),ye=function(){function c(o,a,u,f){this.panels=[],this.panelButtons=[],this.markerjsContainer=o,this.displayMode=a,this.uiStyleSettings=u,this.styles=f,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return c.prototype.addStyles=function(){var o;this.toolboxStyleClass=this.styles.addClass(new F("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new F("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var a=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new F("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new F("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new F("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new F("toolbox-panel-row_colors",`
background-color: `+((o=this.uiStyleSettings.toolboxBackgroundColor)!==null&&o!==void 0?o:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new F("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*a)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*a)+`px;
padding: `+a+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new F("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new F("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new U("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new U("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},c.prototype.show=function(o){var a;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=o,this.uiContainer.className=this.toolboxStyleClass.name+" "+((a=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&a!==void 0?a:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},c.prototype.setPanelButtons=function(o){var a,u,f=this;this.panels=o,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((a=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&a!==void 0?a:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((u=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&u!==void 0?u:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(h){var V;h.uiStyleSettings=f.uiStyleSettings;var Oe=document.createElement("div");Oe.className=f.toolboxButtonStyleClass.name+" "+((V=f.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&V!==void 0?V:f.toolboxButtonStyleColorsClass.name),Oe.innerHTML=h.icon,Oe.title=h.title,Oe.addEventListener("click",function(){f.panelButtonClick(h)}),f.panelButtons.push(Oe),f.buttonRow.appendChild(Oe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},c.prototype.panelButtonClick=function(o){var a=this,u=-1;if(o!==this.activePanel){u=this.panels.indexOf(o),this.panelRow.innerHTML="";var f=o.getUi();f.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(f),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=o}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){a.displayMode==="inline"?a.panelRow.style.display="none":a.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(h,V){var Oe,Ze;h.className=a.toolboxButtonStyleClass.name+" "+(V===u?""+((Oe=a.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Oe!==void 0?Oe:a.toolboxActiveButtonStyleColorsClass.name):""+((Ze=a.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ze!==void 0?Ze:a.toolboxButtonStyleColorsClass.name))})},c}(),Pe=function(c,o){this.title=c,this.icon=o},Be=function(c){function o(a,u,f,h){var V=c.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return V.colors=[],V.addTransparent=!1,V.colorBoxes=[],V.colors=u,V.currentColor=f,V.setCurrentColor=V.setCurrentColor.bind(V),V.getColorBox=V.getColorBox.bind(V),V}return Le(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.overflow="hidden",u.style.whiteSpace="nowrap",this.colors.forEach(function(f){var h=a.getColorBox(f);u.appendChild(h),a.colorBoxes.push(h)}),u},o.prototype.getColorBox=function(a){var u=this,f=this.uiStyleSettings.toolbarHeight/4,h=this.uiStyleSettings.toolbarHeight-f,V=document.createElement("div");V.style.display="inline-block",V.style.boxSizing="content-box",V.style.width=h-2+"px",V.style.height=h-2+"px",V.style.padding="1px",V.style.marginRight="2px",V.style.marginBottom="2px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.borderRadius=(h+2)/2+"px",V.style.borderColor=a===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){u.setCurrentColor(a,V)});var Oe=document.createElement("div");return Oe.style.display="inline-block",Oe.style.width=h-2+"px",Oe.style.height=h-2+"px",Oe.style.backgroundColor=a,Oe.style.borderRadius=h/2+"px",a==="transparent"&&(Oe.style.fill=this.uiStyleSettings.toolboxAccentColor,Oe.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),V.appendChild(Oe),V},o.prototype.setCurrentColor=function(a,u){var f=this;this.currentColor=a,this.colorBoxes.forEach(function(h){h.style.borderColor=h===u?f.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(a)},o}(Pe),De=function(){function c(o,a,u){this._state="new",this._isSelected=!1,this._container=o,this._overlayContainer=a,this.globalSettings=u,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(c.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),c.prototype.ownsTarget=function(o){return!1},Object.defineProperty(c.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),c.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},c.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},c.prototype.pointerDown=function(o,a){},c.prototype.dblClick=function(o,a){},c.prototype.manipulate=function(o){},c.prototype.pointerUp=function(o){this.stateChanged()},c.prototype.dispose=function(){},c.prototype.addMarkerVisualToContainer=function(o){this.container.childNodes.length>0?this.container.insertBefore(o,this.container.childNodes[0]):this.container.appendChild(o)},c.prototype.getState=function(){return{typeName:c.typeName,state:this.state,notes:this.notes}},c.prototype.restoreState=function(o){this._state=o.state,this.notes=o.notes},c.prototype.scale=function(o,a){},c.prototype.colorChanged=function(o){this.onColorChanged&&this.onColorChanged(o),this.stateChanged()},c.prototype.fillColorChanged=function(o){this.onFillColorChanged&&this.onFillColorChanged(o),this.stateChanged()},c.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var o=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),o.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(o)&&this.onStateChanged(this)}},c.typeName="MarkerBase",c}(),Ge=function(){function c(){this.findGripByVisual=this.findGripByVisual.bind(this)}return c.prototype.findGripByVisual=function(o){return this.topLeft.ownsTarget(o)?this.topLeft:this.topCenter.ownsTarget(o)?this.topCenter:this.topRight.ownsTarget(o)?this.topRight:this.centerLeft.ownsTarget(o)?this.centerLeft:this.centerRight.ownsTarget(o)?this.centerRight:this.bottomLeft.ownsTarget(o)?this.bottomLeft:this.bottomCenter.ownsTarget(o)?this.bottomCenter:this.bottomRight.ownsTarget(o)?this.bottomRight:void 0},c}(),lt=function(){function c(){this.GRIP_SIZE=10,this.visual=Z.createGroup(),this.visual.appendChild(Z.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Z.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return c.prototype.ownsTarget=function(o){return o===this.visual||o===this.visual.childNodes[0]||o===this.visual.childNodes[1]},c}(),qe=function(){function c(){}return c.toITransformMatrix=function(o){return{a:o.a,b:o.b,c:o.c,d:o.d,e:o.e,f:o.f}},c.toSVGMatrix=function(o,a){return o.a=a.a,o.b=a.b,o.c=a.c,o.d=a.d,o.e=a.e,o.f=a.f,o},c}(),Je=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.left=0,h.top=0,h.width=0,h.height=0,h.defaultSize={x:50,y:20},h.offsetX=0,h.offsetY=0,h.rotationAngle=0,h.CB_DISTANCE=10,h._suppressMarkerCreateEvent=!1,h.container.transform.baseVal.appendItem(Z.createTransform()),h.setupControlBox(),h}return Le(o,c),Object.defineProperty(o.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"visual",{get:function(){return this._visual},set:function(a){this._visual=a;var u=Z.createTransform();this._visual.transform.baseVal.appendItem(u)},enumerable:!1,configurable:!0}),o.prototype.ownsTarget=function(a){return!!c.prototype.ownsTarget.call(this,a)||!!(this.controlGrips.findGripByVisual(a)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(a))},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.left=a.x,this.top=a.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var f=this.unrotatePoint(a);if(this.manipulationStartX=f.x,this.manipulationStartY=f.y,this.offsetX=f.x-this.left,this.offsetY=f.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(u),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(u)){this.activeGrip=this.rotatorGrip;var h=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=h.x-this.width/2,this.top=h.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var V=this.container.transform.baseVal.getItem(0);V.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(V,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},o.prototype.pointerUp=function(a){var u=this.state;c.prototype.pointerUp.call(this,a),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(a),this._state="select",u==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},o.prototype.moveVisual=function(a){this.visual.style.transform="translate("+a.x+"px, "+a.y+"px)"},o.prototype.manipulate=function(a){var u=this.unrotatePoint(a);this.state==="creating"?this.resize(a):this.state==="move"?(this.left=this.manipulationStartLeft+(u.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(u.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(u):this.state==="rotate"&&this.rotate(a)},o.prototype.resize=function(a){var u=this.manipulationStartLeft,f=this.manipulationStartWidth,h=this.manipulationStartTop,V=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:u=this.manipulationStartLeft+a.x-this.manipulationStartX,f=this.manipulationStartWidth+this.manipulationStartLeft-u;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:f=this.manipulationStartWidth+a.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:h=this.manipulationStartTop+a.y-this.manipulationStartY,V=this.manipulationStartHeight+this.manipulationStartTop-h;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:V=this.manipulationStartHeight+a.y-this.manipulationStartY}f>=0?(this.left=u,this.width=f):(this.left=u+f,this.width=-f),V>=0?(this.top=h,this.height=V):(this.top=h+V,this.height=-V),this.setSize()},o.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},o.prototype.rotate=function(a){if(Math.abs(a.x-this.centerX)>.1){var u=Math.sign(a.x-this.centerX);this.rotationAngle=180*Math.atan((a.y-this.centerY)/(a.x-this.centerX))/Math.PI+90*u,this.applyRotation()}},o.prototype.applyRotation=function(){var a=this.container.transform.baseVal.getItem(0);a.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(a,0)},o.prototype.rotatePoint=function(a){if(this.rotationAngle===0)return a;var u=this.container.getCTM(),f=Z.createPoint(a.x,a.y);return{x:(f=f.matrixTransform(u)).x,y:f.y}},o.prototype.unrotatePoint=function(a){if(this.rotationAngle===0)return a;var u=this.container.getCTM();u=u.inverse();var f=Z.createPoint(a.x,a.y);return{x:(f=f.matrixTransform(u)).x,y:f.y}},o.prototype.select=function(){c.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},o.prototype.deselect=function(){c.prototype.deselect.call(this),this.controlBox.style.display="none"},o.prototype.setupControlBox=function(){this.controlBox=Z.createGroup();var a=Z.createTransform();a.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(a),this.container.appendChild(this.controlBox),this.controlRect=Z.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Z.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ge,this.addControlGrips(),this.controlBox.style.display="none"},o.prototype.adjustControlBox=function(){var a=this.controlBox.transform.baseVal.getItem(0);a.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(a,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},o.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},o.prototype.createGrip=function(){var a=new lt;return a.visual.transform.baseVal.appendItem(Z.createTransform()),this.controlBox.appendChild(a.visual),a},o.prototype.positionGrips=function(){var a=this.controlGrips.topLeft.GRIP_SIZE,u=-a/2,f=u,h=(this.width+this.CB_DISTANCE)/2-a/2,V=(this.height+this.CB_DISTANCE)/2-a/2,Oe=this.height+this.CB_DISTANCE-a/2,Ze=this.width+this.CB_DISTANCE-a/2;this.positionGrip(this.controlGrips.topLeft.visual,u,f),this.positionGrip(this.controlGrips.topCenter.visual,h,f),this.positionGrip(this.controlGrips.topRight.visual,Ze,f),this.positionGrip(this.controlGrips.centerLeft.visual,u,V),this.positionGrip(this.controlGrips.centerRight.visual,Ze,V),this.positionGrip(this.controlGrips.bottomLeft.visual,u,Oe),this.positionGrip(this.controlGrips.bottomCenter.visual,h,Oe),this.positionGrip(this.controlGrips.bottomRight.visual,Ze,Oe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,h,f-3*this.CB_DISTANCE)},o.prototype.positionGrip=function(a,u,f){var h=a.transform.baseVal.getItem(0);h.setTranslate(u,f),a.transform.baseVal.replaceItem(h,0)},o.prototype.hideControlBox=function(){this.controlBox.style.display="none"},o.prototype.showControlBox=function(){this.controlBox.style.display=""},o.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:qe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:qe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},c.prototype.getState.call(this))},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.left=u.left,this.top=u.top,this.width=u.width,this.height=u.height,this.rotationAngle=u.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(qe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,u.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(qe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,u.containerTransformMatrix))},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u);var f=this.rotatePoint({x:this.left,y:this.top}),h=this.unrotatePoint({x:f.x*a,y:f.y*u});this.left=h.x,this.top=h.y,this.width=this.width*a,this.height=this.height*u,this.adjustControlBox()},o}(De),Ve=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.fillColor="transparent",h.strokeColor="transparent",h.strokeWidth=0,h.strokeDasharray="",h.opacity=1,h.setStrokeColor=h.setStrokeColor.bind(h),h.setFillColor=h.setFillColor.bind(h),h.setStrokeWidth=h.setStrokeWidth.bind(h),h.setStrokeDasharray=h.setStrokeDasharray.bind(h),h.createVisual=h.createVisual.bind(h),h}return Le(o,c),o.prototype.ownsTarget=function(a){return!(!c.prototype.ownsTarget.call(this,a)&&a!==this.visual)},o.prototype.createVisual=function(){this.visual=Z.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},o.prototype.manipulate=function(a){c.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){c.prototype.resize.call(this,a),this.setSize()},o.prototype.setSize=function(){c.prototype.setSize.call(this),Z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},o.prototype.pointerUp=function(a){c.prototype.pointerUp.call(this,a),this.setSize()},o.prototype.setStrokeColor=function(a){this.strokeColor=a,this.visual&&Z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(a),this.stateChanged()},o.prototype.setFillColor=function(a){this.fillColor=a,this.visual&&Z.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},o.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.visual&&Z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},o.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.visual&&Z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},o.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},c.prototype.getState.call(this))},o.prototype.restoreState=function(a){var u=a;this.fillColor=u.fillColor,this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.opacity=u.opacity,this.createVisual(),c.prototype.restoreState.call(this,a),this.setSize()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),this.setSize()},o.title="Rectangle marker",o}(Je),Ct=function(c){function o(a,u,f,h){var V=c.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return V.widths=[],V.widthBoxes=[],V.widths=u,V.currentWidth=f,V.setCurrentWidth=V.setCurrentWidth.bind(V),V}return Le(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2",this.widths.forEach(function(f){var h=document.createElement("div");h.style.display="flex",h.style.flexGrow="2",h.style.alignItems="center",h.style.justifyContent="space-between",h.style.padding="5px",h.style.borderWidth="2px",h.style.borderStyle="solid",h.style.borderColor=f===a.currentWidth?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentWidth(f,h)}),u.appendChild(h);var V=document.createElement("div");V.innerText=f.toString(),V.style.marginRight="5px",h.appendChild(V);var Oe=document.createElement("div");Oe.style.minHeight="20px",Oe.style.flexGrow="2",Oe.style.display="flex",Oe.style.alignItems="center";var Ze=document.createElement("hr");Ze.style.minWidth="20px",Ze.style.border="0px",Ze.style.borderTop=f+"px solid "+a.uiStyleSettings.toolboxColor,Ze.style.flexGrow="2",Oe.appendChild(Ze),h.appendChild(Oe),a.widthBoxes.push(h)}),u},o.prototype.setCurrentWidth=function(a,u){var f=this;this.currentWidth=a,this.widthBoxes.forEach(function(h){h.style.borderColor=h===u?f.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},o}(Pe),pt=function(c){function o(a,u,f,h){var V=c.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return V.styles=[],V.styleBoxes=[],V.styles=u,V.currentStyle=f,V.setCurrentStyle=V.setCurrentStyle.bind(V),V}return Le(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2",this.styles.forEach(function(f){var h=document.createElement("div");h.style.display="flex",h.style.alignItems="center",h.style.justifyContent="space-between",h.style.padding="5px",h.style.borderWidth="2px",h.style.borderStyle="solid",h.style.overflow="hidden",h.style.maxWidth=100/a.styles.length-5+"%",h.style.borderColor=f===a.currentStyle?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentStyle(f,h)}),u.appendChild(h);var V=document.createElement("div");V.style.minHeight="20px",V.style.flexGrow="2",V.style.overflow="hidden";var Oe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+a.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(f!==""?'stroke-dasharray="'+f+'"':"")+` />
</svg>`;V.innerHTML=Oe,h.appendChild(V),a.styleBoxes.push(h)}),u},o.prototype.setCurrentStyle=function(a,u){var f=this;this.currentStyle=a,this.styleBoxes.forEach(function(h){h.style.borderColor=h===u?f.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},o}(Pe),ht=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.strokeColor=f.defaultColor,h.strokeWidth=f.defaultStrokeWidth,h.strokeDasharray=f.defaultStrokeDasharray,h.strokePanel=new Be("Line color",f.defaultColorSet,f.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.strokeWidthPanel=new Ct("Line width",f.defaultStrokeWidths,f.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new pt("Line style",f.defaultStrokeDasharrays,f.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h}return Le(o,c),Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=c.prototype.getState.call(this);return a.typeName=o.typeName,a},o.typeName="FrameMarker",o.title="Frame marker",o.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',o}(Ve),Ee=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},Xe=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.x1=0,h.y1=0,h.x2=0,h.y2=0,h.defaultLength=50,h.manipulationStartX=0,h.manipulationStartY=0,h.manipulationStartX1=0,h.manipulationStartY1=0,h.manipulationStartX2=0,h.manipulationStartY2=0,h.setupControlBox(),h}return Le(o,c),o.prototype.ownsTarget=function(a){return!!c.prototype.ownsTarget.call(this,a)||!(!this.grip1.ownsTarget(a)&&!this.grip2.ownsTarget(a))},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),this.manipulationStartX=a.x,this.manipulationStartY=a.y,this.state==="new"&&(this.x1=a.x,this.y1=a.y,this.x2=a.x,this.y2=a.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(u)?this.activeGrip=this.grip1:this.grip2.ownsTarget(u)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},o.prototype.pointerUp=function(a){var u=this.state;c.prototype.pointerUp.call(this,a),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(a),this._state="select",u==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},o.prototype.adjustVisual=function(){},o.prototype.manipulate=function(a){this.state==="creating"?this.resize(a):this.state==="move"?(this.x1=this.manipulationStartX1+a.x-this.manipulationStartX,this.y1=this.manipulationStartY1+a.y-this.manipulationStartY,this.x2=this.manipulationStartX2+a.x-this.manipulationStartX,this.y2=this.manipulationStartY2+a.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(a)},o.prototype.resize=function(a){switch(this.activeGrip){case this.grip1:this.x1=a.x,this.y1=a.y;break;case this.grip2:case void 0:this.x2=a.x,this.y2=a.y}this.adjustVisual(),this.adjustControlBox()},o.prototype.select=function(){c.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},o.prototype.deselect=function(){c.prototype.deselect.call(this),this.controlBox.style.display="none"},o.prototype.setupControlBox=function(){this.controlBox=Z.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},o.prototype.adjustControlBox=function(){this.positionGrips()},o.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},o.prototype.createGrip=function(){var a=new lt;return a.visual.transform.baseVal.appendItem(Z.createTransform()),this.controlBox.appendChild(a.visual),a},o.prototype.positionGrips=function(){var a=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-a/2,this.y1-a/2),this.positionGrip(this.grip2.visual,this.x2-a/2,this.y2-a/2)},o.prototype.positionGrip=function(a,u,f){var h=a.transform.baseVal.getItem(0);h.setTranslate(u,f),a.transform.baseVal.replaceItem(h,0)},o.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},c.prototype.getState.call(this))},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.x1=u.x1,this.y1=u.y1,this.x2=u.x2,this.y2=u.y2},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),this.x1=this.x1*a,this.y1=this.y1*u,this.x2=this.x2*a,this.y2=this.y2*u,this.adjustVisual(),this.adjustControlBox()},o}(De),ut=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.strokeColor="transparent",h.strokeWidth=0,h.strokeDasharray="",h.setStrokeColor=h.setStrokeColor.bind(h),h.setStrokeWidth=h.setStrokeWidth.bind(h),h.setStrokeDasharray=h.setStrokeDasharray.bind(h),h.strokeColor=f.defaultColor,h.strokeWidth=f.defaultStrokeWidth,h.strokeDasharray=f.defaultStrokeDasharray,h.strokePanel=new Be("Line color",f.defaultColorSet,f.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.strokeWidthPanel=new Ct("Line width",f.defaultStrokeWidths,f.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new pt("Line style",f.defaultStrokeDasharrays,f.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h}return Le(o,c),o.prototype.ownsTarget=function(a){return!(!c.prototype.ownsTarget.call(this,a)&&a!==this.visual&&a!==this.selectorLine&&a!==this.visibleLine)},o.prototype.createVisual=function(){this.visual=Z.createGroup(),this.selectorLine=Z.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Z.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},o.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Z.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Z.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Z.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},o.prototype.setStrokeColor=function(a){this.strokeColor=a,this.adjustVisual(),this.colorChanged(a)},o.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.adjustVisual()},o.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.adjustVisual(),this.stateChanged()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.createVisual(),this.adjustVisual()},o.typeName="LineMarker",o.title="Line marker",o.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',o}(Xe),we=function(c){function o(a,u,f,h){var V=c.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return V.fonts=[],V.fontBoxes=[],V.fonts=u,V.currentFont=f,V.setCurrentFont=V.setCurrentFont.bind(V),V}return Le(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.overflow="hidden",u.style.flexGrow="2",this.fonts.forEach(function(f){var h=document.createElement("div");h.style.display="inline-block",h.style.alignItems="center",h.style.justifyContent="space-between",h.style.padding="5px",h.style.borderWidth="2px",h.style.borderStyle="solid",h.style.overflow="hidden",h.style.maxWidth=100/a.fonts.length-5+"%",h.style.borderColor=f===a.currentFont?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentFont(f,h)}),u.appendChild(h);var V=document.createElement("div");V.style.display="flex",V.style.minHeight="20px",V.style.flexGrow="2",V.style.fontFamily=f,V.style.overflow="hidden";var Oe=document.createElement("div");Oe.style.whiteSpace="nowrap",Oe.style.overflow="hidden",Oe.style.textOverflow="ellipsis",Oe.innerHTML="The quick brown fox jumps over the lazy dog",V.appendChild(Oe),h.appendChild(V),a.fontBoxes.push(h)}),u},o.prototype.setCurrentFont=function(a,u){var f=this;this.currentFont=a,this.fontBoxes.forEach(function(h){h.style.borderColor=h===u?f.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},o}(Pe),_e=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.color="transparent",h.padding=5,h.DEFAULT_TEXT="your text here",h.text=h.DEFAULT_TEXT,h.isMoved=!1,h.color=f.defaultColor,h.fontFamily=f.defaultFontFamily,h.defaultSize={x:100,y:30},h.setColor=h.setColor.bind(h),h.setFont=h.setFont.bind(h),h.renderText=h.renderText.bind(h),h.sizeText=h.sizeText.bind(h),h.textEditDivClicked=h.textEditDivClicked.bind(h),h.showTextEditor=h.showTextEditor.bind(h),h.setSize=h.setSize.bind(h),h.positionTextEditor=h.positionTextEditor.bind(h),h.colorPanel=new Be("Color",f.defaultColorSet,f.defaultColor),h.colorPanel.onColorChanged=h.setColor,h.fontFamilyPanel=new we("Font",f.defaultFontFamilies,f.defaultFontFamily),h.fontFamilyPanel.onFontChanged=h.setFont,h}return Le(o,c),o.prototype.ownsTarget=function(a){if(c.prototype.ownsTarget.call(this,a)||a===this.visual||a===this.textElement||a===this.bgRectangle)return!0;var u=!1;return this.textElement.childNodes.forEach(function(f){f===a&&(u=!0)}),u},o.prototype.createVisual=function(){this.visual=Z.createGroup(),this.bgRectangle=Z.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Z.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Z.createTransform()),this.textElement.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),this.isMoved=!1,this.pointerDownPoint=a,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},o.prototype.renderText=function(){var a=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(u){a.textElement.appendChild(Z.createTSpan(u.trim()===""?" ":u.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},o.prototype.getTextScale=function(){var a=this.textElement.getBBox(),u=1;if(a.width>0&&a.height>0){var f=(1*this.width-this.width*this.padding*2/100)/a.width,h=(1*this.height-this.height*this.padding*2/100)/a.height;u=Math.min(f,h)}return u},o.prototype.getTextPosition=function(a){var u=this.textElement.getBBox(),f=0,h=0;return u.width>0&&u.height>0&&(f=(this.width-u.width*a)/2,h=this.height/2-u.height*a/2),{x:f,y:h}},o.prototype.sizeText=function(){var a=this.textElement.getBBox(),u=this.getTextScale(),f=this.getTextPosition(u);f.y-=a.y*u,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+f.x+"px, "+f.y+"px) scale("+u+", "+u+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(f.x,f.y),this.textElement.transform.baseVal.getItem(1).setScale(u,u))},o.prototype.manipulate=function(a){c.prototype.manipulate.call(this,a),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(a.x-this.pointerDownPoint.x)>5||Math.abs(a.y-this.pointerDownPoint.y)>5)},o.prototype.resize=function(a){c.prototype.resize.call(this,a),this.isMoved=!0,this.setSize(),this.sizeText()},o.prototype.setSize=function(){c.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Z.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},o.prototype.pointerUp=function(a){var u=this.state;u==="creating"&&(this._suppressMarkerCreateEvent=!0),c.prototype.pointerUp.call(this,a),this.setSize(),(u==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},o.prototype.showTextEditor=function(){var a=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(u){u.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var u=Number.parseFloat(a.textEditor.style.fontSize);a.textEditor.clientWidth>=Number.parseInt(a.textEditor.style.maxWidth)&&u>.9;)u-=.1,a.textEditor.style.fontSize=Math.max(u,.9)+"em"}),this.textEditor.addEventListener("keyup",function(u){u.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(u){if(u.clipboardData){var f=u.clipboardData.getData("text"),h=window.getSelection();if(!h.rangeCount)return!1;h.deleteFromDocument(),h.getRangeAt(0).insertNode(document.createTextNode(f)),u.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){a.textEditDivClicked(a.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},o.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var a=this.getTextScale(),u=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),f=this.textElement.getBBox(),h={x:f.width*a,y:f.height*a};u.x-=h.x/2,u.y-=h.y/2,this.textEditor.style.top=u.y+"px",this.textEditor.style.left=u.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-u.x+"px",this.textEditor.style.fontSize=Math.max(16*a,12)+"px",this.textElement.style.display="none"}},o.prototype.textEditDivClicked=function(a){this.text=a.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},o.prototype.select=function(){c.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},o.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),c.prototype.deselect.call(this)},o.prototype.dblClick=function(a,u){c.prototype.dblClick.call(this,a,u),this.showTextEditor()},o.prototype.setColor=function(a){this.textElement&&Z.setAttributes(this.textElement,[["fill",a]]),this.color=a,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(a)},o.prototype.setFont=function(a){this.textElement&&Z.setAttributes(this.textElement,[["font-family",a]]),this.fontFamily=a,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},o.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},o.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){var u=a;this.color=u.color,this.fontFamily=u.fontFamily,this.padding=u.padding,this.text=u.text,this.createVisual(),c.prototype.restoreState.call(this,a),this.setSize()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),this.setSize(),this.sizeText(),this.positionTextEditor()},o.typeName="TextMarker",o.title="Text marker",o.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',o}(Je),ee=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.color="transparent",h.lineWidth=3,h.drawing=!1,h.pixelRatio=1,h.color=f.defaultColor,h.lineWidth=f.defaultStrokeWidth,h.pixelRatio=f.freehandPixelRatio,h.setColor=h.setColor.bind(h),h.addCanvas=h.addCanvas.bind(h),h.finishCreation=h.finishCreation.bind(h),h.setLineWidth=h.setLineWidth.bind(h),h.colorPanel=new Be("Color",f.defaultColorSet,f.defaultColor),h.colorPanel.onColorChanged=h.setColor,h.lineWidthPanel=new Ct("Line width",f.defaultStrokeWidths,f.defaultStrokeWidth),h.lineWidthPanel.onWidthChanged=h.setLineWidth,h}return Le(o,c),o.prototype.ownsTarget=function(a){return!(!c.prototype.ownsTarget.call(this,a)&&a!==this.visual&&a!==this.drawingImage)},o.prototype.createVisual=function(){this.visual=Z.createGroup(),this.drawingImage=Z.createImage(),this.visual.appendChild(this.drawingImage);var a=Z.createTransform();this.visual.transform.baseVal.appendItem(a),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,u){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(a.x,a.y),this.drawing=!0):c.prototype.pointerDown.call(this,a,u)},o.prototype.manipulate=function(a){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(a.x,a.y),this.canvasContext.stroke()):c.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){c.prototype.resize.call(this,a),Z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},o.prototype.pointerUp=function(a){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):c.prototype.pointerUp.call(this,a)},o.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},o.prototype.select=function(){this.state==="creating"&&this.finishCreation(),c.prototype.select.call(this)},o.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),c.prototype.deselect.call(this)},o.prototype.finishCreation=function(){for(var a=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),u=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],f=u[0],h=u[1],V=u[2],Oe=u[3],Ze=!1,yt=0;yt<this.canvasElement.height;yt++)for(var Ue=0;Ue<this.canvasElement.width;Ue++)a.data[yt*this.canvasElement.width*4+4*Ue+3]>0&&(Ze=!0,yt<h&&(h=yt),Ue<f&&(f=Ue),yt>Oe&&(Oe=yt),Ue>V&&(V=Ue));if(Ze){this.left=f/this.pixelRatio,this.top=h/this.pixelRatio,this.width=(V-f)/this.pixelRatio,this.height=(Oe-h)/this.pixelRatio;var Tt=document.createElement("canvas");Tt.width=V-f,Tt.height=Oe-h,Tt.getContext("2d").putImageData(this.canvasContext.getImageData(f,h,V-f,Oe-h),0,0),this.drawingImgUrl=Tt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},o.prototype.setDrawingImage=function(){Z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Z.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},o.prototype.setColor=function(a){this.color=a,this.colorChanged(a)},o.prototype.setLineWidth=function(a){this.lineWidth=a},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({drawingImgUrl:this.drawingImgUrl},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){this.createVisual(),c.prototype.restoreState.call(this,a),this.drawingImgUrl=a.drawingImgUrl,this.setDrawingImage()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),this.setDrawingImage()},o.typeName="FreehandMarker",o.title="Freehand marker",o.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',o}(Je),Q=function(c){function o(a,u,f){var h=c.call(this,a,f||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return h.typeBoxes=[],h.currentType=u,h.setCurrentType=h.setCurrentType.bind(h),h}return Le(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2";for(var f=function(Oe){var Ze="both";switch(Oe){case 0:Ze="both";break;case 1:Ze="start";break;case 2:Ze="end";break;case 3:Ze="none"}var yt=document.createElement("div");if(yt.style.display="flex",yt.style.flexGrow="2",yt.style.alignItems="center",yt.style.justifyContent="space-between",yt.style.padding="5px",yt.style.borderWidth="2px",yt.style.borderStyle="solid",yt.style.borderColor=Ze===h.currentType?h.uiStyleSettings.toolboxAccentColor:"transparent",yt.addEventListener("click",function(){a.setCurrentType(Ze,yt)}),u.appendChild(yt),Ze==="both"||Ze==="start"){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.alignItems="center",Ue.style.minHeight="20px",Ue.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(h.uiStyleSettings!==void 0?h.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ue.style.marginLeft="5px",yt.appendChild(Ue)}var Tt=document.createElement("div");Tt.style.display="flex",Tt.style.alignItems="center",Tt.style.minHeight="20px",Tt.style.flexGrow="2";var zt=document.createElement("hr");if(zt.style.minWidth="20px",zt.style.border="0px",zt.style.borderTop="3px solid "+(h.uiStyleSettings!==void 0?h.uiStyleSettings.toolboxColor:"#eeeeee"),zt.style.flexGrow="2",Tt.appendChild(zt),yt.appendChild(Tt),Ze==="both"||Ze==="end"){var sn=document.createElement("div");sn.style.display="flex",sn.style.alignItems="center",sn.style.minHeight="20px",sn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(h.uiStyleSettings!==void 0?h.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,sn.style.marginRight="5px",yt.appendChild(sn)}h.typeBoxes.push(yt)},h=this,V=0;V<4;V++)f(V);return u},o.prototype.setCurrentType=function(a,u){var f=this;this.currentType=a,this.typeBoxes.forEach(function(h){h.style.borderColor=h===u?f.uiStyleSettings!==void 0?f.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},o}(Pe),$=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.arrowType="end",h.arrowBaseHeight=10,h.arrowBaseWidth=10,h.getArrowPoints=h.getArrowPoints.bind(h),h.setArrowType=h.setArrowType.bind(h),h.arrowTypePanel=new Q("Arrow type","end"),h.arrowTypePanel.onArrowTypeChanged=h.setArrowType,h}return Le(o,c),o.prototype.ownsTarget=function(a){return!(!c.prototype.ownsTarget.call(this,a)&&a!==this.arrow1&&a!==this.arrow2)},o.prototype.getArrowPoints=function(a,u){var f=this.arrowBaseWidth+2*this.strokeWidth,h=this.arrowBaseHeight+2*this.strokeWidth;return a-f/2+","+(u+h/2)+" "+a+","+(u-h/2)+" "+(a+f/2)+","+(u+h/2)},o.prototype.createTips=function(){this.arrow1=Z.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Z.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.arrow2)},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),this.state==="creating"&&this.createTips()},o.prototype.adjustVisual=function(){if(c.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Z.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Z.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var a=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),u=this.arrow1.transform.baseVal.getItem(0);u.setRotate(a,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(u,0);var f=this.arrow2.transform.baseVal.getItem(0);f.setRotate(a+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(f,0)}},o.prototype.setArrowType=function(a){this.arrowType=a,this.adjustVisual(),this.stateChanged()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({arrowType:this.arrowType},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.arrowType=u.arrowType,this.createTips(),this.adjustVisual()},o.typeName="ArrowMarker",o.title="Arrow marker",o.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',o}(ut),S=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.fillColor=f.defaultFillColor,h.strokeWidth=0,h.fillPanel=new Be("Color",f.defaultColorSet,f.defaultFillColor),h.fillPanel.onColorChanged=h.setFillColor,h}return Le(o,c),Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=c.prototype.getState.call(this);return a.typeName=o.typeName,a},o.typeName="CoverMarker",o.title="Cover marker",o.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',o}(Ve),M=function(c){function o(a,u,f,h){var V=c.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return V.opacities=[],V.opacityBoxes=[],V.opacities=u,V.currentOpacity=f,V.setCurrentOpacity=V.setCurrentOpacity.bind(V),V}return Le(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2",u.style.justifyContent="space-between",this.opacities.forEach(function(f){var h=document.createElement("div");h.style.display="flex",h.style.alignItems="center",h.style.justifyContent="center",h.style.padding="5px",h.style.borderWidth="2px",h.style.borderStyle="solid",h.style.borderColor=f===a.currentOpacity?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentOpacity(f,h)}),u.appendChild(h);var V=document.createElement("div");V.innerText=100*f+"%",h.appendChild(V),a.opacityBoxes.push(h)}),u},o.prototype.setCurrentOpacity=function(a,u){var f=this;this.currentOpacity=a,this.opacityBoxes.forEach(function(h){h.style.borderColor=h===u?f.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},o}(Pe),j=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.setOpacity=h.setOpacity.bind(h),h.fillColor=f.defaultHighlightColor,h.strokeWidth=0,h.opacity=f.defaultHighlightOpacity,h.fillPanel=new Be("Color",f.defaultColorSet,h.fillColor),h.fillPanel.onColorChanged=h.setFillColor,h.opacityPanel=new M("Opacity",f.defaultOpacitySteps,h.opacity),h.opacityPanel.onOpacityChanged=h.setOpacity,h}return Le(o,c),o.prototype.setOpacity=function(a){this.opacity=a,this.visual&&Z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=c.prototype.getState.call(this);return a.typeName=o.typeName,a},o.typeName="HighlightMarker",o.title="Highlight marker",o.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',o}(S),z='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ce=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.bgColor="transparent",h.tipPosition={x:0,y:0},h.tipBase1Position={x:0,y:0},h.tipBase2Position={x:0,y:0},h.tipMoving=!1,h.color=f.defaultStrokeColor,h.bgColor=f.defaultFillColor,h.fontFamily=f.defaultFontFamily,h.defaultSize={x:100,y:30},h.setBgColor=h.setBgColor.bind(h),h.getTipPoints=h.getTipPoints.bind(h),h.positionTip=h.positionTip.bind(h),h.setTipPoints=h.setTipPoints.bind(h),h.colorPanel=new Be("Text color",f.defaultColorSet,h.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),h.colorPanel.onColorChanged=h.setColor,h.bgColorPanel=new Be("Fill color",f.defaultColorSet,h.bgColor,z),h.bgColorPanel.onColorChanged=h.setBgColor,h.fontFamilyPanel=new we("Font",f.defaultFontFamilies,f.defaultFontFamily),h.fontFamilyPanel.onFontChanged=h.setFont,h.tipGrip=new lt,h.tipGrip.visual.transform.baseVal.appendItem(Z.createTransform()),h.controlBox.appendChild(h.tipGrip.visual),h}return Le(o,c),o.prototype.ownsTarget=function(a){return c.prototype.ownsTarget.call(this,a)||this.tipGrip.ownsTarget(a)||this.tip===a},o.prototype.createTip=function(){Z.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Z.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},o.prototype.pointerDown=function(a,u){this.state==="new"&&c.prototype.pointerDown.call(this,a,u),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(u)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):c.prototype.pointerDown.call(this,a,u)},o.prototype.pointerUp=function(a){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,c.prototype.pointerUp.call(this,a);else{var u=this.state==="creating";c.prototype.pointerUp.call(this,a),this.setTipPoints(u),this.positionTip()}},o.prototype.manipulate=function(a){if(this.tipMoving){var u=this.unrotatePoint(a);this.tipPosition={x:u.x-this.manipulationStartLeft,y:u.y-this.manipulationStartTop},this.positionTip()}else c.prototype.manipulate.call(this,a)},o.prototype.setBgColor=function(a){this.bgRectangle&&this.tip&&(Z.setAttributes(this.bgRectangle,[["fill",a]]),Z.setAttributes(this.tip,[["fill",a]])),this.bgColor=a,this.fillColorChanged(a)},o.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},o.prototype.setTipPoints=function(a){a===void 0&&(a=!1);var u=Math.min(this.height/2,15),f=this.height/5;a&&(this.tipPosition={x:u+f/2,y:this.height+20});var h=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?h<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(f=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:u,y:0},this.tipBase2Position={x:u+f,y:0}):(this.tipBase1Position={x:0,y:u},this.tipBase2Position={x:0,y:u+f}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?h<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(f=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-u-f,y:0},this.tipBase2Position={x:this.width-u,y:0}):(this.tipBase1Position={x:this.width,y:u},this.tipBase2Position={x:this.width,y:u+f}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?h<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(f=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-u-f,y:this.height},this.tipBase2Position={x:this.width-u,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-u-f},this.tipBase2Position={x:this.width,y:this.height-u}):h<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(f=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:u,y:this.height},this.tipBase2Position={x:u+f,y:this.height}):(this.tipBase1Position={x:0,y:this.height-u},this.tipBase2Position={x:0,y:this.height-u-f})},o.prototype.resize=function(a){c.prototype.resize.call(this,a),this.positionTip()},o.prototype.positionTip=function(){Z.setAttributes(this.tip,[["points",this.getTipPoints()]]);var a=this.tipGrip.visual.transform.baseVal.getItem(0);a.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(a,0)},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),o.prototype.select=function(){this.positionTip(),c.prototype.select.call(this)},o.prototype.getState=function(){var a=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){var u=a;this.bgColor=u.bgColor,this.tipPosition=u.tipPosition,c.prototype.restoreState.call(this,a),this.createTip(),this.setTipPoints()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),this.tipPosition={x:this.tipPosition.x*a,y:this.tipPosition.y*u},this.positionTip()},o.typeName="CalloutMarker",o.title="Callout marker",o.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',o}(_e),ae=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.fillColor="transparent",h.strokeColor="transparent",h.strokeWidth=0,h.strokeDasharray="",h.opacity=1,h.strokeColor=f.defaultColor,h.strokeWidth=f.defaultStrokeWidth,h.strokeDasharray=f.defaultStrokeDasharray,h.fillColor=f.defaultFillColor,h.setStrokeColor=h.setStrokeColor.bind(h),h.setFillColor=h.setFillColor.bind(h),h.setStrokeWidth=h.setStrokeWidth.bind(h),h.setStrokeDasharray=h.setStrokeDasharray.bind(h),h.setOpacity=h.setOpacity.bind(h),h.createVisual=h.createVisual.bind(h),h.strokePanel=new Be("Line color",se(f.defaultColorSet,["transparent"]),f.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.fillPanel=new Be("Fill color",se(f.defaultColorSet,["transparent"]),h.fillColor,z),h.fillPanel.onColorChanged=h.setFillColor,h.strokeWidthPanel=new Ct("Line width",f.defaultStrokeWidths,f.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new pt("Line style",f.defaultStrokeDasharrays,f.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h.opacityPanel=new M("Opacity",f.defaultOpacitySteps,h.opacity),h.opacityPanel.onOpacityChanged=h.setOpacity,h}return Le(o,c),o.prototype.ownsTarget=function(a){return!(!c.prototype.ownsTarget.call(this,a)&&a!==this.visual)},o.prototype.createVisual=function(){this.visual=Z.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},o.prototype.manipulate=function(a){c.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){c.prototype.resize.call(this,a),this.setSize()},o.prototype.setSize=function(){c.prototype.setSize.call(this),Z.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},o.prototype.pointerUp=function(a){c.prototype.pointerUp.call(this,a),this.setSize()},o.prototype.setStrokeColor=function(a){this.strokeColor=a,this.visual&&Z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(a),this.stateChanged()},o.prototype.setFillColor=function(a){this.fillColor=a,this.visual&&Z.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(a),this.stateChanged()},o.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.visual&&Z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},o.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.visual&&Z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},o.prototype.setOpacity=function(a){this.opacity=a,this.visual&&Z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){var u=a;this.fillColor=u.fillColor,this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.opacity=u.opacity,this.createVisual(),c.prototype.restoreState.call(this,a),this.setSize()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),this.setSize()},o.typeName="EllipseMarker",o.title="Ellipse marker",o.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',o}(Je),je=function(c){function o(a,u,f){return c.call(this,a,u,f)||this}return Le(o,c),Object.defineProperty(o.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),o.prototype.ownsTarget=function(a){return!(!c.prototype.ownsTarget.call(this,a)&&a!==this.tip1&&a!==this.tip2)},o.prototype.createTips=function(){this.tip1=Z.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Z.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Z.createTransform()),this.visual.appendChild(this.tip2)},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),this.state==="creating"&&this.createTips()},o.prototype.adjustVisual=function(){if(c.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Z.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Z.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var a=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),u=this.tip1.transform.baseVal.getItem(0);u.setRotate(a,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(u,0);var f=this.tip2.transform.baseVal.getItem(0);f.setRotate(a+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(f,0)}},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=c.prototype.getState.call(this);return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a),this.createTips(),this.adjustVisual()},o.typeName="MeasurementMarker",o.title="Measurement marker",o.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',o}(ut),$e=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.strokePanel.colors=f.defaultColorSet,h.fillColor="transparent",h}return Le(o,c),Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=c.prototype.getState.call(this);return a.typeName=o.typeName,a},o.typeName="EllipseFrameMarker",o.title="Ellipse frame marker",o.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',o}(ae),dt=function(){function c(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(c.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),c.prototype.addUndoStep=function(o){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(o)||(this.undoStack.push(o),JSON.stringify(this.lastRedoStep)!==JSON.stringify(o)&&this.redoStack.splice(0,this.redoStack.length))},c.prototype.replaceLastUndoStep=function(o){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=o)},c.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},c.prototype.undo=function(){if(this.undoStack.length>1){var o=this.undoStack.pop();return o!==void 0&&this.redoStack.push(o),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},c.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},c}(),st=function(c){function o(a,u,f){var h=c.call(this,a,u,f)||this;return h.strokeColor="transparent",h.strokeWidth=0,h.strokeDasharray="",h.curveX=0,h.curveY=0,h.manipulationStartCurveX=0,h.manipulationStartCurveY=0,h.setStrokeColor=h.setStrokeColor.bind(h),h.setStrokeWidth=h.setStrokeWidth.bind(h),h.setStrokeDasharray=h.setStrokeDasharray.bind(h),h.positionGrips=h.positionGrips.bind(h),h.addControlGrips=h.addControlGrips.bind(h),h.adjustVisual=h.adjustVisual.bind(h),h.setupControlBox=h.setupControlBox.bind(h),h.resize=h.resize.bind(h),h.strokeColor=f.defaultColor,h.strokeWidth=f.defaultStrokeWidth,h.strokeDasharray=f.defaultStrokeDasharray,h.strokePanel=new Be("Line color",f.defaultColorSet,f.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.strokeWidthPanel=new Ct("Line width",f.defaultStrokeWidths,f.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new pt("Line style",f.defaultStrokeDasharrays,f.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h}return Le(o,c),o.prototype.ownsTarget=function(a){return!(!c.prototype.ownsTarget.call(this,a)&&a!==this.visual&&a!==this.selectorCurve&&a!==this.visibleCurve&&!this.curveGrip.ownsTarget(a))},o.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},o.prototype.createVisual=function(){this.visual=Z.createGroup(),this.selectorCurve=Z.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Z.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=a.x,this.curveY=a.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(u)&&(this.activeGrip=this.curveGrip,this._state="resize")},o.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Z.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Z.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Z.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},o.prototype.setupControlBox=function(){c.prototype.setupControlBox.call(this),this.curveControlLine1=Z.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Z.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},o.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,c.prototype.addControlGrips.call(this)},o.prototype.positionGrips=function(){c.prototype.positionGrips.call(this);var a=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-a/2,this.curveY-a/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},o.prototype.manipulate=function(a){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+a.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+a.y-this.manipulationStartY),c.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){this.activeGrip===this.curveGrip&&(this.curveX=a.x,this.curveY=a.y),c.prototype.resize.call(this,a),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},o.prototype.setStrokeColor=function(a){this.strokeColor=a,this.adjustVisual(),this.colorChanged(a)},o.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.adjustVisual()},o.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.adjustVisual()},o.prototype.scale=function(a,u){this.curveX=this.curveX*a,this.curveY=this.curveY*u,c.prototype.scale.call(this,a,u)},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.curveX=u.curveX,this.curveY=u.curveY,this.createVisual(),this.adjustVisual()},o.typeName="CurveMarker",o.title="Curve marker",o.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',o}(Xe),Lt=function(){function c(o,a){a===void 0&&(a=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=o,this.cancelable=a}return Object.defineProperty(c.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),c.prototype.preventDefault=function(){this._defaultPrevented=!0},c}(),Mt=function(c){function o(a,u,f){var h=c.call(this,a,!1)||this;return h.dataUrl=u,h.state=f,h}return Le(o,c),o}(Lt),mt=function(c){function o(a,u,f){f===void 0&&(f=!1);var h=c.call(this,a,f)||this;return h.marker=u,h}return Le(o,c),o}(Lt),Jt=function(){function c(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return c.prototype.addEventListener=function(o,a){this[o].push(a)},c.prototype.removeEventListener=function(o,a){var u=this[o].indexOf(a);u>-1&&this[o].splice(u,1)},c}(),Bt=function(){function c(o){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ee,this._isOpen=!1,this.undoRedoManager=new dt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Jt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=c.instanceCounter++,this.styles=new rt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=o,this.targetRoot=document.body,this.width=o.clientWidth,this.height=o.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(c.prototype,"ALL_MARKER_TYPES",{get:function(){return[ht,ee,$,_e,$e,ae,j,Ce,je,S,ut,st]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ht,ee,$,_e,ae,j,Ce]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ht,ee,$,_e,j]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(o){var a=this;this._availableMarkerTypes.splice(0),o.forEach(function(u){if(typeof u=="string"){var f=a.ALL_MARKER_TYPES.find(function(h){return h.typeName===u});f!==void 0&&a._availableMarkerTypes.push(f)}else a._availableMarkerTypes.push(u)})},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(o){this._zoomLevel=o,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),c.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ze.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},c.prototype.show=function(){var o=this;this.styles.styleSheetRoot===void 0&&Ke.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ke.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(a){return a(new Lt(o))})},c.prototype.render=function(){return Ie(this,void 0,void 0,function(){var o;return Ne(this,function(a){switch(a.label){case 0:return this.setCurrentMarker(),(o=new Ye).naturalSize=this.renderAtNaturalSize,o.imageType=this.renderImageType,o.imageQuality=this.renderImageQuality,o.markersOnly=this.renderMarkersOnly,o.width=this.renderWidth,o.height=this.renderHeight,[4,o.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return a.sent(),[4,o.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,a.sent()]}})})},c.prototype.close=function(o){var a=this;if(o===void 0&&(o=!1),this.isOpen){var u=!1;o||this.eventListeners.beforeclose.forEach(function(f){var h=new Lt(a,!0);f(h),h.defaultPrevented&&(u=!0)}),u||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(f){return f(new Lt(a))}),this.detachEvents(),this._isOpen=!1)}},c.prototype.addMarkersToToolbar=function(){for(var o,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];(o=this._availableMarkerTypes).push.apply(o,a)},c.prototype.addRenderEventListener=function(o){this.addEventListener("render",function(a){o(a.dataUrl,a.state)})},c.prototype.removeRenderEventListener=function(o){},c.prototype.addCloseEventListener=function(o){this.addEventListener("close",function(){o()})},c.prototype.removeCloseEventListener=function(o){},c.prototype.setupResizeObserver=function(){var o=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){o.resize(o.target.clientWidth,o.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return o.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},c.prototype.onPopupTargetResize=function(){var o=1*this.target.clientWidth/this.target.clientHeight,a=this.editorCanvas.clientWidth/o>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*o:this.editorCanvas.clientWidth,u=a<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/o;this.resize(a,u)},c.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},c.prototype.resize=function(o,a){this._isResizing=!0;var u=o/this.imageWidth,f=a/this.imageHeight;this.imageWidth=Math.round(o),this.imageHeight=Math.round(a),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(u,f),this._isResizing=!1},c.prototype.scaleMarkers=function(o,a){var u,f=this;this._currentMarker&&this._currentMarker instanceof _e?this._currentMarker.scale(o,a):(u=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(h){h!==f._currentMarker&&h.scale(o,a)}),u!==void 0&&this.setCurrentMarker(u)},c.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},c.prototype.setTopLeft=function(){var o=this.editingTarget.getBoundingClientRect(),a=this.editorCanvas.getBoundingClientRect();this.left=o.left-a.left,this.top=o.top-a.top},c.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},c.prototype.addDefs=function(){for(var o,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];this.defs=Z.createDefs(),this.addDefsToImage(),(o=this.defs).append.apply(o,a)},c.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},c.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},c.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},c.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},c.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},c.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},c.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},c.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var o=document.createElement("a");o.href="https://markerjs.com/",o.target="_blank",o.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',o.title="Powered by marker.js",o.style.display="grid",o.style.alignItems="center",o.style.justifyItems="center",o.style.padding="3px",o.style.width="20px",o.style.height="20px",this.logoUI.appendChild(o),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},c.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},c.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},c.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},c.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var o=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=o+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new he(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new ye(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},c.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},c.prototype.removeMarker=function(o){this.markerImage.removeChild(o.container),this.markers.indexOf(o)>-1&&this.markers.splice(this.markers.indexOf(o),1),o.dispose()},c.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},c.prototype.toolbarButtonClicked=function(o,a){if(o==="marker"&&a!==void 0)this.createNewMarker(a);else if(o==="action")switch(a){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},c.prototype.deleteSelectedMarker=function(){var o=this;if(this._currentMarker!==void 0){var a=!1;if(this.eventListeners.markerbeforedelete.forEach(function(f){var h=new mt(o,o._currentMarker,!0);f(h),h.defaultPrevented&&(a=!0)}),!a){var u=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(f){return f(new mt(o,u))})}}},c.prototype.clear=function(){var o=this,a=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(V){var Oe=new mt(o,void 0,!0);V(Oe),Oe.defaultPrevented&&(a=!0)}),!a)){this.setCurrentMarker();for(var u=function(V){var Oe=f.markers[V];f.setCurrentMarker(f.markers[V]),f._currentMarker.dispose(),f.markerImage.removeChild(f._currentMarker.container),f.markers.splice(f.markers.indexOf(f._currentMarker),1),f.eventListeners.markerdelete.forEach(function(Ze){return Ze(new mt(o,Oe))})},f=this,h=this.markers.length-1;h>=0;h--)u(h);this.addUndoStep()}},Object.defineProperty(c.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),c.prototype.showNotesEditor=function(){var o;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(o=this._currentMarker.notes)!==null&&o!==void 0?o:"",this.overlayContainer.appendChild(this.notesArea))},c.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},c.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},c.prototype.addUndoStep=function(){var o=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var a=this.getState(),u=this.undoRedoManager.getLastUndoStep();if(!u||u.width===a.width&&u.height===a.height){var f=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(a),f<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(h){return h(new Lt(o))})}else this.undoRedoManager.replaceLastUndoStep(a),this.eventListeners.statechange.forEach(function(h){return h(new Lt(o))})}},c.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},c.prototype.undoStep=function(){var o=this,a=this.undoRedoManager.undo();a!==void 0&&(this.restoreState(a),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(u){return u(new Lt(o))}))},c.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},c.prototype.redoStep=function(){var o=this,a=this.undoRedoManager.redo();a!==void 0&&(this.restoreState(a),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(u){return u(new Lt(o))}))},c.prototype.stepZoom=function(){var o=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=o<this.zoomSteps.length-1?this.zoomSteps[o+1]:this.zoomSteps[0]},c.prototype.panTo=function(o){this.contentDiv.scrollBy({left:this.prevPanPoint.x-o.x,top:this.prevPanPoint.y-o.y}),this.prevPanPoint=o},c.prototype.startRenderAndClose=function(){return Ie(this,void 0,void 0,function(){var o,a,u=this;return Ne(this,function(f){switch(f.label){case 0:return[4,this.render()];case 1:return o=f.sent(),a=this.getState(),this.eventListeners.render.forEach(function(h){return h(new Mt(u,o,a))}),this.close(!0),[2]}})})},c.prototype.getState=function(o){o===!0&&this.setCurrentMarker();var a={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(u){return a.markers.push(u.getState())}),a},c.prototype.restoreState=function(o){var a=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);o.markers.forEach(function(u){var f=a._availableMarkerTypes.find(function(V){return V.typeName===u.typeName});if(f!==void 0){var h=a.addNewMarker(f);h.restoreState(u),a.markers.push(h)}}),o.width&&o.height&&(o.width!==this.imageWidth||o.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/o.width,this.imageHeight/o.height),this.eventListeners.restorestate.forEach(function(u){return u(new Lt(a))})},c.prototype.addNewMarker=function(o){var a=Z.createGroup();return this.markerImage.appendChild(a),new o(a,this.overlayContainer,this.settings)},c.prototype.createNewMarker=function(o){var a,u=this;(a=typeof o=="string"?this._availableMarkerTypes.find(function(f){return f.typeName===o}):o)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(a),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(a.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(f){return f(new mt(u,u._currentMarker))}))},c.prototype.markerCreated=function(o){var a=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(o),this.setCurrentMarker(o),o instanceof ee&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ee):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(u){return u(new mt(a,a._currentMarker))})},c.prototype.colorChanged=function(o){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=o,this.settings.defaultStrokeColor=o)},c.prototype.fillColorChanged=function(o){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=o)},c.prototype.markerStateChanged=function(o){var a=this;this.eventListeners.markerchange.forEach(function(u){return u(new mt(a,o))})},c.prototype.setCurrentMarker=function(o){var a=this;this._currentMarker!==o&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(u){return u(new mt(a,a._currentMarker))})),this._currentMarker=o,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(u){return u(new mt(a,a._currentMarker))}))},c.prototype.onPointerDown=function(o){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||o.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var a=this.markers.find(function(u){return u.ownsTarget(o.target)});a!==void 0?(this.setCurrentMarker(a),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(o.clientX,o.clientY),o.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:o.clientX,y:o.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(o.clientX,o.clientY))},c.prototype.onDblClick=function(o){if(this._isFocused||this.focus(),this.mode==="select"){var a=this.markers.find(function(u){return u.ownsTarget(o.target)});a!==void 0&&a!==this._currentMarker&&this.setCurrentMarker(a),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(o.clientX,o.clientY),o.target):this.setCurrentMarker()}},c.prototype.onPointerMove=function(o){this.touchPoints!==1&&o.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||o.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(o.clientX,o.clientY)):this.zoomLevel>1&&this.panTo({x:o.clientX,y:o.clientY}))},c.prototype.onPointerUp=function(o){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(o.clientX,o.clientY)),this.isDragging=!1,this.addUndoStep()},c.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},c.prototype.onKeyUp=function(o){this._currentMarker===void 0||this.notesArea!==void 0||o.key!=="Delete"&&o.key!=="Backspace"||this.deleteSelectedMarker()},c.prototype.clientToLocalCoordinates=function(o,a){var u=this.markerImage.getBoundingClientRect();return{x:(o-u.left)/this.zoomLevel,y:(a-u.top)/this.zoomLevel}},c.prototype.onWindowResize=function(){this.positionUI()},c.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var o=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=o+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},c.prototype.addLicenseKey=function(o){ze.addKey(o)},c.prototype.addEventListener=function(o,a){this.eventListeners.addEventListener(o,a)},c.prototype.removeEventListener=function(o,a){this.eventListeners.removeEventListener(o,a)},c.prototype.renderState=function(o){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(o),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(c.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),c.prototype.focus=function(){var o=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(a){return a(new Lt(o))}))},c.prototype.blur=function(){var o=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(a){return a(new Lt(o))}))},c.instanceCounter=0,c}();/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ut=function(c,o){return(Ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(a[f]=u[f])})(c,o)};function It(c,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function a(){this.constructor=c}Ut(c,o),c.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}function wt(c,o,a,u){return new(a||(a=Promise))(function(f,h){function V(yt){try{Ze(u.next(yt))}catch(Ue){h(Ue)}}function Oe(yt){try{Ze(u.throw(yt))}catch(Ue){h(Ue)}}function Ze(yt){var Ue;yt.done?f(yt.value):(Ue=yt.value,Ue instanceof a?Ue:new a(function(Tt){Tt(Ue)})).then(V,Oe)}Ze((u=u.apply(c,o||[])).next())})}function jt(c,o){var a,u,f,h,V={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return h={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function Oe(Ze){return function(yt){return function(Ue){if(a)throw new TypeError("Generator is already executing.");for(;V;)try{if(a=1,u&&(f=2&Ue[0]?u.return:Ue[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,Ue[1])).done)return f;switch(u=0,f&&(Ue=[2&Ue[0],f.value]),Ue[0]){case 0:case 1:f=Ue;break;case 4:return V.label++,{value:Ue[1],done:!1};case 5:V.label++,u=Ue[1],Ue=[0];continue;case 7:Ue=V.ops.pop(),V.trys.pop();continue;default:if(!(f=V.trys,(f=f.length>0&&f[f.length-1])||Ue[0]!==6&&Ue[0]!==2)){V=0;continue}if(Ue[0]===3&&(!f||Ue[1]>f[0]&&Ue[1]<f[3])){V.label=Ue[1];break}if(Ue[0]===6&&V.label<f[1]){V.label=f[1],f=Ue;break}if(f&&V.label<f[2]){V.label=f[2],V.ops.push(Ue);break}f[2]&&V.ops.pop(),V.trys.pop();continue}Ue=o.call(c,V)}catch(Tt){Ue=[6,Tt],u=0}finally{a=f=0}if(5&Ue[0])throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}([Ze,yt])}}}var Gt=function(){function c(){}return c.addKey=function(o){c.key=o},Object.defineProperty(c,"isLicensed",{get:function(){return!!c.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(c.key)},enumerable:!1,configurable:!0}),c}(),ot=function(){function c(){}return c.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},c.setAttributes=function(o,a){for(var u=0,f=a;u<f.length;u++){var h=f[u],V=h[0],Oe=h[1];o.setAttribute(V,Oe)}},c.createRect=function(o,a,u){var f=document.createElementNS("http://www.w3.org/2000/svg","rect");return f.setAttribute("width",o.toString()),f.setAttribute("height",a.toString()),u&&c.setAttributes(f,u),f},c.createLine=function(o,a,u,f,h){var V=document.createElementNS("http://www.w3.org/2000/svg","line");return V.setAttribute("x1",o.toString()),V.setAttribute("y1",a.toString()),V.setAttribute("x2",u.toString()),V.setAttribute("y2",f.toString()),h&&c.setAttributes(V,h),V},c.createPolygon=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","polygon");return u.setAttribute("points",o),a&&c.setAttributes(u,a),u},c.createCircle=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","circle");return u.setAttribute("cx",(o/2).toString()),u.setAttribute("cy",(o/2).toString()),u.setAttribute("r",o.toString()),a&&c.setAttributes(u,a),u},c.createEllipse=function(o,a,u){var f=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return f.setAttribute("cx",(o/2).toString()),f.setAttribute("cy",(a/2).toString()),f.setAttribute("rx",(o/2).toString()),f.setAttribute("ry",(a/2).toString()),u&&c.setAttributes(f,u),f},c.createGroup=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","g");return o&&c.setAttributes(a,o),a},c.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},c.createMarker=function(o,a,u,f,h,V,Oe){var Ze=document.createElementNS("http://www.w3.org/2000/svg","marker");return c.setAttributes(Ze,[["id",o],["orient",a],["markerWidth",u.toString()],["markerHeight",f.toString()],["refX",h.toString()],["refY",V.toString()]]),Ze.appendChild(Oe),Ze},c.createText=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","text");return a.setAttribute("x","0"),a.setAttribute("y","0"),o&&c.setAttributes(a,o),a},c.createTSpan=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","tspan");return u.textContent=o,a&&c.setAttributes(u,a),u},c.createImage=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","image");return o&&c.setAttributes(a,o),a},c.createPoint=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return u.x=o,u.y=a,u},c.createPath=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","path");return u.setAttribute("d",o),a&&c.setAttributes(u,a),u},c.createElement=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg",o);return a&&c.setAttributes(u,a),u},c.getHollowRectanglePath=function(o,a,u,f,h,V,Oe,Ze){return"M"+o+","+a+"V"+(a+f)+"H"+(o+u)+"V"+a+"H"+h+"V"+V+"H"+(h+Oe)+"V"+(V+Ze)+"H"+h+"V"+a+"Z"},c}(),gt=function(){function c(o){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+o+"_"}return Object.defineProperty(c.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),c.prototype.addClass=function(o){return this.styleSheet===void 0&&this.addStyleSheet(),o.name=""+this.classNamePrefix+o.localName,this.classes.push(o),this.styleSheet.sheet.insertRule("."+o.name+" {"+o.style+"}",this.styleSheet.sheet.cssRules.length),o},c.prototype.addRule=function(o){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(o),this.styleSheet.sheet.insertRule(o.selector+" {"+o.style+"}",this.styleSheet.sheet.cssRules.length)},c.prototype.addStyleSheet=function(){var o;this.styleSheet=document.createElement("style"),((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).appendChild(this.styleSheet),this.addRule(new it("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new it("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new it("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new xt("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new xt("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},c.prototype.removeStyleSheet=function(){var o;this.styleSheet&&(((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},c}(),it=function(c,o){this.selector=c,this.style=o},xt=function(c,o){this.localName=c,this.style=o},qt=function(){function c(){this.blocks=[],this.display=""}return c.prototype.addButtonBlock=function(o){o.className=this.blockClassName,o.buttonClassName=this.buttonClassName,o.buttonColorsClassName=this.buttonColorsClassName,o.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(o)},c.prototype.addElementBlock=function(o){o.className===void 0&&(o.className=this.blockClassName),this.blocks.push(o)},c.prototype.getUI=function(){var o=document.createElement("div");return o.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,o.style.display=this.display,this.blocks.forEach(function(a){return o.appendChild(a.getUI())}),o},c}(),un=function(){function c(){}return c.prototype.getUI=function(){var o=document.createElement("div");if(o.className=this.className,this.minWidth!==void 0&&(o.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":o.style.justifyContent="flex-start";break;case"center":o.style.justifyContent="center";break;case"end":o.style.justifyContent="flex-end"}return o.style.whiteSpace="nowrap",o},c}(),Nt=function(c){function o(){var a=c!==null&&c.apply(this,arguments)||this;return a.buttons=[],a}return It(o,c),o.prototype.addButton=function(a){a.className=this.buttonClassName,a.colorsClassName=this.buttonColorsClassName,a.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(a)},o.prototype.getUI=function(){var a=c.prototype.getUI.call(this);return this.buttons.forEach(function(u){return a.appendChild(u.getUI())}),a},o}(un),vt=function(){function c(o,a){this._isActive=!1,this._isHidden=!1,this._icon=o,this.title=a,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(c.prototype,"icon",{get:function(){return this._icon},set:function(o){this._icon=o,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isActive",{get:function(){return this._isActive},set:function(o){this._isActive=o,this.adjustClassName()},enumerable:!1,configurable:!0}),c.prototype.getUI=function(){var o=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return o.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},c.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},c.prototype.hide=function(){this._isHidden=!0},c}(),He=function(c){function o(){var a=c!==null&&c.apply(this,arguments)||this;return a.elements=[],a}return It(o,c),o.prototype.addElement=function(a){this.elements.push(a)},o.prototype.getUI=function(){var a=c.prototype.getUI.call(this);return this.elements.forEach(function(u){return a.appendChild(u)}),a},o}(un),Qt=function(){function c(o,a){this.horizontal=o,this.vertical=a}return Object.defineProperty(c.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),c.prototype.getVerticalLength=function(o){return o/this.ratio},c.prototype.getHorizontalLength=function(o){return o*this.ratio},c}(),Dt=function(){function c(){}return c.getIcon=function(o,a){if(o>0&&a>0){var u=new Qt(o,a),f=u.ratio>=1?20:u.getHorizontalLength(20),h=u.ratio<1?20:u.getVerticalLength(20),V=document.createElementNS("http://www.w3.org/2000/svg","svg");V.setAttribute("xmlns","http://www.w3.org/2000/svg"),V.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(V);var Oe=ot.createDefs();V.appendChild(Oe);var Ze=ot.createElement("clipPath",[["id","text-bg-clip"]]);Oe.appendChild(Ze);var yt=ot.createPath(ot.getHollowRectanglePath((24-f)/2,(24-h)/2,f,h,(24-f)/2+2,(24-h)/2+2,f-4,h-4));V.appendChild(yt);var Ue=ot.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ue.appendChild(ot.createTSpan(o+":"+a)),V.appendChild(Ue);var Tt=Ue.getBBox();ot.setAttributes(Ue,[["x",((24-Tt.width)/2).toString()],["y",((24-Tt.height)/2-Tt.y).toString()]]);var zt=ot.createPath(ot.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Tt.width))/2,(24-Math.ceil(Tt.height))/2,Math.ceil(Tt.width),Math.ceil(Tt.height)));return Ze.appendChild(zt),ot.setAttributes(yt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(V),V.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},c}(),cn=function(c){function o(a,u,f){var h=c.call(this,a,u)||this;return h.isDropdownOpen=!1,h.onClick=h.dropdownButtonClicked,h.dropdownButtons=f,h}return It(o,c),o.prototype.setupDropdown=function(){var a=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(u){u.className=a.className,u.colorsClassName=a.colorsClassName,a.dropdownBlock.appendChild(u.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},o.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},o.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},o.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},o.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},o.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},o}(vt),Pt=function(){function c(o,a){this.GRIP_SIZE=10,this.color=o,this.fillColor=a,this.visual=ot.createGroup(),this.visual.appendChild(ot.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ot.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return c.prototype.ownsTarget=function(o){return o===this.visual||o===this.visual.childNodes[0]||o===this.visual.childNodes[1]},c.prototype.setCenter=function(o,a){this.visual.childNodes.forEach(function(u){return ot.setAttributes(u,[["cx",o.toString()],["cy",a.toString()]])})},c}(),dn=function(){function c(o,a,u,f){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=o,this.canvasHeight=a,this.margin=u,this.container=f,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(c.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(o){this._aspectRatio=o,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(o){this._isGridVisible=o,this.gridContainer&&ot.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(o){this._zoomFactor=o,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),c.prototype.open=function(){var o=this;this.cropShadeElement=ot.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=ot.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var a=0;a<this.numberOfGridLines;a++)this.horizontalGridLines.push(ot.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(ot.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(u){return o.gridContainer.appendChild(u)}),this.verticalGridLines.forEach(function(u){return o.gridContainer.appendChild(u)}),this.cropRectElement=ot.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Pt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Pt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Pt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Pt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},c.prototype.setCropRectangle=function(o){this.cropRect=o;var a=Object.assign({},this.cropRect);this.zoomFactor!==1&&(a.width=this.cropRect.width*this.zoomFactor,a.height=this.cropRect.height*this.zoomFactor,a.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-a.width/2,a.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-a.height/2),ot.setAttributes(this.cropRectElement,[["x",a.x.toString()],["y",a.y.toString()],["width",a.width.toString()],["height",a.height.toString()]]);var u=a.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(h,V){var Oe=a.y+u*(V+1);ot.setAttributes(h,[["x1",""+a.x],["y1",""+Oe],["x2",""+(a.x+a.width)],["y2",""+Oe]])});var f=a.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(h,V){var Oe=a.x+f*(V+1);ot.setAttributes(h,[["x1",""+Oe],["y1",""+a.y],["x2",""+Oe],["y2",""+(a.y+a.height)]])}),ot.setAttributes(this.cropShadeElement,[["d",ot.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,a.x,a.y,a.width,a.height)]]),this.topLeftGrip.setCenter(a.x,a.y),this.topRightGrip.setCenter(a.x+a.width,a.y),this.bottomLeftGrip.setCenter(a.x,a.y+a.height),this.bottomRightGrip.setCenter(a.x+a.width,a.y+a.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},c.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},c.prototype.clientToLocalCoordinates=function(o,a){var u=this.container.getBoundingClientRect();return{x:o-u.left+this.margin,y:a-u.top+this.margin}},c.prototype.onPointerDown=function(o){this.container.setPointerCapture(o.pointerId),this.previousPoint=this.clientToLocalCoordinates(o.clientX,o.clientY),this.cropRectElement===o.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(o.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(o.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(o.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(o.target)&&(this.activeGrip=this.bottomRightGrip)},c.prototype.onPointerMove=function(o){if(this.isMoving)this.move(this.clientToLocalCoordinates(o.clientX,o.clientY));else if(this.activeGrip){var a=this.clientToLocalCoordinates(o.clientX,o.clientY);this.resize(a)}o.preventDefault()},c.prototype.onPointerUp=function(o){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(o.pointerId)},c.prototype.move=function(o){var a=o.x-this.previousPoint.x,u=o.y-this.previousPoint.y;this.zoomFactor!==1&&(a=-a/this.zoomFactor,u=-u/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+a),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+u),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=o},c.prototype.resize=function(o){var a=Object.assign({},this.cropRect),u=o.x-this.previousPoint.x,f=o.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:a.x+u<this.margin&&(u=this.margin-a.x),a.x+=u,a.width=this.cropRect.x+this.cropRect.width-a.x;break;case this.bottomRightGrip:case this.topRightGrip:a.width+u>this.canvasWidth*this.zoomFactor&&(u=this.canvasWidth*this.zoomFactor-a.width),a.width+=u}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(a.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(u),a.height=this.aspectRatio.getVerticalLength(a.width)):(a.y+=f,a.height=this.cropRect.y+this.cropRect.height-a.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?a.height=this.aspectRatio.getVerticalLength(a.width):a.height+=f}a.width<10&&(a.x=this.cropRect.x,a.width=10),a.height<10&&(a.y=this.cropRect.y,a.height=10),this.previousPoint=o,a.x>=this.margin&&a.y>=this.margin&&a.x-this.margin+a.width<=this.canvasWidth&&a.y-this.margin+a.height<=this.canvasHeight&&(this.cropRect=a,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},c.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var o=this.cropRect.x+this.cropRect.width/2,a=this.cropRect.y+this.cropRect.height/2,u=this.aspectRatio.getHorizontalLength(this.cropRect.height),f=this.aspectRatio.getVerticalLength(this.cropRect.width);u/this.canvasWidth<f/this.canvasHeight?this.cropRect.width=u:this.cropRect.height=f,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=o-this.cropRect.width/2,this.cropRect.y=a-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},c.prototype.getRescaledRect=function(o,a,u,f,h,V){var Oe=u/o,Ze=f/a;return{x:(h.x-V)*Oe+V,y:(h.y-V)*Ze+V,width:h.width*Oe,height:h.height*Ze}},c.prototype.scaleCanvas=function(o,a){var u=this.getRescaledRect(this.canvasWidth,this.canvasHeight,o,a,this.cropRect,this.margin);this.canvasWidth=o,this.canvasHeight=a,this.onCropChange&&this.onCropChange(u),this.setCropRectangle(u)},c}(),Et=function(){function c(o){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=o,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(c.prototype,"angle",{get:function(){return this._angle},set:function(o){this._angle=o,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),c.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},c.prototype.onPointerDown=function(o){this.controlContainer.setPointerCapture(o.pointerId),this.isDragging=!0,this.previousPoint={x:o.clientX,y:o.clientY}},c.prototype.onPointerMove=function(o){this.isDragging&&(this.onAngleChange&&this.onAngleChange((o.clientX-this.previousPoint.x)/5),this.previousPoint.x=o.clientX)},c.prototype.onPointerUp=function(o){this.isDragging&&this.onAngleChange&&this.onAngleChange((o.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(o.pointerId)},c.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var o=this.angleLabelText.getBBox();ot.setAttributes(this.angleLabelElement,[["x",((this.width-o.width)/2).toString()],["y",(this.height/2).toString()]])}},c.prototype.positionScaleShape=function(){if(this.scaleShape){var o=this.scaleShape.transform.baseVal.getItem(0);o.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(o,0)}},c.prototype.getVisual=function(){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("width",this.width+"px"),o.setAttribute("height",this.height+"px"),o.setAttribute("viewBox","0 0 "+this.width+" "+this.height),o.style.flexShrink="0",document.body.appendChild(o);for(var a="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,u=1;u<=this.width/5+10;u++){var f=u%5==0?this.height/3:this.height/6;a+="h4v"+-f+"h1v"+f}a+="v1H0Z",this.scaleShape=ot.createPath(a);var h=ot.createTransform();this.scaleShape.transform.baseVal.appendItem(h),o.appendChild(this.scaleShape),this.angleLabelElement=ot.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=ot.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var V=ot.createTSpan("");return V.innerHTML="&deg;",this.angleLabelElement.appendChild(V),o.appendChild(this.angleLabelElement),document.body.removeChild(o),o},c}(),Jn=function(){function c(){this.naturalSize=!1,this.imageType="image/png"}return c.prototype.rasterize=function(o,a,u,f,h,V,Oe){var Ze=this;return new Promise(function(yt){var Ue=document.createElement("canvas");Ue.width=o.width.baseVal.value-2*f,Ue.height=o.height.baseVal.value-2*f;var Tt=1,zt=1;Ze.naturalSize===!0?(Tt=a.naturalWidth/(o.width.baseVal.value-2*f)/V,zt=a.naturalHeight/(o.height.baseVal.value-2*f)/Oe,Ue.width=a.naturalWidth/V,Ue.height=a.naturalHeight/Oe):Ze.width!==void 0&&Ze.height!==void 0&&(Tt=Ze.width/u.width,zt=Ze.height/u.height,Ue.width*=Tt,Ue.height*=zt);var sn=Ue.getContext("2d");sn.translate(Ue.width/2,Ue.height/2),sn.rotate(h*Math.PI/180),sn.scale(V,Oe),sn.translate(-Ue.width/2,-Ue.height/2),sn.drawImage(a,0,0,Ue.width,Ue.height);var Yn=document.createElement("canvas");Yn.width=u.width*Tt,Yn.height=u.height*zt,Yn.getContext("2d").putImageData(sn.getImageData((u.x-f)*Tt,(u.y-f)*zt,u.width*Tt,u.height*zt),0,0),yt(Yn.toDataURL(Ze.imageType,Ze.imageQuality))})},c}(),Te=function(){function c(o){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=c.instanceCounter++,this.styles=new gt(this.instanceNo),this.target=o,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(c.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(o){this._zoomToCropEnabled=o,o?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(o){this._isGridVisible=o,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"gridLines",{get:function(){return this._gridLines},set:function(o){this._gridLines=o,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(o){this._rotationAngle=o,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"aspectRatio",{get:function(){var o;return(o=this._aspectRatio)!==null&&o!==void 0?o:this.aspectRatios[0]},set:function(o){this._aspectRatio=o},enumerable:!1,configurable:!0}),c.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},c.prototype.show=function(){this.showUI(),this.open()},c.prototype.close=function(o){o===void 0&&(o=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),o||this.closeEventListeners.forEach(function(a){return a()}),this._isOpen=!1)},c.prototype.addRenderEventListener=function(o){this.renderEventListeners.push(o)},c.prototype.removeRenderEventListener=function(o){this.renderEventListeners.indexOf(o)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(o),1)},c.prototype.addCloseEventListener=function(o){this.closeEventListeners.push(o)},c.prototype.removeCloseEventListener=function(o){this.closeEventListeners.indexOf(o)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(o),1)},c.prototype.setupResizeObserver=function(){var o=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){o.resize(o.target.clientWidth,o.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},c.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var o=1*this.target.clientWidth/this.target.clientHeight,a=this.contentDiv.clientWidth/o>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*o:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,u=a+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/o;this.resize(a,u)}},c.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},c.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",ot.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},c.prototype.resize=function(o,a){this.imageWidth=Math.round(o),this.imageHeight=Math.round(a),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},c.prototype.setEditingTarget=function(){var o=document.createElement("canvas");o.width=this.target.naturalWidth,o.height=this.target.naturalHeight,o.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var a=o.toDataURL();ot.setAttributes(this.editingTarget,[["href",a]]),this.setEditingTargetSize()},c.prototype.setTopLeft=function(){var o=this.target.getBoundingClientRect(),a=this.editorCanvas.getBoundingClientRect();this.left=o.left-a.left-this.CANVAS_MARGIN,this.top=o.top-a.top-this.CANVAS_MARGIN},c.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=ot.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=ot.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=ot.createGroup(),this.editingTargetRotationScaleContainer=ot.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var o=ot.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(o);var a=ot.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(a),this.editingTargetContainer=ot.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},c.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},c.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=ot.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new dn(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},c.prototype.zoomToCrop=function(){if(this.cropRect){var o=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,a=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=o+"px "+a+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-o+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-a+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},c.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},c.prototype.cropRectChanged=function(o){this.cropRect=o,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},c.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},c.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},c.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},c.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var o=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,a=this.target.offsetTop>o+this.CANVAS_MARGIN?this.target.offsetTop-(o+this.CANVAS_MARGIN):0;this.coverDiv.style.top=a+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},c.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},c.prototype.addTopToolbar=function(){var o=this;this.topToolbar=new qt,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var a=new Nt;a.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(a);var u=[];this.aspectRatios.forEach(function(zt){var sn=new vt(Dt.getIcon(zt.horizontal,zt.vertical),zt.horizontal===0&&zt.vertical===0?"FREE":zt.horizontal+":"+zt.vertical);sn.onClick=function(){return o.ratioButtonClicked(zt)},u.push(sn)}),this.aspectRatioButton=new cn(Dt.getIcon(0,0),"Aspect ratio",u),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,a.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var f=new vt('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");f.isActive=this.isGridVisible,f.onClick=function(){o.isGridVisible=!o.isGridVisible,f.isActive=o.isGridVisible},a.addButton(f);var h=new vt('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(h.isActive=this.zoomToCropEnabled,h.onClick=function(){o.zoomToCropEnabled=!o.zoomToCropEnabled,h.isActive=o.zoomToCropEnabled},a.addButton(h),!Gt.isLicensed){var V=new He;this.topToolbar.addElementBlock(V);var Oe=document.createElement("div");Oe.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Ze=document.createElement("a");Ze.style.color="currentColor",Ze.href="https://markerjs.com/products/cropro",Ze.target="_blank",Ze.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Oe.appendChild(Ze),V.addElement(Oe)}var yt=new Nt;yt.minWidth=3*this.toolbarHeight+"px",yt.contentAlign="end",this.topToolbar.addButtonBlock(yt);var Ue=new vt('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Ue.onClick=this.startRenderAndClose,yt.addButton(Ue),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ue.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Tt=new vt('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");Tt.onClick=this.close,yt.addButton(Tt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Tt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},c.prototype.addBottomToolbar=function(){var o=this;this.bottomToolbar=new qt,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var a=new Nt;a.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(a);var u=new vt('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");u.onClick=this.rotateLeftButtonClicked,a.addButton(u);var f=new vt('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");f.onClick=this.rotateRightButtonClicked,a.addButton(f);var h=new He;h.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(h),this.straightener=new Et("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(yt){o.rotateBy(yt),o.straightener.angle=o.rotationAngle},h.addElement(this.straightener.getUI());var V=new Nt;V.minWidth=2*this.toolbarHeight+"px",V.contentAlign="end",this.bottomToolbar.addButtonBlock(V);var Oe=new vt('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Oe.onClick=this.flipHorizontallyButtonClicked,V.addButton(Oe);var Ze=new vt('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");Ze.onClick=this.flipVerticallyButtonClicked,V.addButton(Ze)},c.prototype.ratioButtonClicked=function(o){this.aspectRatio=o,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},c.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Dt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},c.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Qt(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},c.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},c.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},c.prototype.restoreState=function(o){if(o){var a=this.cropLayer.getRescaledRect(o.width,o.height,this.imageWidth,this.imageHeight,o.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(a),this.cropRectChanged(a),this.flippedHorizontally=o.flippedHorizontally,this.flippedVertically=o.flippedVertically,this.applyFlip(),this.rotationAngle=o.rotationAngle,this.applyRotation()}},c.prototype.clientToLocalCoordinates=function(o,a){var u=this.cropImage.getBoundingClientRect();return{x:o-u.left,y:a-u.top}},c.prototype.onWindowResize=function(){this.positionUI()},c.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var o=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=o+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},c.prototype.rotateLeftButtonClicked=function(){var o=this.rotationAngle-90;this.rotationAngle%90!=0&&(o+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(o)},c.prototype.rotateRightButtonClicked=function(){var o=this.rotationAngle+90;this.rotationAngle%90!=0&&(o-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(o)},c.prototype.rotateTo=function(o){o=(o=o>180?o-360:o)<=-180?o+360:o,this.rotationAngle=o,this.applyRotation()},c.prototype.rotateBy=function(o){this.rotateTo((this.rotationAngle+o)%360)},c.prototype.applyRotation=function(){var o=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var a=this.editingTargetRotationContainer.transform.baseVal.getItem(0);a.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(a,0);var u=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/u.width,this.imageHeight/u.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=o},c.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},c.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},c.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},c.prototype.startRenderAndClose=function(){return wt(this,void 0,void 0,function(){var o,a;return jt(this,function(u){switch(u.label){case 0:return[4,this.render()];case 1:return o=u.sent(),a=this.getState(),this.renderEventListeners.forEach(function(f){return f(o,a)}),this.close(!0),[2]}})})},c.prototype.render=function(){return wt(this,void 0,void 0,function(){var o;return jt(this,function(a){switch(a.label){case 0:return(o=new Jn).naturalSize=this.renderAtNaturalSize,o.imageType=this.renderImageType,o.imageQuality=this.renderImageQuality,o.width=this.renderWidth,o.height=this.renderHeight,this.unzoomFromCrop(),ot.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,o.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return a.sent(),[4,o.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,a.sent()]}})})},c.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new xt("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new xt("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new xt("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var o=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new xt("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*o)+`px;
height: `+(this.toolbarHeight-2*o)+`px;
padding: `+o+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new xt("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new xt("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new it("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new it("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new xt("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new xt("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new xt("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new xt("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*o)+`px;
padding: `+o+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new xt("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},c.instanceCounter=0,c}(),ct=d("8hTe"),Ft=d.n(ct),$t=/<pre[^>]*>/g;function nn(c){var o=document.createElement("div");return o.innerHTML=c,o.childNodes.length===0?"":o.childNodes[0].nodeValue}var an=_.a=function(c){var o=c.value,a=o===void 0?"":o,u=c.edit,f=u===void 0?!1:u,h=c.className,V=c.showTextOnly,Oe=c.showLines,Ze=c.replaces,yt=c.zoomImg,Ue=c.hasMask,Tt=c.style,zt=Tt===void 0?{}:Tt,sn=c.stylesPrev,Yn=sn===void 0?{}:sn,Xn=String(a),En=Object(B.useRef)(),ti=Object(B.useRef)(),Hi=Object(B.useState)(""),Bn=Object(W.a)(Hi,2),Zn=Bn[0],Gn=Bn[1],bi=Object(B.useState)("office"),ri=Object(W.a)(bi,2),mi=ri[0],ci=ri[1],hr=function(){var Yt=new Te(ti.current);Yt.displayMode="popup",Yt.addRenderEventListener(function(){var Dn=Object(ne.a)(O.a.mark(function Kt(yn){var en;return O.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return En.current.style.display="none",gn.next=3,Object(at.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn}});case 3:en=gn.sent,en!=null&&en.id&&Ze(ti.current.getAttribute("src").replace(Ae.a.API_SERVER,""),"/api/attachments/".concat(en==null?void 0:en.id,"?type=").concat(en.content_type));case 5:case"end":return gn.stop()}},Kt)}));return function(Kt){return Dn.apply(this,arguments)}}()),Yt.show()},Gi=function(){var Yt=new Bt(ti.current);Yt.settings.displayMode="popup",Yt.addEventListener("render",function(){var Dn=Object(ne.a)(O.a.mark(function Kt(yn){var en;return O.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:if(En.current.style.display="none",!ti.current){gn.next=6;break}return gn.next=4,Object(at.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn.dataUrl}});case 4:en=gn.sent,en!=null&&en.id&&Ze(ti.current.getAttribute("src").replace(Ae.a.API_SERVER,""),"/api/attachments/".concat(en==null?void 0:en.id,"?type=").concat(en.content_type));case 6:case"end":return gn.stop()}},Kt)}));return function(Kt){return Dn.apply(this,arguments)}}()),Yt.show(),window.markerArea=Yt},oi=Object(B.useMemo)(function(){try{var pn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Yt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Dn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Xn=Xn.replace(pn,"("+Ae.a.API_SERVER+"/api/attachments/").replace(Yt,'"'+Ae.a.API_SERVER+"/api/attachments/").replace(Dn,'"'+Ae.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Xn=Xn.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
`)}catch(hi){}var Kt=me(Xn),yn=ue();if(Xn.match(/\[TOC\]/)&&(Kt=Kt.replace("<p>[TOC]</p>",Me()),le()),Kt=Kt.replace(/(__special_katext_id_\d+__)/g,function(hi,gn){var jn=yn[gn],Vi=jn.type,Qi=jn.expression;return Object(Se.renderToString)(nn(Qi)||"",{displayMode:Vi==="block",throwOnError:!1,output:"html"})}),Kt=Kt.replace(/▁/g,"\u2581\u2581\u2581"),K(),V){var en=document.createElement("div");return en.innerHTML=Kt,en.innerText}return setTimeout(function(){return Li()},500),Kt},[Xn]),qn=Object(B.useRef)();te.WebkitLineClamp=Oe,Oe&&(zt=Object(de.a)(Object(de.a)({},zt),te));function Ti(pn){var Yt=pn.target;if(Yt.tagName.toUpperCase()==="IMG"){if(yt){var Dn=Yt.getAttribute("src");Gn(Dn),ci("image")}}else if(Yt.tagName.toUpperCase()==="A"){var Kt=Yt.getAttribute("href");if(Kt.indexOf("office")>-1)pn.preventDefault(),Gn(Kt),ci("office");else if(Kt.indexOf("application/pdf")>-1)pn.preventDefault(),Gn(Kt),ci("pdf");else if(Kt.indexOf("type=text")>-1)pn.preventDefault(),Gn(Kt),ci("html");else if(Kt.startsWith("#")){pn.preventDefault();var yn=document.getElementById(Kt.replace("#",""));yn&&yn.scrollIntoView(!0)}}}var Li=function(){var Yt,Dn=(Yt=qn.current)===null||Yt===void 0?void 0:Yt.querySelectorAll("video");Dn==null||Dn.forEach(function(Kt){if(Kt.oncontextmenu=function(){return!1},Kt.src.indexOf(".m3u8")>-1&&!Kt.canPlayType("application/vnd.apple.mpegurl")){if(q.a.isSupported()){var yn=new q.a;yn.loadSource(Kt.src),yn.attachMedia(Kt)}}})};Object(B.useEffect)(function(){if(qn.current&&oi&&(oi.match($t)&&window.PR.prettyPrint()),qn.current)return qn.current.addEventListener("click",Ti),function(){qn.current.removeEventListener("click",Ti),K(),le()}},[oi,qn.current,Ti]);var dr=function(Yt){if(!f)return;Yt.target.nodeName==="IMG"?(En.current.style.display="flex",En.current.style.width=Yt.target.clientWidth+"px",En.current.style.height=Yt.target.clientHeight+"px",En.current.style.top=Yt.target.offsetTop+"px",En.current.style.left=Yt.target.offsetLeft+"px",ti.current.src=Yt.target.getAttribute("src")):En.current.style.display="none"};return b.a.createElement("div",{style:{position:"relative"}},b.a.createElement("div",{ref:qn,style:Object(de.a)({},zt),className:"".concat(h||""," markdown-body ").concat(Ft.a.mdBody),onMouseOver:dr,dangerouslySetInnerHTML:{__html:oi}}),b.a.createElement("div",{ref:En,className:Ft.a.button},b.a.createElement(be.a,null,b.a.createElement(fe.a,{onClick:function(){return hr()}},"\u88C1\u526A"),b.a.createElement(fe.a,{onClick:function(){return Gi()}},"\u7F16\u8F91"))),b.a.createElement("img",{ref:ti,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),b.a.createElement(nt.a,{close:!0,data:Zn,hasMask:Ue,type:Zn!=null&&Zn.length?mi:"",style:Object(de.a)({},Yn),onClose:function(){return Gn("")}}))}},"9VGf":function(ke,_,d){"use strict";d.d(_,"a",function(){return re});var G=d("q1tI"),be=d.n(G);function re(fe,de){var ne=Object(G.useRef)();Object(G.useEffect)(function(){ne.current=fe}),Object(G.useEffect)(function(){function W(){ne.current()}if(de!==null){var Y=setInterval(W,de);return function(){return clearInterval(Y)}}},[de])}},"A/g1":function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3L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wAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},Bd2K:function(ke,_,d){(function(G){G(d("VrN/"),d("osHv"))})(function(G){G.defineOption("autoCloseTags",!1,function(O,B,b){if(b!=G.Init&&b&&O.removeKeyMap("autoCloseTags"),!B)return;var C={name:"autoCloseTags"};(typeof B!="object"||B.whenClosing!==!1)&&(C["'/'"]=function(k){return ne(k)}),(typeof B!="object"||B.whenOpening!==!1)&&(C["'>'"]=function(k){return fe(k)}),O.addKeyMap(C)});var be=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],re=["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 fe(O){if(O.getOption("disableInput"))return G.Pass;for(var B=O.listSelections(),b=[],C=O.getOption("autoCloseTags"),k=0;k<B.length;k++){if(!B[k].empty())return G.Pass;var E=B[k].head,A=O.getTokenAt(E),L=G.innerMode(O.getMode(),A.state),g=L.state,v=L.mode.xmlCurrentTag&&L.mode.xmlCurrentTag(g),w=v&&v.name;if(!w)return G.Pass;var I=L.mode.configuration=="html",le=typeof C=="object"&&C.dontCloseTags||I&&be,te=typeof C=="object"&&C.indentTags||I&&re;A.end>E.ch&&(w=w.slice(0,w.length-A.end+E.ch));var oe=w.toLowerCase();if(!w||A.type=="string"&&(A.end!=E.ch||!/[\"\']/.test(A.string.charAt(A.string.length-1))||A.string.length==1)||A.type=="tag"&&v.close||A.string.indexOf("/")==E.ch-A.start-1||le&&W(le,oe)>-1||Y(O,L.mode.xmlCurrentContext&&L.mode.xmlCurrentContext(g)||[],w,E,!0))return G.Pass;var Me=typeof C=="object"&&C.emptyTags;if(Me&&W(Me,w)>-1){b[k]={text:"/>",newPos:G.Pos(E.line,E.ch+2)};continue}var ge=te&&W(te,oe)>-1;b[k]={indent:ge,text:">"+(ge?`
`:"")+"</"+w+">",newPos:ge?G.Pos(E.line+1,0):G.Pos(E.line,E.ch+1)}}for(var xe=typeof C=="object"&&C.dontIndentOnAutoClose,k=B.length-1;k>=0;k--){var ve=b[k];O.replaceRange(ve.text,B[k].head,B[k].anchor,"+insert");var T=O.listSelections().slice(0);T[k]={head:ve.newPos,anchor:ve.newPos},O.setSelections(T),!xe&&ve.indent&&(O.indentLine(ve.newPos.line,null,!0),O.indentLine(ve.newPos.line+1,null,!0))}}function de(O,B){for(var b=O.listSelections(),C=[],k=B?"/":"</",E=O.getOption("autoCloseTags"),A=typeof E=="object"&&E.dontIndentOnSlash,L=0;L<b.length;L++){if(!b[L].empty())return G.Pass;var g=b[L].head,v=O.getTokenAt(g),w=G.innerMode(O.getMode(),v.state),I=w.state;if(B&&(v.type=="string"||v.string.charAt(0)!="<"||v.start!=g.ch-1))return G.Pass;var le,te=w.mode.name!="xml"&&O.getMode().name=="htmlmixed";if(te&&w.mode.name=="javascript")le=k+"script";else if(te&&w.mode.name=="css")le=k+"style";else{var oe=w.mode.xmlCurrentContext&&w.mode.xmlCurrentContext(I);if(!oe||oe.length&&Y(O,oe,oe[oe.length-1],g))return G.Pass;le=k+oe[oe.length-1]}O.getLine(g.line).charAt(v.end)!=">"&&(le+=">"),C[L]=le}if(O.replaceSelections(C),b=O.listSelections(),!A)for(var L=0;L<b.length;L++)(L==b.length-1||b[L].head.line<b[L+1].head.line)&&O.indentLine(b[L].head.line)}function ne(O){return O.getOption("disableInput")?G.Pass:de(O,!0)}G.commands.closeTag=function(O){return de(O)};function W(O,B){if(O.indexOf)return O.indexOf(B);for(var b=0,C=O.length;b<C;++b)if(O[b]==B)return b;return-1}function Y(O,B,b,C,k){if(!G.scanForClosingTag)return!1;var E=Math.min(O.lastLine()+1,C.line+500),A=G.scanForClosingTag(O,C,null,E);if(!A||A.tag!=b)return!1;for(var L=k?1:0,g=B.length-1;g>=0&&B[g]==b;g--)++L;C=A.to;for(var g=1;g<L;g++){var v=G.scanForClosingTag(O,C,null,E);if(!v||v.tag!=b)return!1;C=v.to}return!0}})},BjJ7:function(ke,_,d){"use strict";d.d(_,"d",function(){return be}),d.d(_,"c",function(){return re}),d.d(_,"e",function(){return fe}),d.d(_,"b",function(){return de}),d.d(_,"a",function(){return W});var G=d("m3rI");function be(Y){var O=!0;if(Y.length>0){for(var B=0;B<Y.length;B++)if(Y[B].compile_success==0||!Y[B].compile_success){O=!1;break}}else O=!1;return O}function re(Y){for(var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",B=[],b=0;b<Y.length;b++){var C=Y[b],k=O?"".concat(O,"/").concat(C.name):"".concat(C.name);B.push({title:C.name,isLeaf:!(C.type==="tree"),key:k})}return B}function fe(Y,O,B){for(var b=0;b<Y.length;b++){var C=Y[b];if(C.key===O){C.children=B;break}C.children&&fe(C.children,O,B)}return Y}function de(Y,O,B){var b;return function(){var C=this,k=arguments,E=function(){b=null,B||Y.apply(C,k)},A=B&&!b;clearTimeout(b),b=setTimeout(E,O),A&&Y.apply(C,k)}}var ne=!0,W=G.a.API_SERVER},"C+DQ":function(ke,_,d){},"C/vA":function(ke,_,d){"use strict";d.d(_,"a",function(){return G});function G(be){var re=this,fe=!1,de;return function(){return fe||(fe=!0,de=be.apply(re,arguments)),de}}},CJF0:function(ke,_,d){"use strict";var G=d("14J3"),be=d("BMrR"),re=d("+L6B"),fe=d("2/Rp"),de=d("jCWc"),ne=d("kPKH"),W=d("PpiC"),Y=d("q1tI"),O=d.n(Y),B=d("Ty5D"),b=d("9kvl"),C=d("55Ip"),k=d("lzim"),E=d("nZ20"),A=d.n(E),L=function(v){var w,I,le,te,oe=v.shixunsDetail,Me=v.dispatch,ge=v.loading,xe=v.match,ve=v.data,T=ve===void 0?{}:ve,R=v.title,ue=Object(W.a)(v,["shixunsDetail","dispatch","loading","match","data","title"]),K=Object(B.i)(),N=!(((w=oe.detail)===null||w===void 0?void 0:w.identity)>4||((I=oe.detail)===null||I===void 0?void 0:I.identity)===void 0||((le=oe.detail)===null||le===void 0?void 0:le.shixun_status)===2||((te=oe.detail)===null||te===void 0?void 0:te.shixun_status)===1);return O.a.createElement("aside",{className:"bg-white mb10 pl20 pr20 ".concat(A.a.wrap)},O.a.createElement(be.a,{gutter:[20,20],align:"middle"},O.a.createElement(ne.a,{flex:1},O.a.createElement("span",{className:A.a.icons},O.a.createElement("img",{src:k.f,width:"14"})),O.a.createElement("span",{className:"font16"},"\u7B2C ",T==null?void 0:T.position," \u5173\uFF1A",R)),O.a.createElement(ne.a,null,(T==null?void 0:T.prev_challenge)&&O.a.createElement(fe.a,{type:"primary",ghost:!0,className:"mt10 mr5",onClick:function(){var ie,J=T.prev_challenge.st===0?"/editcheckpoint":"/editquestion",me="/shixuns/".concat(K.id,"/challenges/").concat(T==null||((ie=T.prev_challenge)===null||ie===void 0)?void 0:ie.id).concat(J);b.d.replace(me)}},"\u4E0A\u4E00\u5173"),T.next_challenge&&O.a.createElement(fe.a,{type:"primary",ghost:!0,className:"mt10 mr5",onClick:function(){var ie,J=T.next_challenge.st===0?"/editcheckpoint":"/editquestion",me="/shixuns/".concat(K.id,"/challenges/").concat(T==null||((ie=T.next_challenge)===null||ie===void 0)?void 0:ie.id).concat(J);b.d.replace(me)}},"\u4E0B\u4E00\u5173"),N&&O.a.createElement(fe.a,{type:"primary"},O.a.createElement(C.a,{to:"/shixuns/".concat(K.id,"/challenges/newquestion")},"\u65B0\u589E\u9009\u62E9\u9898\u4EFB\u52A1")),N&&O.a.createElement(fe.a,{type:"primary",className:"ml5"},O.a.createElement(C.a,{to:"/shixuns/".concat(K.id,"/challenges/new")},"\u65B0\u589E\u5B9E\u8DF5\u4EFB\u52A1")),O.a.createElement(fe.a,{type:"primary",className:"ml5"},O.a.createElement(C.a,{to:"/shixuns/".concat(K.id,"/challenges")},"\u8FD4\u56DE")))))};_.a=Object(b.a)(function(g){var v=g.shixunsDetail,w=g.newCourse,I=g.loading,le=g.globalSetting;return{shixunsDetail:v,newCourse:w,globalSetting:le,loading:I.effects}})(L)},"Cg/j":function(ke,_,d){"use strict";d.d(_,"b",function(){return G}),d.d(_,"a",function(){return be}),d.d(_,"c",function(){return fe}),d.d(_,"d",function(){return de});var G;(function(ne){ne.serviceIds=new Map,ne.DI_TARGET="$di$target",ne.DI_DEPENDENCIES="$di$dependencies";function W(Y){return Y[ne.DI_DEPENDENCIES]||[]}ne.getServiceDependencies=W})(G||(G={}));var be=fe("instantiationService");function re(ne,W,Y,O){W[G.DI_TARGET]===W?W[G.DI_DEPENDENCIES].push({id:ne,index:Y,optional:O}):(W[G.DI_DEPENDENCIES]=[{id:ne,index:Y,optional:O}],W[G.DI_TARGET]=W)}function fe(ne){if(G.serviceIds.has(ne))return G.serviceIds.get(ne);var W=function(Y,O,B){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");re(W,Y,B,!1)};return W.toString=function(){return ne},G.serviceIds.set(ne,W),W}function de(ne){return function(W,Y,O){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");re(ne,W,O,!0)}}},DlQD:function(ke,_,d){(function(G,be){ke.exports=be()})(this,function(){"use strict";function G(ee,Q){for(var $=0;$<Q.length;$++){var S=Q[$];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(ee,S.key,S)}}function be(ee,Q,$){return Q&&G(ee.prototype,Q),$&&G(ee,$),ee}function re(ee,Q){if(!ee)return;if(typeof ee=="string")return fe(ee,Q);var $=Object.prototype.toString.call(ee).slice(8,-1);if($==="Object"&&ee.constructor&&($=ee.constructor.name),$==="Map"||$==="Set")return Array.from(ee);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return fe(ee,Q)}function fe(ee,Q){(Q==null||Q>ee.length)&&(Q=ee.length);for(var $=0,S=new Array(Q);$<Q;$++)S[$]=ee[$];return S}function de(ee,Q){var $;if(typeof Symbol=="undefined"||ee[Symbol.iterator]==null){if(Array.isArray(ee)||($=re(ee))||Q&&ee&&typeof ee.length=="number"){$&&(ee=$);var S=0;return function(){return S>=ee.length?{done:!0}:{done:!1,value:ee[S++]}}}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 $=ee[Symbol.iterator](),$.next.bind($)}function ne(ee,Q){return Q={exports:{}},ee(Q,Q.exports),Q.exports}var W=ne(function(ee){function Q(){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 $(S){ee.exports.defaults=S}ee.exports={defaults:Q(),getDefaults:Q,changeDefaults:$}}),Y=W.defaults,O=W.getDefaults,B=W.changeDefaults,b=/[&<>"']/,C=/[&<>"']/g,k=/[<>"']|&(?!#?\w+;)/,E=/[<>"']|&(?!#?\w+;)/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},L=function(Q){return A[Q]};function g(ee,Q){if(Q){if(b.test(ee))return ee.replace(C,L)}else if(k.test(ee))return ee.replace(E,L);return ee}var v=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function w(ee){return ee.replace(v,function(Q,$){return $=$.toLowerCase(),$==="colon"?":":$.charAt(0)==="#"?$.charAt(1)==="x"?String.fromCharCode(parseInt($.substring(2),16)):String.fromCharCode(+$.substring(1)):""})}var I=/(^|[^\[])\^/g;function le(ee,Q){ee=ee.source||ee,Q=Q||"";var $={replace:function(M,j){return j=j.source||j,j=j.replace(I,"$1"),ee=ee.replace(M,j),$},getRegex:function(){return new RegExp(ee,Q)}};return $}var te=/[^\w:]/g,oe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Me(ee,Q,$){if(ee){var S;try{S=decodeURIComponent(w($)).replace(te,"").toLowerCase()}catch(M){return null}if(S.indexOf("javascript:")===0||S.indexOf("vbscript:")===0||S.indexOf("data:")===0)return null}Q&&!oe.test($)&&($=R(Q,$));try{$=encodeURI($).replace(/%25/g,"%")}catch(M){return null}return $}var ge={},xe=/^[^:]+:\/*[^/]*$/,ve=/^([^:]+:)[\s\S]*$/,T=/^([^:]+:\/*[^/]*)[\s\S]*$/;function R(ee,Q){ge[" "+ee]||(xe.test(ee)?ge[" "+ee]=ee+"/":ge[" "+ee]=X(ee,"/",!0)),ee=ge[" "+ee];var $=ee.indexOf(":")===-1;return Q.substring(0,2)==="//"?$?Q:ee.replace(ve,"$1")+Q:Q.charAt(0)==="/"?$?Q:ee.replace(T,"$1")+Q:ee+Q}var ue={exec:function(){}};function K(ee){for(var Q=1,$,S;Q<arguments.length;Q++){$=arguments[Q];for(S in $)Object.prototype.hasOwnProperty.call($,S)&&(ee[S]=$[S])}return ee}function N(ee,Q){var $=ee.replace(/\|/g,function(j,z,Ce){for(var ae=!1,je=z;--je>=0&&Ce[je]==="\\";)ae=!ae;return ae?"|":" |"}),S=$.split(/ \|/),M=0;if(S.length>Q)S.splice(Q);else for(;S.length<Q;)S.push("");for(;M<S.length;M++)S[M]=S[M].trim().replace(/\\\|/g,"|");return S}function X(ee,Q,$){var S=ee.length;if(S===0)return"";for(var M=0;M<S;){var j=ee.charAt(S-M-1);if(j===Q&&!$)M++;else if(j!==Q&&$)M++;else break}return ee.substr(0,S-M)}function ie(ee,Q){if(ee.indexOf(Q[1])===-1)return-1;for(var $=ee.length,S=0,M=0;M<$;M++)if(ee[M]==="\\")M++;else if(ee[M]===Q[0])S++;else if(ee[M]===Q[1]&&(S--,S<0))return M;return-1}function J(ee){ee&&ee.sanitize&&!ee.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 me={escape:g,unescape:w,edit:le,cleanUrl:Me,resolveUrl:R,noopTest:ue,merge:K,splitCells:N,rtrim:X,findClosingBracket:ie,checkSanitizeDeprecation:J},D=W.defaults,y=me.rtrim,q=me.splitCells,Ae=me.escape,Se=me.findClosingBracket;function nt(ee,Q,$){var S=Q.href,M=Q.title?Ae(Q.title):null,j=ee[1].replace(/\\([\[\]])/g,"$1");return ee[0].charAt(0)!=="!"?{type:"link",raw:$,href:S,title:M,text:j}:{type:"image",raw:$,href:S,title:M,text:Ae(j)}}function at(ee,Q){var $=ee.match(/^(\s+)(?:```)/);if($===null)return Q;var S=$[1];return Q.split(`
`).map(function(M){var j=M.match(/^\s+/);if(j===null)return M;var z=j[0];return z.length>=S.length?M.slice(S.length):M}).join(`
`)}var We=function(){function ee($){this.options=$||D}var Q=ee.prototype;return Q.space=function(S){var M=this.rules.block.newline.exec(S);if(M)return M[0].length>1?{type:"space",raw:M[0]}:{raw:`
`}},Q.code=function(S,M){var j=this.rules.block.code.exec(S);if(j){var z=M[M.length-1];if(z&&z.type==="paragraph")return{raw:j[0],text:j[0].trimRight()};var Ce=j[0].replace(/^ {4}/gm,"");return{type:"code",raw:j[0],codeBlockStyle:"indented",text:this.options.pedantic?Ce:y(Ce,`
`)}}},Q.fences=function(S){var M=this.rules.block.fences.exec(S);if(M){var j=M[0],z=at(j,M[3]||"");return{type:"code",raw:j,lang:M[2]?M[2].trim():M[2],text:z}}},Q.heading=function(S){var M=this.rules.block.heading.exec(S);if(M)return{type:"heading",raw:M[0],depth:M[1].length,text:M[2]}},Q.nptable=function(S){var M=this.rules.block.nptable.exec(S);if(M){var j={type:"table",header:q(M[1].replace(/^ *| *\| *$/g,"")),align:M[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:M[3]?M[3].replace(/\n$/,"").split(`
`):[],raw:M[0]};if(j.header.length===j.align.length){var z=j.align.length,Ce;for(Ce=0;Ce<z;Ce++)/^ *-+: *$/.test(j.align[Ce])?j.align[Ce]="right":/^ *:-+: *$/.test(j.align[Ce])?j.align[Ce]="center":/^ *:-+ *$/.test(j.align[Ce])?j.align[Ce]="left":j.align[Ce]=null;for(z=j.cells.length,Ce=0;Ce<z;Ce++)j.cells[Ce]=q(j.cells[Ce],j.header.length);return j}}},Q.hr=function(S){var M=this.rules.block.hr.exec(S);if(M)return{type:"hr",raw:M[0]}},Q.blockquote=function(S){var M=this.rules.block.blockquote.exec(S);if(M){var j=M[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:M[0],text:j}}},Q.list=function(S){var M=this.rules.block.list.exec(S);if(M){for(var j=M[0],z=M[2],Ce=z.length>1,ae=z[z.length-1]===")",je={type:"list",raw:j,ordered:Ce,start:Ce?+z.slice(0,-1):"",loose:!1,items:[]},$e=M[0].match(this.rules.block.item),dt=!1,st,Lt,Mt,mt,Jt,Bt,Ut,It=$e.length,wt=0;wt<It;wt++)st=$e[wt],j=st,Lt=st.length,st=st.replace(/^ *([*+-]|\d+[.)]) */,""),~st.indexOf(`
`)&&(Lt-=st.length,st=this.options.pedantic?st.replace(/^ {1,4}/gm,""):st.replace(new RegExp("^ {1,"+Lt+"}","gm"),"")),wt!==It-1&&(Mt=this.rules.block.bullet.exec($e[wt+1])[0],(Ce?Mt.length===1||!ae&&Mt[Mt.length-1]===")":Mt.length>1||this.options.smartLists&&Mt!==z)&&(mt=$e.slice(wt+1).join(`
`),je.raw=je.raw.substring(0,je.raw.length-mt.length),wt=It-1)),Jt=dt||/\n\n(?!\s*$)/.test(st),wt!==It-1&&(dt=st.charAt(st.length-1)===`
`,Jt||(Jt=dt)),Jt&&(je.loose=!0),Bt=/^\[[ xX]\] /.test(st),Ut=void 0,Bt&&(Ut=st[1]!==" ",st=st.replace(/^\[[ xX]\] +/,"")),je.items.push({type:"list_item",raw:j,task:Bt,checked:Ut,loose:Jt,text:st});return je}},Q.html=function(S){var M=this.rules.block.html.exec(S);if(M)return{type:this.options.sanitize?"paragraph":"html",raw:M[0],pre:!this.options.sanitizer&&(M[1]==="pre"||M[1]==="script"||M[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(M[0]):Ae(M[0]):M[0]}},Q.def=function(S){var M=this.rules.block.def.exec(S);if(M){M[3]&&(M[3]=M[3].substring(1,M[3].length-1));var j=M[1].toLowerCase().replace(/\s+/g," ");return{tag:j,raw:M[0],href:M[2],title:M[3]}}},Q.table=function(S){var M=this.rules.block.table.exec(S);if(M){var j={type:"table",header:q(M[1].replace(/^ *| *\| *$/g,"")),align:M[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:M[3]?M[3].replace(/\n$/,"").split(`
`):[]};if(j.header.length===j.align.length){j.raw=M[0];var z=j.align.length,Ce;for(Ce=0;Ce<z;Ce++)/^ *-+: *$/.test(j.align[Ce])?j.align[Ce]="right":/^ *:-+: *$/.test(j.align[Ce])?j.align[Ce]="center":/^ *:-+ *$/.test(j.align[Ce])?j.align[Ce]="left":j.align[Ce]=null;for(z=j.cells.length,Ce=0;Ce<z;Ce++)j.cells[Ce]=q(j.cells[Ce].replace(/^ *\| *| *\| *$/g,""),j.header.length);return j}}},Q.lheading=function(S){var M=this.rules.block.lheading.exec(S);if(M)return{type:"heading",raw:M[0],depth:M[2].charAt(0)==="="?1:2,text:M[1]}},Q.paragraph=function(S){var M=this.rules.block.paragraph.exec(S);if(M)return{type:"paragraph",raw:M[0],text:M[1].charAt(M[1].length-1)===`
`?M[1].slice(0,-1):M[1]}},Q.text=function(S,M){var j=this.rules.block.text.exec(S);if(j){var z=M[M.length-1];return z&&z.type==="text"?{raw:j[0],text:j[0]}:{type:"text",raw:j[0],text:j[0]}}},Q.escape=function(S){var M=this.rules.inline.escape.exec(S);if(M)return{type:"escape",raw:M[0],text:Ae(M[1])}},Q.tag=function(S,M,j){var z=this.rules.inline.tag.exec(S);if(z)return!M&&/^<a /i.test(z[0])?M=!0:M&&/^<\/a>/i.test(z[0])&&(M=!1),!j&&/^<(pre|code|kbd|script)(\s|>)/i.test(z[0])?j=!0:j&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(z[0])&&(j=!1),{type:this.options.sanitize?"text":"html",raw:z[0],inLink:M,inRawBlock:j,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(z[0]):Ae(z[0]):z[0]}},Q.link=function(S){var M=this.rules.inline.link.exec(S);if(M){var j=Se(M[2],"()");if(j>-1){var z=M[0].indexOf("!")===0?5:4,Ce=z+M[1].length+j;M[2]=M[2].substring(0,j),M[0]=M[0].substring(0,Ce).trim(),M[3]=""}var ae=M[2],je="";if(this.options.pedantic){var $e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ae);$e?(ae=$e[1],je=$e[3]):je=""}else je=M[3]?M[3].slice(1,-1):"";ae=ae.trim().replace(/^<([\s\S]*)>$/,"$1");var dt=nt(M,{href:ae&&ae.replace(this.rules.inline._escapes,"$1"),title:je&&je.replace(this.rules.inline._escapes,"$1")},M[0]);return dt}},Q.reflink=function(S,M){var j;if((j=this.rules.inline.reflink.exec(S))||(j=this.rules.inline.nolink.exec(S))){var z=(j[2]||j[1]).replace(/\s+/g," ");if(z=M[z.toLowerCase()],!z||!z.href){var Ce=j[0].charAt(0);return{type:"text",raw:Ce,text:Ce}}var ae=nt(j,z,j[0]);return ae}},Q.strong=function(S,M,j){j===void 0&&(j="");var z=this.rules.inline.strong.start.exec(S);if(z&&(!z[1]||z[1]&&(j===""||this.rules.inline.punctuation.exec(j)))){M=M.slice(-1*S.length);var Ce=z[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ce.lastIndex=0;for(var ae;(z=Ce.exec(M))!=null;)if(ae=this.rules.inline.strong.middle.exec(M.slice(0,z.index+3)),ae)return{type:"strong",raw:S.slice(0,ae[0].length),text:S.slice(2,ae[0].length-2)}}},Q.em=function(S,M,j){j===void 0&&(j="");var z=this.rules.inline.em.start.exec(S);if(z&&(!z[1]||z[1]&&(j===""||this.rules.inline.punctuation.exec(j)))){M=M.slice(-1*S.length);var Ce=z[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ce.lastIndex=0;for(var ae;(z=Ce.exec(M))!=null;)if(ae=this.rules.inline.em.middle.exec(M.slice(0,z.index+2)),ae)return{type:"em",raw:S.slice(0,ae[0].length),text:S.slice(1,ae[0].length-1)}}},Q.codespan=function(S){var M=this.rules.inline.code.exec(S);if(M){var j=M[2].replace(/\n/g," "),z=/[^ ]/.test(j),Ce=j.startsWith(" ")&&j.endsWith(" ");return z&&Ce&&(j=j.substring(1,j.length-1)),j=Ae(j,!0),{type:"codespan",raw:M[0],text:j}}},Q.br=function(S){var M=this.rules.inline.br.exec(S);if(M)return{type:"br",raw:M[0]}},Q.del=function(S){var M=this.rules.inline.del.exec(S);if(M)return{type:"del",raw:M[0],text:M[1]}},Q.autolink=function(S,M){var j=this.rules.inline.autolink.exec(S);if(j){var z,Ce;return j[2]==="@"?(z=Ae(this.options.mangle?M(j[1]):j[1]),Ce="mailto:"+z):(z=Ae(j[1]),Ce=z),{type:"link",raw:j[0],text:z,href:Ce,tokens:[{type:"text",raw:z,text:z}]}}},Q.url=function(S,M){var j;if(j=this.rules.inline.url.exec(S)){var z,Ce;if(j[2]==="@")z=Ae(this.options.mangle?M(j[0]):j[0]),Ce="mailto:"+z;else{var ae;do ae=j[0],j[0]=this.rules.inline._backpedal.exec(j[0])[0];while(ae!==j[0]);z=Ae(j[0]),j[1]==="www."?Ce="http://"+z:Ce=z}return{type:"link",raw:j[0],text:z,href:Ce,tokens:[{type:"text",raw:z,text:z}]}}},Q.inlineText=function(S,M,j){var z=this.rules.inline.text.exec(S);if(z){var Ce;return M?Ce=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(z[0]):Ae(z[0]):z[0]:Ce=Ae(this.options.smartypants?j(z[0]):z[0]),{type:"text",raw:z[0],text:Ce}}},ee}(),Le=me.noopTest,Ie=me.edit,Ne=me.merge,se={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:Le,table:Le,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};se._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,se._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,se.def=Ie(se.def).replace("label",se._label).replace("title",se._title).getRegex(),se.bullet=/(?:[*+-]|\d{1,9}[.)])/,se.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,se.item=Ie(se.item,"gm").replace(/bull/g,se.bullet).getRegex(),se.list=Ie(se.list).replace(/bull/g,se.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+se.def.source+")").getRegex(),se._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",se._comment=/<!--(?!-?>)[\s\S]*?-->/,se.html=Ie(se.html,"i").replace("comment",se._comment).replace("tag",se._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),se.paragraph=Ie(se._paragraph).replace("hr",se.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",se._tag).getRegex(),se.blockquote=Ie(se.blockquote).replace("paragraph",se.paragraph).getRegex(),se.normal=Ne({},se),se.gfm=Ne({},se.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*|$)"}),se.gfm.nptable=Ie(se.gfm.nptable).replace("hr",se.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",se._tag).getRegex(),se.gfm.table=Ie(se.gfm.table).replace("hr",se.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",se._tag).getRegex(),se.pedantic=Ne({},se.normal,{html:Ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",se._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:Le,paragraph:Ie(se.normal._paragraph).replace("hr",se.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",se.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Z={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Le,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:Le,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Z._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Z.punctuation=Ie(Z.punctuation).replace(/punctuation/g,Z._punctuation).getRegex(),Z._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Z._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Z.em.start=Ie(Z.em.start).replace(/punctuation/g,Z._punctuation).getRegex(),Z.em.middle=Ie(Z.em.middle).replace(/punctuation/g,Z._punctuation).replace(/overlapSkip/g,Z._overlapSkip).getRegex(),Z.em.endAst=Ie(Z.em.endAst,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.em.endUnd=Ie(Z.em.endUnd,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.start=Ie(Z.strong.start).replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.middle=Ie(Z.strong.middle).replace(/punctuation/g,Z._punctuation).replace(/blockSkip/g,Z._blockSkip).getRegex(),Z.strong.endAst=Ie(Z.strong.endAst,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.strong.endUnd=Ie(Z.strong.endUnd,"g").replace(/punctuation/g,Z._punctuation).getRegex(),Z.blockSkip=Ie(Z._blockSkip,"g").getRegex(),Z.overlapSkip=Ie(Z._overlapSkip,"g").getRegex(),Z._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Z._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Z._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])?)+(?![-_])/,Z.autolink=Ie(Z.autolink).replace("scheme",Z._scheme).replace("email",Z._email).getRegex(),Z._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Z.tag=Ie(Z.tag).replace("comment",se._comment).replace("attribute",Z._attribute).getRegex(),Z._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Z._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Z._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Z.link=Ie(Z.link).replace("label",Z._label).replace("href",Z._href).replace("title",Z._title).getRegex(),Z.reflink=Ie(Z.reflink).replace("label",Z._label).getRegex(),Z.reflinkSearch=Ie(Z.reflinkSearch,"g").replace("reflink",Z.reflink).replace("nolink",Z.nolink).getRegex(),Z.normal=Ne({},Z),Z.pedantic=Ne({},Z.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:Ie(/^!?\[(label)\]\((.*?)\)/).replace("label",Z._label).getRegex(),reflink:Ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Z._label).getRegex()}),Z.gfm=Ne({},Z.normal,{escape:Ie(Z.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Z.gfm.url=Ie(Z.gfm.url,"i").replace("email",Z.gfm._extended_email).getRegex(),Z.breaks=Ne({},Z.gfm,{br:Ie(Z.br).replace("{2,}","*").getRegex(),text:Ie(Z.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ze={block:se,inline:Z},Ye=W.defaults,Ke=ze.block,rt=ze.inline;function U(ee){return ee.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function F(ee){var Q="",$,S,M=ee.length;for($=0;$<M;$++)S=ee.charCodeAt($),Math.random()>.5&&(S="x"+S.toString(16)),Q+="&#"+S+";";return Q}var he=function(){function ee($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||Ye,this.options.tokenizer=this.options.tokenizer||new We,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var S={block:Ke.normal,inline:rt.normal};this.options.pedantic?(S.block=Ke.pedantic,S.inline=rt.pedantic):this.options.gfm&&(S.block=Ke.gfm,this.options.breaks?S.inline=rt.breaks:S.inline=rt.gfm),this.tokenizer.rules=S}ee.lex=function(S,M){var j=new ee(M);return j.lex(S)};var Q=ee.prototype;return Q.lex=function(S){return S=S.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(S,this.tokens,!0),this.inline(this.tokens),this.tokens},Q.blockTokens=function(S,M,j){M===void 0&&(M=[]),j===void 0&&(j=!0),S=S.replace(/^ +$/gm,"");for(var z,Ce,ae,je;S;){if(z=this.tokenizer.space(S)){S=S.substring(z.raw.length),z.type&&M.push(z);continue}if(z=this.tokenizer.code(S,M)){S=S.substring(z.raw.length),z.type?M.push(z):(je=M[M.length-1],je.raw+=`
`+z.raw,je.text+=`
`+z.text);continue}if(z=this.tokenizer.fences(S)){S=S.substring(z.raw.length),M.push(z);continue}if(z=this.tokenizer.heading(S)){S=S.substring(z.raw.length),M.push(z);continue}if(z=this.tokenizer.nptable(S)){S=S.substring(z.raw.length),M.push(z);continue}if(z=this.tokenizer.hr(S)){S=S.substring(z.raw.length),M.push(z);continue}if(z=this.tokenizer.blockquote(S)){S=S.substring(z.raw.length),z.tokens=this.blockTokens(z.text,[],j),M.push(z);continue}if(z=this.tokenizer.list(S)){for(S=S.substring(z.raw.length),ae=z.items.length,Ce=0;Ce<ae;Ce++)z.items[Ce].tokens=this.blockTokens(z.items[Ce].text,[],!1);M.push(z);continue}if(z=this.tokenizer.html(S)){S=S.substring(z.raw.length),M.push(z);continue}if(j&&(z=this.tokenizer.def(S))){S=S.substring(z.raw.length),this.tokens.links[z.tag]||(this.tokens.links[z.tag]={href:z.href,title:z.title});continue}if(z=this.tokenizer.table(S)){S=S.substring(z.raw.length),M.push(z);continue}if(z=this.tokenizer.lheading(S)){S=S.substring(z.raw.length),M.push(z);continue}if(j&&(z=this.tokenizer.paragraph(S))){S=S.substring(z.raw.length),M.push(z);continue}if(z=this.tokenizer.text(S,M)){S=S.substring(z.raw.length),z.type?M.push(z):(je=M[M.length-1],je.raw+=`
`+z.raw,je.text+=`
`+z.text);continue}if(S){var $e="Infinite loop on byte: "+S.charCodeAt(0);if(this.options.silent){console.error($e);break}else throw new Error($e)}}return M},Q.inline=function(S){var M,j,z,Ce,ae,je,$e=S.length;for(M=0;M<$e;M++){je=S[M];switch(je.type){case"paragraph":case"text":case"heading":{je.tokens=[],this.inlineTokens(je.text,je.tokens);break}case"table":{for(je.tokens={header:[],cells:[]},Ce=je.header.length,j=0;j<Ce;j++)je.tokens.header[j]=[],this.inlineTokens(je.header[j],je.tokens.header[j]);for(Ce=je.cells.length,j=0;j<Ce;j++)for(ae=je.cells[j],je.tokens.cells[j]=[],z=0;z<ae.length;z++)je.tokens.cells[j][z]=[],this.inlineTokens(ae[z],je.tokens.cells[j][z]);break}case"blockquote":{this.inline(je.tokens);break}case"list":{for(Ce=je.items.length,j=0;j<Ce;j++)this.inline(je.items[j].tokens);break}}}return S},Q.inlineTokens=function(S,M,j,z,Ce){M===void 0&&(M=[]),j===void 0&&(j=!1),z===void 0&&(z=!1),Ce===void 0&&(Ce="");var ae,je=S,$e;if(this.tokens.links){var dt=Object.keys(this.tokens.links);if(dt.length>0)for(;($e=this.tokenizer.rules.inline.reflinkSearch.exec(je))!=null;)dt.includes($e[0].slice($e[0].lastIndexOf("[")+1,-1))&&(je=je.slice(0,$e.index)+"["+"a".repeat($e[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;($e=this.tokenizer.rules.inline.blockSkip.exec(je))!=null;)je=je.slice(0,$e.index)+"["+"a".repeat($e[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;S;){if(ae=this.tokenizer.escape(S)){S=S.substring(ae.raw.length),M.push(ae);continue}if(ae=this.tokenizer.tag(S,j,z)){S=S.substring(ae.raw.length),j=ae.inLink,z=ae.inRawBlock,M.push(ae);continue}if(ae=this.tokenizer.link(S)){S=S.substring(ae.raw.length),ae.type==="link"&&(ae.tokens=this.inlineTokens(ae.text,[],!0,z)),M.push(ae);continue}if(ae=this.tokenizer.reflink(S,this.tokens.links)){S=S.substring(ae.raw.length),ae.type==="link"&&(ae.tokens=this.inlineTokens(ae.text,[],!0,z)),M.push(ae);continue}if(ae=this.tokenizer.strong(S,je,Ce)){S=S.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],j,z),M.push(ae);continue}if(ae=this.tokenizer.em(S,je,Ce)){S=S.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],j,z),M.push(ae);continue}if(ae=this.tokenizer.codespan(S)){S=S.substring(ae.raw.length),M.push(ae);continue}if(ae=this.tokenizer.br(S)){S=S.substring(ae.raw.length),M.push(ae);continue}if(ae=this.tokenizer.del(S)){S=S.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],j,z),M.push(ae);continue}if(ae=this.tokenizer.autolink(S,F)){S=S.substring(ae.raw.length),M.push(ae);continue}if(!j&&(ae=this.tokenizer.url(S,F))){S=S.substring(ae.raw.length),M.push(ae);continue}if(ae=this.tokenizer.inlineText(S,z,U)){S=S.substring(ae.raw.length),Ce=ae.raw.slice(-1),M.push(ae);continue}if(S){var st="Infinite loop on byte: "+S.charCodeAt(0);if(this.options.silent){console.error(st);break}else throw new Error(st)}}return M},be(ee,null,[{key:"rules",get:function(){return{block:Ke,inline:rt}}}]),ee}(),ye=W.defaults,Pe=me.cleanUrl,Be=me.escape,De=function(){function ee($){this.options=$||ye}var Q=ee.prototype;return Q.code=function(S,M,j){var z=(M||"").match(/\S*/)[0];if(this.options.highlight){var Ce=this.options.highlight(S,z);Ce!=null&&Ce!==S&&(j=!0,S=Ce)}return z?'<pre><code class="'+this.options.langPrefix+Be(z,!0)+'">'+(j?S:Be(S,!0))+`</code></pre>
`:"<pre><code>"+(j?S:Be(S,!0))+`</code></pre>
`},Q.blockquote=function(S){return`<blockquote>
`+S+`</blockquote>
`},Q.html=function(S){return S},Q.heading=function(S,M,j,z){return this.options.headerIds?"<h"+M+' id="'+this.options.headerPrefix+z.slug(j)+'">'+S+"</h"+M+`>
`:"<h"+M+">"+S+"</h"+M+`>
`},Q.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Q.list=function(S,M,j){var z=M?"ol":"ul",Ce=M&&j!==1?' start="'+j+'"':"";return"<"+z+Ce+`>
`+S+"</"+z+`>
`},Q.listitem=function(S){return"<li>"+S+`</li>
`},Q.checkbox=function(S){return"<input "+(S?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Q.paragraph=function(S){return"<p>"+S+`</p>
`},Q.table=function(S,M){return M&&(M="<tbody>"+M+"</tbody>"),`<table>
<thead>
`+S+`</thead>
`+M+`</table>
`},Q.tablerow=function(S){return`<tr>
`+S+`</tr>
`},Q.tablecell=function(S,M){var j=M.header?"th":"td",z=M.align?"<"+j+' align="'+M.align+'">':"<"+j+">";return z+S+"</"+j+`>
`},Q.strong=function(S){return"<strong>"+S+"</strong>"},Q.em=function(S){return"<em>"+S+"</em>"},Q.codespan=function(S){return"<code>"+S+"</code>"},Q.br=function(){return this.options.xhtml?"<br/>":"<br>"},Q.del=function(S){return"<del>"+S+"</del>"},Q.link=function(S,M,j){if(S=Pe(this.options.sanitize,this.options.baseUrl,S),S===null)return j;var z='<a href="'+Be(S)+'"';return M&&(z+=' title="'+M+'"'),z+=">"+j+"</a>",z},Q.image=function(S,M,j){if(S=Pe(this.options.sanitize,this.options.baseUrl,S),S===null)return j;var z='<img src="'+S+'" alt="'+j+'"';return M&&(z+=' title="'+M+'"'),z+=this.options.xhtml?"/>":">",z},Q.text=function(S){return S},ee}(),Ge=function(){function ee(){}var Q=ee.prototype;return Q.strong=function(S){return S},Q.em=function(S){return S},Q.codespan=function(S){return S},Q.del=function(S){return S},Q.html=function(S){return S},Q.text=function(S){return S},Q.link=function(S,M,j){return""+j},Q.image=function(S,M,j){return""+j},Q.br=function(){return""},ee}(),lt=function(){function ee(){this.seen={}}var Q=ee.prototype;return Q.slug=function(S){var M=S.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(M)){var j=M;do this.seen[j]++,M=j+"-"+this.seen[j];while(this.seen.hasOwnProperty(M))}return this.seen[M]=0,M},ee}(),qe=W.defaults,Je=me.unescape,Ve=function(){function ee($){this.options=$||qe,this.options.renderer=this.options.renderer||new De,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ge,this.slugger=new lt}ee.parse=function(S,M){var j=new ee(M);return j.parse(S)};var Q=ee.prototype;return Q.parse=function(S,M){M===void 0&&(M=!0);var j="",z,Ce,ae,je,$e,dt,st,Lt,Mt,mt,Jt,Bt,Ut,It,wt,jt,Gt,ot,gt=S.length;for(z=0;z<gt;z++){mt=S[z];switch(mt.type){case"space":continue;case"hr":{j+=this.renderer.hr();continue}case"heading":{j+=this.renderer.heading(this.parseInline(mt.tokens),mt.depth,Je(this.parseInline(mt.tokens,this.textRenderer)),this.slugger);continue}case"code":{j+=this.renderer.code(mt.text,mt.lang,mt.escaped);continue}case"table":{for(Lt="",st="",je=mt.header.length,Ce=0;Ce<je;Ce++)st+=this.renderer.tablecell(this.parseInline(mt.tokens.header[Ce]),{header:!0,align:mt.align[Ce]});for(Lt+=this.renderer.tablerow(st),Mt="",je=mt.cells.length,Ce=0;Ce<je;Ce++){for(dt=mt.tokens.cells[Ce],st="",$e=dt.length,ae=0;ae<$e;ae++)st+=this.renderer.tablecell(this.parseInline(dt[ae]),{header:!1,align:mt.align[ae]});Mt+=this.renderer.tablerow(st)}j+=this.renderer.table(Lt,Mt);continue}case"blockquote":{Mt=this.parse(mt.tokens),j+=this.renderer.blockquote(Mt);continue}case"list":{for(Jt=mt.ordered,Bt=mt.start,Ut=mt.loose,je=mt.items.length,Mt="",Ce=0;Ce<je;Ce++)wt=mt.items[Ce],jt=wt.checked,Gt=wt.task,It="",wt.task&&(ot=this.renderer.checkbox(jt),Ut?wt.tokens.length>0&&wt.tokens[0].type==="text"?(wt.tokens[0].text=ot+" "+wt.tokens[0].text,wt.tokens[0].tokens&&wt.tokens[0].tokens.length>0&&wt.tokens[0].tokens[0].type==="text"&&(wt.tokens[0].tokens[0].text=ot+" "+wt.tokens[0].tokens[0].text)):wt.tokens.unshift({type:"text",text:ot}):It+=ot),It+=this.parse(wt.tokens,Ut),Mt+=this.renderer.listitem(It,Gt,jt);j+=this.renderer.list(Mt,Jt,Bt);continue}case"html":{j+=this.renderer.html(mt.text);continue}case"paragraph":{j+=this.renderer.paragraph(this.parseInline(mt.tokens));continue}case"text":{for(Mt=mt.tokens?this.parseInline(mt.tokens):mt.text;z+1<gt&&S[z+1].type==="text";)mt=S[++z],Mt+=`
`+(mt.tokens?this.parseInline(mt.tokens):mt.text);j+=M?this.renderer.paragraph(Mt):Mt;continue}default:{var it='Token with "'+mt.type+'" type was not found.';if(this.options.silent){console.error(it);return}else throw new Error(it)}}}return j},Q.parseInline=function(S,M){M=M||this.renderer;var j="",z,Ce,ae=S.length;for(z=0;z<ae;z++){Ce=S[z];switch(Ce.type){case"escape":{j+=M.text(Ce.text);break}case"html":{j+=M.html(Ce.text);break}case"link":{j+=M.link(Ce.href,Ce.title,this.parseInline(Ce.tokens,M));break}case"image":{j+=M.image(Ce.href,Ce.title,Ce.text);break}case"strong":{j+=M.strong(this.parseInline(Ce.tokens,M));break}case"em":{j+=M.em(this.parseInline(Ce.tokens,M));break}case"codespan":{j+=M.codespan(Ce.text);break}case"br":{j+=M.br();break}case"del":{j+=M.del(this.parseInline(Ce.tokens,M));break}case"text":{j+=M.text(Ce.text);break}default:{var je='Token with "'+Ce.type+'" type was not found.';if(this.options.silent){console.error(je);return}else throw new Error(je)}}}return j},ee}(),Ct=me.merge,pt=me.checkSanitizeDeprecation,ht=me.escape,Ee=W.getDefaults,Xe=W.changeDefaults,ut=W.defaults;function we(ee,Q,$){if(typeof ee=="undefined"||ee===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ee!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ee)+", string expected");if(typeof Q=="function"&&($=Q,Q=null),Q=Ct({},we.defaults,Q||{}),pt(Q),$){var S=Q.highlight,M;try{M=he.lex(ee,Q)}catch(ae){return $(ae)}var j=function(je){var $e;if(!je)try{$e=Ve.parse(M,Q)}catch(dt){je=dt}return Q.highlight=S,je?$(je):$(null,$e)};if(!S||S.length<3)return j();if(delete Q.highlight,!M.length)return j();var z=0;we.walkTokens(M,function(ae){ae.type==="code"&&(z++,setTimeout(function(){S(ae.text,ae.lang,function(je,$e){if(je)return j(je);$e!=null&&$e!==ae.text&&(ae.text=$e,ae.escaped=!0),z--,z===0&&j()})},0))}),z===0&&j();return}try{var Ce=he.lex(ee,Q);return Q.walkTokens&&we.walkTokens(Ce,Q.walkTokens),Ve.parse(Ce,Q)}catch(ae){if(ae.message+=`
Please report this to https://github.com/markedjs/marked.`,Q.silent)return"<p>An error occurred:</p><pre>"+ht(ae.message+"",!0)+"</pre>";throw ae}}we.options=we.setOptions=function(ee){return Ct(we.defaults,ee),Xe(we.defaults),we},we.getDefaults=Ee,we.defaults=ut,we.use=function(ee){var Q=Ct({},ee);if(ee.renderer&&function(){var S=we.defaults.renderer||new De,M=function(Ce){var ae=S[Ce];S[Ce]=function(){for(var je=arguments.length,$e=new Array(je),dt=0;dt<je;dt++)$e[dt]=arguments[dt];var st=ee.renderer[Ce].apply(S,$e);return st===!1&&(st=ae.apply(S,$e)),st}};for(var j in ee.renderer)M(j);Q.renderer=S}(),ee.tokenizer&&function(){var S=we.defaults.tokenizer||new We,M=function(Ce){var ae=S[Ce];S[Ce]=function(){for(var je=arguments.length,$e=new Array(je),dt=0;dt<je;dt++)$e[dt]=arguments[dt];var st=ee.tokenizer[Ce].apply(S,$e);return st===!1&&(st=ae.apply(S,$e)),st}};for(var j in ee.tokenizer)M(j);Q.tokenizer=S}(),ee.walkTokens){var $=we.defaults.walkTokens;Q.walkTokens=function(S){ee.walkTokens(S),$&&$(S)}}we.setOptions(Q)},we.walkTokens=function(ee,Q){for(var $=de(ee),S;!(S=$()).done;){var M=S.value;Q(M);switch(M.type){case"table":{for(var j=de(M.tokens.header),z;!(z=j()).done;){var Ce=z.value;we.walkTokens(Ce,Q)}for(var ae=de(M.tokens.cells),je;!(je=ae()).done;)for(var $e=je.value,dt=de($e),st;!(st=dt()).done;){var Lt=st.value;we.walkTokens(Lt,Q)}break}case"list":{we.walkTokens(M.items,Q);break}default:M.tokens&&we.walkTokens(M.tokens,Q)}}},we.Parser=Ve,we.parser=Ve.parse,we.Renderer=De,we.TextRenderer=Ge,we.Lexer=he,we.lexer=he.lex,we.Tokenizer=We,we.Slugger=lt,we.parse=we;var _e=we;return _e})},E7E6:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgN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PnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},ELLl:function(ke,_,d){(function(G){G(d("VrN/"))})(function(G){var be={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},re=G.Pos;G.defineOption("autoCloseBrackets",!1,function(A,L,g){g&&g!=G.Init&&(A.removeKeyMap(de),A.state.closeBrackets=null),L&&(ne(fe(L,"pairs")),A.state.closeBrackets=L,A.addKeyMap(de))});function fe(A,L){return L=="pairs"&&typeof A=="string"?A:typeof A=="object"&&A[L]!=null?A[L]:be[L]}var de={Backspace:O,Enter:B};function ne(A){for(var L=0;L<A.length;L++){var g=A.charAt(L),v="'"+g+"'";de[v]||(de[v]=W(g))}}ne(be.pairs+"`");function W(A){return function(L){return C(L,A)}}function Y(A){var L=A.state.closeBrackets;if(!L||L.override)return L;var g=A.getModeAt(A.getCursor());return g.closeBrackets||L}function O(A){var L=Y(A);if(!L||A.getOption("disableInput"))return G.Pass;for(var g=fe(L,"pairs"),v=A.listSelections(),w=0;w<v.length;w++){if(!v[w].empty())return G.Pass;var I=k(A,v[w].head);if(!I||g.indexOf(I)%2!=0)return G.Pass}for(var w=v.length-1;w>=0;w--){var le=v[w].head;A.replaceRange("",re(le.line,le.ch-1),re(le.line,le.ch+1),"+delete")}}function B(A){var L=Y(A),g=L&&fe(L,"explode");if(!g||A.getOption("disableInput"))return G.Pass;for(var v=A.listSelections(),w=0;w<v.length;w++){if(!v[w].empty())return G.Pass;var I=k(A,v[w].head);if(!I||g.indexOf(I)%2!=0)return G.Pass}A.operation(function(){var le=A.lineSeparator()||`
`;A.replaceSelection(le+le,null),A.execCommand("goCharLeft"),v=A.listSelections();for(var te=0;te<v.length;te++){var oe=v[te].head.line;A.indentLine(oe,null,!0),A.indentLine(oe+1,null,!0)}})}function b(A){var L=G.cmpPos(A.anchor,A.head)>0;return{anchor:new re(A.anchor.line,A.anchor.ch+(L?-1:1)),head:new re(A.head.line,A.head.ch+(L?1:-1))}}function C(A,L){var g=Y(A);if(!g||A.getOption("disableInput"))return G.Pass;var v=fe(g,"pairs"),w=v.indexOf(L);if(w==-1)return G.Pass;for(var I=fe(g,"closeBefore"),le=fe(g,"triples"),te=v.charAt(w+1)==L,oe=A.listSelections(),Me=w%2==0,ge,xe=0;xe<oe.length;xe++){var ve=oe[xe],T=ve.head,R,ue=A.getRange(T,re(T.line,T.ch+1));if(Me&&!ve.empty())R="surround";else if((te||!Me)&&ue==L)te&&E(A,T)?R="both":le.indexOf(L)>=0&&A.getRange(T,re(T.line,T.ch+3))==L+L+L?R="skipThree":R="skip";else if(te&&T.ch>1&&le.indexOf(L)>=0&&A.getRange(re(T.line,T.ch-2),T)==L+L){if(T.ch>2&&/\bstring/.test(A.getTokenTypeAt(re(T.line,T.ch-2))))return G.Pass;R="addFour"}else if(te){var K=T.ch==0?" ":A.getRange(re(T.line,T.ch-1),T);if(!G.isWordChar(ue)&&K!=L&&!G.isWordChar(K))R="both";else return G.Pass}else if(Me&&(ue.length===0||/\s/.test(ue)||I.indexOf(ue)>-1))R="both";else return G.Pass;if(!ge)ge=R;else if(ge!=R)return G.Pass}var N=w%2?v.charAt(w-1):L,X=w%2?L:v.charAt(w+1);A.operation(function(){if(ge=="skip")A.execCommand("goCharRight");else if(ge=="skipThree")for(var ie=0;ie<3;ie++)A.execCommand("goCharRight");else if(ge=="surround"){for(var J=A.getSelections(),ie=0;ie<J.length;ie++)J[ie]=N+J[ie]+X;A.replaceSelections(J,"around"),J=A.listSelections().slice();for(var ie=0;ie<J.length;ie++)J[ie]=b(J[ie]);A.setSelections(J)}else ge=="both"?(A.replaceSelection(N+X,null),A.triggerElectric(N+X),A.execCommand("goCharLeft")):ge=="addFour"&&(A.replaceSelection(N+N+N+N,"before"),A.execCommand("goCharRight"))})}function k(A,L){var g=A.getRange(re(L.line,L.ch-1),re(L.line,L.ch+1));return g.length==2?g:null}function E(A,L){var g=A.getTokenAt(re(L.line,L.ch+1));return/\bstring/.test(g.type)&&g.start==L.ch&&(L.ch==0||!/\bstring/.test(A.getTokenTypeAt(L)))}})},FOrL:function(ke,_,d){ke.exports=d.p+"static/nodata.a6b3f948.png"},FPkq:function(ke,_,d){ke.exports=d.p+"static/qrCode.dd0fe9b2.png"},GABl:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVh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vCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},Gytx:function(ke,_){ke.exports=function(G,be,re,fe){var de=re?re.call(fe,G,be):void 0;if(de!==void 0)return!!de;if(G===be)return!0;if(typeof G!="object"||!G||typeof be!="object"||!be)return!1;var ne=Object.keys(G),W=Object.keys(be);if(ne.length!==W.length)return!1;for(var Y=Object.prototype.hasOwnProperty.bind(be),O=0;O<ne.length;O++){var B=ne[O];if(!Y(B))return!1;var b=G[B],C=be[B];if(de=re?re.call(fe,b,C,B):void 0,de===!1||de===void 0&&b!==C)return!1}return!0}},HmJG:function(ke,_,d){},HpTS:function(ke,_,d){ke.exports=d.p+"static/small_program.f74069ec.png"},JWDV:function(ke,_,d){ke.exports=d.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(ke,_,d){"use strict";d.d(_,"c",function(){return be}),d.d(_,"d",function(){return re}),d.d(_,"f",function(){return de}),d.d(_,"a",function(){return ne}),d.d(_,"b",function(){return W}),d.d(_,"e",function(){return Y});var G=function(){var O=function(B,b){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,k){C.__proto__=k}||function(C,k){for(var E in k)k.hasOwnProperty(E)&&(C[E]=k[E])},O(B,b)};return function(B,b){O(B,b);function C(){this.constructor=B}B.prototype=b===null?Object.create(b):(C.prototype=b.prototype,new C)}}(),be={done:!0,value:void 0},re;(function(O){var B={next:function(){return be}};function b(){return B}O.empty=b;function C(te){var oe=!1;return{next:function(){return oe?be:(oe=!0,{done:!1,value:te})}}}O.single=C;function k(te,oe,Me){return oe===void 0&&(oe=0),Me===void 0&&(Me=te.length),{next:function(){return oe>=Me?be:{done:!1,value:te[oe++]}}}}O.fromArray=k;function E(te){return{next:function(){var oe=te.next();return oe.done?be:{done:!1,value:oe.value}}}}O.fromNativeIterator=E;function A(te){return te?Array.isArray(te)?O.fromArray(te):te:O.empty()}O.from=A;function L(te,oe){return{next:function(){var Me=te.next();return Me.done?be:{done:!1,value:oe(Me.value)}}}}O.map=L;function g(te,oe){return{next:function(){for(;;){var Me=te.next();if(Me.done)return be;if(oe(Me.value))return{done:!1,value:Me.value}}}}}O.filter=g;function v(te,oe){for(var Me=te.next();!Me.done;Me=te.next())oe(Me.value)}O.forEach=v;function w(te,oe){oe===void 0&&(oe=Number.POSITIVE_INFINITY);var Me=[];if(oe===0)return Me;for(var ge=0,xe=te.next();!xe.done&&!(Me.push(xe.value),++ge>=oe);xe=te.next());return Me}O.collect=w;function I(){for(var te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];var Me=0;return{next:function(){if(Me>=te.length)return be;var ge=te[Me],xe=ge.next();return xe.done?(Me++,this.next()):xe}}}O.concat=I;function le(te){return new fe(te)}O.chain=le})(re||(re={}));var fe=function(){function O(B){this.it=B}return O.prototype.next=function(){return this.it.next()},O}();function de(O){return Array.isArray(O)?re.fromArray(O):O||re.empty()}var ne=function(){function O(B,b,C,k){b===void 0&&(b=0),C===void 0&&(C=B.length),k===void 0&&(k=b-1),this.items=B,this.start=b,this.end=C,this.index=k}return O.prototype.first=function(){return this.index=this.start,this.current()},O.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},O.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},O}(),W=function(O){G(B,O);function B(b,C,k,E){return C===void 0&&(C=0),k===void 0&&(k=b.length),E===void 0&&(E=C-1),O.call(this,b,C,k,E)||this}return B.prototype.current=function(){return O.prototype.current.call(this)},B.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},B.prototype.first=function(){return this.index=this.start,this.current()},B.prototype.last=function(){return this.index=this.end-1,this.current()},B.prototype.parent=function(){return null},B}(ne),Y=function(){function O(B,b){this.iterator=B,this.fn=b}return O.prototype.next=function(){return this.fn(this.iterator.next())},O}()},JeFH:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59f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5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(ke,_,d){ke.exports=d.p+"static/qrcode.54870d9b.png"},LdHM:function(ke,_,d){"use strict";d.d(_,"b",function(){return I}),d.d(_,"a",function(){return te});var G=d("1OyB"),be=d("vuIU"),re=d("Ji7U"),fe=d("LK+K"),de=d("q1tI"),ne=d("rePB"),W=d("Ff2n"),Y=d("ODXe"),O=d("4IlW"),B=d("bX4T"),b=d("YrtM"),C=d("TSYQ"),k=d.n(C),E=d("+nKL"),A=d("8OUc"),L=function(q,Ae){var Se=q.prefixCls,nt=q.id,at=q.flattenOptions,We=q.childrenAsData,Le=q.values,Ie=q.searchValue,Ne=q.multiple,se=q.defaultActiveFirstOption,Z=q.height,ze=q.itemHeight,Ye=q.notFoundContent,Ke=q.open,rt=q.menuItemSelectedIcon,U=q.virtual,F=q.onSelect,he=q.onToggleOpen,ye=q.onActiveValue,Pe=q.onScroll,Be=q.onMouseEnter,De="".concat(Se,"-item"),Ge=Object(b.a)(function(){return at},[Ke,at],function(_e,ee){return ee[0]&&_e[1]!==ee[1]}),lt=de.useRef(null),qe=function(ee){ee.preventDefault()},Je=function(ee){lt.current&&lt.current.scrollTo({index:ee})},Ve=function(ee){for(var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,$=Ge.length,S=0;S<$;S+=1){var M=(ee+S*Q+$)%$,j=Ge[M],z=j.group,Ce=j.data;if(!z&&!Ce.disabled)return M}return-1},Ct=de.useState(function(){return Ve(0)}),pt=Object(Y.a)(Ct,2),ht=pt[0],Ee=pt[1],Xe=function(ee){Ee(ee);var Q=Ge[ee];if(!Q){ye(null,-1);return}ye(Q.data.value,ee)};de.useEffect(function(){Xe(se!==!1?Ve(0):-1)},[Ge.length,Ie]),de.useEffect(function(){var _e=setTimeout(function(){if(!Ne&&Ke&&Le.size===1){var ee=Array.from(Le)[0],Q=Ge.findIndex(function($){var S=$.data;return S.value===ee});Xe(Q),Je(Q)}});return function(){return clearTimeout(_e)}},[Ke]);var ut=function(ee){ee!==void 0&&F(ee,{selected:!Le.has(ee)}),Ne||he(!1)};if(de.useImperativeHandle(Ae,function(){return{onKeyDown:function(ee){var Q=ee.which;switch(Q){case O.a.UP:case O.a.DOWN:{var $=0;if(Q===O.a.UP?$=-1:Q===O.a.DOWN&&($=1),$!==0){var S=Ve(ht+$,$);Je(S),Xe(S)}break}case O.a.ENTER:{var M=Ge[ht];M&&!M.data.disabled?ut(M.data.value):ut(void 0),Ke&&ee.preventDefault();break}case O.a.ESC:he(!1)}},onKeyUp:function(){},scrollTo:function(ee){Je(ee)}}}),Ge.length===0)return de.createElement("div",{role:"listbox",id:"".concat(nt,"_list"),className:"".concat(De,"-empty"),onMouseDown:qe},Ye);function we(_e){var ee=Ge[_e];if(!ee)return null;var Q=ee.data||{},$=Q.value,S=Q.label,M=Q.children,j=Object(B.a)(Q,!0),z=We?M:S;return ee?de.createElement("div",Object.assign({"aria-label":typeof z=="string"?z:null},j,{key:_e,role:"option",id:"".concat(nt,"_list_").concat(_e),"aria-selected":Le.has($)}),$):null}return de.createElement(de.Fragment,null,de.createElement("div",{role:"listbox",id:"".concat(nt,"_list"),style:{height:0,width:0,overflow:"hidden"}},we(ht-1),we(ht),we(ht+1)),de.createElement(E.a,{itemKey:"key",ref:lt,data:Ge,height:Z,itemHeight:ze,fullHeight:!1,onMouseDown:qe,onScroll:Pe,virtual:U,onMouseEnter:Be},function(_e,ee){var Q,$=_e.group,S=_e.groupOption,M=_e.data,j=M.label,z=M.key;if($)return de.createElement("div",{className:k()(De,"".concat(De,"-group"))},j!==void 0?j:z);var Ce=M.disabled,ae=M.value,je=M.title,$e=M.children,dt=M.style,st=M.className,Lt=Object(W.a)(M,["disabled","value","title","children","style","className"]),Mt=Le.has(ae),mt="".concat(De,"-option"),Jt=k()(De,mt,st,(Q={},Object(ne.a)(Q,"".concat(mt,"-grouped"),S),Object(ne.a)(Q,"".concat(mt,"-active"),ht===ee&&!Ce),Object(ne.a)(Q,"".concat(mt,"-disabled"),Ce),Object(ne.a)(Q,"".concat(mt,"-selected"),Mt),Q)),Bt=We?$e:j,Ut=!rt||typeof rt=="function"||Mt;return de.createElement("div",Object.assign({},Lt,{"aria-selected":Mt,className:Jt,title:je,onMouseMove:function(){if(ht===ee||Ce)return;Xe(ee)},onClick:function(){Ce||ut(ae)},style:dt}),de.createElement("div",{className:"".concat(mt,"-content")},Bt||ae),de.isValidElement(rt)||Mt,Ut&&de.createElement(A.a,{className:"".concat(De,"-option-state"),customizeIcon:rt,customizeIconProps:{isSelected:Mt}},Mt?"\u2713":null))}))},g=de.forwardRef(L);g.displayName="OptionList";var v=g,w=function(){return null};w.isSelectOption=!0;var I=w,le=function(){return null};le.isSelectOptGroup=!0;var te=le,oe=d("VTBJ"),Me=d("Zm9Q");function ge(y){var q=y.key,Ae=y.props,Se=Ae.children,nt=Ae.value,at=Object(W.a)(Ae,["children","value"]);return Object(oe.a)({key:q,value:nt!==void 0?nt:q,children:Se},at)}function xe(y){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(Me.a)(y).map(function(Ae,Se){if(!de.isValidElement(Ae)||!Ae.type)return null;var nt=Ae.type.isSelectOptGroup,at=Ae.key,We=Ae.props,Le=We.children,Ie=Object(W.a)(We,["children"]);return q||!nt?ge(Ae):Object(oe.a)(Object(oe.a)({key:"__RC_SELECT_GRP__".concat(at===null?Se:at,"__"),label:at},Ie),{},{options:xe(Le)})}).filter(function(Ae){return Ae})}var ve=d("2Qr1"),T=d("qNPg"),R=d("U8pU"),ue=d("Kwbf"),K=d("WKfj");function N(y){var q=y.mode,Ae=y.options,Se=y.children,nt=y.backfill,at=y.allowClear,We=y.placeholder,Le=y.getInputElement,Ie=y.showSearch,Ne=y.onSearch,se=y.defaultOpen,Z=y.autoFocus,ze=y.labelInValue,Ye=y.value,Ke=y.inputValue,rt=y.optionLabelProp,U=q==="multiple"||q==="tags",F=Ie!==void 0?Ie:U||q==="combobox",he=Ae||xe(Se);if(Object(ue.a)(q!=="tags"||he.every(function(De){return!De.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),q==="tags"||q==="combobox"){var ye=he.some(function(De){return De.options?De.options.some(function(Ge){return typeof("value"in Ge?Ge.value:Ge.key)=="number"}):typeof("value"in De?De.value:De.key)=="number"});Object(ue.a)(!ye,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ue.a)(q!=="combobox"||!rt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ue.a)(q==="combobox"||!nt,"`backfill` only works with `combobox` mode."),Object(ue.a)(q==="combobox"||!Le,"`getInputElement` only work with `combobox` mode."),Object(ue.b)(q!=="combobox"||!Le||!at||!We,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ne&&!F&&q!=="combobox"&&q!=="tags"&&Object(ue.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ue.b)(!se||Z,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ye!=null){var Pe=Object(K.d)(Ye);Object(ue.a)(!ze||Pe.every(function(De){return Object(R.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(ue.a)(!U||Array.isArray(Ye),"`value` should be array when `mode` is `multiple` or `tags`")}if(Se){var Be=null;Object(Me.a)(Se).some(function(De){if(!de.isValidElement(De)||!De.type)return!1;var Ge=De.type;if(Ge.isSelectOption)return!1;if(Ge.isSelectOptGroup){var lt=Object(Me.a)(De.props.children).every(function(qe){return!de.isValidElement(qe)||!De.type||qe.type.isSelectOption?!0:(Be=qe.type,!1)});return!lt}return Be=Ge,!0}),Be&&Object(ue.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Be.displayName||Be.name||Be,"`.")),Object(ue.a)(Ke===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var X=N,ie=Object(T.a)({prefixCls:"rc-select",components:{optionList:v},convertChildrenToData:xe,flattenOptions:ve.d,getLabeledValue:ve.e,filterOptions:ve.b,isValueDisabled:ve.g,findValueOption:ve.c,warningProps:X,fillOptionsWithMissingValue:ve.a}),J=function(y){Object(re.a)(Ae,y);var q=Object(fe.a)(Ae);function Ae(){var Se;return Object(G.a)(this,Ae),Se=q.apply(this,arguments),Se.selectRef=de.createRef(),Se.focus=function(){Se.selectRef.current.focus()},Se.blur=function(){Se.selectRef.current.blur()},Se}return Object(be.a)(Ae,[{key:"render",value:function(){return de.createElement(ie,Object.assign({ref:this.selectRef},this.props))}}]),Ae}(de.Component);J.Option=I,J.OptGroup=te;var me=J,D=_.c=me},M8RZ:function(ke,_,d){"use strict";d.d(_,"a",function(){return O});var G=d("fWQN"),be=d("mtLc"),re=d("yKVA"),fe=d("879j"),de=d("q1tI"),ne=d.n(de),W=d("i8i4"),Y=d.n(W),O=function(B){Object(re.a)(C,B);var b=Object(fe.a)(C);function C(k){var E;Object(G.a)(this,C),E=b.call(this,k);var A=window.document;return E.node=A.createElement("div"),A.body.appendChild(E.node),E}return Object(be.a)(C,[{key:"render",value:function(){var E=this.props.children;return Object(W.createPortal)(E,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),C}(ne.a.Component)},MI8n:function(ke,_,d){"use strict";d.d(_,"b",function(){return ne}),d.d(_,"a",function(){return O}),d.d(_,"e",function(){return B}),d.d(_,"d",function(){return b}),d.d(_,"c",function(){return C}),d.d(_,"f",function(){return k});var G=d("/cxE"),be=d("C/vA"),re=d("pmY6"),fe=d("24hK"),de=function(){var E=function(A,L){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var w in v)v.hasOwnProperty(w)&&(g[w]=v[w])},E(A,L)};return function(A,L){E(A,L);function g(){this.constructor=A}A.prototype=L===null?Object.create(L):(g.prototype=L.prototype,new g)}}(),ne;(function(E){E.None=function(){return re.a.None};function A(X){return function(ie,J,me){J===void 0&&(J=null);var D=!1,y;return y=X(function(q){return D?void 0:(y?y.dispose():D=!0,ie.call(J,q))},null,me),D&&y.dispose(),y}}E.once=A;function L(X,ie){return te(function(J,me,D){return me===void 0&&(me=null),X(function(y){return J.call(me,ie(y))},null,D)})}E.map=L;function g(X,ie){return te(function(J,me,D){return me===void 0&&(me=null),X(function(y){ie(y),J.call(me,y)},null,D)})}E.forEach=g;function v(X,ie){return te(function(J,me,D){return me===void 0&&(me=null),X(function(y){return ie(y)&&J.call(me,y)},null,D)})}E.filter=v;function w(X){return X}E.signal=w;function I(){for(var X=[],ie=0;ie<arguments.length;ie++)X[ie]=arguments[ie];return function(J,me,D){return me===void 0&&(me=null),re.e.apply(void 0,X.map(function(y){return y(function(q){return J.call(me,q)},null,D)}))}}E.any=I;function le(X,ie,J){var me=J;return L(X,function(D){return me=ie(me,D),me})}E.reduce=le;function te(X){var ie,J=new O({onFirstListenerAdd:function(){ie=X(J.fire,J)},onLastListenerRemove:function(){ie.dispose()}});return J.event}E.snapshot=te;function oe(X,ie,J,me,D){J===void 0&&(J=100),me===void 0&&(me=!1);var y,q=void 0,Ae=void 0,Se=0,nt=new O({leakWarningThreshold:D,onFirstListenerAdd:function(){y=X(function(at){Se++,q=ie(q,at),me&&!Ae&&(nt.fire(q),q=void 0),clearTimeout(Ae),Ae=setTimeout(function(){var We=q;q=void 0,Ae=void 0,(!me||Se>1)&&nt.fire(We),Se=0},J)})},onLastListenerRemove:function(){y.dispose()}});return nt.event}E.debounce=oe;function Me(X){var ie=new Date().getTime();return L(A(X),function(J){return new Date().getTime()-ie})}E.stopwatch=Me;function ge(X){var ie=!0,J;return v(X,function(me){var D=ie||me!==J;return ie=!1,J=me,D})}E.latch=ge;function xe(X,ie,J){ie===void 0&&(ie=!1),J===void 0&&(J=[]);var me=J.slice(),D=X(function(Ae){me?me.push(Ae):q.fire(Ae)}),y=function(){me&&me.forEach(function(Ae){return q.fire(Ae)}),me=null},q=new O({onFirstListenerAdd:function(){D||(D=X(function(Ae){return q.fire(Ae)}))},onFirstListenerDidAdd:function(){me&&(ie?setTimeout(y):y())},onLastListenerRemove:function(){D&&D.dispose(),D=null}});return q.event}E.buffer=xe;var ve=function(){function X(ie){this.event=ie}return X.prototype.map=function(ie){return new X(L(this.event,ie))},X.prototype.forEach=function(ie){return new X(g(this.event,ie))},X.prototype.filter=function(ie){return new X(v(this.event,ie))},X.prototype.reduce=function(ie,J){return new X(le(this.event,ie,J))},X.prototype.latch=function(){return new X(ge(this.event))},X.prototype.debounce=function(ie,J,me,D){return J===void 0&&(J=100),me===void 0&&(me=!1),new X(oe(this.event,ie,J,me,D))},X.prototype.on=function(ie,J,me){return this.event(ie,J,me)},X.prototype.once=function(ie,J,me){return A(this.event)(ie,J,me)},X}();function T(X){return new ve(X)}E.chain=T;function R(X,ie,J){J===void 0&&(J=function(Ae){return Ae});var me=function(){for(var Ae=[],Se=0;Se<arguments.length;Se++)Ae[Se]=arguments[Se];return q.fire(J.apply(void 0,Ae))},D=function(){return X.on(ie,me)},y=function(){return X.removeListener(ie,me)},q=new O({onFirstListenerAdd:D,onLastListenerRemove:y});return q.event}E.fromNodeEventEmitter=R;function ue(X,ie,J){J===void 0&&(J=function(Ae){return Ae});var me=function(){for(var Ae=[],Se=0;Se<arguments.length;Se++)Ae[Se]=arguments[Se];return q.fire(J.apply(void 0,Ae))},D=function(){return X.addEventListener(ie,me)},y=function(){return X.removeEventListener(ie,me)},q=new O({onFirstListenerAdd:D,onLastListenerRemove:y});return q.event}E.fromDOMEventEmitter=ue;function K(X){var ie=new O,J=!1;return X.then(void 0,function(){return null}).then(function(){J?ie.fire(void 0):setTimeout(function(){return ie.fire(void 0)},0)}),J=!0,ie.event}E.fromPromise=K;function N(X){return new Promise(function(ie){return A(X)(ie)})}E.toPromise=N})(ne||(ne={}));var W=-1,Y=function(){function E(A,L){L===void 0&&(L=Math.random().toString(18).slice(2,5)),this.customThreshold=A,this.name=L,this._warnCountdown=0}return E.prototype.dispose=function(){this._stacks&&this._stacks.clear()},E.prototype.check=function(A){var L=this,g=W;if(typeof this.customThreshold=="number"&&(g=this.customThreshold),g<=0||A<g)return;this._stacks||(this._stacks=new Map);var v=new Error().stack.split(`
`).slice(3).join(`
`),w=this._stacks.get(v)||0;if(this._stacks.set(v,w+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=g*.5;var I,le=0;this._stacks.forEach(function(te,oe){(!I||le<te)&&(I=oe,le=te)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+A+" listeners already. MOST frequent listener ("+le+"):"),console.warn(I)}return function(){var te=L._stacks.get(v)||0;L._stacks.set(v,te-1)}},E}(),O=function(){function E(A){this._disposed=!1,this._options=A,this._leakageMon=W>0?new Y(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(E.prototype,"event",{get:function(){var A=this;return this._event||(this._event=function(L,g,v){A._listeners||(A._listeners=new fe.a);var w=A._listeners.isEmpty();w&&A._options&&A._options.onFirstListenerAdd&&A._options.onFirstListenerAdd(A);var I=A._listeners.push(g?[L,g]:L);w&&A._options&&A._options.onFirstListenerDidAdd&&A._options.onFirstListenerDidAdd(A),A._options&&A._options.onListenerDidAdd&&A._options.onListenerDidAdd(A,L,g);var le;A._leakageMon&&(le=A._leakageMon.check(A._listeners.size));var te;return te={dispose:function(){if(le&&le(),te.dispose=E._noop,!A._disposed&&(I(),A._options&&A._options.onLastListenerRemove)){var oe=A._listeners&&!A._listeners.isEmpty();oe||A._options.onLastListenerRemove(A)}}},v instanceof re.b?v.add(te):Array.isArray(v)&&v.push(te),te}),this._event},enumerable:!0,configurable:!0}),E.prototype.fire=function(A){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new fe.a);for(var L=this._listeners.iterator(),g=L.next();!g.done;g=L.next())this._deliveryQueue.push([g.value,A]);for(;this._deliveryQueue.size>0;){var v=this._deliveryQueue.shift(),w=v[0],I=v[1];try{typeof w=="function"?w.call(void 0,I):w[0].call(w[1],I)}catch(le){Object(G.e)(le)}}}},E.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},E._noop=function(){},E}(),B=function(E){de(A,E);function A(L){var g=E.call(this,L)||this;return g._isPaused=0,g._eventQueue=new fe.a,g._mergeFn=L&&L.merge,g}return A.prototype.pause=function(){this._isPaused++},A.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var L=this._eventQueue.toArray();this._eventQueue.clear(),E.prototype.fire.call(this,this._mergeFn(L))}else for(;!this._isPaused&&this._eventQueue.size!==0;)E.prototype.fire.call(this,this._eventQueue.shift())},A.prototype.fire=function(L){this._listeners&&(this._isPaused!==0?this._eventQueue.push(L):E.prototype.fire.call(this,L))},A}(O),b=function(){function E(){var A=this;this.hasListeners=!1,this.events=[],this.emitter=new O({onFirstListenerAdd:function(){return A.onFirstListenerAdd()},onLastListenerRemove:function(){return A.onLastListenerRemove()}})}return Object.defineProperty(E.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),E.prototype.add=function(A){var L=this,g={event:A,listener:null};this.events.push(g),this.hasListeners&&this.hook(g);var v=function(){L.hasListeners&&L.unhook(g);var w=L.events.indexOf(g);L.events.splice(w,1)};return Object(re.h)(Object(be.a)(v))},E.prototype.onFirstListenerAdd=function(){var A=this;this.hasListeners=!0,this.events.forEach(function(L){return A.hook(L)})},E.prototype.onLastListenerRemove=function(){var A=this;this.hasListeners=!1,this.events.forEach(function(L){return A.unhook(L)})},E.prototype.hook=function(A){var L=this;A.listener=A.event(function(g){return L.emitter.fire(g)})},E.prototype.unhook=function(A){A.listener&&A.listener.dispose(),A.listener=null},E.prototype.dispose=function(){this.emitter.dispose()},E}(),C=function(){function E(){this.buffers=[]}return E.prototype.wrapEvent=function(A){var L=this;return function(g,v,w){return A(function(I){var le=L.buffers[L.buffers.length-1];le?le.push(function(){return g.call(v,I)}):g.call(v,I)},void 0,w)}},E.prototype.bufferEvents=function(A){var L=[];this.buffers.push(L);var g=A();return this.buffers.pop(),L.forEach(function(v){return v()}),g},E}(),k=function(){function E(){var A=this;this.listening=!1,this.inputEvent=ne.None,this.inputEventListener=re.a.None,this.emitter=new O({onFirstListenerDidAdd:function(){A.listening=!0,A.inputEventListener=A.inputEvent(A.emitter.fire,A.emitter)},onLastListenerRemove:function(){A.listening=!1,A.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(E.prototype,"input",{set:function(A){this.inputEvent=A,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=A(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),E.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},E}()},N0LK:function(ke,_,d){"use strict";d.d(_,"x",function(){return G}),d.d(_,"F",function(){return be}),d.d(_,"r",function(){return fe}),d.d(_,"o",function(){return de}),d.d(_,"p",function(){return ne}),d.d(_,"Q",function(){return W}),d.d(_,"K",function(){return O}),d.d(_,"k",function(){return B}),d.d(_,"N",function(){return b}),d.d(_,"m",function(){return C}),d.d(_,"l",function(){return k}),d.d(_,"I",function(){return E}),d.d(_,"H",function(){return A}),d.d(_,"q",function(){return L}),d.d(_,"t",function(){return g}),d.d(_,"D",function(){return v}),d.d(_,"e",function(){return w}),d.d(_,"f",function(){return I}),d.d(_,"B",function(){return le}),d.d(_,"C",function(){return te}),d.d(_,"n",function(){return Me}),d.d(_,"O",function(){return xe}),d.d(_,"c",function(){return ve}),d.d(_,"d",function(){return T}),d.d(_,"z",function(){return R}),d.d(_,"A",function(){return ue}),d.d(_,"u",function(){return K}),d.d(_,"E",function(){return X}),d.d(_,"G",function(){return ie}),d.d(_,"i",function(){return me}),d.d(_,"g",function(){return y}),d.d(_,"v",function(){return Ae}),d.d(_,"h",function(){return Se}),d.d(_,"y",function(){return nt}),d.d(_,"w",function(){return at}),d.d(_,"a",function(){return We}),d.d(_,"P",function(){return Le}),d.d(_,"L",function(){return Ie}),d.d(_,"J",function(){return Ne}),d.d(_,"j",function(){return se}),d.d(_,"M",function(){return Z}),d.d(_,"s",function(){return ze}),d.d(_,"b",function(){return Ye});function G(U){return!U||typeof U!="string"?!0:U.trim().length===0}function be(U,F,he){he===void 0&&(he="0");for(var ye=""+U,Pe=[ye],Be=ye.length;Be<F;Be++)Pe.push(he);return Pe.reverse().join("")}var re=/{(\d+)}/g;function fe(U){for(var F=[],he=1;he<arguments.length;he++)F[he-1]=arguments[he];return F.length===0?U:U.replace(re,function(ye,Pe){var Be=parseInt(Pe,10);return isNaN(Be)||Be<0||Be>=F.length?ye:F[Be]})}function de(U){return U.replace(/[<>&]/g,function(F){switch(F){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return F}})}function ne(U){return U.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function W(U,F){F===void 0&&(F=" ");var he=Y(U,F);return O(he,F)}function Y(U,F){if(!U||!F)return U;var he=F.length;if(he===0||U.length===0)return U;for(var ye=0;U.indexOf(F,ye)===ye;)ye=ye+he;return U.substring(ye)}function O(U,F){if(!U||!F)return U;var he=F.length,ye=U.length;if(he===0||ye===0)return U;for(var Pe=ye,Be=-1;!(Be=U.lastIndexOf(F,Pe-1),Be===-1||Be+he!==Pe);){if(Be===0)return"";Pe=Be}return U.substring(0,Pe)}function B(U){return U.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function b(U,F){if(U.length<F.length)return!1;if(U===F)return!0;for(var he=0;he<F.length;he++)if(U[he]!==F[he])return!1;return!0}function C(U,F){var he=U.length-F.length;return he>0?U.indexOf(F,he)===he:he===0?U===F:!1}function k(U,F,he){if(he===void 0&&(he={}),!U)throw new Error("Cannot create regex from empty string");F||(U=ne(U)),he.wholeWord&&(/\B/.test(U.charAt(0))||(U="\\b"+U),/\B/.test(U.charAt(U.length-1))||(U=U+"\\b"));var ye="";return he.global&&(ye+="g"),he.matchCase||(ye+="i"),he.multiline&&(ye+="m"),he.unicode&&(ye+="u"),new RegExp(U,ye)}function E(U){if(U.source==="^"||U.source==="^$"||U.source==="$"||U.source==="^\\s*$")return!1;var F=U.exec("");return!!(F&&U.lastIndex===0)}function A(U){return(U.global?"g":"")+(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")}function L(U){for(var F=0,he=U.length;F<he;F++){var ye=U.charCodeAt(F);if(ye!==32&&ye!==9)return F}return-1}function g(U,F,he){F===void 0&&(F=0),he===void 0&&(he=U.length);for(var ye=F;ye<he;ye++){var Pe=U.charCodeAt(ye);if(Pe!==32&&Pe!==9)return U.substring(F,ye)}return U.substring(F,he)}function v(U,F){F===void 0&&(F=U.length-1);for(var he=F;he>=0;he--){var ye=U.charCodeAt(he);if(ye!==32&&ye!==9)return he}return-1}function w(U,F){return U<F?-1:U>F?1:0}function I(U,F){for(var he=Math.min(U.length,F.length),ye=0;ye<he;ye++){var Pe=U.charCodeAt(ye),Be=F.charCodeAt(ye);if(Pe===Be)continue;te(Pe)&&(Pe+=32),te(Be)&&(Be+=32);var De=Pe-Be;if(De===0)continue;return le(Pe)&&le(Be)?De:w(U.toLowerCase(),F.toLowerCase())}return U.length<F.length?-1:U.length>F.length?1:0}function le(U){return U>=97&&U<=122}function te(U){return U>=65&&U<=90}function oe(U){return le(U)||te(U)}function Me(U,F){return U.length===F.length&&ge(U,F)}function ge(U,F,he){he===void 0&&(he=U.length);for(var ye=0;ye<he;ye++){var Pe=U.charCodeAt(ye),Be=F.charCodeAt(ye);if(Pe===Be)continue;if(oe(Pe)&&oe(Be)){var De=Math.abs(Pe-Be);if(De!==0&&De!==32)return!1}else if(String.fromCharCode(Pe).toLowerCase()!==String.fromCharCode(Be).toLowerCase())return!1}return!0}function xe(U,F){var he=F.length;return F.length>U.length?!1:ge(U,F,he)}function ve(U,F){var he,ye=Math.min(U.length,F.length);for(he=0;he<ye;he++)if(U.charCodeAt(he)!==F.charCodeAt(he))return he;return ye}function T(U,F){var he,ye=Math.min(U.length,F.length),Pe=U.length-1,Be=F.length-1;for(he=0;he<ye;he++)if(U.charCodeAt(Pe-he)!==F.charCodeAt(Be-he))return he;return ye}function R(U){return 55296<=U&&U<=56319}function ue(U){return 56320<=U&&U<=57343}function K(U,F,he){var ye=U.charCodeAt(he);if(R(ye)&&he+1<F){var Pe=U.charCodeAt(he+1);if(ue(Pe))return(ye-55296<<10)+(Pe-56320)+65536}return ye}function N(U,F){var he=U.charCodeAt(F-1);if(ue(he)&&F>1){var ye=U.charCodeAt(F-2);if(R(ye))return(ye-55296<<10)+(he-56320)+65536}return he}function X(U,F){var he=Ke.getInstance(),ye=F,Pe=U.length,Be=K(U,Pe,F);F+=Be>=65536?2:1;for(var De=he.getGraphemeBreakType(Be);F<Pe;){var Ge=K(U,Pe,F),lt=he.getGraphemeBreakType(Ge);if(Ye(De,lt))break;F+=Ge>=65536?2:1,De=lt}return F-ye}function ie(U,F){var he=Ke.getInstance(),ye=F,Pe=N(U,F);F-=Pe>=65536?2:1;for(var Be=he.getGraphemeBreakType(Pe);F>0;){var De=N(U,F),Ge=he.getGraphemeBreakType(De);if(Ye(Ge,Be))break;F-=De>=65536?2:1,Be=Ge}return ye-F}var J=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function me(U){return J.test(U)}var D=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function y(U){return D.test(U)}var q=/^[\t\n\r\x20-\x7E]*$/;function Ae(U){return q.test(U)}function Se(U){for(var F=0,he=U.length;F<he;F++)if(nt(U.charCodeAt(F)))return!0;return!1}function nt(U){return U=+U,U>=11904&&U<=55215||U>=63744&&U<=64255||U>=65281&&U<=65374}function at(U){return U>=127462&&U<=127487||U>=9728&&U<=10175||U>=127744&&U<=128591||U>=128640&&U<=128764||U>=128992&&U<=129003||U>=129280&&U<=129535||U>=129648&&U<=129651||U>=129656&&U<=129666||U>=129680&&U<=129685}var We=String.fromCharCode(65279);function Le(U){return!!(U&&U.length>0&&U.charCodeAt(0)===65279)}function Ie(U){return btoa(encodeURIComponent(U))}function Ne(U,F){for(var he="",ye=0;ye<F;ye++)he+=U;return he}function se(U,F){return F===void 0&&(F=!1),U?(F&&(U=U.replace(/\\./g,"")),U.toLowerCase()!==U):!1}function Z(U){var F=90-65+1;return U=U%(2*F),U<F?String.fromCharCode(97+U):String.fromCharCode(65+U-F)}function ze(U){var F=Ke.getInstance();return F.getGraphemeBreakType(U)}function Ye(U,F){return U===0?F!==5&&F!==7:U===2&&F===3?!1:U===4||U===2||U===3||(F===4||F===2||F===3)?!0:U===8&&(F===8||F===9||F===11||F===12)||((U===11||U===9)&&(F===9||F===10)||((U===12||U===10)&&F===10||(F===5||F===13||(F===7||(U===1||U===13&&F===14)))))?!1:!(U===6&&F===6)}var Ke=function(){function U(){this._data=rt()}return U.getInstance=function(){return U._INSTANCE||(U._INSTANCE=new U),U._INSTANCE},U.prototype.getGraphemeBreakType=function(F){if(F<32)return F===10?3:F===13?2:4;if(F<127)return 0;for(var he=this._data,ye=he.length/3,Pe=1;Pe<=ye;)if(F<he[3*Pe])Pe=2*Pe;else if(F>he[3*Pe+1])Pe=2*Pe+1;else return he[3*Pe+2];return 0},U._INSTANCE=null,U}();function rt(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},Nmxd:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56P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+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},OLES:function(ke,_,d){"use strict";var G=d("U8pU"),be=d("VTBJ"),re=d("Ff2n"),fe=d("q1tI"),de=d("uciX"),ne=d("7ixt"),W=function(k){var E=k.overlay,A=k.prefixCls,L=k.id,g=k.overlayInnerStyle;return fe.createElement("div",{className:"".concat(A,"-inner"),id:L,role:"tooltip",style:g},typeof E=="function"?E():E)},Y=W,O=function(k,E){var A=k.overlayClassName,L=k.trigger,g=L===void 0?["hover"]:L,v=k.mouseEnterDelay,w=v===void 0?0:v,I=k.mouseLeaveDelay,le=I===void 0?.1:I,te=k.overlayStyle,oe=k.prefixCls,Me=oe===void 0?"rc-tooltip":oe,ge=k.children,xe=k.onVisibleChange,ve=k.afterVisibleChange,T=k.transitionName,R=k.animation,ue=k.placement,K=ue===void 0?"right":ue,N=k.align,X=N===void 0?{}:N,ie=k.destroyTooltipOnHide,J=ie===void 0?!1:ie,me=k.defaultVisible,D=k.getTooltipContainer,y=k.overlayInnerStyle,q=Object(re.a)(k,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Ae=Object(fe.useRef)(null);Object(fe.useImperativeHandle)(E,function(){return Ae.current});var Se=Object(be.a)({},q);"visible"in k&&(Se.popupVisible=k.visible);var nt=function(){var Ne=k.arrowContent,se=Ne===void 0?null:Ne,Z=k.overlay,ze=k.id;return[fe.createElement("div",{className:"".concat(Me,"-arrow"),key:"arrow"},se),fe.createElement(Y,{key:"content",prefixCls:Me,id:ze,overlay:Z,overlayInnerStyle:y})]},at=!1,We=!1;if(typeof J=="boolean")at=J;else if(J&&Object(G.a)(J)==="object"){var Le=J.keepParent;at=Le===!0,We=Le===!1}return fe.createElement(de.a,Object.assign({popupClassName:A,prefixCls:Me,popup:nt,action:g,builtinPlacements:ne.a,popupPlacement:K,ref:Ae,popupAlign:X,getPopupContainer:D,onPopupVisibleChange:xe,afterPopupVisibleChange:ve,popupTransitionName:T,popupAnimation:R,defaultPopupVisible:me,destroyPopupOnHide:at,autoDestroy:We,mouseLeaveDelay:le,popupStyle:te,mouseEnterDelay:w},Se),ge)},B=Object(fe.forwardRef)(O),b=_.a=B},Ohmc:function(ke,_,d){ke.exports=d.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(ke,_,d){"use strict";var G=d("2qtc"),be=d("kLXV"),re=d("rAM+"),fe=d("miYZ"),de=d("tsqr"),ne=d("9og8"),W=d("tJVT"),Y=d("jrin"),O=d("WmNS"),B=d.n(O),b=d("q1tI"),C=d.n(b),k=d("VrN/"),E=d.n(k),A=d("bdgK"),L=d("p77/"),g=d("Bd2K"),v=d("ELLl"),w=d("19Vz"),I=d("lZu9"),le=d("+NIl"),te=d("kSUc"),oe=d("9Bee"),Me=function(ae){var je=ae.value,$e=je===void 0?"":je,dt=ae.className,st=ae.showTextOnly,Lt=ae.showLines,Mt=ae.style,mt=Mt===void 0?{}:Mt,Jt=Object(b.useMemo)(function(){return""},[$e]);return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{dangerouslySetInnerHTML:{__html:Jt}}))},ge=d("0Owb"),xe=d("dejd"),ve=d("C+DQ"),T=d("1vsH"),R=d("m3rI"),ue=[{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 K(ae){var je=ae.onActionCallback,$e=ae.title,dt=ae.icon,st=ae.actionName,Lt=ae.className,Mt=Lt===void 0?"":Lt,mt=ae.children;function Jt(){je(st)}return C.a.createElement("a",{title:$e,className:Mt,onClick:Jt},C.a.createElement("i",{className:"md-iconfont ".concat(dt)}),mt)}var N=function(ae){var je=ae.watch,$e=ae.showNullButton,dt=ae.onActionCallback,st=ae.fullScreen,Lt=ae.insertTemp,Mt=ae.hidetoolBar,mt=ae.uuid,Jt=ae.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(T.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(T.D)("_educoder_session"),"&key=").concat(mt,"&api=").concat(encodeURIComponent(R.a.PROXY_SERVER)));var Bt=[].concat(ue,[{title:"".concat(je?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(je?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return C.a.createElement("ul",{className:"markdown-toolbar-container"},!Mt&&Bt.map(function(Ut,It){return C.a.createElement("li",{key:It},Ut.actionName?C.a.createElement(K,Object(ge.a)({},Ut,{onActionCallback:dt})):C.a.createElement("span",{className:"v-line"}))}),$e?C.a.createElement("li",null,C.a.createElement(K,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},C.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Lt&&C.a.createElement("li",null,C.a.createElement(K,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Lt),onActionCallback:dt},C.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),C.a.createElement("li",{className:"btn-full-screen"},C.a.createElement(K,{icon:"".concat(st?"icon-shrink":"icon-enlarge"),title:st?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},X=d("M8RZ"),ie=d("+L6B"),J=d("2/Rp"),me=d("y8nQ"),D=d("Vl3Y"),y=d("5NDa"),q=d("5rEg"),Ae={labelCol:{span:4},wrapperCol:{span:20}},Se=function(ae){var je=ae.callback,$e=ae.onCancel;function dt(st){je(st)}return C.a.createElement(D.a,Object(ge.a)({},Ae,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:dt}),C.a.createElement(D.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},C.a.createElement(q.a,null)),C.a.createElement(D.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},C.a.createElement(q.a,null)),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(J.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),C.a.createElement(J.a,{type:"ghost",onClick:$e},"\u53D6\u6D88")))},nt=d("7ahc"),at=d("k1fw"),We=d("HmJG"),Le=d("BjJ7"),Ie=D.a.useForm,Ne={width:280,marginRight:10},se={labelCol:{span:5},wrapperCol:{span:19}},Z=function(ae){var je=ae.callback,$e=ae.onCancel,dt=Ie(),st=Object(W.a)(dt,1),Lt=st[0],Mt=Object(b.useRef)();function mt(Ut){je(Object(at.a)(Object(at.a)({},Ut),{},{name:Mt.current}))}function Jt(Ut,It){Lt.setFieldsValue({src:"/api/attachments/".concat(Ut.id,"?type=").concat(Ut.content_type),type:It.type})}function Bt(Ut){var It=Ut.target.files[0];Mt.current=It.name,Ye(It,Jt)}return C.a.createElement(D.a,Object(ge.a)({form:Lt},se,{className:"upload-image-panel",onFinish:mt}),C.a.createElement(D.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},C.a.createElement("div",{className:"flex-container"},C.a.createElement(D.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},C.a.createElement(q.a,{style:Ne})),C.a.createElement(ze,{onFileChange:Bt}))),C.a.createElement(D.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},C.a.createElement(q.a,{style:{width:264}})),C.a.createElement(D.a.Item,{style:{textAlign:"right"}},C.a.createElement(J.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),C.a.createElement(J.a,{type:"ghost",onClick:$e},"\u53D6\u6D88")))};function ze(ae){var je=ae.onFileChange;return C.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",C.a.createElement("input",{type:"file",onChange:je}))}function Ye(ae,je){if(!ae)throw new String("\u6CA1\u6709\u6587\u4EF6");var $e=new FormData;$e.append("editormd-image-file",ae),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var dt=new window.XMLHttpRequest;dt.withCredentials=!0,dt.addEventListener("load",function(st){je(JSON.parse(st.target.responseText),ae)},!1),dt.addEventListener("error",function(st){console.error(st)},!1),dt.open("POST","".concat(Le.a,"/api/attachments.json")),dt.send($e)}var Ke=d("giR+"),rt=d("fyUT"),U=d("7Kak"),F=d("9yH6"),he=F.a.Group,ye={margin:"0 8px"},Pe=function(ae){var je=ae.callback,$e=ae.onCancel;function dt(st){je(st)}return C.a.createElement(D.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:dt},C.a.createElement("div",{className:"flex-container"},C.a.createElement("span",{style:ye},"\u5355\u5143\u683C\u6570\uFF1A"),C.a.createElement("span",{style:ye},"\u884C\u6570"),C.a.createElement(D.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},C.a.createElement(rt.a,null)),C.a.createElement("span",{style:ye},"\u5217\u6570"),C.a.createElement(D.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},C.a.createElement(rt.a,null))),C.a.createElement("div",{className:"flex-container",style:{marginTop:12}},C.a.createElement("span",{style:ye},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),C.a.createElement(D.a.Item,{name:"align"},C.a.createElement(he,null,C.a.createElement(F.a,{value:"default"},C.a.createElement("i",{className:"fa fa-align-justify"})),C.a.createElement(F.a,{value:"left"},C.a.createElement("i",{className:"fa fa-align-left"})),C.a.createElement(F.a,{value:"center"},C.a.createElement("i",{className:"fa fa-align-center"})),C.a.createElement(F.a,{value:"right"},C.a.createElement("i",{className:"fa fa-align-right"}))))),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(J.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),C.a.createElement(J.a,{type:"ghost",onClick:$e},"\u53D6\u6D88")))},Be=d("ErOA"),De=d("7Cbv"),Ge="link",lt="upload-image",qe="code-block",Je="add-table",Ve="------------",Ct={default:Ve,left:":".concat(Ve),center:":".concat(Ve,":"),right:"".concat(Ve,":")},pt=d("9VGf"),ht,Ee;function Xe(){}var ut=0,we=1e4,_e="\u2581",ee=`
**\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 Q(ae){return/^\d+$/.test(ae)?"".concat(ae,"px"):ae}var $=navigator.platform.toUpperCase().indexOf("MAC")>=0,S=$?"Cmd":"Ctrl",M=["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"],j=(ht={},Object(Y.a)(ht,S+"-B","bold"),Object(Y.a)(ht,S+"-I","italic"),ht),z=(Ee={},Object(Y.a)(Ee,Ge,"\u6DFB\u52A0\u94FE\u63A5"),Object(Y.a)(Ee,qe,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(Y.a)(Ee,lt,"\u6DFB\u52A0\u6587\u4EF6"),Object(Y.a)(Ee,Je,"\u6DFB\u52A0\u8868\u683C"),Ee),Ce=_.a=function(ae){var je=ae.defaultValue,$e=je===void 0?"":je,dt=ae.onChange,st=ae.width,Lt=st===void 0?"100%":st,Mt=ae.height,mt=Mt===void 0?400:Mt,Jt=ae.miniToolbar,Bt=Jt===void 0?!1:Jt,Ut=ae.isFocus,It=Ut===void 0?!1:Ut,wt=ae.watch,jt=ae.insertTemp,Gt=ae.mode,ot=Gt===void 0?"markdown":Gt,gt=ae.id,it=gt===void 0?"markdown-editor-id":gt,xt=ae.showResizeBar,qt=xt===void 0?!1:xt,un=ae.noStorage,Nt=un===void 0?!1:un,vt=ae.showNullButton,He=vt===void 0?!1:vt,Qt=ae.hidetoolBar,Dt=Qt===void 0?!1:Qt,cn=ae.fullScreen,Pt=cn===void 0?!1:cn,dn=ae.onBlur,Et=ae.onCMBeforeChange,Jn=ae.onFullScreen,Te=ae.className,ct=Te===void 0?"":Te,Ft=ae.disablePaste,$t=Ft===void 0?!1:Ft,nn=ae.placeholder,an=nn===void 0?"":nn,c=ae.values,o=c===void 0?"":c,a=Object(b.useState)(null),u=Object(W.a)(a,2),f=u[0],h=u[1],V=Object(b.useState)($e),Oe=Object(W.a)(V,2),Ze=Oe[0],yt=Oe[1],Ue=Object(b.useState)(wt),Tt=Object(W.a)(Ue,2),zt=Tt[0],sn=Tt[1],Yn=Object(b.useState)(Pt),Xn=Object(W.a)(Yn,2),En=Xn[0],ti=Xn[1],Hi=Object(b.useState)(""),Bn=Object(W.a)(Hi,2),Zn=Bn[0],Gn=Bn[1],bi=Object(b.useState)(0),ri=Object(W.a)(bi,2),mi=ri[0],ci=ri[1],hr=Object(b.useState)(mt),Gi=Object(W.a)(hr,2),oi=Gi[0],qn=Gi[1],Ti=Object(b.useState)(!1),Li=Object(W.a)(Ti,2),dr=Li[0],pn=Li[1],Yt=Object(b.useRef)(Object(De.a)()),Dn=Object(b.useRef)(!1),Kt=Object(b.useRef)(),yn=Object(b.useRef)(),en=Object(b.useRef)(),hi=Object(b.useRef)(),gn=Object(b.useRef)(),jn=function(){var At=Object(ne.a)(B.a.mark(function Ot(){var kt,Wt;return B.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,Object(Be.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Yt.current}});case 2:Wt=rn.sent,Wt!=null&&(kt=Wt.attachments)!==null&&kt!==void 0&&kt.length&&(console.log("cm:",f,yn),Wt.attachments.map(function(Vt){Vt.content_type.indexOf("image")>-1?f.replaceSelection("![,](/api/attachments/".concat(Vt.id,"?type=").concat(Vt.content_type,")")):Vt.content_type.indexOf("video")>-1?f.replaceSelection('<video width="100%" controls src="'.concat(R.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):Vt.content_type.indexOf("pdf")>-1?f.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(Vt.id,"?type=").concat(Vt.content_type,'&disposition=inline" target="_blank">').concat(Vt.name,"</a>")):f.replaceSelection("[".concat(Vt.name,"](").concat(R.a.API_SERVER,"/api/attachments/").concat(Vt.id,"?type=").concat(Vt.content_type,")"))}));case 4:case"end":return rn.stop()}},Ot)}));return function(){return At.apply(this,arguments)}}();Object(b.useEffect)(function(){yt(o),f==null||f.setValue(o)},[o]),Object(b.useEffect)(function(){Jn==null||Jn(En)},[En]),Object(b.useEffect)(function(){if(yn.current){var At=E.a.fromTextArea(yn.current,{mode:ot,lineNumbers:!Bt,lineWrapping:!0,value:$e,autoCloseTags:!0,autoCloseBrackets:!0});It&&At.focus();function Ot(kt,Wt){if($t){Wt.preventDefault();return}var Xt=Wt.clipboardData;if(Xt){var rn=Xt.types.toString(),Vt=Xt.items;if(rn==="Files"||Xt.types.indexOf("Files")>-1){if(Wt.preventDefault(),ot=="stex")return;try{var bn,Un=Vt[1];((bn=Vt[0])===null||bn===void 0?void 0:bn.kind)==="file"&&(Un=Vt[0]);var Ht=Un.getAsFile(),xi=Ht.name.split(".").pop();Ye(Ht,function(Zt){if(Zt.id){var wn,ni,ii;(Ht==null||((wn=Ht.type)===null||wn===void 0)?void 0:wn.indexOf("image"))>-1?At.replaceSelection("![,](/api/attachments/".concat(Zt.id,"?type=").concat(Zt.content_type,")")):(Ht==null||((ni=Ht.type)===null||ni===void 0)?void 0:ni.indexOf("video"))>-1?At.replaceSelection('<video width="100%" controls src="'.concat(R.a.API_SERVER,"/api/attachments/").concat(Zt.id,'"></video>')):(Ht==null||((ii=Ht.type)===null||ii===void 0)?void 0:ii.indexOf("pdf"))>-1?At.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(Zt.id,"?type=").concat(Ht.type,'&disposition=inline" target="_blank">').concat(Ht.name,"</a>")):M.includes(xi)?At.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(Zt.id,'?type=office&disposition=inline" target="_blank">').concat(Ht.name,"</a>")):At.replaceSelection("[".concat(Ht.name,"](").concat(R.a.API_SERVER,"/api/attachments/").concat(Zt.id,"?type=").concat(Zt.content_type,")"))}else(Zt==null?void 0:Zt.status)===401&&(document.location.href="/user/login")})}catch(Zt){de.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return At.on("paste",Ot),At.on("dragleave",function(kt,Wt){en.current.classList.remove("mouse-hover-md")}),At.on("dragover",function(kt,Wt){en.current.classList.add("mouse-hover-md")}),At.on("drop",function(kt,Wt){en.current.classList.add("mouse-hover-md");var Xt;if(Xt=Wt.dataTransfer.files,Xt.length>0){Wt.preventDefault(),Wt.stopPropagation();for(var rn=function(Un){var Ht=Xt[Un],xi=Ht.name.split(".").pop();Ye(Ht,function(Zt){if(Zt.id){var wn,ni,ii;(Ht==null||((wn=Ht.type)===null||wn===void 0)?void 0:wn.indexOf("image"))>-1?At.replaceSelection("![,](/api/attachments/".concat(Zt.id,"?type=").concat(Zt.content_type,")")):(Ht==null||((ni=Ht.type)===null||ni===void 0)?void 0:ni.indexOf("video"))>-1?At.replaceSelection('<video width="100%" controls src="'.concat(R.a.API_SERVER,"/api/attachments/").concat(Zt.id,'"></video>')):(Ht==null||((ii=Ht.type)===null||ii===void 0)?void 0:ii.indexOf("pdf"))>-1?At.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(Zt.id,"?type=").concat(Ht.type,'&disposition=inline" target="_blank">').concat(Ht.name,"</a>")):M.includes(xi)?At.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(Zt.id,'?type=office&disposition=inline" target="_blank">').concat(Ht.name,"</a>")):At.replaceSelection("[".concat(Ht.name,"](").concat(R.a.API_SERVER,"/api/attachments/").concat(Zt.id,"?type=").concat(Zt.content_type,")"))}else(Zt==null?void 0:Zt.status)===401&&(document.location.href="/user/login")})},Vt=0;Vt<Xt.length;Vt++)rn(Vt)}}),h(At),function(){At.off("paste",Ot)}}},[]);var Vi=Object(b.useCallback)(function(){if(en.current)try{}catch(At){console.log(At,"---- to set md editor body height")}},[oi,en,En]);Object(b.useEffect)(function(){function At(){var kt=new A.default(function(Wt){var Xt=Object(re.a)(Wt),rn;try{for(Xt.s();!(rn=Xt.n()).done;){var Vt=rn.value;(Vt.target.offsetHeight>0||Vt.target.offsetWidth>0)&&(Vi(),f.setSize("100%","100%"),f.refresh())}}catch(bn){Xt.e(bn)}finally{Xt.f()}});return kt.observe(yn.current.parentElement),kt}if(f){var Ot=At();return function(){Ot.unobserve(yn.current.parentElement)}}},[f,Vi]),Object(b.useEffect)(function(){if(f){for(var At=[],Ot=function(){var Vt=Wt[kt];Xt=Object(W.a)(Vt,2);var bn=Xt[0],Un=Xt[1],Ht=Object(Y.a)({},bn,function(){Qi(Un)});At.push(Ht),f.addKeyMap(Ht)},kt=0,Wt=Object.entries(j);kt<Wt.length;kt++){var Xt;Ot()}return Kt.current=setInterval(function(){Dn.current&&jn()},4e3),function(){clearInterval(Kt.current);var rn=Object(re.a)(At),Vt;try{for(rn.s();!(Vt=rn.n()).done;){var bn=Vt.value;f.removeKeyMap(bn)}}catch(Un){rn.e(Un)}finally{rn.f()}}}},[f]),Object(b.useEffect)(function(){Pt!==En&&ti(Pt)},[Pt]),Object(pt.a)(function(){if(!Nt&&mi>0){var At=new Date().getTime(),Ot=window.sessionStorage.getItem(it);At>=mi+we&&(!Ot||Ot!==Ze)&&(window.sessionStorage.setItem(it,Ze),pn(!0))}},we),Object(b.useEffect)(function(){sn(wt)},[f,wt]),Object(b.useEffect)(function(){f&&(It&&f.focus())},[f,It]),Object(b.useEffect)(function(){if(zt&&f){var At=f.getScrollerElement();function Ot(kt){var Wt=kt.target;if(gn.current){var Xt=Wt.scrollTop/Wt.scrollHeight;gn.current.scrollTop=gn.current.scrollHeight*Xt}}return At.addEventListener("scroll",Ot),function(){At.removeEventListener("scroll",Ot)}}},[f,zt]),Object(b.useEffect)(function(){if(f&&Et){function At(Ot,kt){Et(Ot,kt)}return f.on("beforeChange",At),function(){f.off("beforeChange",At)}}},[f,Et]),Object(b.useEffect)(function(){if(f&&dn){function At(){dn(f.getValue())}return f.on("blur",At),function(){f.off("blur",At)}}},[f,dn]),Object(b.useEffect)(function(){if(f){function At(Ot){var kt=Ot.getValue();yt(kt),ci(new Date().getTime()),Ot.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),dt&&dt(kt)}return f.on("change",At),function(){f.off("change",At)}}},[f,dt]),Object(b.useEffect)(function(){f&&($e==null?(f.setValue(""),yt("")):$e!==f.getValue()&&(f.setValue($e),yt($e),f.setCursor(f.lineCount(),0)))},[f,$e]);var Qi=Object(b.useCallback)(function(At){var Ot=f.getCursor(),kt=f.getSelection(),Wt=kt.split(`
`);switch(At){case"bold":return f.replaceSelection("**"+kt+"**"),kt===""&&f.setCursor(Ot.line,Ot.ch+2),f.focus();case"italic":return f.replaceSelection("*"+kt+"*"),kt===""&&f.setCursor(Ot.line,Ot.ch+1),f.focus();case"code":return f.replaceSelection("`"+kt+"`"),kt===""&&f.setCursor(Ot.line,Ot.ch+1),f.focus();case"inline-latex":return f.replaceSelection("`$$"+kt+"$$`"),kt===""&&f.setCursor(Ot.line,Ot.ch+3),f.focus();case"latex":return f.replaceSelection("```latex\n"+kt+"\n```"),f.setCursor(Ot.line+1,kt.length+1),f.focus();case"line-break":return f.replaceSelection(`<br/>
`),f.focus();case"list-ul":return kt===""?f.replaceSelection("- "+kt):f.replaceSelection(Wt.map(function(Xt){return Xt===""?"":"- ".concat(Xt)}).join(`
`)),f.focus();case"list-ol":return kt===""?f.replaceSelection("1. "+kt):f.replaceSelection(Wt.map(function(Xt,rn){return Xt===""?"":"".concat(rn+1,". ").concat(Xt)}).join(`
`)),f.focus();case"add-null-ch":return kt===""&&f.setCursor(Ot.line,Ot.ch+1),f.replaceSelection(_e),f.focus();case"inster-template-1":return kt===""&&f.setCursor(Ot.line,Ot.ch),f.replaceSelection(ee),f.focus();case"eraser":return f.setValue(""),f.focus();case"trigger-watch":return sn(!zt),f.focus();case"trigger-full-screen":return ti(!En),f.focus();case Ge:Gn(Ge);return;case qe:Gn(qe);return;case lt:Gn(lt);return;case Je:Gn(Je);return;default:throw new Error}},[f,zt,En]),Ci=Object(b.useCallback)(function(At){Gn("");switch(Zn){case Ge:var Ot=At.title,kt=At.link;return f.replaceSelection("[".concat(Ot,"](").concat(kt,")")),f.focus();case qe:var Wt=At.language,Xt=At.content;return f.replaceSelection(["```"+Wt,Xt,"```"].join(`
`)),f.focus();case lt:var rn=At.src,Vt=At.alt,bn=At.name;return rn.indexOf("type=image")>-1?f.replaceSelection("![ ".concat(Vt||""," ]( ").concat(rn,' "').concat(Vt||"",'" )')):rn.indexOf("type=application/pdf")>-1?f.replaceSelection('<a href="'.concat(rn,'&disposition=inline" target="_blank">').concat(bn,"</a>")):f.replaceSelection('<a href="'.concat(rn,'" target="_blank">').concat(bn,"</a>")),f.focus();case Je:for(var Un=At.row,Ht=At.col,xi=At.align,Zt=`
`,wn=0;wn<Un;wn++){for(var ni=[],ii=[],Wr=0;Wr<Ht;Wr++)wn===1&&ii.push(Ct[xi]),ni.push(" ");wn===1&&(Zt+="| ".concat(ii.join(" | "),` |
`)),Zt+="| ".concat(ni.join(Ht===1?"":" | "),` |
`)}return f.replaceSelection(Zt+`
`),f.focus();default:throw new Error}},[f,Zn]),_r=Object(b.useMemo)(function(){switch(Zn){case Ge:return C.a.createElement(Se,{callback:Ci,onCancel:Vn});case qe:return C.a.createElement(nt.b,{callback:Ci,onCancel:Vn});case lt:return C.a.createElement(Z,{callback:Ci,onCancel:Vn});case Je:return C.a.createElement(Pe,{callback:Ci,onCancel:Vn});default:return null}},[Zn]);function Vn(){Gn("")}Object(b.useEffect)(function(){if(hi.current){var At=hi.current,Ot=!1,kt=0;function Wt(Vt){Ot=!0,kt=Vt.pageY}function Xt(){Ot=!1}function rn(Vt){if(Ot){var bn=Vt.pageY-kt;bn<0&&(bn=0),bn>300&&(bn=300);var Un=mt+bn+"px";qn(Un)}}return At.addEventListener("mousedown",Wt),document.addEventListener("mousemove",rn),document.addEventListener("mouseup",Xt),function(){At.removeEventListener("mousedown",Wt),document.removeEventListener("mousemove",rn),document.removeEventListener("mouseup",Xt)}}},[f,hi]),Object(b.useEffect)(function(){qn(mt)},[mt]);var fr=Q(Lt),ai=Q(oi),Ki={width:fr,height:ai},Fr=Object(b.useMemo)(function(){if(mi){var At=new Date(mi),Ot=At.getHours(),kt=At.getMinutes(),Wt=At.getSeconds();return Ot=Ot<10?"0"+Ot:Ot,kt=kt<10?"0"+kt:kt,Wt=Wt<10?"0"+Wt:Wt,"".concat(Ot,":").concat(kt,":").concat(Wt)}return 0},[mi]);function Ii(){window.sessionStorage.removeItem(it),pn(!1),ci(0)}function Xo(){pn(!1),ci(0),f.setValue(window.sessionStorage.getItem(it))}function co(At,Ot){var kt=f.getValue();kt=kt.replace(At,Ot),yt(kt),f==null||f.setValue(kt)}return C.a.createElement(b.Fragment,null,C.a.createElement("div",{className:"markdown-editor-wrapper",ref:en},C.a.createElement("div",{className:"markdown-editor-container ".concat(ct," ").concat(zt?"on-preview":""," ").concat(Bt?"mini":""," ").concat(En?"full-screen":""),style:Ki},C.a.createElement(N,{insertTemp:jt,watch:zt,fullScreen:En,showNullButton:He,onActionCallback:Qi,hidetoolBar:Dt,uuid:Yt.current,setOpenPhones:function(){Dn.current=!0}}),C.a.createElement("div",{className:"markdown-editor-body"},C.a.createElement("div",{className:"codemirror-container"},C.a.createElement("textarea",{ref:yn,placeholder:an})),zt?C.a.createElement("div",{ref:gn,className:"preview-container"},ot==="stex"&&C.a.createElement(Me,{value:Ze}),ot!=="stex"&&C.a.createElement(oe.a,{edit:!0,value:Ze,replaces:co})):null))),qt?C.a.createElement("a",{ref:hi,className:"editor-resize"}):null,C.a.createElement(X.a,null,z[Zn]?C.a.createElement(be.a,{centered:!0,title:z[Zn],visible:!0,onCancel:Vn,footer:null},_r):null))}},QDVR:function(ke,_,d){"use strict";d.d(_,"e",function(){return be}),d.d(_,"d",function(){return re}),d.d(_,"c",function(){return W}),d.d(_,"b",function(){return Y}),d.d(_,"a",function(){return B});var G=function(){var b=function(C,k){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var L in A)A.hasOwnProperty(L)&&(E[L]=A[L])},b(C,k)};return function(C,k){b(C,k);function E(){this.constructor=C}C.prototype=k===null?Object.create(k):(E.prototype=k.prototype,new E)}}();function be(b){var C=[];return b.forEach(function(k){return C.push(k)}),C}function re(b){var C=[];return b.forEach(function(k,E){return C.push(E)}),C}var fe=function(){function b(){this._value="",this._pos=0}return b.prototype.reset=function(C){return this._value=C,this._pos=0,this},b.prototype.next=function(){return this._pos+=1,this},b.prototype.hasNext=function(){return this._pos<this._value.length-1},b.prototype.cmp=function(C){var k=C.charCodeAt(0),E=this._value.charCodeAt(this._pos);return k-E},b.prototype.value=function(){return this._value[this._pos]},b}(),de=function(){function b(C){C===void 0&&(C=!0),this._splitOnBackslash=C}return b.prototype.reset=function(C){return this._value=C.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},b.prototype.hasNext=function(){return this._to<this._value.length},b.prototype.next=function(){this._from=this._to;for(var C=!0;this._to<this._value.length;this._to++){var k=this._value.charCodeAt(this._to);if(k===47||this._splitOnBackslash&&k===92)if(C)this._from++;else break;else C=!1}return this},b.prototype.cmp=function(C){for(var k=0,E=C.length,A=this._from;k<E&&A<this._to;){var L=C.charCodeAt(k)-this._value.charCodeAt(A);if(L!==0)return L;k+=1,A+=1}return E===this._to-this._from?0:k<E?-1:1},b.prototype.value=function(){return this._value.substring(this._from,this._to)},b}(),ne=function(){function b(){}return b}(),W=function(){function b(C){this._iter=C}return b.forPaths=function(){return new b(new de)},b.forStrings=function(){return new b(new fe)},b.prototype.clear=function(){this._root=void 0},b.prototype.set=function(C,k){var E=this._iter.reset(C),A;for(this._root||(this._root=new ne,this._root.segment=E.value()),A=this._root;;){var L=E.cmp(A.segment);if(L>0)A.left||(A.left=new ne,A.left.segment=E.value()),A=A.left;else if(L<0)A.right||(A.right=new ne,A.right.segment=E.value()),A=A.right;else if(E.hasNext())E.next(),A.mid||(A.mid=new ne,A.mid.segment=E.value()),A=A.mid;else break}var g=A.value;return A.value=k,A.key=C,g},b.prototype.get=function(C){for(var k=this._iter.reset(C),E=this._root;E;){var A=k.cmp(E.segment);if(A>0)E=E.left;else if(A<0)E=E.right;else if(k.hasNext())k.next(),E=E.mid;else break}return E?E.value:void 0},b.prototype.findSubstr=function(C){for(var k=this._iter.reset(C),E=this._root,A=void 0;E;){var L=k.cmp(E.segment);if(L>0)E=E.left;else if(L<0)E=E.right;else if(k.hasNext())k.next(),A=E.value||A,E=E.mid;else break}return E&&E.value||A},b.prototype.forEach=function(C){this._forEach(this._root,C)},b.prototype._forEach=function(C,k){C&&(this._forEach(C.left,k),C.value&&k(C.value,C.key),this._forEach(C.mid,k),this._forEach(C.right,k))},b}(),Y=function(){function b(){this.map=new Map,this.ignoreCase=!1}return b.prototype.set=function(C,k){this.map.set(this.toKey(C),k)},b.prototype.get=function(C){return this.map.get(this.toKey(C))},b.prototype.toKey=function(C){var k=C.toString();return this.ignoreCase&&(k=k.toLowerCase()),k},b}(),O=function(){function b(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return b.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(b.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),b.prototype.get=function(C,k){k===void 0&&(k=0);var E=this._map.get(C);return E?(k!==0&&this.touch(E,k),E.value):void 0},b.prototype.set=function(C,k,E){E===void 0&&(E=0);var A=this._map.get(C);if(A)A.value=k,E!==0&&this.touch(A,E);else{A={key:C,value:k,next:void 0,previous:void 0};switch(E){case 0:this.addItemLast(A);break;case 1:this.addItemFirst(A);break;case 2:this.addItemLast(A);break;default:this.addItemLast(A);break}this._map.set(C,A),this._size++}},b.prototype.delete=function(C){return!!this.remove(C)},b.prototype.remove=function(C){var k=this._map.get(C);return k?(this._map.delete(C),this.removeItem(k),this._size--,k.value):void 0},b.prototype.forEach=function(C,k){for(var E=this._head;E;)k?C.bind(k)(E.value,E.key,this):C(E.value,E.key,this),E=E.next},b.prototype.trimOld=function(C){if(C>=this.size)return;if(C===0){this.clear();return}for(var k=this._head,E=this.size;k&&E>C;)this._map.delete(k.key),k=k.next,E--;this._head=k,this._size=E,k&&(k.previous=void 0)},b.prototype.addItemFirst=function(C){if(!this._head&&!this._tail)this._tail=C;else if(this._head)C.next=this._head,this._head.previous=C;else throw new Error("Invalid list");this._head=C},b.prototype.addItemLast=function(C){if(!this._head&&!this._tail)this._head=C;else if(this._tail)C.previous=this._tail,this._tail.next=C;else throw new Error("Invalid list");this._tail=C},b.prototype.removeItem=function(C){if(C===this._head&&C===this._tail)this._head=void 0,this._tail=void 0;else if(C===this._head){if(!C.next)throw new Error("Invalid list");C.next.previous=void 0,this._head=C.next}else if(C===this._tail){if(!C.previous)throw new Error("Invalid list");C.previous.next=void 0,this._tail=C.previous}else{var k=C.next,E=C.previous;if(!k||!E)throw new Error("Invalid list");k.previous=E,E.next=k}C.next=void 0,C.previous=void 0},b.prototype.touch=function(C,k){if(!this._head||!this._tail)throw new Error("Invalid list");if(k!==1&&k!==2)return;if(k===1){if(C===this._head)return;var E=C.next,A=C.previous;C===this._tail?(A.next=void 0,this._tail=A):(E.previous=A,A.next=E),C.previous=void 0,C.next=this._head,this._head.previous=C,this._head=C}else if(k===2){if(C===this._tail)return;var E=C.next,A=C.previous;C===this._head?(E.previous=void 0,this._head=E):(E.previous=A,A.next=E),C.next=void 0,C.previous=this._tail,this._tail.next=C,this._tail=C}},b.prototype.toJSON=function(){var C=[];return this.forEach(function(k,E){C.push([E,k])}),C},b}(),B=function(b){G(C,b);function C(k,E){E===void 0&&(E=1);var A=b.call(this)||this;return A._limit=k,A._ratio=Math.min(Math.max(0,E),1),A}return C.prototype.get=function(k){return b.prototype.get.call(this,k,2)},C.prototype.peek=function(k){return b.prototype.get.call(this,k,0)},C.prototype.set=function(k,E){b.prototype.set.call(this,k,E,2),this.checkTrim()},C.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},C}(O)},RMFE:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEB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LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},SJMd:function(ke,_){/**
* @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 d,G,be,re=!1,fe,de;window.PR_SHOULD_USE_CONTINUATION=!0;var ne,W;(function(){var Y=window,O=["break,continue,do,else,for,if,return,while"],B=[O,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],b=[B,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],C=[b,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],k=[b,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],E=[b,"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"],A="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",L=[b,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],g="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",v=[O,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],w=[O,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],I=[O,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],le=[C,E,k,L,g,v,w,I],te=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,oe="str",Me="kwd",ge="com",xe="typ",ve="lit",T="pun",R="pln",ue="tag",K="dec",N="src",X="atn",ie="atv",J="nocode",me="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function D(F){for(var he=0,ye=!1,Pe=!1,Be=0,De=F.length;Be<De;++Be){var Ge=F[Be];if(Ge.ignoreCase)Pe=!0;else if(/[a-z]/i.test(Ge.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){ye=!0,Pe=!1;break}}var lt={b:8,t:9,n:10,v:11,f:12,r:13};function qe(ht){var Ee=ht.charCodeAt(0);if(Ee!==92)return Ee;var Xe=ht.charAt(1);return Ee=lt[Xe],Ee||("0"<=Xe&&Xe<="7"?parseInt(ht.substring(1),8):Xe==="u"||Xe==="x"?parseInt(ht.substring(2),16):ht.charCodeAt(1))}function Je(ht){if(ht<32)return(ht<16?"\\x0":"\\x")+ht.toString(16);var Ee=String.fromCharCode(ht);return Ee==="\\"||Ee==="-"||Ee==="]"||Ee==="^"?"\\"+Ee:Ee}function Ve(ht){var Ee=ht.substring(1,ht.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")),Xe=[],ut=Ee[0]==="^",we=["["];ut&&we.push("^");for(var _e=ut?1:0,ee=Ee.length;_e<ee;++_e){var Q=Ee[_e];if(/\\[bdsw]/i.test(Q))we.push(Q);else{var $=qe(Q),S;_e+2<ee&&Ee[_e+1]==="-"?(S=qe(Ee[_e+2]),_e+=2):S=$,Xe.push([$,S]),S<65||$>122||(S<65||$>90||Xe.push([Math.max(65,$)|32,Math.min(S,90)|32]),S<97||$>122||Xe.push([Math.max(97,$)&~32,Math.min(S,122)&~32]))}}Xe.sort(function(Ce,ae){return Ce[0]-ae[0]||ae[1]-Ce[1]});for(var M=[],j=[],_e=0;_e<Xe.length;++_e){var z=Xe[_e];z[0]<=j[1]+1?j[1]=Math.max(j[1],z[1]):M.push(j=z)}for(var _e=0;_e<M.length;++_e){var z=M[_e];we.push(Je(z[0])),z[1]>z[0]&&(z[1]+1>z[0]&&we.push("-"),we.push(Je(z[1])))}return we.push("]"),we.join("")}function Ct(ht){for(var Ee=ht.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")),Xe=Ee.length,ut=[],we=0,_e=0;we<Xe;++we){var ee=Ee[we];if(ee==="(")++_e;else if(ee.charAt(0)==="\\"){var Q=+ee.substring(1);Q&&(Q<=_e?ut[Q]=-1:Ee[we]=Je(Q))}}for(var we=1;we<ut.length;++we)ut[we]===-1&&(ut[we]=++he);for(var we=0,_e=0;we<Xe;++we){var ee=Ee[we];if(ee==="(")++_e,ut[_e]||(Ee[we]="(?:");else if(ee.charAt(0)==="\\"){var Q=+ee.substring(1);Q&&Q<=_e&&(Ee[we]="\\"+ut[Q])}}for(var we=0;we<Xe;++we)Ee[we]==="^"&&Ee[we+1]!=="^"&&(Ee[we]="");if(ht.ignoreCase&&ye)for(var we=0;we<Xe;++we){var ee=Ee[we],$=ee.charAt(0);ee.length>=2&&$==="["?Ee[we]=Ve(ee):$!=="\\"&&(Ee[we]=ee.replace(/[a-zA-Z]/g,function(j){var z=j.charCodeAt(0);return"["+String.fromCharCode(z&~32,z|32)+"]"}))}return Ee.join("")}for(var pt=[],Be=0,De=F.length;Be<De;++Be){var Ge=F[Be];if(Ge.global||Ge.multiline)throw new Error(""+Ge);pt.push("(?:"+Ct(Ge)+")")}return new RegExp(pt.join("|"),Pe?"gi":"g")}function y(F,he){var ye=/(?:^|\s)nocode(?:\s|$)/,Pe=[],Be=0,De=[],Ge=0;function lt(qe){var Je=qe.nodeType;if(Je==1){if(ye.test(qe.className))return;for(var Ve=qe.firstChild;Ve;Ve=Ve.nextSibling)lt(Ve);var Ct=qe.nodeName.toLowerCase();(Ct==="br"||Ct==="li")&&(Pe[Ge]=`
`,De[Ge<<1]=Be++,De[Ge++<<1|1]=qe)}else if(Je==3||Je==4){var pt=qe.nodeValue;pt.length&&(he?pt=pt.replace(/\r\n?/g,`
`):pt=pt.replace(/[ \t\r\n]+/g," "),Pe[Ge]=pt,De[Ge<<1]=Be,Be+=pt.length,De[Ge++<<1|1]=qe)}}return lt(F),{sourceCode:Pe.join("").replace(/\n$/,""),spans:De}}function q(F,he,ye,Pe,Be){if(!ye)return;var De={sourceNode:F,pre:1,langExtension:null,numberLines:null,sourceCode:ye,spans:null,basePos:he,decorations:null};Pe(De),Be.push.apply(Be,De.decorations)}var Ae=/\S/;function Se(F){for(var he=void 0,ye=F.firstChild;ye;ye=ye.nextSibling){var Pe=ye.nodeType;he=Pe===1?he?F:ye:Pe===3&&Ae.test(ye.nodeValue)?F:he}return he===F?void 0:he}function nt(F,he){var ye={},Pe;(function(){for(var Ge=F.concat(he),lt=[],qe={},Je=0,Ve=Ge.length;Je<Ve;++Je){var Ct=Ge[Je],pt=Ct[3];if(pt)for(var ht=pt.length;--ht>=0;)ye[pt.charAt(ht)]=Ct;var Ee=Ct[1],Xe=""+Ee;qe.hasOwnProperty(Xe)||(lt.push(Ee),qe[Xe]=null)}lt.push(/[\0-\uffff]/),Pe=D(lt)})();var Be=he.length,De=function(Ge){for(var lt=Ge.sourceCode,qe=Ge.basePos,Je=Ge.sourceNode,Ve=[qe,R],Ct=0,pt=lt.match(Pe)||[],ht={},Ee=0,Xe=pt.length;Ee<Xe;++Ee){var ut=pt[Ee],we=ht[ut],_e=void 0,ee;if(typeof we=="string")ee=!1;else{var Q=ye[ut.charAt(0)];if(Q)_e=ut.match(Q[1]),we=Q[0];else{for(var $=0;$<Be;++$)if(Q=he[$],_e=ut.match(Q[1]),_e){we=Q[0];break}_e||(we=R)}ee=we.length>=5&&we.substring(0,5)==="lang-",ee&&!(_e&&typeof _e[1]=="string")&&(ee=!1,we=N),ee||(ht[ut]=we)}var S=Ct;if(Ct+=ut.length,!ee)Ve.push(qe+S,we);else{var M=_e[1],j=ut.indexOf(M),z=j+M.length;_e[2]&&(z=ut.length-_e[2].length,j=z-M.length);var Ce=we.substring(5);q(Je,qe+S,ut.substring(0,j),De,Ve),q(Je,qe+S+j,M,Z(Ce,M),Ve),q(Je,qe+S+z,ut.substring(z),De,Ve)}}Ge.decorations=Ve};return De}function at(F){var he=[],ye=[];F.tripleQuotedStrings?he.push([oe,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):F.multiLineStrings?he.push([oe,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):he.push([oe,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),F.verbatimStrings&&ye.push([oe,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Pe=F.hashComments;Pe&&(F.cStyleComments?(Pe>1?he.push([ge,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):he.push([ge,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ye.push([oe,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):he.push([ge,/^#[^\r\n]*/,null,"#"])),F.cStyleComments&&(ye.push([ge,/^\/\/[^\r\n]*/,null]),ye.push([ge,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Be=F.regexLiterals;if(Be){var De=Be>1?"":`
\r`,Ge=De?".":"[\\S\\s]",lt="/(?=[^/*"+De+"])(?:[^/\\x5B\\x5C"+De+"]|\\x5C"+Ge+"|\\x5B(?:[^\\x5C\\x5D"+De+"]|\\x5C"+Ge+")*(?:\\x5D|$))+/";ye.push(["lang-regex",RegExp("^"+me+"("+lt+")")])}var qe=F.types;qe&&ye.push([xe,qe]);var Je=(""+F.keywords).replace(/^ | $/g,"");Je.length&&ye.push([Me,new RegExp("^(?:"+Je.replace(/[\s,]+/g,"|")+")\\b"),null]),he.push([R,/^\s+/,null,` \r
\xA0`]);var Ve="^.[^\\s\\w.$@'\"`/\\\\]*";return F.regexLiterals&&(Ve+="(?!s*/)"),ye.push([ve,/^@[a-z_$][a-z_$@0-9]*/i,null],[xe,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[R,/^[a-z_$][a-z_$@0-9]*/i,null],[ve,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[R,/^\\[\s\S]?/,null],[T,new RegExp(Ve),null]),nt(he,ye)}var We=at({keywords:le,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Le(F,he,ye){for(var Pe=/(?:^|\s)nocode(?:\s|$)/,Be=/\r\n?|\n/,De=F.ownerDocument,Ge=De.createElement("li");F.firstChild;)Ge.appendChild(F.firstChild);var lt=[Ge];function qe(Ee){var Xe=Ee.nodeType;if(Xe==1&&!Pe.test(Ee.className))if(Ee.nodeName==="br")Je(Ee),Ee.parentNode&&Ee.parentNode.removeChild(Ee);else for(var ut=Ee.firstChild;ut;ut=ut.nextSibling)qe(ut);else if((Xe==3||Xe==4)&&ye){var we=Ee.nodeValue,_e=we.match(Be);if(_e){var ee=we.substring(0,_e.index);Ee.nodeValue=ee;var Q=we.substring(_e.index+_e[0].length);if(Q){var $=Ee.parentNode;$.insertBefore(De.createTextNode(Q),Ee.nextSibling)}Je(Ee),ee||Ee.parentNode.removeChild(Ee)}}}function Je(Ee){for(;!Ee.nextSibling;)if(Ee=Ee.parentNode,!Ee)return;function Xe(_e,ee){var Q=ee?_e.cloneNode(!1):_e,$=_e.parentNode;if($){var S=Xe($,1),M=_e.nextSibling;S.appendChild(Q);for(var j=M;j;j=M)M=j.nextSibling,S.appendChild(j)}return Q}for(var ut=Xe(Ee.nextSibling,0),we;(we=ut.parentNode)&&we.nodeType===1;)ut=we;lt.push(ut)}for(var Ve=0;Ve<lt.length;++Ve)qe(lt[Ve]);he===(he|0)&&lt[0].setAttribute("value",he);var Ct=De.createElement("ol");Ct.className="linenums";for(var pt=Math.max(0,he-1|0)||0,Ve=0,ht=lt.length;Ve<ht;++Ve)Ge=lt[Ve],Ge.className="L"+(Ve+pt)%10,Ge.firstChild||Ge.appendChild(De.createTextNode("\xA0")),Ct.appendChild(Ge);F.appendChild(Ct)}function Ie(F){var he=/\bMSIE\s(\d+)/.exec(navigator.userAgent);he=he&&+he[1]<=8;var ye=/\n/g,Pe=F.sourceCode,Be=Pe.length,De=0,Ge=F.spans,lt=Ge.length,qe=0,Je=F.decorations,Ve=Je.length,Ct=0;Je[Ve]=Be;var pt,ht;for(ht=pt=0;ht<Ve;)Je[ht]!==Je[ht+2]?(Je[pt++]=Je[ht++],Je[pt++]=Je[ht++]):ht+=2;for(Ve=pt,ht=pt=0;ht<Ve;){for(var Ee=Je[ht],Xe=Je[ht+1],ut=ht+2;ut+2<=Ve&&Je[ut+1]===Xe;)ut+=2;Je[pt++]=Ee,Je[pt++]=Xe,ht=ut}Ve=Je.length=pt;var we=F.sourceNode,_e="";we&&(_e=we.style.display,we.style.display="none");try{for(var ee=null;qe<lt;){var Q=Ge[qe],$=Ge[qe+2]||Be,S=Je[Ct+2]||Be,ut=Math.min($,S),M=Ge[qe+1],j;if(M.nodeType!==1&&(j=Pe.substring(De,ut))){he&&(j=j.replace(ye,"\r")),M.nodeValue=j;var z=M.ownerDocument,Ce=z.createElement("span");Ce.className=Je[Ct+1];var ae=M.parentNode;ae.replaceChild(Ce,M),Ce.appendChild(M),De<$&&(Ge[qe+1]=M=z.createTextNode(Pe.substring(ut,$)),ae.insertBefore(M,Ce.nextSibling))}De=ut,De>=$&&(qe+=2),De>=S&&(Ct+=2)}}finally{we&&(we.style.display=_e)}}var Ne={};function se(F,he){for(var ye=he.length;--ye>=0;){var Pe=he[ye];Ne.hasOwnProperty(Pe)?Y.console&&console.warn("cannot override language handler %s",Pe):Ne[Pe]=F}}function Z(F,he){return F&&Ne.hasOwnProperty(F)||(F=/^\s*</.test(he)?"default-markup":"default-code"),Ne[F]}se(We,["default-code"]),se(nt([],[[R,/^[^<?]+/],[K,/^<!\w[^>]*(?:>|$)/],[ge,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[T,/^(?:<[%?]|[%?]>)/],["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"]),se(nt([[R,/^[\s]+/,null,` \r
`],[ie,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[ue,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[X,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[T,/^[=<>\/]+/],["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"]),se(nt([],[[ie,/^[\s\S]+/]]),["uq.val"]),se(at({keywords:C,hashComments:!0,cStyleComments:!0,types:te}),["c","cc","cpp","cxx","cyc","m"]),se(at({keywords:"null,true,false"}),["json"]),se(at({keywords:E,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:te}),["cs"]),se(at({keywords:k,cStyleComments:!0}),["java"]),se(at({keywords:I,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),se(at({keywords:v,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),se(at({keywords:g,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),se(at({keywords:w,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),se(at({keywords:L,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),se(at({keywords:A,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),se(nt([],[[oe,/^[\s\S]+/]]),["regex"]);function ze(F){var he=F.langExtension;try{var ye=y(F.sourceNode,F.pre),Pe=ye.sourceCode;F.sourceCode=Pe,F.spans=ye.spans,F.basePos=0,Z(he,Pe)(F),Ie(F)}catch(Be){Y.console&&console.log(Be&&Be.stack||Be)}}function Ye(F,he,ye){var Pe=ye||!1,Be=he||null,De=document.createElement("div");De.innerHTML="<pre>"+F+"</pre>",De=De.firstChild,Pe&&Le(De,Pe,!0);var Ge={langExtension:Be,numberLines:Pe,sourceNode:De,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ze(Ge),De.innerHTML}function Ke(F,he){var ye=he||document.body,Pe=ye.ownerDocument||document;function Be(Q){return ye.getElementsByTagName(Q)}for(var De=[Be("pre"),Be("code"),Be("xmp")],Ge=[],lt=0;lt<De.length;++lt)for(var qe=0,Je=De[lt].length;qe<Je;++qe)Ge.push(De[lt][qe]);De=null;var Ve=Date;Ve.now||(Ve={now:function(){return+new Date}});var Ct=0,pt=/\blang(?:uage)?-([\w.]+)(?!\S)/,ht=/\bprettyprint\b/,Ee=/\bprettyprinted\b/,Xe=/pre|xmp/i,ut=/^code$/i,we=/^(?:pre|code|xmp)$/i,_e={};function ee(){for(var Q=Y.PR_SHOULD_USE_CONTINUATION?Ve.now()+250:Infinity;Ct<Ge.length&&Ve.now()<Q;Ct++){for(var $=Ge[Ct],S=_e,M=$;M=M.previousSibling;){var j=M.nodeType,z=(j===7||j===8)&&M.nodeValue;if(z?!/^\??prettify\b/.test(z):j!==3||/\S/.test(M.nodeValue))break;if(z){S={},z.replace(/\b(\w+)=([\w:.%+-]+)/g,function(It,wt,jt){S[wt]=jt});break}}var Ce=$.className;if((S!==_e||ht.test(Ce))&&!Ee.test(Ce)){for(var ae=!1,je=$.parentNode;je;je=je.parentNode){var $e=je.tagName;if(we.test($e)&&je.className&&ht.test(je.className)){ae=!0;break}}if(!ae){$.className+=" prettyprinted";var dt=S.lang;if(!dt){dt=Ce.match(pt);var st;!dt&&(st=Se($))&&ut.test(st.tagName)&&(dt=st.className.match(pt)),dt&&(dt=dt[1])}var Lt;if(Xe.test($.tagName))Lt=1;else{var Mt=$.currentStyle,mt=Pe.defaultView,Jt=Mt?Mt.whiteSpace:mt&&mt.getComputedStyle?mt.getComputedStyle($,null).getPropertyValue("white-space"):0;Lt=Jt&&Jt.substring(0,3)==="pre"}var Bt=S.linenums;(Bt=Bt==="true"||+Bt)||(Bt=Ce.match(/\blinenums\b(?::(\d+))?/),Bt=Bt?Bt[1]&&Bt[1].length?+Bt[1]:!0:!1),Bt&&Le($,Bt,Lt);var Ut={langExtension:dt,sourceNode:$,numberLines:Bt,pre:Lt,sourceCode:null,basePos:null,spans:null,decorations:null};ze(Ut)}}}Ct<Ge.length?Y.setTimeout(ee,250):typeof F=="function"&&F()}ee()}var rt=Y.PR={createSimpleLexer:nt,registerLangHandler:se,sourceDecorator:at,PR_ATTRIB_NAME:X,PR_ATTRIB_VALUE:ie,PR_COMMENT:ge,PR_DECLARATION:K,PR_KEYWORD:Me,PR_LITERAL:ve,PR_NOCODE:J,PR_PLAIN:R,PR_PUNCTUATION:T,PR_SOURCE:N,PR_STRING:oe,PR_TAG:ue,PR_TYPE:xe,prettyPrintOne:re?Y.prettyPrintOne=Ye:ne=Ye,prettyPrint:W=re?Y.prettyPrint=Ke:W=Ke},U=Y.define;typeof U=="function"&&U.amd&&U("google-code-prettify",[],function(){return rt})})()},SMhR:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJI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nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},T8No:function(ke,_,d){"use strict";d.d(_,"a",function(){return fe}),d.d(_,"b",function(){return k}),d.d(_,"d",function(){return E}),d.d(_,"c",function(){return A}),d.d(_,"e",function(){return L});var G=d("N0LK"),be=d("Cg/j"),re=function(){var g=function(v,w){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,le){I.__proto__=le}||function(I,le){for(var te in le)le.hasOwnProperty(te)&&(I[te]=le[te])},g(v,w)};return function(v,w){g(v,w);function I(){this.constructor=v}v.prototype=w===null?Object.create(w):(I.prototype=w.prototype,new I)}}(),fe=function(){function g(){}return g.has=function(v){return ne.create(v)},g.equals=function(v,w){return W.create(v,w)},g.regex=function(v,w){return B.create(v,w)},g.not=function(v){return O.create(v)},g.and=function(){for(var v=[],w=0;w<arguments.length;w++)v[w]=arguments[w];return C.create(v)},g.or=function(){for(var v=[],w=0;w<arguments.length;w++)v[w]=arguments[w];return k.create(v)},g.deserialize=function(v,w){return w===void 0&&(w=!1),v?this._deserializeOrExpression(v,w):void 0},g._deserializeOrExpression=function(v,w){var I=this,le=v.split("||");return k.create(le.map(function(te){return I._deserializeAndExpression(te,w)}))},g._deserializeAndExpression=function(v,w){var I=this,le=v.split("&&");return C.create(le.map(function(te){return I._deserializeOne(te,w)}))},g._deserializeOne=function(v,w){if(v=v.trim(),v.indexOf("!=")>=0){var I=v.split("!=");return Y.create(I[0].trim(),this._deserializeValue(I[1],w))}if(v.indexOf("==")>=0){var I=v.split("==");return W.create(I[0].trim(),this._deserializeValue(I[1],w))}if(v.indexOf("=~")>=0){var I=v.split("=~");return B.create(I[0].trim(),this._deserializeRegexValue(I[1],w))}return/^\!\s*/.test(v)?O.create(v.substr(1).trim()):ne.create(v)},g._deserializeValue=function(v,w){if(v=v.trim(),v==="true")return!0;if(v==="false")return!1;var I=/^'([^']*)'$/.exec(v);return I?I[1].trim():v},g._deserializeRegexValue=function(v,w){if(Object(G.x)(v)){if(w)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var I=v.indexOf("/"),le=v.lastIndexOf("/");if(I===le||I<0){if(w)throw new Error("bad regexp-value '"+v+"', missing /-enclosure");return console.warn("bad regexp-value '"+v+"', missing /-enclosure"),null}var te=v.slice(I+1,le),oe=v[le+1]==="i"?"i":"";try{return new RegExp(te,oe)}catch(Me){if(w)throw new Error("bad regexp-value '"+v+"', parse error: "+Me);return console.warn("bad regexp-value '"+v+"', parse error: "+Me),null}},g}();function de(g,v){var w=g.getType(),I=v.getType();if(w!==I)return w-I;switch(w){case 1:return g.cmp(v);case 2:return g.cmp(v);case 3:return g.cmp(v);case 4:return g.cmp(v);case 6:return g.cmp(v);case 7:return g.cmp(v);case 5:return g.cmp(v);default:throw new Error("Unknown ContextKeyExpr!")}}var ne=function(){function g(v){this.key=v}return g.create=function(v){return new g(v)},g.prototype.getType=function(){return 1},g.prototype.cmp=function(v){return this.key<v.key?-1:this.key>v.key?1:0},g.prototype.equals=function(v){return v instanceof g?this.key===v.key:!1},g.prototype.evaluate=function(v){return!!v.getValue(this.key)},g.prototype.keys=function(){return[this.key]},g.prototype.negate=function(){return O.create(this.key)},g}(),W=function(){function g(v,w){this.key=v,this.value=w}return g.create=function(v,w){return typeof w=="boolean"?w?ne.create(v):O.create(v):new g(v,w)},g.prototype.getType=function(){return 3},g.prototype.cmp=function(v){return this.key<v.key?-1:this.key>v.key?1:this.value<v.value?-1:this.value>v.value?1:0},g.prototype.equals=function(v){return v instanceof g?this.key===v.key&&this.value===v.value:!1},g.prototype.evaluate=function(v){return v.getValue(this.key)==this.value},g.prototype.keys=function(){return[this.key]},g.prototype.negate=function(){return Y.create(this.key,this.value)},g}(),Y=function(){function g(v,w){this.key=v,this.value=w}return g.create=function(v,w){return typeof w=="boolean"?w?O.create(v):ne.create(v):new g(v,w)},g.prototype.getType=function(){return 4},g.prototype.cmp=function(v){return this.key<v.key?-1:this.key>v.key?1:this.value<v.value?-1:this.value>v.value?1:0},g.prototype.equals=function(v){return v instanceof g?this.key===v.key&&this.value===v.value:!1},g.prototype.evaluate=function(v){return v.getValue(this.key)!=this.value},g.prototype.keys=function(){return[this.key]},g.prototype.negate=function(){return W.create(this.key,this.value)},g}(),O=function(){function g(v){this.key=v}return g.create=function(v){return new g(v)},g.prototype.getType=function(){return 2},g.prototype.cmp=function(v){return this.key<v.key?-1:this.key>v.key?1:0},g.prototype.equals=function(v){return v instanceof g?this.key===v.key:!1},g.prototype.evaluate=function(v){return!v.getValue(this.key)},g.prototype.keys=function(){return[this.key]},g.prototype.negate=function(){return ne.create(this.key)},g}(),B=function(){function g(v,w){this.key=v,this.regexp=w}return g.create=function(v,w){return new g(v,w)},g.prototype.getType=function(){return 6},g.prototype.cmp=function(v){if(this.key<v.key)return-1;if(this.key>v.key)return 1;var w=this.regexp?this.regexp.source:"",I=v.regexp?v.regexp.source:"";return w<I?-1:w>I?1:0},g.prototype.equals=function(v){if(v instanceof g){var w=this.regexp?this.regexp.source:"",I=v.regexp?v.regexp.source:"";return this.key===v.key&&w===I}return!1},g.prototype.evaluate=function(v){var w=v.getValue(this.key);return this.regexp?this.regexp.test(w):!1},g.prototype.keys=function(){return[this.key]},g.prototype.negate=function(){return b.create(this)},g}(),b=function(){function g(v){this._actual=v}return g.create=function(v){return new g(v)},g.prototype.getType=function(){return 7},g.prototype.cmp=function(v){return this._actual.cmp(v._actual)},g.prototype.equals=function(v){return v instanceof g?this._actual.equals(v._actual):!1},g.prototype.evaluate=function(v){return!this._actual.evaluate(v)},g.prototype.keys=function(){return this._actual.keys()},g.prototype.negate=function(){return this._actual},g}(),C=function(){function g(v){this.expr=v}return g.create=function(v){var w=g._normalizeArr(v);return w.length===0?void 0:w.length===1?w[0]:new g(w)},g.prototype.getType=function(){return 5},g.prototype.cmp=function(v){if(this.expr.length<v.expr.length)return-1;if(this.expr.length>v.expr.length)return 1;for(var w=0,I=this.expr.length;w<I;w++){var le=de(this.expr[w],v.expr[w]);if(le!==0)return le}return 0},g.prototype.equals=function(v){if(v instanceof g){if(this.expr.length!==v.expr.length)return!1;for(var w=0,I=this.expr.length;w<I;w++)if(!this.expr[w].equals(v.expr[w]))return!1;return!0}return!1},g.prototype.evaluate=function(v){for(var w=0,I=this.expr.length;w<I;w++)if(!this.expr[w].evaluate(v))return!1;return!0},g._normalizeArr=function(v){var w=[];if(v){for(var I=0,le=v.length;I<le;I++){var te=v[I];if(!te)continue;if(te instanceof g){w=w.concat(te.expr);continue}if(te instanceof k)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');w.push(te)}w.sort(de)}return w},g.prototype.keys=function(){for(var v=[],w=0,I=this.expr;w<I.length;w++){var le=I[w];v.push.apply(v,le.keys())}return v},g.prototype.negate=function(){for(var v=[],w=0,I=this.expr;w<I.length;w++){var le=I[w];v.push(le.negate())}return k.create(v)},g}(),k=function(){function g(v){this.expr=v}return g.create=function(v){var w=g._normalizeArr(v);return w.length===0?void 0:w.length===1?w[0]:new g(w)},g.prototype.getType=function(){return 8},g.prototype.equals=function(v){if(v instanceof g){if(this.expr.length!==v.expr.length)return!1;for(var w=0,I=this.expr.length;w<I;w++)if(!this.expr[w].equals(v.expr[w]))return!1;return!0}return!1},g.prototype.evaluate=function(v){for(var w=0,I=this.expr.length;w<I;w++)if(this.expr[w].evaluate(v))return!0;return!1},g._normalizeArr=function(v){var w=[];if(v){for(var I=0,le=v.length;I<le;I++){var te=v[I];if(!te)continue;if(te instanceof g){w=w.concat(te.expr);continue}w.push(te)}w.sort(de)}return w},g.prototype.keys=function(){for(var v=[],w=0,I=this.expr;w<I.length;w++){var le=I[w];v.push.apply(v,le.keys())}return v},g.prototype.negate=function(){for(var v=[],w=0,I=this.expr;w<I.length;w++){var le=I[w];v.push(le.negate())}for(var te=function(N){return N instanceof g?N.expr:[N]};v.length>1;){for(var oe=v.shift(),Me=v.shift(),ge=[],xe=0,ve=te(oe);xe<ve.length;xe++)for(var T=ve[xe],R=0,ue=te(Me);R<ue.length;R++){var K=ue[R];ge.push(fe.and(T,K))}v.unshift(fe.or.apply(fe,ge))}return v[0]},g}(),E=function(g){re(v,g);function v(w,I){var le=g.call(this,w)||this;return le._defaultValue=I,le}return v.prototype.bindTo=function(w){return w.createKey(this.key,this._defaultValue)},v.prototype.getValue=function(w){return w.getContextKeyValue(this.key)},v.prototype.toNegated=function(){return fe.not(this.key)},v}(ne),A=Object(be.c)("contextKeyService"),L="setContext"},TGq3:function(ke,_,d){ke.exports=d.p+"static/lockclose.365036e8.svg"},"VrN/":function(ke,_,d){(function(G,be){ke.exports=be()})(this,function(){"use strict";var G=navigator.userAgent,be=navigator.platform,re=/gecko\/\d/i.test(G),fe=/MSIE \d/.test(G),de=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(G),ne=/Edge\/(\d+)/.exec(G),W=fe||de||ne,Y=W&&(fe?document.documentMode||6:+(ne||de)[1]),O=!ne&&/WebKit\//.test(G),B=O&&/Qt\/\d+\.\d+/.test(G),b=!ne&&/Chrome\//.test(G),C=/Opera\//.test(G),k=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(G),A=/PhantomJS/.test(G),L=!ne&&/AppleWebKit/.test(G)&&/Mobile\/\w+/.test(G),g=/Android/.test(G),v=L||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(G),w=L||/Mac/.test(be),I=/\bCrOS\b/.test(G),le=/win/i.test(be),te=C&&G.match(/Version\/(\d*\.\d*)/);te&&(te=Number(te[1])),te&&te>=15&&(C=!1,O=!0);var oe=w&&(B||C&&(te==null||te<12.11)),Me=re||W&&Y>=9;function ge(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var xe=function(e,t){var i=e.className,n=ge(t).exec(i);if(n){var r=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(r?n[1]+r:"")}};function ve(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return ve(e).appendChild(t)}function R(e,t,i,n){var r=document.createElement(e);if(i&&(r.className=i),n&&(r.style.cssText=n),typeof t=="string")r.appendChild(document.createTextNode(t));else if(t)for(var s=0;s<t.length;++s)r.appendChild(t[s]);return r}function ue(e,t,i,n){var r=R(e,t,i,n);return r.setAttribute("role","presentation"),r}var K;document.createRange?K=function(e,t,i,n){var r=document.createRange();return r.setEnd(n||e,i),r.setStart(e,t),r}:K=function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(r){return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n};function N(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 X(){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 ie(e,t){var i=e.className;ge(t).test(i)||(e.className+=(i?" ":"")+t)}function J(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!ge(i[n]).test(t)&&(t+=" "+i[n]);return t}var me=function(e){e.select()};L?me=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:W&&(me=function(e){try{e.select()}catch(t){}});function D(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function y(e,t,i){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(i!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function q(e,t,i,n,r){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var s=n||0,l=r||0;;){var p=e.indexOf(" ",s);if(p<0||p>=t)return l+(t-s);l+=p-s,l+=i-l%i,s=p+1}}var Ae=function(){this.id=null,this.f=null,this.time=0,this.handler=D(this.onTimeout,this)};Ae.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ae.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function Se(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var nt=50,at={toString:function(){return"CodeMirror.Pass"}},We={scroll:!1},Le={origin:"*mouse"},Ie={origin:"+move"};function Ne(e,t,i){for(var n=0,r=0;;){var s=e.indexOf(" ",n);s==-1&&(s=e.length);var l=s-n;if(s==e.length||r+l>=t)return n+Math.min(l,t-r);if(r+=s-n,r+=i-r%i,n=s+1,r>=t)return n}}var se=[""];function Z(e){for(;se.length<=e;)se.push(ze(se)+" ");return se[e]}function ze(e){return e[e.length-1]}function Ye(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=t(e[n],n);return i}function Ke(e,t,i){for(var n=0,r=i(t);n<e.length&&i(e[n])<=r;)n++;e.splice(n,0,t)}function rt(){}function U(e,t){var i;return Object.create?i=Object.create(e):(rt.prototype=e,i=new rt),t&&y(t,i),i}var F=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function he(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||F.test(e))}function ye(e,t){return t?t.source.indexOf("\\w")>-1&&he(e)?!0:t.test(e):he(e)}function Pe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Be=/[\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&&Be.test(e)}function Ge(e,t,i){for(;(i<0?t>0:t<e.length)&&De(e.charAt(t));)t+=i;return t}function lt(e,t,i){for(var n=t>i?-1:1;;){if(t==i)return t;var r=(t+i)/2,s=n<0?Math.ceil(r):Math.floor(r);if(s==t)return e(s)?t:i;e(s)?i=s:t=s+n}}function qe(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var r=!1,s=0;s<e.length;++s){var l=e[s];(l.from<i&&l.to>t||t==i&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",s),r=!0)}r||n(t,i,"ltr")}var Je=null;function Ve(e,t,i){var n;Je=null;for(var r=0;r<e.length;++r){var s=e[r];if(s.from<t&&s.to>t)return r;s.to==t&&(s.from!=s.to&&i=="before"?n=r:Je=r),s.from==t&&(s.from!=s.to&&i!="before"?n=r:Je=r)}return n!=null?n:Je}var Ct=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(x){return x<=247?e.charAt(x):1424<=x&&x<=1524?"R":1536<=x&&x<=1785?t.charAt(x-1536):1774<=x&&x<=2220?"r":8192<=x&&x<=8203?"w":x==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,s=/[LRr]/,l=/[Lb1n]/,p=/[1n]/;function m(x,P,H){this.level=x,this.from=P,this.to=H}return function(x,P){var H=P=="ltr"?"L":"R";if(x.length==0||P=="ltr"&&!n.test(x))return!1;for(var pe=x.length,ce=[],Re=0;Re<pe;++Re)ce.push(i(x.charCodeAt(Re)));for(var Fe=0,Qe=H;Fe<pe;++Fe){var et=ce[Fe];et=="m"?ce[Fe]=Qe:Qe=et}for(var ft=0,tt=H;ft<pe;++ft){var bt=ce[ft];bt=="1"&&tt=="r"?ce[ft]="n":s.test(bt)&&(tt=bt,bt=="r"&&(ce[ft]="R"))}for(var Rt=1,St=ce[0];Rt<pe-1;++Rt){var _t=ce[Rt];_t=="+"&&St=="1"&&ce[Rt+1]=="1"?ce[Rt]="1":_t==","&&St==ce[Rt+1]&&(St=="1"||St=="n")&&(ce[Rt]=St),St=_t}for(var ln=0;ln<pe;++ln){var Mn=ce[ln];if(Mn==",")ce[ln]="N";else if(Mn=="%"){var fn=void 0;for(fn=ln+1;fn<pe&&ce[fn]=="%";++fn);for(var Kn=ln&&ce[ln-1]=="!"||fn<pe&&ce[fn]=="1"?"1":"N",Wn=ln;Wn<fn;++Wn)ce[Wn]=Kn;ln=fn-1}}for(var Cn=0,zn=H;Cn<pe;++Cn){var Ln=ce[Cn];zn=="L"&&Ln=="1"?ce[Cn]="L":s.test(Ln)&&(zn=Ln)}for(var An=0;An<pe;++An)if(r.test(ce[An])){var xn=void 0;for(xn=An+1;xn<pe&&r.test(ce[xn]);++xn);for(var mn=(An?ce[An-1]:H)=="L",Hn=(xn<pe?ce[xn]:H)=="L",ur=mn==Hn?mn?"L":"R":H,Di=An;Di<xn;++Di)ce[Di]=ur;An=xn-1}for(var On=[],pi,Rn=0;Rn<pe;)if(l.test(ce[Rn])){var Jo=Rn;for(++Rn;Rn<pe&&l.test(ce[Rn]);++Rn);On.push(new m(0,Jo,Rn))}else{var yi=Rn,Wi=On.length,zi=P=="rtl"?1:0;for(++Rn;Rn<pe&&ce[Rn]!="L";++Rn);for(var Pn=yi;Pn<Rn;)if(p.test(ce[Pn])){yi<Pn&&(On.splice(Wi,0,new m(1,yi,Pn)),Wi+=zi);var cr=Pn;for(++Pn;Pn<Rn&&p.test(ce[Pn]);++Pn);On.splice(Wi,0,new m(2,cr,Pn)),Wi+=zi,yi=Pn}else++Pn;yi<Rn&&On.splice(Wi,0,new m(1,yi,Rn))}return P=="ltr"&&(On[0].level==1&&(pi=x.match(/^\s+/))&&(On[0].from=pi[0].length,On.unshift(new m(0,0,pi[0].length))),ze(On).level==1&&(pi=x.match(/\s+$/))&&(ze(On).to-=pi[0].length,On.push(new m(0,pe-pi[0].length,pe)))),P=="rtl"?On.reverse():On}}();function pt(e,t){var i=e.order;return i==null&&(i=e.order=Ct(e.text,t)),i}var ht=[],Ee=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||ht).concat(i)}};function Xe(e,t){return e._handlers&&e._handlers[t]||ht}function ut(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var n=e._handlers,r=n&&n[t];if(r){var s=Se(r,i);s>-1&&(n[t]=r.slice(0,s).concat(r.slice(s+1)))}}}function we(e,t){var i=Xe(e,t);if(!i.length)return;for(var n=Array.prototype.slice.call(arguments,2),r=0;r<i.length;++r)i[r].apply(null,n)}function _e(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),we(e,i||t.type,e,t),j(t)||t.codemirrorIgnore}function ee(e){var t=e._handlers&&e._handlers.cursorActivity;if(!t)return;for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)Se(i,t[n])==-1&&i.push(t[n])}function Q(e,t){return Xe(e,t).length>0}function $(e){e.prototype.on=function(t,i){Ee(this,t,i)},e.prototype.off=function(t,i){ut(this,t,i)}}function S(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function M(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function j(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function z(e){S(e),M(e)}function Ce(e){return e.target||e.srcElement}function ae(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),w&&e.ctrlKey&&t==1&&(t=3),t}var je=function(){if(W&&Y<9)return!1;var e=R("div");return"draggable"in e||"dragDrop"in e}(),$e;function dt(e){if($e==null){var t=R("span","\u200B");T(e,R("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&($e=t.offsetWidth<=1&&t.offsetHeight>2&&!(W&&Y<8))}var i=$e?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var st;function Lt(e){if(st!=null)return st;var t=T(e,document.createTextNode("A\u062EA")),i=K(t,0,1).getBoundingClientRect(),n=K(t,1,2).getBoundingClientRect();return ve(e),!i||i.left==i.right?!1:st=n.right-i.right<3}var Mt=`
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var r=e.indexOf(`
`,t);r==-1&&(r=e.length);var s=e.slice(t,e.charAt(r-1)=="\r"?r-1:r),l=s.indexOf("\r");l!=-1?(i.push(s.slice(0,l)),t+=l+1):(i.push(s),t=r+1)}return i}:function(e){return e.split(/\r\n?|\n/)},mt=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(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Jt=function(){var e=R("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Bt=null;function Ut(e){if(Bt!=null)return Bt;var t=T(e,R("span","x")),i=t.getBoundingClientRect(),n=K(t,0,1).getBoundingClientRect();return Bt=Math.abs(i.left-n.left)>1}var It={},wt={};function jt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),It[e]=t}function Gt(e,t){wt[e]=t}function ot(e){if(typeof e=="string"&&wt.hasOwnProperty(e))e=wt[e];else if(e&&typeof e.name=="string"&&wt.hasOwnProperty(e.name)){var t=wt[e.name];typeof t=="string"&&(t={name:t}),e=U(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ot("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ot("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function gt(e,t){t=ot(t);var i=It[t.name];if(!i)return gt(e,"text/plain");var n=i(e,t);if(it.hasOwnProperty(t.name)){var r=it[t.name];for(var s in r){if(!r.hasOwnProperty(s))continue;n.hasOwnProperty(s)&&(n["_"+s]=n[s]),n[s]=r[s]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var it={};function xt(e,t){var i=it.hasOwnProperty(e)?it[e]:it[e]={};y(t,i)}function qt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var r=t[n];r instanceof Array&&(r=r.concat([])),i[n]=r}return i}function un(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Nt(e,t,i){return e.startState?e.startState(t,i):!0}var vt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};vt.prototype.eol=function(){return this.pos>=this.string.length},vt.prototype.sol=function(){return this.pos==this.lineStart},vt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},vt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},vt.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},vt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},vt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},vt.prototype.skipToEnd=function(){this.pos=this.string.length},vt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},vt.prototype.backUp=function(e){this.pos-=e},vt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},vt.prototype.indentation=function(){return q(this.string,null,this.tabSize)-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},vt.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(l){return i?l.toLowerCase():l},r=this.string.substr(this.pos,e.length);if(n(r)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}},vt.prototype.current=function(){return this.string.slice(this.start,this.pos)},vt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},vt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},vt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function He(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 i=e;!i.lines;)for(var n=0;;++n){var r=i.children[n],s=r.chunkSize();if(t<s){i=r;break}t-=s}return i.lines[t]}function Qt(e,t,i){var n=[],r=t.line;return e.iter(t.line,i.line+1,function(s){var l=s.text;r==i.line&&(l=l.slice(0,i.ch)),r==t.line&&(l=l.slice(t.ch)),n.push(l),++r}),n}function Dt(e,t,i){var n=[];return e.iter(t,i,function(r){n.push(r.text)}),n}function cn(e,t){var i=t-e.height;if(i)for(var n=e;n;n=n.parent)n.height+=i}function Pt(e){if(e.parent==null)return null;for(var t=e.parent,i=Se(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var r=0;!(n.children[r]==t);++r)i+=n.children[r].chunkSize();return i+t.first}function dn(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var r=e.children[n],s=r.height;if(t<s){e=r;continue e}t-=s,i+=r.chunkSize()}return i}while(!e.lines);for(var l=0;l<e.lines.length;++l){var p=e.lines[l],m=p.height;if(t<m)break;t-=m}return i+l}function Et(e,t){return t>=e.first&&t<e.first+e.size}function Jn(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function Te(e,t,i){if(i===void 0&&(i=null),!(this instanceof Te))return new Te(e,t,i);this.line=e,this.ch=t,this.sticky=i}function ct(e,t){return e.line-t.line||e.ch-t.ch}function Ft(e,t){return e.sticky==t.sticky&&ct(e,t)==0}function $t(e){return Te(e.line,e.ch)}function nn(e,t){return ct(e,t)<0?t:e}function an(e,t){return ct(e,t)<0?e:t}function c(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function o(e,t){if(t.line<e.first)return Te(e.first,0);var i=e.first+e.size-1;return t.line>i?Te(i,He(e,i).text.length):a(t,He(e,t.line).text.length)}function a(e,t){var i=e.ch;return i==null||i>t?Te(e.line,t):i<0?Te(e.line,0):e}function u(e,t){for(var i=[],n=0;n<t.length;n++)i[n]=o(e,t[n]);return i}var f=function(e,t){this.state=e,this.lookAhead=t},h=function(e,t,i,n){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};h.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},h.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}},h.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},h.fromSaved=function(e,t,i){return t instanceof f?new h(e,qt(e.mode,t.state),i,t.lookAhead):new h(e,qt(e.mode,t),i)},h.prototype.save=function(e){var t=e!==!1?qt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new f(t,this.maxLookAhead):t};function V(e,t,i,n){var r=[e.state.modeGen],s={};Xn(e,t.text,e.doc.mode,i,function(x,P){return r.push(x,P)},s,n);for(var l=i.state,p=function(x){i.baseTokens=r;var P=e.state.overlays[x],H=1,pe=0;i.state=!0,Xn(e,t.text,P.mode,i,function(ce,Re){for(var Fe=H;pe<ce;){var Qe=r[H];Qe>ce&&r.splice(H,1,ce,r[H+1],Qe),H+=2,pe=Math.min(ce,Qe)}if(!Re)return;if(P.opaque)r.splice(Fe,H-Fe,ce,"overlay "+Re),H=Fe+2;else for(;Fe<H;Fe+=2){var et=r[Fe+1];r[Fe+1]=(et?et+" ":"")+"overlay "+Re}},s),i.state=l,i.baseTokens=null,i.baseTokenPos=1},m=0;m<e.state.overlays.length;++m)p(m);return{styles:r,classes:s.bgClass||s.textClass?s:null}}function Oe(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Ze(e,Pt(t)),r=t.text.length>e.options.maxHighlightLength&&qt(e.doc.mode,n.state),s=V(e,t,n);r&&(n.state=r),t.stateAfter=n.save(!r),t.styles=s.styles,s.classes?t.styleClasses=s.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ze(e,t,i){var n=e.doc,r=e.display;if(!n.mode.startState)return new h(n,!0,t);var s=En(e,t,i),l=s>n.first&&He(n,s-1).stateAfter,p=l?h.fromSaved(n,l,s):new h(n,Nt(n.mode),s);return n.iter(s,t,function(m){yt(e,m.text,p);var x=p.line;m.stateAfter=x==t-1||x%5==0||x>=r.viewFrom&&x<r.viewTo?p.save():null,p.nextLine()}),i&&(n.modeFrontier=p.line),p}function yt(e,t,i,n){var r=e.doc.mode,s=new vt(t,e.options.tabSize,i);for(s.start=s.pos=n||0,t==""&&Ue(r,i.state);!s.eol();)Tt(r,s,i.state),s.start=s.pos}function Ue(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var i=un(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}function Tt(e,t,i,n){for(var r=0;r<10;r++){n&&(n[0]=un(e,i).mode);var s=e.token(t,i);if(t.pos>t.start)return s}throw new Error("Mode "+e.name+" failed to advance stream.")}var zt=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function sn(e,t,i,n){var r=e.doc,s=r.mode,l;t=o(r,t);var p=He(r,t.line),m=Ze(e,t.line,i),x=new vt(p.text,e.options.tabSize,m),P;for(n&&(P=[]);(n||x.pos<t.ch)&&!x.eol();)x.start=x.pos,l=Tt(s,x,m.state),n&&P.push(new zt(x,l,qt(r.mode,m.state)));return n?P:new zt(x,l,m.state)}function Yn(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var n=i[1]?"bgClass":"textClass";t[n]==null?t[n]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+i[2])}return e}function Xn(e,t,i,n,r,s,l){var p=i.flattenSpans;p==null&&(p=e.options.flattenSpans);var m=0,x=null,P=new vt(t,e.options.tabSize,n),H,pe=e.options.addModeClass&&[null];for(t==""&&Yn(Ue(i,n.state),s);!P.eol();){if(P.pos>e.options.maxHighlightLength?(p=!1,l&&yt(e,t,n,P.pos),P.pos=t.length,H=null):H=Yn(Tt(i,P,n.state,pe),s),pe){var ce=pe[0].name;ce&&(H="m-"+(H?ce+" "+H:ce))}if(!p||x!=H){for(;m<P.start;)m=Math.min(P.start,m+5e3),r(m,x);x=H}P.start=P.pos}for(;m<P.pos;){var Re=Math.min(P.pos,m+5e3);r(Re,x),m=Re}}function En(e,t,i){for(var n,r,s=e.doc,l=i?-1:t-(e.doc.mode.innerMode?1e3:100),p=t;p>l;--p){if(p<=s.first)return s.first;var m=He(s,p-1),x=m.stateAfter;if(x&&(!i||p+(x instanceof f?x.lookAhead:0)<=s.modeFrontier))return p;var P=q(m.text,null,e.options.tabSize);(r==null||n>P)&&(r=p-1,n=P)}return r}function ti(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontier<t-10)return;for(var i=e.first,n=t-1;n>i;n--){var r=He(e,n).stateAfter;if(r&&(!(r instanceof f)||n+r.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}var Hi=!1,Bn=!1;function Zn(){Hi=!0}function Gn(){Bn=!0}function bi(e,t,i){this.marker=e,this.from=t,this.to=i}function ri(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function mi(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function ci(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function hr(e,t,i){var n;if(e)for(var r=0;r<e.length;++r){var s=e[r],l=s.marker,p=s.from==null||(l.inclusiveLeft?s.from<=t:s.from<t);if(p||s.from==t&&l.type=="bookmark"&&(!i||!s.marker.insertLeft)){var m=s.to==null||(l.inclusiveRight?s.to>=t:s.to>t);(n||(n=[])).push(new bi(l,s.from,m?null:s.to))}}return n}function Gi(e,t,i){var n;if(e)for(var r=0;r<e.length;++r){var s=e[r],l=s.marker,p=s.to==null||(l.inclusiveRight?s.to>=t:s.to>t);if(p||s.from==t&&l.type=="bookmark"&&(!i||s.marker.insertLeft)){var m=s.from==null||(l.inclusiveLeft?s.from<=t:s.from<t);(n||(n=[])).push(new bi(l,m?null:s.from-t,s.to==null?null:s.to-t))}}return n}function oi(e,t){if(t.full)return null;var i=Et(e,t.from.line)&&He(e,t.from.line).markedSpans,n=Et(e,t.to.line)&&He(e,t.to.line).markedSpans;if(!i&&!n)return null;var r=t.from.ch,s=t.to.ch,l=ct(t.from,t.to)==0,p=hr(i,r,l),m=Gi(n,s,l),x=t.text.length==1,P=ze(t.text).length+(x?r:0);if(p)for(var H=0;H<p.length;++H){var pe=p[H];if(pe.to==null){var ce=ri(m,pe.marker);ce?x&&(pe.to=ce.to==null?null:ce.to+P):pe.to=r}}if(m)for(var Re=0;Re<m.length;++Re){var Fe=m[Re];if(Fe.to!=null&&(Fe.to+=P),Fe.from==null){var Qe=ri(p,Fe.marker);Qe||(Fe.from=P,x&&(p||(p=[])).push(Fe))}else Fe.from+=P,x&&(p||(p=[])).push(Fe)}p&&(p=qn(p)),m&&m!=p&&(m=qn(m));var et=[p];if(!x){var ft=t.text.length-2,tt;if(ft>0&&p)for(var bt=0;bt<p.length;++bt)p[bt].to==null&&(tt||(tt=[])).push(new bi(p[bt].marker,null,null));for(var Rt=0;Rt<ft;++Rt)et.push(tt);et.push(m)}return et}function qn(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Ti(e,t,i){var n=null;if(e.iter(t.line,i.line+1,function(ce){if(ce.markedSpans)for(var Re=0;Re<ce.markedSpans.length;++Re){var Fe=ce.markedSpans[Re].marker;Fe.readOnly&&(!n||Se(n,Fe)==-1)&&(n||(n=[])).push(Fe)}}),!n)return null;for(var r=[{from:t,to:i}],s=0;s<n.length;++s)for(var l=n[s],p=l.find(0),m=0;m<r.length;++m){var x=r[m];if(ct(x.to,p.from)<0||ct(x.from,p.to)>0)continue;var P=[m,1],H=ct(x.from,p.from),pe=ct(x.to,p.to);(H<0||!l.inclusiveLeft&&!H)&&P.push({from:x.from,to:p.from}),(pe>0||!l.inclusiveRight&&!pe)&&P.push({from:p.to,to:x.to}),r.splice.apply(r,P),m+=P.length-3}return r}function Li(e){var t=e.markedSpans;if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}function dr(e,t){if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}function pn(e){return e.inclusiveLeft?-1:0}function Yt(e){return e.inclusiveRight?1:0}function Dn(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),r=t.find(),s=ct(n.from,r.from)||pn(e)-pn(t);if(s)return-s;var l=ct(n.to,r.to)||Yt(e)-Yt(t);return l||t.id-e.id}function Kt(e,t){var i=Bn&&e.markedSpans,n;if(i)for(var r=void 0,s=0;s<i.length;++s)r=i[s],r.marker.collapsed&&(t?r.from:r.to)==null&&(!n||Dn(n,r.marker)<0)&&(n=r.marker);return n}function yn(e){return Kt(e,!0)}function en(e){return Kt(e,!1)}function hi(e,t){var i=Bn&&e.markedSpans,n;if(i)for(var r=0;r<i.length;++r){var s=i[r];s.marker.collapsed&&(s.from==null||s.from<t)&&(s.to==null||s.to>t)&&(!n||Dn(n,s.marker)<0)&&(n=s.marker)}return n}function gn(e,t,i,n,r){var s=He(e,t),l=Bn&&s.markedSpans;if(l)for(var p=0;p<l.length;++p){var m=l[p];if(!m.marker.collapsed)continue;var x=m.marker.find(0),P=ct(x.from,i)||pn(m.marker)-pn(r),H=ct(x.to,n)||Yt(m.marker)-Yt(r);if(P>=0&&H<=0||P<=0&&H>=0)continue;if(P<=0&&(m.marker.inclusiveRight&&r.inclusiveLeft?ct(x.to,i)>=0:ct(x.to,i)>0)||P>=0&&(m.marker.inclusiveRight&&r.inclusiveLeft?ct(x.from,n)<=0:ct(x.from,n)<0))return!0}}function jn(e){for(var t;t=yn(e);)e=t.find(-1,!0).line;return e}function Vi(e){for(var t;t=en(e);)e=t.find(1,!0).line;return e}function Qi(e){for(var t,i;t=en(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Ci(e,t){var i=He(e,t),n=jn(i);return i==n?t:Pt(n)}function _r(e,t){if(t>e.lastLine())return t;var i=He(e,t),n;if(!Vn(e,i))return t;for(;n=en(i);)i=n.find(1,!0).line;return Pt(i)+1}function Vn(e,t){var i=Bn&&t.markedSpans;if(i)for(var n=void 0,r=0;r<i.length;++r){if(n=i[r],!n.marker.collapsed)continue;if(n.from==null)return!0;if(n.marker.widgetNode)continue;if(n.from==0&&n.marker.inclusiveLeft&&fr(e,t,n))return!0}}function fr(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return fr(e,n.line,ri(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var r=void 0,s=0;s<t.markedSpans.length;++s)if(r=t.markedSpans[s],r.marker.collapsed&&!r.marker.widgetNode&&r.from==i.to&&(r.to==null||r.to!=i.from)&&(r.marker.inclusiveLeft||i.marker.inclusiveRight)&&fr(e,t,r))return!0}function ai(e){e=jn(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var r=i.lines[n];if(r==e)break;t+=r.height}for(var s=i.parent;s;i=s,s=i.parent)for(var l=0;l<s.children.length;++l){var p=s.children[l];if(p==i)break;t+=p.height}return t}function Ki(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=yn(n);){var r=i.find(0,!0);n=r.from.line,t+=r.from.ch-r.to.ch}for(n=e;i=en(n);){var s=i.find(0,!0);t-=n.text.length-s.from.ch,n=s.to.line,t+=n.text.length-s.to.ch}return t}function Fr(e){var t=e.display,i=e.doc;t.maxLine=He(i,i.first),t.maxLineLength=Ki(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var r=Ki(n);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=n)})}var Ii=function(e,t,i){this.text=e,dr(this,t),this.height=i?i(this):1};Ii.prototype.lineNo=function(){return Pt(this)},$(Ii);function Xo(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Li(e),dr(e,i);var r=n?n(e):1;r!=e.height&&cn(e,r)}function co(e){e.parent=null,Li(e)}var At={},Ot={};function kt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Ot:At;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Wt(e,t){var i=ue("span",null,null,O?"padding-right: .1px":null),n={pre:ue("pre",[i],"CodeMirror-line"),content:i,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 s=r?t.rest[r-1]:t.line,l=void 0;n.pos=0,n.addToken=rn,Lt(e.display.measure)&&(l=pt(s,e.doc.direction))&&(n.addToken=bn(n.addToken,l)),n.map=[];var p=t!=e.display.externalMeasured&&Pt(s);Ht(s,n,Oe(e,s,p)),s.styleClasses&&(s.styleClasses.bgClass&&(n.bgClass=J(s.styleClasses.bgClass,n.bgClass||"")),s.styleClasses.textClass&&(n.textClass=J(s.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(dt(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(O){var m=n.content.lastChild;(/\bcm-tab\b/.test(m.className)||m.querySelector&&m.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return we(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=J(n.pre.className,n.textClass||"")),n}function Xt(e){var t=R("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rn(e,t,i,n,r,s,l){if(!t)return;var p=e.splitSpaces?Vt(t,e.trailingSpace):t,m=e.cm.state.specialChars,x=!1,P;if(!m.test(t))e.col+=t.length,P=document.createTextNode(p),e.map.push(e.pos,e.pos+t.length,P),W&&Y<9&&(x=!0),e.pos+=t.length;else{P=document.createDocumentFragment();for(var H=0;;){m.lastIndex=H;var pe=m.exec(t),ce=pe?pe.index-H:t.length-H;if(ce){var Re=document.createTextNode(p.slice(H,H+ce));W&&Y<9?P.appendChild(R("span",[Re])):P.appendChild(Re),e.map.push(e.pos,e.pos+ce,Re),e.col+=ce,e.pos+=ce}if(!pe)break;H+=ce+1;var Fe=void 0;if(pe[0]==" "){var Qe=e.cm.options.tabSize,et=Qe-e.col%Qe;Fe=P.appendChild(R("span",Z(et),"cm-tab")),Fe.setAttribute("role","presentation"),Fe.setAttribute("cm-text"," "),e.col+=et}else pe[0]=="\r"||pe[0]==`
`?(Fe=P.appendChild(R("span",pe[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Fe.setAttribute("cm-text",pe[0]),e.col+=1):(Fe=e.cm.options.specialCharPlaceholder(pe[0]),Fe.setAttribute("cm-text",pe[0]),W&&Y<9?P.appendChild(R("span",[Fe])):P.appendChild(Fe),e.col+=1);e.map.push(e.pos,e.pos+1,Fe),e.pos++}}if(e.trailingSpace=p.charCodeAt(t.length-1)==32,i||n||r||x||s||l){var ft=i||"";n&&(ft+=n),r&&(ft+=r);var tt=R("span",[P],ft,s);if(l)for(var bt in l)l.hasOwnProperty(bt)&&bt!="style"&&bt!="class"&&tt.setAttribute(bt,l[bt]);return e.content.appendChild(tt)}e.content.appendChild(P)}function Vt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",r=0;r<e.length;r++){var s=e.charAt(r);s==" "&&i&&(r==e.length-1||e.charCodeAt(r+1)==32)&&(s="\xA0"),n+=s,i=s==" "}return n}function bn(e,t){return function(i,n,r,s,l,p,m){r=r?r+" cm-force-border":"cm-force-border";for(var x=i.pos,P=x+n.length;;){for(var H=void 0,pe=0;pe<t.length&&!(H=t[pe],H.to>x&&H.from<=x);pe++);if(H.to>=P)return e(i,n,r,s,l,p,m);e(i,n.slice(0,H.to-x),r,s,null,p,m),s=null,n=n.slice(H.to-x),x=H.to}}}function Un(e,t,i,n){var r=!n&&i.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",i.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function Ht(e,t,i){var n=e.markedSpans,r=e.text,s=0;if(!n){for(var l=1;l<i.length;l+=2)t.addToken(t,r.slice(s,s=i[l]),kt(i[l+1],t.cm.options));return}for(var p=r.length,m=0,x=1,P="",H,pe,ce=0,Re,Fe,Qe,et,ft;;){if(ce==m){Re=Fe=Qe=pe="",ft=null,et=null,ce=Infinity;for(var tt=[],bt=void 0,Rt=0;Rt<n.length;++Rt){var St=n[Rt],_t=St.marker;if(_t.type=="bookmark"&&St.from==m&&_t.widgetNode)tt.push(_t);else if(St.from<=m&&(St.to==null||St.to>m||_t.collapsed&&St.to==m&&St.from==m)){if(St.to!=null&&St.to!=m&&ce>St.to&&(ce=St.to,Fe=""),_t.className&&(Re+=" "+_t.className),_t.css&&(pe=(pe?pe+";":"")+_t.css),_t.startStyle&&St.from==m&&(Qe+=" "+_t.startStyle),_t.endStyle&&St.to==ce&&(bt||(bt=[])).push(_t.endStyle,St.to),_t.title&&((ft||(ft={})).title=_t.title),_t.attributes)for(var ln in _t.attributes)(ft||(ft={}))[ln]=_t.attributes[ln];_t.collapsed&&(!et||Dn(et.marker,_t)<0)&&(et=St)}else St.from>m&&ce>St.from&&(ce=St.from)}if(bt)for(var Mn=0;Mn<bt.length;Mn+=2)bt[Mn+1]==ce&&(Fe+=" "+bt[Mn]);if(!et||et.from==m)for(var fn=0;fn<tt.length;++fn)Un(t,0,tt[fn]);if(et&&(et.from||0)==m){if(Un(t,(et.to==null?p+1:et.to)-m,et.marker,et.from==null),et.to==null)return;et.to==m&&(et=!1)}}if(m>=p)break;for(var Kn=Math.min(p,ce);;){if(P){var Wn=m+P.length;if(!et){var Cn=Wn>Kn?P.slice(0,Kn-m):P;t.addToken(t,Cn,H?H+Re:Re,Qe,m+Cn.length==ce?Fe:"",pe,ft)}if(Wn>=Kn){P=P.slice(Kn-m),m=Kn;break}m=Wn,Qe=""}P=r.slice(s,s=i[x++]),H=kt(i[x++],t.cm.options)}}}function xi(e,t,i){this.line=t,this.rest=Qi(t),this.size=this.rest?Pt(ze(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Vn(e,t)}function Zt(e,t,i){for(var n=[],r,s=t;s<i;s=r){var l=new xi(e.doc,He(e.doc,s),s);r=s+l.size,n.push(l)}return n}var wn=null;function ni(e){wn?wn.ops.push(e):e.ownsGroup=wn={ops:[e],delayedCallbacks:[]}}function ii(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].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(i<t.length)}function Wr(e,t){var i=e.ownsGroup;if(!i)return;try{ii(i)}finally{wn=null,t(i)}}var pr=null;function Tn(e,t){var i=Xe(e,t);if(!i.length)return;var n=Array.prototype.slice.call(arguments,2),r;wn?r=wn.delayedCallbacks:pr?r=pr:(r=pr=[],setTimeout(Is,0));for(var s=function(p){r.push(function(){return i[p].apply(null,n)})},l=0;l<i.length;++l)s(l)}function Is(){var e=pr;pr=null;for(var t=0;t<e.length;++t)e[t]()}function Zo(e,t,i,n){for(var r=0;r<t.changes.length;r++){var s=t.changes[r];s=="text"?Ns(e,t):s=="gutter"?$o(e,t,i,n):s=="class"?ho(e,t):s=="widget"&&Ps(e,t,n)}t.changes=null}function mr(e){return e.node==e.text&&(e.node=R("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),W&&Y<8&&(e.node.style.zIndex=2)),e.node}function Os(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var n=mr(t);t.background=n.insertBefore(R("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function qo(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Wt(e,t)}function Ns(e,t){var i=t.text.className,n=qo(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,ho(e,t)):i&&(t.text.className=i)}function ho(e,t){Os(e,t),t.line.wrapClass?mr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function $o(e,t,i,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=mr(t);t.gutterBackground=R("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 s=t.line.gutterMarkers;if(e.options.lineNumbers||s){var l=mr(t),p=t.gutter=R("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(p),l.insertBefore(p,t.text),t.line.gutterClass&&(p.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!s||!s["CodeMirror-linenumbers"])&&(t.lineNumber=p.appendChild(R("div",Jn(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),s)for(var m=0;m<e.display.gutterSpecs.length;++m){var x=e.display.gutterSpecs[m].className,P=s.hasOwnProperty(x)&&s[x];P&&p.appendChild(R("div",[P],"CodeMirror-gutter-elt","left: "+n.gutterLeft[x]+"px; width: "+n.gutterWidth[x]+"px"))}}}function Ps(e,t,i){t.alignable&&(t.alignable=null);for(var n=ge("CodeMirror-linewidget"),r=t.node.firstChild,s=void 0;r;r=s)s=r.nextSibling,n.test(r.className)&&t.node.removeChild(r);ea(e,t,i)}function Bs(e,t,i,n){var r=qo(e,t);return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),ho(e,t),$o(e,t,i,n),ea(e,t,n),t.node}function ea(e,t,i){if(ta(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)ta(e,t.rest[n],t,i,!1)}function ta(e,t,i,n,r){if(!t.widgets)return;for(var s=mr(i),l=0,p=t.widgets;l<p.length;++l){var m=p[l],x=R("div",[m.node],"CodeMirror-linewidget"+(m.className?" "+m.className:""));m.handleMouseEvents||x.setAttribute("cm-ignore-events","true"),js(m,x,i,n),e.display.input.setUneditable(x),r&&m.above?s.insertBefore(x,i.gutter||i.text):s.appendChild(x),Tn(m,"redraw")}}function js(e,t,i,n){if(e.noHScroll){(i.alignable||(i.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 gr(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!N(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,R("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function gi(e,t){for(var i=Ce(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function zr(e){return e.lineSpace.offsetTop}function fo(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function na(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,R("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function di(e){return nt-e.display.nativeBarWidth}function Oi(e){return e.display.scroller.clientWidth-di(e)-e.display.barWidth}function po(e){return e.display.scroller.clientHeight-di(e)-e.display.barHeight}function Us(e,t,i){var n=e.options.lineWrapping,r=n&&Oi(e);if(!t.measure.heights||n&&t.measure.width!=r){var s=t.measure.heights=[];if(n){t.measure.width=r;for(var l=t.text.firstChild.getClientRects(),p=0;p<l.length-1;p++){var m=l[p],x=l[p+1];Math.abs(m.bottom-x.bottom)>2&&s.push((m.bottom+x.top)/2-i.top)}}s.push(i.bottom-i.top)}}function ia(e,t,i){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(Pt(e.rest[r])>i)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function _s(e,t){t=jn(t);var i=Pt(t),n=e.display.externalMeasured=new xi(e.doc,t,i);n.lineN=i;var r=n.built=Wt(e,n);return n.text=r.pre,T(e.display.lineMeasure,r.pre),n}function ra(e,t,i,n){return fi(e,Ji(e,t),i,n)}function mo(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Bi(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function Ji(e,t){var i=Pt(t),n=mo(e,i);n&&!n.text?n=null:n&&n.changes&&(Zo(e,n,i,xo(e)),e.curOp.forceUpdate=!0),n||(n=_s(e,t));var r=ia(n,t,i);return{line:t,view:n,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function fi(e,t,i,n,r){t.before&&(i=-1);var s=i+(n||""),l;return t.cache.hasOwnProperty(s)?l=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Us(e,t.view,t.rect),t.hasHeights=!0),l=Ws(e,t,i,n),l.bogus||(t.cache[s]=l)),{left:l.left,right:l.right,top:r?l.rtop:l.top,bottom:r?l.rbottom:l.bottom}}var oa={left:0,right:0,top:0,bottom:0};function aa(e,t,i){for(var n,r,s,l,p,m,x=0;x<e.length;x+=3)if(p=e[x],m=e[x+1],t<p?(r=0,s=1,l="left"):t<m?(r=t-p,s=r+1):(x==e.length-3||t==m&&e[x+3]>t)&&(s=m-p,r=s-1,t>=m&&(l="right")),r!=null){if(n=e[x+2],p==m&&i==(n.insertLeft?"left":"right")&&(l=i),i=="left"&&r==0)for(;x&&e[x-2]==e[x-3]&&e[x-1].insertLeft;)n=e[(x-=3)+2],l="left";if(i=="right"&&r==m-p)for(;x<e.length-3&&e[x+3]==e[x+4]&&!e[x+5].insertLeft;)n=e[(x+=3)+2],l="right";break}return{node:n,start:r,end:s,collapse:l,coverStart:p,coverEnd:m}}function Fs(e,t){var i=oa;if(t=="left")for(var n=0;n<e.length&&!((i=e[n]).left!=i.right);n++);else for(var r=e.length-1;r>=0&&!((i=e[r]).left!=i.right);r--);return i}function Ws(e,t,i,n){var r=aa(t.map,i,n),s=r.node,l=r.start,p=r.end,m=r.collapse,x;if(s.nodeType==3){for(var P=0;P<4;P++){for(;l&&De(t.line.text.charAt(r.coverStart+l));)--l;for(;r.coverStart+p<r.coverEnd&&De(t.line.text.charAt(r.coverStart+p));)++p;if(W&&Y<9&&l==0&&p==r.coverEnd-r.coverStart?x=s.parentNode.getBoundingClientRect():x=Fs(K(s,l,p).getClientRects(),n),x.left||x.right||l==0)break;p=l,l=l-1,m="right"}W&&Y<11&&(x=zs(e.display.measure,x))}else{l>0&&(m=n="right");var H;e.options.lineWrapping&&(H=s.getClientRects()).length>1?x=H[n=="right"?H.length-1:0]:x=s.getBoundingClientRect()}if(W&&Y<9&&!l&&(!x||!x.left&&!x.right)){var pe=s.parentNode.getClientRects()[0];pe?x={left:pe.left,right:pe.left+Xi(e.display),top:pe.top,bottom:pe.bottom}:x=oa}for(var ce=x.top-t.rect.top,Re=x.bottom-t.rect.top,Fe=(ce+Re)/2,Qe=t.view.measure.heights,et=0;et<Qe.length-1&&!(Fe<Qe[et]);et++);var ft=et?Qe[et-1]:0,tt=Qe[et],bt={left:(m=="right"?x.right:x.left)-t.rect.left,right:(m=="left"?x.left:x.right)-t.rect.left,top:ft,bottom:tt};return!x.left&&!x.right&&(bt.bogus=!0),e.options.singleCursorHeightPerLine||(bt.rtop=ce,bt.rbottom=Re),bt}function zs(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ut(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*n,bottom:t.bottom*n}}function sa(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 la(e){e.display.externalMeasure=null,ve(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)sa(e.display.view[t])}function vr(e){la(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ua(){return b&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ca(){return b&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function go(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=gr(e.widgets[i]));return t}function Hr(e,t,i,n,r){if(!r){var s=go(t);i.top+=s,i.bottom+=s}if(n=="line")return i;n||(n="local");var l=ai(t);if(n=="local"?l+=zr(e.display):l-=e.display.viewOffset,n=="page"||n=="window"){var p=e.display.lineSpace.getBoundingClientRect();l+=p.top+(n=="window"?0:ca());var m=p.left+(n=="window"?0:ua());i.left+=m,i.right+=m}return i.top+=l,i.bottom+=l,i}function ha(e,t,i){if(i=="div")return t;var n=t.left,r=t.top;if(i=="page")n-=ua(),r-=ca();else if(i=="local"||!i){var s=e.display.sizer.getBoundingClientRect();n+=s.left,r+=s.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:n-l.left,top:r-l.top}}function vo(e,t,i,n,r){return n||(n=He(e.doc,t.line)),Hr(e,n,ra(e,n,t.ch,r),i)}function si(e,t,i,n,r,s){n=n||He(e.doc,t.line),r||(r=Ji(e,n));function l(Re,Fe){var Qe=fi(e,r,Re,Fe?"right":"left",s);return Fe?Qe.left=Qe.right:Qe.right=Qe.left,Hr(e,n,Qe,i)}var p=pt(n,e.doc.direction),m=t.ch,x=t.sticky;if(m>=n.text.length?(m=n.text.length,x="before"):m<=0&&(m=0,x="after"),!p)return l(x=="before"?m-1:m,x=="before");function P(Re,Fe,Qe){var et=p[Fe],ft=et.level==1;return l(Qe?Re-1:Re,ft!=Qe)}var H=Ve(p,m,x),pe=Je,ce=P(m,H,x=="before");return pe!=null&&(ce.other=P(m,pe,x!="before")),ce}function da(e,t){var i=0;t=o(e.doc,t),e.options.lineWrapping||(i=Xi(e.display)*t.ch);var n=He(e.doc,t.line),r=ai(n)+zr(e.display);return{left:i,right:i,top:r,bottom:r+n.height}}function yo(e,t,i,n,r){var s=Te(e,t,i);return s.xRel=r,n&&(s.outside=n),s}function bo(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return yo(n.first,0,null,-1,-1);var r=dn(n,i),s=n.first+n.size-1;if(r>s)return yo(n.first+n.size-1,He(n,s).text.length,null,1,1);t<0&&(t=0);for(var l=He(n,r);;){var p=Hs(e,l,r,t,i),m=hi(l,p.ch+(p.xRel>0||p.outside>0?1:0));if(!m)return p;var x=m.find(1);if(x.line==r)return x;l=He(n,r=x.line)}}function fa(e,t,i,n){n-=go(t);var r=t.text.length,s=lt(function(l){return fi(e,i,l-1).bottom<=n},r,0);return r=lt(function(l){return fi(e,i,l).top>n},s,r),{begin:s,end:r}}function pa(e,t,i,n){i||(i=Ji(e,t));var r=Hr(e,t,fi(e,i,n),"line").top;return fa(e,t,i,r)}function Co(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Hs(e,t,i,n,r){r-=ai(t);var s=Ji(e,t),l=go(t),p=0,m=t.text.length,x=!0,P=pt(t,e.doc.direction);if(P){var H=(e.options.lineWrapping?Vs:Gs)(e,t,i,s,P,n,r);x=H.level!=1,p=x?H.from:H.to-1,m=x?H.to:H.from-1}var pe=null,ce=null,Re=lt(function(Rt){var St=fi(e,s,Rt);return St.top+=l,St.bottom+=l,Co(St,n,r,!1)?(St.top<=r&&St.left<=n&&(pe=Rt,ce=St),!0):!1},p,m),Fe,Qe,et=!1;if(ce){var ft=n-ce.left<ce.right-n,tt=ft==x;Re=pe+(tt?0:1),Qe=tt?"after":"before",Fe=ft?ce.left:ce.right}else{!x&&(Re==m||Re==p)&&Re++,Qe=Re==0?"after":Re==t.text.length?"before":fi(e,s,Re-(x?1:0)).bottom+l<=r==x?"after":"before";var bt=si(e,Te(i,Re,Qe),"line",t,s);Fe=bt.left,et=r<bt.top?-1:r>=bt.bottom?1:0}return Re=Ge(t.text,Re,1),yo(i,Re,Qe,et,n-Fe)}function Gs(e,t,i,n,r,s,l){var p=lt(function(H){var pe=r[H],ce=pe.level!=1;return Co(si(e,Te(i,ce?pe.to:pe.from,ce?"before":"after"),"line",t,n),s,l,!0)},0,r.length-1),m=r[p];if(p>0){var x=m.level!=1,P=si(e,Te(i,x?m.from:m.to,x?"after":"before"),"line",t,n);Co(P,s,l,!0)&&P.top>l&&(m=r[p-1])}return m}function Vs(e,t,i,n,r,s,l){var p=fa(e,t,n,l),m=p.begin,x=p.end;/\s/.test(t.text.charAt(x-1))&&x--;for(var P=null,H=null,pe=0;pe<r.length;pe++){var ce=r[pe];if(ce.from>=x||ce.to<=m)continue;var Re=ce.level!=1,Fe=fi(e,n,Re?Math.min(x,ce.to)-1:Math.max(m,ce.from)).right,Qe=Fe<s?s-Fe+1e9:Fe-s;(!P||H>Qe)&&(P=ce,H=Qe)}return P||(P=r[r.length-1]),P.from<m&&(P={from:m,to:P.to,level:P.level}),P.to>x&&(P={from:P.from,to:x,level:P.level}),P}var Ni;function Yi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ni==null){Ni=R("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ni.appendChild(document.createTextNode("x")),Ni.appendChild(R("br"));Ni.appendChild(document.createTextNode("x"))}T(e.measure,Ni);var i=Ni.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),ve(e.measure),i||1}function Xi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=R("span","xxxxxxxxxx"),i=R("pre",[t],"CodeMirror-line-like");T(e.measure,i);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function xo(e){for(var t=e.display,i={},n={},r=t.gutters.clientLeft,s=t.gutters.firstChild,l=0;s;s=s.nextSibling,++l){var p=e.display.gutterSpecs[l].className;i[p]=s.offsetLeft+s.clientLeft+r,n[p]=s.clientWidth}return{fixedPos:Eo(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Eo(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ma(e){var t=Yi(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Xi(e.display)-3);return function(r){if(Vn(e.doc,r))return 0;var s=0;if(r.widgets)for(var l=0;l<r.widgets.length;l++)r.widgets[l].height&&(s+=r.widgets[l].height);return i?s+(Math.ceil(r.text.length/n)||1)*t:s+t}}function Ao(e){var t=e.doc,i=ma(e);t.iter(function(n){var r=i(n);r!=n.height&&cn(n,r)})}function Pi(e,t,i,n){var r=e.display;if(!i&&Ce(t).getAttribute("cm-not-content")=="true")return null;var s,l,p=r.lineSpace.getBoundingClientRect();try{s=t.clientX-p.left,l=t.clientY-p.top}catch(H){return null}var m=bo(e,s,l),x;if(n&&m.xRel>0&&(x=He(e.doc,m.line).text).length==m.ch){var P=q(x,x.length,e.options.tabSize)-x.length;m=Te(m.line,Math.max(0,Math.round((s-na(e.display).left)/Xi(e.display))-P))}return m}function Bi(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,n=0;n<i.length;n++)if(t-=i[n].size,t<0)return n}function _n(e,t,i,n){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),n||(n=0);var r=e.display;if(n&&i<r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>t)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Bn&&Ci(e.doc,t)<r.viewTo&&Ai(e);else if(i<=r.viewFrom)Bn&&_r(e.doc,i+n)>r.viewFrom?Ai(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&i>=r.viewTo)Ai(e);else if(t<=r.viewFrom){var s=Gr(e,i,i+n,1);s?(r.view=r.view.slice(s.index),r.viewFrom=s.lineN,r.viewTo+=n):Ai(e)}else if(i>=r.viewTo){var l=Gr(e,t,t,-1);l?(r.view=r.view.slice(0,l.index),r.viewTo=l.lineN):Ai(e)}else{var p=Gr(e,t,t,-1),m=Gr(e,i,i+n,1);p&&m?(r.view=r.view.slice(0,p.index).concat(Zt(e,p.lineN,m.lineN)).concat(r.view.slice(m.index)),r.viewTo+=n):Ai(e)}var x=r.externalMeasured;x&&(i<x.lineN?x.lineN+=n:t<x.lineN+x.size&&(r.externalMeasured=null))}function Ei(e,t,i){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 s=n.view[Bi(e,t)];if(s.node==null)return;var l=s.changes||(s.changes=[]);Se(l,i)==-1&&l.push(i)}function Ai(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gr(e,t,i,n){var r=Bi(e,t),s,l=e.display.view;if(!Bn||i==e.doc.first+e.doc.size)return{index:r,lineN:i};for(var p=e.display.viewFrom,m=0;m<r;m++)p+=l[m].size;if(p!=t){if(n>0){if(r==l.length-1)return null;s=p+l[r].size-t,r++}else s=p-t;t+=s,i+=s}for(;Ci(e.doc,i)!=i;){if(r==(n<0?0:l.length-1))return null;i+=n*l[r-(n<0?1:0)].size,r+=n}return{index:r,lineN:i}}function Qs(e,t,i){var n=e.display,r=n.view;r.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=Zt(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=Zt(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Bi(e,t))),n.viewFrom=t,n.viewTo<i?n.view=n.view.concat(Zt(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,Bi(e,i)))),n.viewTo=i}function ga(e){for(var t=e.display.view,i=0,n=0;n<t.length;n++){var r=t[n];!r.hidden&&(!r.node||r.changes)&&++i}return i}function yr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function va(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},r=n.cursors=document.createDocumentFragment(),s=n.selection=document.createDocumentFragment(),l=0;l<i.sel.ranges.length;l++){if(!t&&l==i.sel.primIndex)continue;var p=i.sel.ranges[l];if(p.from().line>=e.display.viewTo||p.to().line<e.display.viewFrom)continue;var m=p.empty();(m||e.options.showCursorWhenSelecting)&&ya(e,p.head,r),m||Ks(e,p,s)}return n}function ya(e,t,i){var n=si(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=i.appendChild(R("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 s=i.appendChild(R("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=n.other.left+"px",s.style.top=n.other.top+"px",s.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function Vr(e,t){return e.top-t.top||e.left-t.left}function Ks(e,t,i){var n=e.display,r=e.doc,s=document.createDocumentFragment(),l=na(e.display),p=l.left,m=Math.max(n.sizerWidth,Oi(e)-n.sizer.offsetLeft)-l.right,x=r.direction=="ltr";function P(tt,bt,Rt,St){bt<0&&(bt=0),bt=Math.round(bt),St=Math.round(St),s.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+tt+`px;
top: `+bt+"px; width: "+(Rt==null?m-tt:Rt)+`px;
height: `+(St-bt)+"px"))}function H(tt,bt,Rt){var St=He(r,tt),_t=St.text.length,ln,Mn;function fn(Cn,zn){return vo(e,Te(tt,Cn),"div",St,zn)}function Kn(Cn,zn,Ln){var An=pa(e,St,null,Cn),xn=zn=="ltr"==(Ln=="after")?"left":"right",mn=Ln=="after"?An.begin:An.end-(/\s/.test(St.text.charAt(An.end-1))?2:1);return fn(mn,xn)[xn]}var Wn=pt(St,r.direction);return qe(Wn,bt||0,Rt==null?_t:Rt,function(Cn,zn,Ln,An){var xn=Ln=="ltr",mn=fn(Cn,xn?"left":"right"),Hn=fn(zn-1,xn?"right":"left"),ur=bt==null&&Cn==0,Di=Rt==null&&zn==_t,On=An==0,pi=!Wn||An==Wn.length-1;if(Hn.top-mn.top<=3){var Rn=(x?ur:Di)&&On,Jo=(x?Di:ur)&&pi,yi=Rn?p:(xn?mn:Hn).left,Wi=Jo?m:(xn?Hn:mn).right;P(yi,mn.top,Wi-yi,mn.bottom)}else{var zi,Pn,cr,Yo;xn?(zi=x&&ur&&On?p:mn.left,Pn=x?m:Kn(Cn,Ln,"before"),cr=x?p:Kn(zn,Ln,"after"),Yo=x&&Di&&pi?m:Hn.right):(zi=x?Kn(Cn,Ln,"before"):p,Pn=!x&&ur&&On?m:mn.right,cr=!x&&Di&&pi?p:Hn.left,Yo=x?Kn(zn,Ln,"after"):m),P(zi,mn.top,Pn-zi,mn.bottom),mn.bottom<Hn.top&&P(p,mn.bottom,null,Hn.top),P(cr,Hn.top,Yo-cr,Hn.bottom)}(!ln||Vr(mn,ln)<0)&&(ln=mn),Vr(Hn,ln)<0&&(ln=Hn),(!Mn||Vr(mn,Mn)<0)&&(Mn=mn),Vr(Hn,Mn)<0&&(Mn=Hn)}),{start:ln,end:Mn}}var pe=t.from(),ce=t.to();if(pe.line==ce.line)H(pe.line,pe.ch,ce.ch);else{var Re=He(r,pe.line),Fe=He(r,ce.line),Qe=jn(Re)==jn(Fe),et=H(pe.line,pe.ch,Qe?Re.text.length+1:null).end,ft=H(ce.line,Qe?0:null,ce.ch).start;Qe&&(et.top<ft.top-2?(P(et.right,et.top,null,et.bottom),P(p,ft.top,ft.left,ft.bottom)):P(et.right,et.top,ft.left-et.right,et.bottom)),et.bottom<ft.top&&P(p,et.bottom,null,ft.top)}i.appendChild(s)}function wo(e){if(!e.state.focused)return;var t=e.display;clearInterval(t.blinker);var i=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Zi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function ba(e){e.state.focused||(e.display.input.focus(),So(e))}function Ca(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Zi(e))},100)}function So(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(we(e,"focus",e,t),e.state.focused=!0,ie(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),O&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),wo(e)}function Zi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(we(e,"blur",e,t),e.state.focused=!1,xe(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Qr(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var r=t.view[n],s=e.options.lineWrapping,l=void 0,p=0;if(r.hidden)continue;if(W&&Y<8){var m=r.node.offsetTop+r.node.offsetHeight;l=m-i,i=m}else{var x=r.node.getBoundingClientRect();l=x.bottom-x.top,!s&&r.text.firstChild&&(p=r.text.firstChild.getBoundingClientRect().right-x.left-1)}var P=r.line.height-l;if((P>.005||P<-.005)&&(cn(r.line,l),xa(r.line),r.rest))for(var H=0;H<r.rest.length;H++)xa(r.rest[H]);if(p>e.display.sizerWidth){var pe=Math.ceil(p/Xi(e.display));pe>e.display.maxLineLength&&(e.display.maxLineLength=pe,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}function xa(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var i=e.widgets[t],n=i.node.parentNode;n&&(i.height=n.offsetHeight)}}function Kr(e,t,i){var n=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;n=Math.floor(n-zr(e));var r=i&&i.bottom!=null?i.bottom:n+e.wrapper.clientHeight,s=dn(t,n),l=dn(t,r);if(i&&i.ensure){var p=i.ensure.from.line,m=i.ensure.to.line;p<s?(s=p,l=dn(t,ai(He(t,p))+e.wrapper.clientHeight)):Math.min(m,t.lastLine())>=l&&(s=dn(t,ai(He(t,m))-e.wrapper.clientHeight),l=m)}return{from:s,to:Math.max(l,s+1)}}function Js(e,t){if(_e(e,"scrollCursorIntoView"))return;var i=e.display,n=i.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&&!A){var s=R("div","\u200B",null,`position: absolute;
top: `+(t.top-i.viewOffset-zr(e.display))+`px;
height: `+(t.bottom-t.top+di(e)+i.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(s),s.scrollIntoView(r),e.display.lineSpace.removeChild(s)}}function Ys(e,t,i,n){n==null&&(n=0);var r;!e.options.lineWrapping&&t==i&&(t=t.ch?Te(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Te(t.line,t.ch+1,"before"):t);for(var s=0;s<5;s++){var l=!1,p=si(e,t),m=!i||i==t?p:si(e,i);r={left:Math.min(p.left,m.left),top:Math.min(p.top,m.top)-n,right:Math.max(p.left,m.left),bottom:Math.max(p.bottom,m.bottom)+n};var x=ko(e,r),P=e.doc.scrollTop,H=e.doc.scrollLeft;if(x.scrollTop!=null&&(Cr(e,x.scrollTop),Math.abs(e.doc.scrollTop-P)>1&&(l=!0)),x.scrollLeft!=null&&(ji(e,x.scrollLeft),Math.abs(e.doc.scrollLeft-H)>1&&(l=!0)),!l)break}return r}function Xs(e,t){var i=ko(e,t);i.scrollTop!=null&&Cr(e,i.scrollTop),i.scrollLeft!=null&&ji(e,i.scrollLeft)}function ko(e,t){var i=e.display,n=Yi(e.display);t.top<0&&(t.top=0);var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,s=po(e),l={};t.bottom-t.top>s&&(t.bottom=t.top+s);var p=e.doc.height+fo(i),m=t.top<n,x=t.bottom>p-n;if(t.top<r)l.scrollTop=m?0:t.top;else if(t.bottom>r+s){var P=Math.min(t.top,(x?p:t.bottom)-s);P!=r&&(l.scrollTop=P)}var H=e.options.fixedGutter?0:i.gutters.offsetWidth,pe=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-H,ce=Oi(e)-i.gutters.offsetWidth,Re=t.right-t.left>ce;return Re&&(t.right=t.left+ce),t.left<10?l.scrollLeft=0:t.left<pe?l.scrollLeft=Math.max(0,t.left+H-(Re?0:10)):t.right>ce+pe-3&&(l.scrollLeft=t.right+(Re?0:10)-ce),l}function Mo(e,t){if(t==null)return;Jr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function qi(e){Jr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function br(e,t,i){(t!=null||i!=null)&&Jr(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zs(e,t){Jr(e),e.curOp.scrollToPos=t}function Jr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=da(e,t.from),n=da(e,t.to);Ea(e,i,n,t.margin)}}function Ea(e,t,i,n){var r=ko(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});br(e,r.scrollLeft,r.scrollTop)}function Cr(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;re||Do(e,{top:t}),Aa(e,t,!0),re&&Do(e),Ar(e,100)}function Aa(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function ji(e,t,i,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Ra(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function xr(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+fo(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?i:0,docHeight:n,scrollHeight:n+di(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Ui=function(e,t,i){this.cm=i;var n=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,e(n),e(r),Ee(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ee(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,W&&Y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ui.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){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=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var s=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+s)+"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:i?n:0,bottom:t?n:0}},Ui.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ui.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ui.prototype.zeroWidthHack=function(){var e=w&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ae,this.disableVert=new Ae},Ui.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var r=e.getBoundingClientRect(),s=i=="vert"?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1);s!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Ui.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Er=function(){};Er.prototype.update=function(){return{bottom:0,right:0}},Er.prototype.setScrollLeft=function(){},Er.prototype.setScrollTop=function(){},Er.prototype.clear=function(){};function $i(e,t){t||(t=xr(e));var i=e.display.barWidth,n=e.display.barHeight;wa(e,t);for(var r=0;r<4&&i!=e.display.barWidth||n!=e.display.barHeight;r++)i!=e.display.barWidth&&e.options.lineWrapping&&Qr(e),wa(e,xr(e)),i=e.display.barWidth,n=e.display.barHeight}function wa(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Sa={native:Ui,null:Er};function ka(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&xe(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Sa[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ee(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?ji(e,t):Cr(e,t)},e),e.display.scrollbars.addClass&&ie(e.display.wrapper,e.display.scrollbars.addClass)}var qs=0;function _i(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:++qs},ni(e.curOp)}function Fi(e){var t=e.curOp;t&&Wr(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;$s(i)})}function $s(e){for(var t=e.ops,i=0;i<t.length;i++)el(t[i]);for(var n=0;n<t.length;n++)tl(t[n]);for(var r=0;r<t.length;r++)nl(t[r]);for(var s=0;s<t.length;s++)il(t[s]);for(var l=0;l<t.length;l++)rl(t[l])}function el(e){var t=e.cm,i=t.display;al(t),e.updateMaxLine&&Fr(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Yr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&Ro(e.cm,e.update)}function nl(e){var t=e.cm,i=t.display;e.updatedDisplay&&Qr(t),e.barMeasure=xr(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ra(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+di(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Oi(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function il(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&ji(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==X();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&$i(t,e.barMeasure),e.updatedDisplay&&Lo(t,e.barMeasure),e.selectionChanged&&wo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&ba(e.cm)}function rl(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&Ma(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&Aa(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&ji(t,e.scrollLeft,!0,!0),e.scrollToPos){var r=Ys(t,o(n,e.scrollToPos.from),o(n,e.scrollToPos.to),e.scrollToPos.margin);Js(t,r)}var s=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(s)for(var p=0;p<s.length;++p)s[p].lines.length||we(s[p],"hide");if(l)for(var m=0;m<l.length;++m)l[m].lines.length&&we(l[m],"unhide");i.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&we(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Qn(e,t){if(e.curOp)return t();_i(e);try{return t()}finally{Fi(e)}}function Sn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);_i(e);try{return t.apply(e,arguments)}finally{Fi(e)}}}function Nn(e){return function(){if(this.curOp)return e.apply(this,arguments);_i(this);try{return e.apply(this,arguments)}finally{Fi(this)}}}function kn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);_i(t);try{return e.apply(this,arguments)}finally{Fi(t)}}}function Ar(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,D(ol,e))}function ol(e){var t=e.doc;if(t.highlightFrontier>=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=Ze(e,t.highlightFrontier),r=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(s){if(n.line>=e.display.viewFrom){var l=s.styles,p=s.text.length>e.options.maxHighlightLength?qt(t.mode,n.state):null,m=V(e,s,n,!0);p&&(n.state=p),s.styles=m.styles;var x=s.styleClasses,P=m.classes;P?s.styleClasses=P:x&&(s.styleClasses=null);for(var H=!l||l.length!=s.styles.length||x!=P&&(!x||!P||x.bgClass!=P.bgClass||x.textClass!=P.textClass),pe=0;!H&&pe<l.length;++pe)H=l[pe]!=s.styles[pe];H&&r.push(n.line),s.stateAfter=n.save(),n.nextLine()}else s.text.length<=e.options.maxHighlightLength&&yt(e,s.text,n),s.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return Ar(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),r.length&&Qn(e,function(){for(var s=0;s<r.length;s++)Ei(e,r[s],"text")})}var Yr=function(e,t,i){var n=e.display;this.viewport=t,this.visible=Kr(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Oi(e),this.force=i,this.dims=xo(e),this.events=[]};Yr.prototype.signal=function(e,t){Q(e,t)&&this.events.push(arguments)},Yr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)we.apply(null,this.events[e])};function al(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=di(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=di(e)+"px",t.scrollbarsClipped=!0)}function sl(e){if(e.hasFocus())return null;var t=X();if(!t||!N(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&N(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function ll(e){if(!e||!e.activeElt||e.activeElt==X())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&N(document.body,e.anchorNode)&&N(document.body,e.focusNode)){var t=window.getSelection(),i=document.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),t.removeAllRanges(),t.addRange(i),t.extend(e.focusNode,e.focusOffset)}}function Ro(e,t){var i=e.display,n=e.doc;if(t.editorIsHidden)return Ai(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&ga(e)==0)return!1;Da(e)&&(Ai(e),t.dims=xo(e));var r=n.first+n.size,s=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(r,t.visible.to+e.options.viewportMargin);i.viewFrom<s&&s-i.viewFrom<20&&(s=Math.max(n.first,i.viewFrom)),i.viewTo>l&&i.viewTo-l<20&&(l=Math.min(r,i.viewTo)),Bn&&(s=Ci(e.doc,s),l=_r(e.doc,l));var p=s!=i.viewFrom||l!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Qs(e,s,l),i.viewOffset=ai(He(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var m=ga(e);if(!p&&m==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var x=sl(e);return m>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),m>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(x),ve(i.cursorDiv),ve(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,p&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Ar(e,400)),i.updateLineNumbers=null,!0}function Ma(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Oi(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+fo(e.display)-po(e),i.top)}),t.visible=Kr(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Kr(e.display,e.doc,i));if(!Ro(e,t))break;Qr(e);var r=xr(e);yr(e),$i(e,r),Lo(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 Do(e,t){var i=new Yr(e,t);if(Ro(e,i)){Qr(e),Ma(e,i);var n=xr(e);yr(e),$i(e,n),Lo(e,n),i.finish()}}function ul(e,t,i){var n=e.display,r=e.options.lineNumbers,s=n.lineDiv,l=s.firstChild;function p(Re){var Fe=Re.nextSibling;return O&&w&&e.display.currentWheelTarget==Re?Re.style.display="none":Re.parentNode.removeChild(Re),Fe}for(var m=n.view,x=n.viewFrom,P=0;P<m.length;P++){var H=m[P];if(!H.hidden)if(!H.node||H.node.parentNode!=s){var pe=Bs(e,H,x,i);s.insertBefore(pe,l)}else{for(;l!=H.node;)l=p(l);var ce=r&&t!=null&&t<=x&&H.lineNumber;H.changes&&(Se(H.changes,"gutter")>-1&&(ce=!1),Zo(e,H,x,i)),ce&&(ve(H.lineNumber),H.lineNumber.appendChild(document.createTextNode(Jn(e.options,x)))),l=H.node.nextSibling}x+=H.size}for(;l;)l=p(l)}function To(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Lo(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+di(e)+"px"}function Ra(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=Eo(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,s=n+"px",l=0;l<i.length;l++)if(!i[l].hidden){e.options.fixedGutter&&(i[l].gutter&&(i[l].gutter.style.left=s),i[l].gutterBackground&&(i[l].gutterBackground.style.left=s));var p=i[l].alignable;if(p)for(var m=0;m<p.length;m++)p[m].style.left=s}e.options.fixedGutter&&(t.gutters.style.left=n+r+"px")}function Da(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=Jn(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var r=n.measure.appendChild(R("div",[R("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),s=r.firstChild.offsetWidth,l=r.offsetWidth-s;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(s,n.lineGutter.offsetWidth-l)+1,n.lineNumWidth=n.lineNumInnerWidth+l,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",To(e.display),!0}return!1}function Io(e,t){for(var i=[],n=!1,r=0;r<e.length;r++){var s=e[r],l=null;if(typeof s!="string"&&(l=s.style,s=s.className),s=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:s,style:l})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function Ta(e){var t=e.gutters,i=e.gutterSpecs;ve(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var r=i[n],s=r.className,l=r.style,p=t.appendChild(R("div",null,"CodeMirror-gutter "+s));l&&(p.style.cssText=l),s=="CodeMirror-linenumbers"&&(e.lineGutter=p,p.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",To(e)}function wr(e){Ta(e.display),_n(e),Ra(e)}function cl(e,t,i,n){var r=this;this.input=i,r.scrollbarFiller=R("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=R("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=ue("div",null,"CodeMirror-code"),r.selectionDiv=R("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=R("div",null,"CodeMirror-cursors"),r.measure=R("div",null,"CodeMirror-measure"),r.lineMeasure=R("div",null,"CodeMirror-measure"),r.lineSpace=ue("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var s=ue("div",[r.lineSpace],"CodeMirror-lines");r.mover=R("div",[s],null,"position: relative"),r.sizer=R("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=R("div",null,null,"position: absolute; height: "+nt+"px; width: 1px;"),r.gutters=R("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=R("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=R("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),W&&Y<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),!O&&!(re&&v)&&(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=Io(n.gutters,n.lineNumbers),Ta(r),i.init(r)}var Xr=0,$n=null;W?$n=-.53:re?$n=15:b?$n=-.7:k&&($n=-1/3);function La(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function hl(e){var t=La(e);return t.x*=$n,t.y*=$n,t}function Ia(e,t){var i=La(t),n=i.x,r=i.y,s=e.display,l=s.scroller,p=l.scrollWidth>l.clientWidth,m=l.scrollHeight>l.clientHeight;if(!(n&&p||r&&m))return;if(r&&w&&O){e:for(var x=t.target,P=s.view;x!=l;x=x.parentNode)for(var H=0;H<P.length;H++)if(P[H].node==x){e.display.currentWheelTarget=x;break e}}if(n&&!re&&!C&&$n!=null){r&&m&&Cr(e,Math.max(0,l.scrollTop+r*$n)),ji(e,Math.max(0,l.scrollLeft+n*$n)),(!r||r&&m)&&S(t),s.wheelStartX=null;return}if(r&&$n!=null){var pe=r*$n,ce=e.doc.scrollTop,Re=ce+s.wrapper.clientHeight;pe<0?ce=Math.max(0,ce+pe-50):Re=Math.min(e.doc.height,Re+pe+50),Do(e,{top:ce,bottom:Re})}Xr<20&&(s.wheelStartX==null?(s.wheelStartX=l.scrollLeft,s.wheelStartY=l.scrollTop,s.wheelDX=n,s.wheelDY=r,setTimeout(function(){if(s.wheelStartX==null)return;var Fe=l.scrollLeft-s.wheelStartX,Qe=l.scrollTop-s.wheelStartY,et=Qe&&s.wheelDY&&Qe/s.wheelDY||Fe&&s.wheelDX&&Fe/s.wheelDX;if(s.wheelStartX=s.wheelStartY=null,!et)return;$n=($n*Xr+et)/(Xr+1),++Xr},200)):(s.wheelDX+=n,s.wheelDY+=r))}var ei=function(e,t){this.ranges=e,this.primIndex=t};ei.prototype.primary=function(){return this.ranges[this.primIndex]},ei.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 i=this.ranges[t],n=e.ranges[t];if(!Ft(i.anchor,n.anchor)||!Ft(i.head,n.head))return!1}return!0},ei.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new tn($t(this.ranges[t].anchor),$t(this.ranges[t].head));return new ei(e,this.primIndex)},ei.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ei.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var n=this.ranges[i];if(ct(t,n.from())>=0&&ct(e,n.to())<=0)return i}return-1};var tn=function(e,t){this.anchor=e,this.head=t};tn.prototype.from=function(){return an(this.anchor,this.head)},tn.prototype.to=function(){return nn(this.anchor,this.head)},tn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function li(e,t,i){var n=e&&e.options.selectionsMayTouch,r=t[i];t.sort(function(pe,ce){return ct(pe.from(),ce.from())}),i=Se(t,r);for(var s=1;s<t.length;s++){var l=t[s],p=t[s-1],m=ct(p.to(),l.from());if(n&&!l.empty()?m>0:m>=0){var x=an(p.from(),l.from()),P=nn(p.to(),l.to()),H=p.empty()?l.from()==l.head:p.from()==p.head;s<=i&&--i,t.splice(--s,2,new tn(H?P:x,H?x:P))}}return new ei(t,i)}function wi(e,t){return new ei([new tn(e,t||e)],0)}function Si(e){return e.text?Te(e.from.line+e.text.length-1,ze(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Oa(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return Si(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Si(t).ch-t.to.ch),Te(i,n)}function Oo(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var r=e.sel.ranges[n];i.push(new tn(Oa(r.anchor,t),Oa(r.head,t)))}return li(e.cm,i,e.sel.primIndex)}function Na(e,t,i){return e.line==t.line?Te(i.line,e.ch-t.ch+i.ch):Te(i.line+(e.line-t.line),e.ch)}function dl(e,t,i){for(var n=[],r=Te(e.first,0),s=r,l=0;l<t.length;l++){var p=t[l],m=Na(p.from,r,s),x=Na(Si(p),r,s);if(r=p.to,s=x,i=="around"){var P=e.sel.ranges[l],H=ct(P.head,P.anchor)<0;n[l]=new tn(H?x:m,H?m:x)}else n[l]=new tn(m,m)}return new ei(n,e.sel.primIndex)}function No(e){e.doc.mode=gt(e.options,e.doc.modeOption),Sr(e)}function Sr(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,Ar(e,100),e.state.modeGen++,e.curOp&&_n(e)}function Pa(e,t){return t.from.ch==0&&t.to.ch==0&&ze(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Po(e,t,i,n){function r(ft){return i?i[ft]:null}function s(ft,tt,bt){Xo(ft,tt,bt,n),Tn(ft,"change",ft,t)}function l(ft,tt){for(var bt=[],Rt=ft;Rt<tt;++Rt)bt.push(new Ii(x[Rt],r(Rt),n));return bt}var p=t.from,m=t.to,x=t.text,P=He(e,p.line),H=He(e,m.line),pe=ze(x),ce=r(x.length-1),Re=m.line-p.line;if(t.full)e.insert(0,l(0,x.length)),e.remove(x.length,e.size-x.length);else if(Pa(e,t)){var Fe=l(0,x.length-1);s(H,H.text,ce),Re&&e.remove(p.line,Re),Fe.length&&e.insert(p.line,Fe)}else if(P==H)if(x.length==1)s(P,P.text.slice(0,p.ch)+pe+P.text.slice(m.ch),ce);else{var Qe=l(1,x.length-1);Qe.push(new Ii(pe+P.text.slice(m.ch),ce,n)),s(P,P.text.slice(0,p.ch)+x[0],r(0)),e.insert(p.line+1,Qe)}else if(x.length==1)s(P,P.text.slice(0,p.ch)+x[0]+H.text.slice(m.ch),r(0)),e.remove(p.line+1,Re);else{s(P,P.text.slice(0,p.ch)+x[0],r(0)),s(H,pe+H.text.slice(m.ch),ce);var et=l(1,x.length-1);Re>1&&e.remove(p.line+1,Re-1),e.insert(p.line+1,et)}Tn(e,"change",e,t)}function ki(e,t,i){function n(r,s,l){if(r.linked)for(var p=0;p<r.linked.length;++p){var m=r.linked[p];if(m.doc==s)continue;var x=l&&m.sharedHist;if(i&&!x)continue;t(m.doc,x),n(m.doc,r,x)}}n(e,null,!0)}function Ba(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ao(e),No(e),ja(e),e.options.lineWrapping||Fr(e),e.options.mode=t.modeOption,_n(e)}function ja(e){(e.doc.direction=="rtl"?ie:xe)(e.display.lineDiv,"CodeMirror-rtl")}function fl(e){Qn(e,function(){ja(e),_n(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 Bo(e,t){var i={from:$t(t.from),to:Si(t),text:Qt(e,t.from,t.to)};return Fa(e,i,t.from.line,t.to.line+1),ki(e,function(n){return Fa(n,i,t.from.line,t.to.line+1)},!0),i}function Ua(e){for(;e.length;){var t=ze(e);if(t.ranges)e.pop();else break}}function pl(e,t){if(t)return Ua(e.done),ze(e.done);if(e.done.length&&!ze(e.done).ranges)return ze(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),ze(e.done)}function _a(e,t,i,n){var r=e.history;r.undone.length=0;var s=+new Date,l,p;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&r.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=pl(r,r.lastOp==n)))p=ze(l.changes),ct(t.from,t.to)==0&&ct(t.from,p.to)==0?p.to=Si(t):l.changes.push(Bo(e,t));else{var m=ze(r.done);for((!m||!m.ranges)&&qr(e.sel,r.done),l={changes:[Bo(e,t)],generation:r.generation},r.done.push(l);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(i),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,p||we(e,"historyAdded")}function ml(e,t,i,n){var r=t.charAt(0);return r=="*"||r=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,n){var r=e.history,s=n&&n.origin;i==r.lastSelOp||s&&r.lastSelOrigin==s&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==s||ml(e,s,ze(r.done),t))?r.done[r.done.length-1]=t:qr(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=s,r.lastSelOp=i,n&&n.clearRedo!==!1&&Ua(r.undone)}function qr(e,t){var i=ze(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Fa(e,t,i,n){var r=t["spans_"+e.id],s=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(l){l.markedSpans&&((r||(r=t["spans_"+e.id]={}))[s]=l.markedSpans),++s})}function vl(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function yl(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=[],r=0;r<t.text.length;++r)n.push(vl(i[r]));return n}function Wa(e,t){var i=yl(e,t),n=oi(e,t);if(!i)return n;if(!n)return i;for(var r=0;r<i.length;++r){var s=i[r],l=n[r];if(s&&l){e:for(var p=0;p<l.length;++p){for(var m=l[p],x=0;x<s.length;++x)if(s[x].marker==m.marker)continue e;s.push(m)}}else l&&(i[r]=l)}return i}function er(e,t,i){for(var n=[],r=0;r<e.length;++r){var s=e[r];if(s.ranges){n.push(i?ei.prototype.deepCopy.call(s):s);continue}var l=s.changes,p=[];n.push({changes:p});for(var m=0;m<l.length;++m){var x=l[m],P=void 0;if(p.push({from:x.from,to:x.to,text:x.text}),t)for(var H in x)(P=H.match(/^spans_(\d+)$/))&&(Se(t,Number(P[1]))>-1&&(ze(p)[H]=x[H],delete x[H]))}}return n}function jo(e,t,i,n){if(n){var r=e.anchor;if(i){var s=ct(t,r)<0;s!=ct(i,r)<0?(r=t,t=i):s!=ct(t,i)<0&&(t=i)}return new tn(r,t)}else return new tn(i||t,t)}function $r(e,t,i,n,r){r==null&&(r=e.cm&&(e.cm.display.shift||e.extend)),In(e,new ei([jo(e.sel.primary(),t,i,r)],0),n)}function za(e,t,i){for(var n=[],r=e.cm&&(e.cm.display.shift||e.extend),s=0;s<e.sel.ranges.length;s++)n[s]=jo(e.sel.ranges[s],t[s],null,r);var l=li(e.cm,n,e.sel.primIndex);In(e,l,i)}function Uo(e,t,i,n){var r=e.sel.ranges.slice(0);r[t]=i,In(e,li(e.cm,r,e.sel.primIndex),n)}function Ha(e,t,i,n){In(e,wi(t,i),n)}function bl(e,t,i){var n={ranges:t.ranges,update:function(r){this.ranges=[];for(var s=0;s<r.length;s++)this.ranges[s]=new tn(o(e,r[s].anchor),o(e,r[s].head))},origin:i&&i.origin};return we(e,"beforeSelectionChange",e,n),e.cm&&we(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?li(e.cm,n.ranges,n.ranges.length-1):t}function Ga(e,t,i){var n=e.history.done,r=ze(n);r&&r.ranges?(n[n.length-1]=t,eo(e,t,i)):In(e,t,i)}function In(e,t,i){eo(e,t,i),gl(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function eo(e,t,i){(Q(e,"beforeSelectionChange")||e.cm&&Q(e.cm,"beforeSelectionChange"))&&(t=bl(e,t,i));var n=i&&i.bias||(ct(t.primary().head,e.sel.primary().head)<0?-1:1);Va(e,Ka(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&qi(e.cm)}function Va(e,t){if(t.equals(e.sel))return;e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ee(e.cm)),Tn(e,"cursorActivity",e)}function Qa(e){Va(e,Ka(e,e.sel,null,!1))}function Ka(e,t,i,n){for(var r,s=0;s<t.ranges.length;s++){var l=t.ranges[s],p=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[s],m=to(e,l.anchor,p&&p.anchor,i,n),x=to(e,l.head,p&&p.head,i,n);(r||m!=l.anchor||x!=l.head)&&(r||(r=t.ranges.slice(0,s)),r[s]=new tn(m,x))}return r?li(e.cm,r,t.primIndex):t}function tr(e,t,i,n,r){var s=He(e,t.line);if(s.markedSpans)for(var l=0;l<s.markedSpans.length;++l){var p=s.markedSpans[l],m=p.marker,x="selectLeft"in m?!m.selectLeft:m.inclusiveLeft,P="selectRight"in m?!m.selectRight:m.inclusiveRight;if((p.from==null||(x?p.from<=t.ch:p.from<t.ch))&&(p.to==null||(P?p.to>=t.ch:p.to>t.ch))){if(r&&(we(m,"beforeCursorEnter"),m.explicitlyCleared))if(s.markedSpans){--l;continue}else break;if(!m.atomic)continue;if(i){var H=m.find(n<0?1:-1),pe=void 0;if((n<0?P:x)&&(H=Ja(e,H,-n,H&&H.line==t.line?s:null)),H&&H.line==t.line&&(pe=ct(H,i))&&(n<0?pe<0:pe>0))return tr(e,H,t,n,r)}var ce=m.find(n<0?-1:1);return(n<0?x:P)&&(ce=Ja(e,ce,n,ce.line==t.line?s:null)),ce?tr(e,ce,t,n,r):null}}return t}function to(e,t,i,n,r){var s=n||1,l=tr(e,t,i,s,r)||!r&&tr(e,t,i,s,!0)||tr(e,t,i,-s,r)||!r&&tr(e,t,i,-s,!0);return l||(e.cantEdit=!0,Te(e.first,0))}function Ja(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?o(e,Te(t.line-1)):null:i>0&&t.ch==(n||He(e,t.line)).text.length?t.line<e.first+e.size-1?Te(t.line+1,0):null:new Te(t.line,t.ch+i)}function Ya(e){e.setSelection(Te(e.firstLine(),0),Te(e.lastLine()),We)}function Xa(e,t,i){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return i&&(n.update=function(r,s,l,p){r&&(n.from=o(e,r)),s&&(n.to=o(e,s)),l&&(n.text=l),p!==void 0&&(n.origin=p)}),we(e,"beforeChange",e,n),e.cm&&we(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function nr(e,t,i){if(e.cm){if(!e.cm.curOp)return Sn(e.cm,nr)(e,t,i);if(e.cm.state.suppressEdits)return}if((Q(e,"beforeChange")||e.cm&&Q(e.cm,"beforeChange"))&&(t=Xa(e,t,!0),!t))return;var n=Hi&&!i&&Ti(e,t.from,t.to);if(n)for(var r=n.length-1;r>=0;--r)Za(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin});else Za(e,t)}function Za(e,t){if(t.text.length==1&&t.text[0]==""&&ct(t.from,t.to)==0)return;var i=Oo(e,t);_a(e,t,i,e.cm?e.cm.curOp.id:NaN),kr(e,t,i,oi(e,t));var n=[];ki(e,function(r,s){!s&&Se(n,r.history)==-1&&(ts(r.history,t),n.push(r.history)),kr(r,t,null,oi(r,t))})}function no(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var r=e.history,s,l=e.sel,p=t=="undo"?r.done:r.undone,m=t=="undo"?r.undone:r.done,x=0;x<p.length&&!(s=p[x],i?s.ranges&&!s.equals(e.sel):!s.ranges);x++);if(x==p.length)return;for(r.lastOrigin=r.lastSelOrigin=null;;)if(s=p.pop(),s.ranges){if(qr(s,m),i&&!s.equals(e.sel)){In(e,s,{clearRedo:!1});return}l=s}else if(n){p.push(s);return}else break;var P=[];qr(l,m),m.push({changes:P,generation:r.generation}),r.generation=s.generation||++r.maxGeneration;for(var H=Q(e,"beforeChange")||e.cm&&Q(e.cm,"beforeChange"),pe=function(Fe){var Qe=s.changes[Fe];if(Qe.origin=t,H&&!Xa(e,Qe,!1))return p.length=0,{};P.push(Bo(e,Qe));var et=Fe?Oo(e,Qe):ze(p);kr(e,Qe,et,Wa(e,Qe)),!Fe&&e.cm&&e.cm.scrollIntoView({from:Qe.from,to:Si(Qe)});var ft=[];ki(e,function(tt,bt){!bt&&Se(ft,tt.history)==-1&&(ts(tt.history,Qe),ft.push(tt.history)),kr(tt,Qe,null,Wa(tt,Qe))})},ce=s.changes.length-1;ce>=0;--ce){var Re=pe(ce);if(Re)return Re.v}}function qa(e,t){if(t==0)return;if(e.first+=t,e.sel=new ei(Ye(e.sel.ranges,function(r){return new tn(Te(r.anchor.line+t,r.anchor.ch),Te(r.head.line+t,r.head.ch))}),e.sel.primIndex),e.cm){_n(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)Ei(e.cm,n,"gutter")}}function kr(e,t,i,n){if(e.cm&&!e.cm.curOp)return Sn(e.cm,kr)(e,t,i,n);if(t.to.line<e.first){qa(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);qa(e,r),t={from:Te(e.first,0),to:Te(t.to.line+r,t.to.ch),text:[ze(t.text)],origin:t.origin}}var s=e.lastLine();t.to.line>s&&(t={from:t.from,to:Te(s,He(e,s).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qt(e,t.from,t.to),i||(i=Oo(e,t)),e.cm?Cl(e.cm,t,n):Po(e,t,n),eo(e,i,We),e.cantEdit&&to(e,Te(e.firstLine(),0))&&(e.cantEdit=!1)}function Cl(e,t,i){var n=e.doc,r=e.display,s=t.from,l=t.to,p=!1,m=s.line;e.options.lineWrapping||(m=Pt(jn(He(n,s.line))),n.iter(m,l.line+1,function(ce){if(ce==r.maxLine)return p=!0,!0})),n.sel.contains(t.from,t.to)>-1&&ee(e),Po(n,t,i,ma(e)),e.options.lineWrapping||(n.iter(m,s.line+t.text.length,function(ce){var Re=Ki(ce);Re>r.maxLineLength&&(r.maxLine=ce,r.maxLineLength=Re,r.maxLineChanged=!0,p=!1)}),p&&(e.curOp.updateMaxLine=!0)),ti(n,s.line),Ar(e,400);var x=t.text.length-(l.line-s.line)-1;t.full?_n(e):s.line==l.line&&t.text.length==1&&!Pa(e.doc,t)?Ei(e,s.line,"text"):_n(e,s.line,l.line+1,x);var P=Q(e,"changes"),H=Q(e,"change");if(H||P){var pe={from:s,to:l,text:t.text,removed:t.removed,origin:t.origin};H&&Tn(e,"change",e,pe),P&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(pe)}e.display.selForContextMenu=null}function ir(e,t,i,n,r){var s;n||(n=i),ct(n,i)<0&&(s=[n,i],i=s[0],n=s[1]),typeof t=="string"&&(t=e.splitLines(t)),nr(e,{from:i,to:n,text:t,origin:r})}function $a(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function es(e,t,i,n){for(var r=0;r<e.length;++r){var s=e[r],l=!0;if(s.ranges){s.copied||(s=e[r]=s.deepCopy(),s.copied=!0);for(var p=0;p<s.ranges.length;p++)$a(s.ranges[p].anchor,t,i,n),$a(s.ranges[p].head,t,i,n);continue}for(var m=0;m<s.changes.length;++m){var x=s.changes[m];if(i<x.from.line)x.from=Te(x.from.line+n,x.from.ch),x.to=Te(x.to.line+n,x.to.ch);else if(t<=x.to.line){l=!1;break}}l||(e.splice(0,r+1),r=0)}}function ts(e,t){var i=t.from.line,n=t.to.line,r=t.text.length-(n-i)-1;es(e.done,i,n,r),es(e.undone,i,n,r)}function Mr(e,t,i,n){var r=t,s=t;return typeof t=="number"?s=He(e,c(e,t)):r=Pt(t),r==null?null:(n(s,r)&&e.cm&&Ei(e.cm,r,i),s)}function Rr(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}Rr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,n=e+t;i<n;++i){var r=this.lines[i];this.height-=r.height,co(r),Tn(r,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,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,i){for(var n=e+t;e<n;++e)if(i(this.lines[e]))return!0}};function Dr(e){this.children=e;for(var t=0,i=0,n=0;n<e.length;++n){var r=e[n];t+=r.chunkSize(),i+=r.height,r.parent=this}this.size=t,this.height=i,this.parent=null}Dr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var n=this.children[i],r=n.chunkSize();if(e<r){var s=Math.min(t,r-e),l=n.height;if(n.removeInner(e,s),this.height-=l-n.height,r==s&&(this.children.splice(i--,1),n.parent=null),(t-=s)==0)break;e=0}else e-=r}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Rr))){var p=[];this.collapse(p),this.children=[new Rr(p)],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,i){this.size+=t.length,this.height+=i;for(var n=0;n<this.children.length;++n){var r=this.children[n],s=r.chunkSize();if(e<=s){if(r.insertInner(e,t,i),r.lines&&r.lines.length>50){for(var l=r.lines.length%25+25,p=l;p<r.lines.length;){var m=new Rr(r.lines.slice(p,p+=25));r.height-=m.height,this.children.splice(++n,0,m),m.parent=this}r.lines=r.lines.slice(0,l),this.maybeSpill()}break}e-=s}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new Dr(t);if(e.parent){e.size-=i.size,e.height-=i.height;var r=Se(e.parent.children,e);e.parent.children.splice(r+1,0,i)}else{var n=new Dr(e.children);n.parent=e,e.children=[n,i],e=n}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var n=0;n<this.children.length;++n){var r=this.children[n],s=r.chunkSize();if(e<s){var l=Math.min(t,s-e);if(r.iterN(e,l,i))return!0;if((t-=l)==0)break;e=0}else e-=s}}};var Tr=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};Tr.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=Pt(i);if(n==null||!t)return;for(var r=0;r<t.length;++r)t[r]==this&&t.splice(r--,1);t.length||(i.widgets=null);var s=gr(this);cn(i,Math.max(0,i.height-s)),e&&(Qn(e,function(){ns(e,i,-s),Ei(e,n,"widget")}),Tn(e,"lineWidgetCleared",e,this,n))},Tr.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var r=gr(this)-t;if(!r)return;Vn(this.doc,n)||cn(n,n.height+r),i&&Qn(i,function(){i.curOp.forceUpdate=!0,ns(i,n,r),Tn(i,"lineWidgetChanged",i,e,Pt(n))})},$(Tr);function ns(e,t,i){ai(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Mo(e,i)}function xl(e,t,i,n){var r=new Tr(e,i,n),s=e.cm;return s&&r.noHScroll&&(s.display.alignWidgets=!0),Mr(e,t,"widget",function(l){var p=l.widgets||(l.widgets=[]);if(r.insertAt==null?p.push(r):p.splice(Math.min(p.length-1,Math.max(0,r.insertAt)),0,r),r.line=l,s&&!Vn(e,l)){var m=ai(l)<e.scrollTop;cn(l,l.height+gr(r)),m&&Mo(s,r.height),s.curOp.forceUpdate=!0}return!0}),s&&Tn(s,"lineWidgetAdded",s,r,typeof t=="number"?t:Pt(t)),r}var is=0,Mi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++is};Mi.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&_i(e),Q(this,"clear")){var i=this.find();i&&Tn(this,"clear",i.from,i.to)}for(var n=null,r=null,s=0;s<this.lines.length;++s){var l=this.lines[s],p=ri(l.markedSpans,this);e&&!this.collapsed?Ei(e,Pt(l),"text"):e&&(p.to!=null&&(r=Pt(l)),p.from!=null&&(n=Pt(l))),l.markedSpans=mi(l.markedSpans,p),p.from==null&&this.collapsed&&!Vn(this.doc,l)&&e&&cn(l,Yi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var m=0;m<this.lines.length;++m){var x=jn(this.lines[m]),P=Ki(x);P>e.display.maxLineLength&&(e.display.maxLine=x,e.display.maxLineLength=P,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&_n(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qa(e.doc)),e&&Tn(e,"markerCleared",e,this,n,r),t&&Fi(e),this.parent&&this.parent.clear()},Mi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,r=0;r<this.lines.length;++r){var s=this.lines[r],l=ri(s.markedSpans,this);if(l.from!=null&&(i=Te(t?s:Pt(s),l.from),e==-1))return i;if(l.to!=null&&(n=Te(t?s:Pt(s),l.to),e==1))return n}return i&&{from:i,to:n}},Mi.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;if(!t||!n)return;Qn(n,function(){var r=t.line,s=Pt(t.line),l=mo(n,s);if(l&&(sa(l),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Vn(i.doc,r)&&i.height!=null){var p=i.height;i.height=null;var m=gr(i)-p;m&&cn(r,r.height+m)}Tn(n,"markerChanged",n,e)})},Mi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Se(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Mi.prototype.detachLine=function(e){if(this.lines.splice(Se(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},$(Mi);function rr(e,t,i,n,r){if(n&&n.shared)return El(e,t,i,n,r);if(e.cm&&!e.cm.curOp)return Sn(e.cm,rr)(e,t,i,n,r);var s=new Mi(e,r),l=ct(t,i);if(n&&y(n,s,!1),l>0||l==0&&s.clearWhenEmpty!==!1)return s;if(s.replacedWith&&(s.collapsed=!0,s.widgetNode=ue("span",[s.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||s.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(s.widgetNode.insertLeft=!0)),s.collapsed){if(gn(e,t.line,t,i,s)||t.line!=i.line&&gn(e,i.line,t,i,s))throw new Error("Inserting collapsed marker partially overlapping an existing one");Gn()}s.addToHistory&&_a(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var p=t.line,m=e.cm,x;if(e.iter(p,i.line+1,function(H){m&&s.collapsed&&!m.options.lineWrapping&&jn(H)==m.display.maxLine&&(x=!0),s.collapsed&&p!=t.line&&cn(H,0),ci(H,new bi(s,p==t.line?t.ch:null,p==i.line?i.ch:null)),++p}),s.collapsed&&e.iter(t.line,i.line+1,function(H){Vn(e,H)&&cn(H,0)}),s.clearOnEnter&&Ee(s,"beforeCursorEnter",function(){return s.clear()}),s.readOnly&&(Zn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),s.collapsed&&(s.id=++is,s.atomic=!0),m){if(x&&(m.curOp.updateMaxLine=!0),s.collapsed)_n(m,t.line,i.line+1);else if(s.className||s.startStyle||s.endStyle||s.css||s.attributes||s.title)for(var P=t.line;P<=i.line;P++)Ei(m,P,"text");s.atomic&&Qa(m.doc),Tn(m,"markerAdded",m,s)}return s}var Lr=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};Lr.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Tn(this,"clear")},Lr.prototype.find=function(e,t){return this.primary.find(e,t)},$(Lr);function El(e,t,i,n,r){n=y(n),n.shared=!1;var s=[rr(e,t,i,n,r)],l=s[0],p=n.widgetNode;return ki(e,function(m){p&&(n.widgetNode=p.cloneNode(!0)),s.push(rr(m,o(m,t),o(m,i),n,r));for(var x=0;x<m.linked.length;++x)if(m.linked[x].isParent)return;l=ze(s)}),new Lr(s,l)}function rs(e){return e.findMarks(Te(e.first,0),e.clipPos(Te(e.lastLine())),function(t){return t.parent})}function Al(e,t){for(var i=0;i<t.length;i++){var n=t[i],r=n.find(),s=e.clipPos(r.from),l=e.clipPos(r.to);if(ct(s,l)){var p=rr(e,s,l,n.primary,n.primary.type);n.markers.push(p),p.parent=n}}}function wl(e){for(var t=function(n){var r=e[n],s=[r.primary.doc];ki(r.primary.doc,function(m){return s.push(m)});for(var l=0;l<r.markers.length;l++){var p=r.markers[l];Se(s,p.doc)==-1&&(p.parent=null,r.markers.splice(l--,1))}},i=0;i<e.length;i++)t(i)}var Sl=0,Fn=function(e,t,i,n,r){if(!(this instanceof Fn))return new Fn(e,t,i,n,r);i==null&&(i=0),Dr.call(this,[new Rr([new Ii("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var s=Te(i,0);this.sel=wi(s),this.history=new Zr(null),this.id=++Sl,this.modeOption=t,this.lineSep=n,this.direction=r=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Po(this,{from:s,to:s,text:e}),In(this,wi(s),We)};Fn.prototype=U(Dr.prototype,{constructor:Fn,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,n=0;n<t.length;++n)i+=t[n].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Dt(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:kn(function(e){var t=Te(this.first,0),i=this.first+this.size-1;nr(this,{from:t,to:Te(i,He(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&br(this.cm,0,0),In(this,wi(t),We)}),replaceRange:function(e,t,i,n){t=o(this,t),i=i?o(this,i):t,ir(this,e,t,i,n)},getRange:function(e,t,i){var n=Qt(this,o(this,e),o(this,t));return i===!1?n:n.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Et(this,e))return He(this,e)},getLineNumber:function(e){return Pt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=He(this,e)),jn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return o(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:kn(function(e,t,i){Ha(this,o(this,typeof e=="number"?Te(e,t||0):e),null,i)}),setSelection:kn(function(e,t,i){Ha(this,o(this,e),o(this,t||e),i)}),extendSelection:kn(function(e,t,i){$r(this,o(this,e),t&&o(this,t),i)}),extendSelections:kn(function(e,t){za(this,u(this,e),t)}),extendSelectionsBy:kn(function(e,t){var i=Ye(this.sel.ranges,e);za(this,u(this,i),t)}),setSelections:kn(function(e,t,i){if(!e.length)return;for(var n=[],r=0;r<e.length;r++)n[r]=new tn(o(this,e[r].anchor),o(this,e[r].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),In(this,li(this.cm,n,t),i)}),addSelection:kn(function(e,t,i){var n=this.sel.ranges.slice(0);n.push(new tn(o(this,e),o(this,t||e))),In(this,li(this.cm,n,n.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,n=0;n<t.length;n++){var r=Qt(this,t[n].from(),t[n].to());i=i?i.concat(r):r}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,n=0;n<i.length;n++){var r=Qt(this,i[n].from(),i[n].to());e!==!1&&(r=r.join(e||this.lineSeparator())),t[n]=r}return t},replaceSelection:function(e,t,i){for(var n=[],r=0;r<this.sel.ranges.length;r++)n[r]=e;this.replaceSelections(n,t,i||"+input")},replaceSelections:kn(function(e,t,i){for(var n=[],r=this.sel,s=0;s<r.ranges.length;s++){var l=r.ranges[s];n[s]={from:l.from(),to:l.to(),text:this.splitLines(e[s]),origin:i}}for(var p=t&&t!="end"&&dl(this,n,t),m=n.length-1;m>=0;m--)nr(this,n[m]);p?Ga(this,p):this.cm&&qi(this.cm)}),undo:kn(function(){no(this,"undo")}),redo:kn(function(){no(this,"redo")}),undoSelection:kn(function(){no(this,"undo",!0)}),redoSelection:kn(function(){no(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=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||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new Zr(this.history.maxGeneration),ki(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:er(this.history.done),undone:er(this.history.undone)}},setHistory:function(e){var t=this.history=new Zr(this.history.maxGeneration);t.done=er(e.done.slice(0),null,!0),t.undone=er(e.undone.slice(0),null,!0)},setGutterMarker:kn(function(e,t,i){return Mr(this,e,"gutter",function(n){var r=n.gutterMarkers||(n.gutterMarkers={});return r[t]=i,!i&&Pe(r)&&(n.gutterMarkers=null),!0})}),clearGutter:kn(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&Mr(t,i,"gutter",function(){return i.gutterMarkers[e]=null,Pe(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Et(this,e))return null;if(t=e,e=He(this,e),!e)return null}else if(t=Pt(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:kn(function(e,t,i){return Mr(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]=i;else{if(ge(i).test(n[r]))return!1;n[r]+=" "+i}return!0})}),removeLineClass:kn(function(e,t,i){return Mr(this,e,t=="gutter"?"gutter":"class",function(n){var r=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",s=n[r];if(s)if(i==null)n[r]=null;else{var l=s.match(ge(i));if(!l)return!1;var p=l.index+l[0].length;n[r]=s.slice(0,l.index)+(!l.index||p==s.length?"":" ")+s.slice(p)||null}else return!1;return!0})}),addLineWidget:kn(function(e,t,i){return xl(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return rr(this,o(this,e),o(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=o(this,e),rr(this,e,e,i,"bookmark")},findMarksAt:function(e){e=o(this,e);var t=[],i=He(this,e.line).markedSpans;if(i)for(var n=0;n<i.length;++n){var r=i[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,i){e=o(this,e),t=o(this,t);var n=[],r=e.line;return this.iter(e.line,t.line+1,function(s){var l=s.markedSpans;if(l)for(var p=0;p<l.length;p++){var m=l[p];!(m.to!=null&&r==e.line&&e.ch>=m.to||m.from==null&&r!=e.line||m.from!=null&&r==t.line&&m.from>=t.ch)&&(!i||i(m.marker))&&n.push(m.marker.parent||m.marker)}++r}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;n<i.length;++n)i[n].from!=null&&e.push(i[n].marker)}),e},posFromIndex:function(e){var t,i=this.first,n=this.lineSeparator().length;return this.iter(function(r){var s=r.text.length+n;if(s>e)return t=e,!0;e-=s,++i}),o(this,Te(i,t))},indexFromPos:function(e){e=o(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+i}),t},copy:function(e){var t=new Fn(Dt(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,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var n=new Fn(Dt(this,t,i),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}],Al(n,rs(this)),n},unlinkDoc:function(e){if(e instanceof hn&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc!=e)continue;this.linked.splice(t,1),e.unlinkDoc(this),wl(rs(this));break}if(e.history==this.history){var n=[e.id];ki(e,function(r){return n.push(r.id)},!0),e.history=new Zr(null),e.history.done=er(this.history.done,n),e.history.undone=er(this.history.undone,n)}},iterLinkedDocs:function(e){ki(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Mt(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:kn(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&fl(this.cm)})}),Fn.prototype.eachLine=Fn.prototype.iter;var os=0;function kl(e){var t=this;if(as(t),_e(t,e)||gi(t.display,e))return;S(e),W&&(os=+new Date);var i=Pi(t,e,!0),n=e.dataTransfer.files;if(!i||t.isReadOnly())return;if(n&&n.length&&window.FileReader&&window.File)for(var r=n.length,s=Array(r),l=0,p=function(){++l==r&&Sn(t,function(){i=o(t.doc,i);var ce={from:i,to:i,text:t.doc.splitLines(s.filter(function(Re){return Re!=null}).join(t.doc.lineSeparator())),origin:"paste"};nr(t.doc,ce),Ga(t.doc,wi(o(t.doc,i),o(t.doc,Si(ce))))})()},m=function(ce,Re){if(t.options.allowDropFileTypes&&Se(t.options.allowDropFileTypes,ce.type)==-1){p();return}var Fe=new FileReader;Fe.onerror=function(){return p()},Fe.onload=function(){var Qe=Fe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Qe)){p();return}s[Re]=Qe,p()},Fe.readAsText(ce)},x=0;x<n.length;x++)m(n[x],x);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var P=e.dataTransfer.getData("Text");if(P){var H;if(t.state.draggingText&&!t.state.draggingText.copy&&(H=t.listSelections()),eo(t.doc,wi(i,i)),H)for(var pe=0;pe<H.length;++pe)ir(t.doc,"",H[pe].anchor,H[pe].head,"drag");t.replaceSelection(P,"around","paste"),t.display.input.focus()}}catch(ce){}}}function Ml(e,t){if(W&&(!e.state.draggingText||+new Date-os<100)){z(t);return}if(_e(e,t)||gi(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!k){var i=R("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),C&&i.parentNode.removeChild(i)}}function Rl(e,t){var i=Pi(e,t);if(!i)return;var n=document.createDocumentFragment();ya(e,i,n),e.display.dragCursor||(e.display.dragCursor=R("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,n)}function as(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ss(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&i.push(r)}i.length&&i[0].operation(function(){for(var s=0;s<i.length;s++)e(i[s])})}var ls=!1;function Dl(){if(ls)return;Tl(),ls=!0}function Tl(){var e;Ee(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,ss(Ll)},100))}),Ee(window,"blur",function(){return ss(Zi)})}function Ll(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ri={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"},Ir=0;Ir<10;Ir++)Ri[Ir+48]=Ri[Ir+96]=String(Ir);for(var io=65;io<=90;io++)Ri[io]=String.fromCharCode(io);for(var Or=1;Or<=12;Or++)Ri[Or+111]=Ri[Or+63235]="F"+Or;var vi={};vi.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"},vi.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"},vi.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"},vi.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"]},vi.default=w?vi.macDefault:vi.pcDefault;function Il(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,r,s,l=0;l<t.length-1;l++){var p=t[l];if(/^(cmd|meta|m)$/i.test(p))s=!0;else if(/^a(lt)?$/i.test(p))i=!0;else if(/^(c|ctrl|control)$/i.test(p))n=!0;else if(/^s(hift)?$/i.test(p))r=!0;else throw new Error("Unrecognized modifier name: "+p)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),s&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ol(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(n=="..."){delete e[i];continue}for(var r=Ye(i.split(" "),Il),s=0;s<r.length;s++){var l=void 0,p=void 0;s==r.length-1?(p=r.join(" "),l=n):(p=r.slice(0,s+1).join(" "),l="...");var m=t[p];if(!m)t[p]=l;else if(m!=l)throw new Error("Inconsistent bindings for "+p)}delete e[i]}for(var x in t)e[x]=t[x];return e}function or(e,t,i,n){t=ro(t);var r=t.call?t.call(e,n):t[e];if(r===!1)return"nothing";if(r==="...")return"multi";if(r!=null&&i(r))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return or(e,t.fallthrough,i,n);for(var s=0;s<t.fallthrough.length;s++){var l=or(e,t.fallthrough[s],i,n);if(l)return l}}}function us(e){var t=typeof e=="string"?e:Ri[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function cs(e,t,i){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(oe?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(oe?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function hs(e,t){if(C&&e.keyCode==34&&e.char)return!1;var i=Ri[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),cs(i,e,t))}function ro(e){return typeof e=="string"?vi[e]:e}function ar(e,t){for(var i=e.doc.sel.ranges,n=[],r=0;r<i.length;r++){for(var s=t(i[r]);n.length&&ct(s.from,ze(n).to)<=0;){var l=n.pop();if(ct(l.from,s.from)<0){s.from=l.from;break}}n.push(s)}Qn(e,function(){for(var p=n.length-1;p>=0;p--)ir(e.doc,"",n[p].from,n[p].to,"+delete");qi(e)})}function _o(e,t,i){var n=Ge(e.text,t+i,i);return n<0||n>e.text.length?null:n}function Fo(e,t,i){var n=_o(e,t.ch,i);return n==null?null:new Te(t.line,n,i<0?"after":"before")}function Wo(e,t,i,n,r){if(e){t.doc.direction=="rtl"&&(r=-r);var s=pt(i,t.doc.direction);if(s){var l=r<0?ze(s):s[0],p=r<0==(l.level==1),m=p?"after":"before",x;if(l.level>0||t.doc.direction=="rtl"){var P=Ji(t,i);x=r<0?i.text.length-1:0;var H=fi(t,P,x).top;x=lt(function(pe){return fi(t,P,pe).top==H},r<0==(l.level==1)?l.from:l.to-1,x),m=="before"&&(x=_o(i,x,1))}else x=r<0?l.to:l.from;return new Te(n,x,m)}}return new Te(n,r<0?i.text.length:0,r<0?"before":"after")}function Nl(e,t,i,n){var r=pt(t,e.doc.direction);if(!r)return Fo(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var s=Ve(r,i.ch,i.sticky),l=r[s];if(e.doc.direction=="ltr"&&l.level%2==0&&(n>0?l.to>i.ch:l.from<i.ch))return Fo(t,i,n);var p=function(et,ft){return _o(t,et instanceof Te?et.ch:et,ft)},m,x=function(et){return e.options.lineWrapping?(m=m||Ji(e,t),pa(e,t,m,et)):{begin:0,end:t.text.length}},P=x(i.sticky=="before"?p(i,-1):i.ch);if(e.doc.direction=="rtl"||l.level==1){var H=l.level==1==n<0,pe=p(i,H?1:-1);if(pe!=null&&(H?pe<=l.to&&pe<=P.end:pe>=l.from&&pe>=P.begin)){var ce=H?"before":"after";return new Te(i.line,pe,ce)}}var Re=function(et,ft,tt){for(var bt=function(ln,Mn){return Mn?new Te(i.line,p(ln,1),"before"):new Te(i.line,ln,"after")};et>=0&&et<r.length;et+=ft){var Rt=r[et],St=ft>0==(Rt.level!=1),_t=St?tt.begin:p(tt.end,-1);if(Rt.from<=_t&&_t<Rt.to)return bt(_t,St);if(_t=St?Rt.from:p(Rt.to,-1),tt.begin<=_t&&_t<tt.end)return bt(_t,St)}},Fe=Re(s+n,n,P);if(Fe)return Fe;var Qe=n>0?P.end:p(P.begin,-1);return Qe!=null&&!(n>0&&Qe==t.text.length)&&(Fe=Re(n>0?0:r.length-1,n,x(Qe)),Fe)?Fe:null}var Nr={selectAll:Ya,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),We)},killLine:function(e){return ar(e,function(t){if(t.empty()){var i=He(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:Te(t.head.line+1,0)}:{from:t.head,to:Te(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return ar(e,function(t){return{from:Te(t.from().line,0),to:o(e.doc,Te(t.to().line+1,0))}})},delLineLeft:function(e){return ar(e,function(t){return{from:Te(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return ar(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return ar(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"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(Te(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Te(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ds(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return fs(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Pl(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},Ie)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},Ie)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return n.ch<e.getLine(n.line).search(/\S/)?fs(e,t.head):n},Ie)},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=[],i=e.listSelections(),n=e.options.tabSize,r=0;r<i.length;r++){var s=i[r].from(),l=q(e.getLine(s.line),s.ch,n);t.push(Z(n-l%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Qn(e,function(){for(var t=e.listSelections(),i=[],n=0;n<t.length;n++){if(!t[n].empty())continue;var r=t[n].head,s=He(e.doc,r.line).text;if(s){if(r.ch==s.length&&(r=new Te(r.line,r.ch-1)),r.ch>0)r=new Te(r.line,r.ch+1),e.replaceRange(s.charAt(r.ch-1)+s.charAt(r.ch-2),Te(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var l=He(e.doc,r.line-1).text;l&&(r=new Te(r.line,1),e.replaceRange(s.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),Te(r.line-1,l.length-1),r,"+transpose"))}}i.push(new tn(r,r))}e.setSelections(i)})},newlineAndIndent:function(e){return Qn(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);qi(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ds(e,t){var i=He(e.doc,t),n=jn(i);return n!=i&&(t=Pt(n)),Wo(!0,e,n,t,1)}function Pl(e,t){var i=He(e.doc,t),n=Vi(i);return n!=i&&(t=Pt(n)),Wo(!0,e,i,t,-1)}function fs(e,t){var i=ds(e,t.line),n=He(e.doc,i.line),r=pt(n,e.doc.direction);if(!r||r[0].level==0){var s=Math.max(i.ch,n.text.search(/\S/)),l=t.line==i.line&&t.ch<=s&&t.ch;return Te(i.line,l?0:s,i.sticky)}return i}function oo(e,t,i){if(typeof t=="string"&&(t=Nr[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),r=t(e)!=at}finally{e.display.shift=n,e.state.suppressEdits=!1}return r}function Bl(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var r=or(t,e.state.keyMaps[n],i,e);if(r)return r}return e.options.extraKeys&&or(t,e.options.extraKeys,i,e)||or(t,e.options.keyMap,i,e)}var jl=new Ae;function Pr(e,t,i,n){var r=e.state.keySeq;if(r){if(us(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:jl.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),ps(e,r+" "+t,i,n))return!0}return ps(e,t,i,n)}function ps(e,t,i,n){var r=Bl(e,t,n);return r=="multi"&&(e.state.keySeq=t),r=="handled"&&Tn(e,"keyHandled",e,t,i),(r=="handled"||r=="multi")&&(S(i),wo(e)),!!r}function ms(e,t){var i=hs(t,!0);return i?t.shiftKey&&!e.state.keySeq?Pr(e,"Shift-"+i,t,function(n){return oo(e,n,!0)})||Pr(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return oo(e,n)}):Pr(e,i,t,function(n){return oo(e,n)}):!1}function Ul(e,t,i){return Pr(e,"'"+i+"'",t,function(n){return oo(e,n,!0)})}var zo=null;function gs(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=X(),_e(t,e))return;W&&Y<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=ms(t,e);C&&(zo=n?i:null,!n&&i==88&&!Jt&&(w?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),re&&!w&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&_l(t)}function _l(e){var t=e.display.lineDiv;ie(t,"CodeMirror-crosshair");function i(n){(n.keyCode==18||!n.altKey)&&(xe(t,"CodeMirror-crosshair"),ut(document,"keyup",i),ut(document,"mouseover",i))}Ee(document,"keyup",i),Ee(document,"mouseover",i)}function vs(e){e.keyCode==16&&(this.doc.sel.shift=!1),_e(this,e)}function ys(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(gi(t.display,e)||_e(t,e)||e.ctrlKey&&!e.altKey||w&&e.metaKey)return;var i=e.keyCode,n=e.charCode;if(C&&i==zo){zo=null,S(e);return}if(C&&(!e.which||e.which<10)&&ms(t,e))return;var r=String.fromCharCode(n==null?i:n);if(r=="\b")return;if(Ul(t,e,r))return;t.display.input.onKeyPress(e)}var Fl=400,Ho=function(e,t,i){this.time=e,this.pos=t,this.button=i};Ho.prototype.compare=function(e,t,i){return this.time+Fl>e&&ct(t,this.pos)==0&&i==this.button};var Br,jr;function Wl(e,t){var i=+new Date;return jr&&jr.compare(i,e,t)?(Br=jr=null,"triple"):Br&&Br.compare(i,e,t)?(jr=new Ho(i,e,t),Br=null,"double"):(Br=new Ho(i,e,t),jr=null,"single")}function bs(e){var t=this,i=t.display;if(_e(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,gi(i,e)){O||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Go(t,e))return;var n=Pi(t,e),r=ae(e),s=n?Wl(n,r):"single";if(window.focus(),r==1&&t.state.selectingText&&t.state.selectingText(e),n&&zl(t,r,n,s,e))return;r==1?n?Gl(t,n,s,e):Ce(e)==i.scroller&&S(e):r==2?(n&&$r(t.doc,n),setTimeout(function(){return i.input.focus()},20)):r==3&&(Me?t.display.input.onContextMenu(e):Ca(t))}function zl(e,t,i,n,r){var s="Click";return n=="double"?s="Double"+s:n=="triple"&&(s="Triple"+s),s=(t==1?"Left":t==2?"Middle":"Right")+s,Pr(e,cs(s,r),r,function(l){if(typeof l=="string"&&(l=Nr[l]),!l)return!1;var p=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),p=l(e,i)!=at}finally{e.state.suppressEdits=!1}return p})}function Hl(e,t,i){var n=e.getOption("configureMouse"),r=n?n(e,t,i):{};if(r.unit==null){var s=I?i.shiftKey&&i.metaKey:i.altKey;r.unit=s?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(r.extend==null||e.doc.extend)&&(r.extend=e.doc.extend||i.shiftKey),r.addNew==null&&(r.addNew=w?i.metaKey:i.ctrlKey),r.moveOnDrag==null&&(r.moveOnDrag=!(w?i.altKey:i.ctrlKey)),r}function Gl(e,t,i,n){W?setTimeout(D(ba,e),0):e.curOp.focus=X();var r=Hl(e,i,n),s=e.doc.sel,l;e.options.dragDrop&&je&&!e.isReadOnly()&&i=="single"&&(l=s.contains(t))>-1&&(ct((l=s.ranges[l]).from(),t)<0||t.xRel>0)&&(ct(l.to(),t)>0||t.xRel<0)?Vl(e,n,t,r):Ql(e,n,t,r)}function Vl(e,t,i,n){var r=e.display,s=!1,l=Sn(e,function(x){O&&(r.scroller.draggable=!1),e.state.draggingText=!1,ut(r.wrapper.ownerDocument,"mouseup",l),ut(r.wrapper.ownerDocument,"mousemove",p),ut(r.scroller,"dragstart",m),ut(r.scroller,"drop",l),s||(S(x),n.addNew||$r(e.doc,i,null,null,n.extend),O&&!k||W&&Y==9?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),p=function(x){s=s||Math.abs(t.clientX-x.clientX)+Math.abs(t.clientY-x.clientY)>=10},m=function(){return s=!0};O&&(r.scroller.draggable=!0),e.state.draggingText=l,l.copy=!n.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),Ee(r.wrapper.ownerDocument,"mouseup",l),Ee(r.wrapper.ownerDocument,"mousemove",p),Ee(r.scroller,"dragstart",m),Ee(r.scroller,"drop",l),Ca(e),setTimeout(function(){return r.input.focus()},20)}function Cs(e,t,i){if(i=="char")return new tn(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new tn(Te(t.line,0),o(e.doc,Te(t.line+1,0)));var n=i(e,t);return new tn(n.from,n.to)}function Ql(e,t,i,n){var r=e.display,s=e.doc;S(t);var l,p,m=s.sel,x=m.ranges;if(n.addNew&&!n.extend?(p=s.sel.contains(i),p>-1?l=x[p]:l=new tn(i,i)):(l=s.sel.primary(),p=s.sel.primIndex),n.unit=="rectangle")n.addNew||(l=new tn(i,i)),i=Pi(e,t,!0,!0),p=-1;else{var P=Cs(e,i,n.unit);n.extend?l=jo(l,P.anchor,P.head,n.extend):l=P}n.addNew?p==-1?(p=x.length,In(s,li(e,x.concat([l]),p),{scroll:!1,origin:"*mouse"})):x.length>1&&x[p].empty()&&n.unit=="char"&&!n.extend?(In(s,li(e,x.slice(0,p).concat(x.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),m=s.sel):Uo(s,p,l,Le):(p=0,In(s,new ei([l],0),Le),m=s.sel);var H=i;function pe(tt){if(ct(H,tt)==0)return;if(H=tt,n.unit=="rectangle"){for(var bt=[],Rt=e.options.tabSize,St=q(He(s,i.line).text,i.ch,Rt),_t=q(He(s,tt.line).text,tt.ch,Rt),ln=Math.min(St,_t),Mn=Math.max(St,_t),fn=Math.min(i.line,tt.line),Kn=Math.min(e.lastLine(),Math.max(i.line,tt.line));fn<=Kn;fn++){var Wn=He(s,fn).text,Cn=Ne(Wn,ln,Rt);ln==Mn?bt.push(new tn(Te(fn,Cn),Te(fn,Cn))):Wn.length>Cn&&bt.push(new tn(Te(fn,Cn),Te(fn,Ne(Wn,Mn,Rt))))}bt.length||bt.push(new tn(i,i)),In(s,li(e,m.ranges.slice(0,p).concat(bt),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(tt)}else{var zn=l,Ln=Cs(e,tt,n.unit),An=zn.anchor,xn;ct(Ln.anchor,An)>0?(xn=Ln.head,An=an(zn.from(),Ln.anchor)):(xn=Ln.anchor,An=nn(zn.to(),Ln.head));var mn=m.ranges.slice(0);mn[p]=Kl(e,new tn(o(s,An),xn)),In(s,li(e,mn,p),Le)}}var ce=r.wrapper.getBoundingClientRect(),Re=0;function Fe(tt){var bt=++Re,Rt=Pi(e,tt,!0,n.unit=="rectangle");if(!Rt)return;if(ct(Rt,H)!=0){e.curOp.focus=X(),pe(Rt);var St=Kr(r,s);(Rt.line>=St.to||Rt.line<St.from)&&setTimeout(Sn(e,function(){Re==bt&&Fe(tt)}),150)}else{var _t=tt.clientY<ce.top?-20:tt.clientY>ce.bottom?20:0;_t&&setTimeout(Sn(e,function(){if(Re!=bt)return;r.scroller.scrollTop+=_t,Fe(tt)}),50)}}function Qe(tt){e.state.selectingText=!1,Re=Infinity,tt&&(S(tt),r.input.focus()),ut(r.wrapper.ownerDocument,"mousemove",et),ut(r.wrapper.ownerDocument,"mouseup",ft),s.history.lastSelOrigin=null}var et=Sn(e,function(tt){tt.buttons===0||!ae(tt)?Qe(tt):Fe(tt)}),ft=Sn(e,Qe);e.state.selectingText=ft,Ee(r.wrapper.ownerDocument,"mousemove",et),Ee(r.wrapper.ownerDocument,"mouseup",ft)}function Kl(e,t){var i=t.anchor,n=t.head,r=He(e.doc,i.line);if(ct(i,n)==0&&i.sticky==n.sticky)return t;var s=pt(r);if(!s)return t;var l=Ve(s,i.ch,i.sticky),p=s[l];if(p.from!=i.ch&&p.to!=i.ch)return t;var m=l+(p.from==i.ch==(p.level!=1)?0:1);if(m==0||m==s.length)return t;var x;if(n.line!=i.line)x=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var P=Ve(s,n.ch,n.sticky),H=P-l||(n.ch-i.ch)*(p.level==1?-1:1);P==m-1||P==m?x=H<0:x=H>0}var pe=s[m+(x?-1:0)],ce=x==(pe.level==1),Re=ce?pe.from:pe.to,Fe=ce?"after":"before";return i.ch==Re&&i.sticky==Fe?t:new tn(new Te(i.line,Re,Fe),n)}function xs(e,t,i,n){var r,s;if(t.touches)r=t.touches[0].clientX,s=t.touches[0].clientY;else try{r=t.clientX,s=t.clientY}catch(pe){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&S(t);var l=e.display,p=l.lineDiv.getBoundingClientRect();if(s>p.bottom||!Q(e,i))return j(t);s-=p.top-l.viewOffset;for(var m=0;m<e.display.gutterSpecs.length;++m){var x=l.gutters.childNodes[m];if(x&&x.getBoundingClientRect().right>=r){var P=dn(e.doc,s),H=e.display.gutterSpecs[m];return we(e,i,e,P,H.className,t),j(t)}}}function Go(e,t){return xs(e,t,"gutterClick",!0)}function Es(e,t){if(gi(e.display,t)||Jl(e,t))return;if(_e(e,t,"contextmenu"))return;Me||e.display.input.onContextMenu(t)}function Jl(e,t){return Q(e,"gutterContextMenu")?xs(e,t,"gutterContextMenu",!1):!1}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),vr(e)}var sr={toString:function(){return"CodeMirror.Init"}},ws={},ao={};function Yl(e){var t=e.optionHandlers;function i(n,r,s,l){e.defaults[n]=r,s&&(t[n]=l?function(p,m,x){x!=sr&&s(p,m,x)}:s)}e.defineOption=i,e.Init=sr,i("value","",function(n,r){return n.setValue(r)},!0),i("mode",null,function(n,r){n.doc.modeOption=r,No(n)},!0),i("indentUnit",2,No,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Sr(n),vr(n),_n(n)},!0),i("lineSeparator",null,function(n,r){if(n.doc.lineSep=r,!r)return;var s=[],l=n.doc.first;n.doc.iter(function(m){for(var x=0;;){var P=m.text.indexOf(r,x);if(P==-1)break;x=P+r.length,s.push(Te(l,P))}l++});for(var p=s.length-1;p>=0;p--)ir(n.doc,r,s[p],Te(s[p].line,s[p].ch+r.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,r,s){n.state.specialChars=new RegExp(r.source+(r.test(" ")?"":"| "),"g"),s!=sr&&n.refresh()}),i("specialCharPlaceholder",Xt,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,r){return n.getInputField().spellcheck=r},!0),i("autocorrect",!1,function(n,r){return n.getInputField().autocorrect=r},!0),i("autocapitalize",!1,function(n,r){return n.getInputField().autocapitalize=r},!0),i("rtlMoveVisually",!le),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){As(n),wr(n)},!0),i("keyMap","default",function(n,r,s){var l=ro(r),p=s!=sr&&ro(s);p&&p.detach&&p.detach(n,l),l.attach&&l.attach(n,p||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(n,r){n.display.gutterSpecs=Io(r,n.options.lineNumbers),wr(n)},!0),i("fixedGutter",!0,function(n,r){n.display.gutters.style.left=r?Eo(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return $i(n)},!0),i("scrollbarStyle","native",function(n){ka(n),$i(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,r){n.display.gutterSpecs=Io(n.options.gutters,r),wr(n)},!0),i("firstLineNumber",1,wr,!0),i("lineNumberFormatter",function(n){return n},wr,!0),i("showCursorWhenSelecting",!1,yr,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,r){r=="nocursor"&&(Zi(n),n.display.input.blur()),n.display.input.readOnlyChanged(r)}),i("screenReaderLabel",null,function(n,r){r=r===""?null:r,n.display.input.screenReaderLabelChanged(r)}),i("disableInput",!1,function(n,r){r||n.display.input.reset()},!0),i("dragDrop",!0,Xl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,yr,!0),i("singleCursorHeightPerLine",!0,yr,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Sr,!0),i("addModeClass",!1,Sr,!0),i("pollInterval",100),i("undoDepth",200,function(n,r){return n.doc.history.undoDepth=r}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Sr,!0),i("moveInputWithCursor",!0,function(n,r){r||n.display.input.resetPosition()}),i("tabindex",null,function(n,r){return n.display.input.getField().tabIndex=r||""}),i("autofocus",null),i("direction","ltr",function(n,r){return n.doc.setDirection(r)},!0),i("phrases",null)}function Xl(e,t,i){var n=i&&i!=sr;if(!t!=!n){var r=e.display.dragFunctions,s=t?Ee:ut;s(e.display.scroller,"dragstart",r.start),s(e.display.scroller,"dragenter",r.enter),s(e.display.scroller,"dragover",r.over),s(e.display.scroller,"dragleave",r.leave),s(e.display.scroller,"drop",r.drop)}}function Zl(e){e.options.lineWrapping?(ie(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(xe(e.display.wrapper,"CodeMirror-wrap"),Fr(e)),Ao(e),_n(e),vr(e),setTimeout(function(){return $i(e)},100)}function hn(e,t){var i=this;if(!(this instanceof hn))return new hn(e,t);this.options=t=t?y(t):{},y(ws,t,!1);var n=t.value;typeof n=="string"?n=new Fn(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var r=new hn.inputStyles[t.inputStyle](this),s=this.display=new cl(e,n,r,t);s.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ka(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 Ae,keySeq:null,specialChars:null},t.autofocus&&!v&&s.input.focus(),W&&Y<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Dl(),_i(this),this.curOp.forceUpdate=!0,Ba(this,n),t.autofocus&&!v||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&So(i)},20):Zi(this);for(var l in ao)ao.hasOwnProperty(l)&&ao[l](this,t[l],sr);Da(this),t.finishInit&&t.finishInit(this);for(var p=0;p<Vo.length;++p)Vo[p](this);Fi(this),O&&t.lineWrapping&&getComputedStyle(s.lineDiv).textRendering=="optimizelegibility"&&(s.lineDiv.style.textRendering="auto")}hn.defaults=ws,hn.optionHandlers=ao;function ql(e){var t=e.display;Ee(t.scroller,"mousedown",Sn(e,bs)),W&&Y<11?Ee(t.scroller,"dblclick",Sn(e,function(m){if(_e(e,m))return;var x=Pi(e,m);if(!x||Go(e,m)||gi(e.display,m))return;S(m);var P=e.findWordAt(x);$r(e.doc,P.anchor,P.head)})):Ee(t.scroller,"dblclick",function(m){return _e(e,m)||S(m)}),Ee(t.scroller,"contextmenu",function(m){return Es(e,m)}),Ee(t.input.getField(),"contextmenu",function(m){t.scroller.contains(m.target)||Es(e,m)});var i,n={end:0};function r(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function s(m){if(m.touches.length!=1)return!1;var x=m.touches[0];return x.radiusX<=1&&x.radiusY<=1}function l(m,x){if(x.left==null)return!0;var P=x.left-m.left,H=x.top-m.top;return P*P+H*H>20*20}Ee(t.scroller,"touchstart",function(m){if(!_e(e,m)&&!s(m)&&!Go(e,m)){t.input.ensurePolled(),clearTimeout(i);var x=+new Date;t.activeTouch={start:x,moved:!1,prev:x-n.end<=300?n:null},m.touches.length==1&&(t.activeTouch.left=m.touches[0].pageX,t.activeTouch.top=m.touches[0].pageY)}}),Ee(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ee(t.scroller,"touchend",function(m){var x=t.activeTouch;if(x&&!gi(t,m)&&x.left!=null&&!x.moved&&new Date-x.start<300){var P=e.coordsChar(t.activeTouch,"page"),H;!x.prev||l(x,x.prev)?H=new tn(P,P):!x.prev.prev||l(x,x.prev.prev)?H=e.findWordAt(P):H=new tn(Te(P.line,0),o(e.doc,Te(P.line+1,0))),e.setSelection(H.anchor,H.head),e.focus(),S(m)}r()}),Ee(t.scroller,"touchcancel",r),Ee(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Cr(e,t.scroller.scrollTop),ji(e,t.scroller.scrollLeft,!0),we(e,"scroll",e))}),Ee(t.scroller,"mousewheel",function(m){return Ia(e,m)}),Ee(t.scroller,"DOMMouseScroll",function(m){return Ia(e,m)}),Ee(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(m){_e(e,m)||z(m)},over:function(m){_e(e,m)||(Rl(e,m),z(m))},start:function(m){return Ml(e,m)},drop:Sn(e,kl),leave:function(m){_e(e,m)||as(e)}};var p=t.input.getField();Ee(p,"keyup",function(m){return vs.call(e,m)}),Ee(p,"keydown",Sn(e,gs)),Ee(p,"keypress",Sn(e,ys)),Ee(p,"focus",function(m){return So(e,m)}),Ee(p,"blur",function(m){return Zi(e,m)})}var Vo=[];hn.defineInitHook=function(e){return Vo.push(e)};function Ur(e,t,i,n){var r=e.doc,s;i==null&&(i="add"),i=="smart"&&(r.mode.indent?s=Ze(e,t).state:i="prev");var l=e.options.tabSize,p=He(r,t),m=q(p.text,null,l);p.stateAfter&&(p.stateAfter=null);var x=p.text.match(/^\s*/)[0],P;if(!n&&!/\S/.test(p.text))P=0,i="not";else if(i=="smart"&&(P=r.mode.indent(s,p.text.slice(x.length),p.text),P==at||P>150)){if(!n)return;i="prev"}i=="prev"?t>r.first?P=q(He(r,t-1).text,null,l):P=0:i=="add"?P=m+e.options.indentUnit:i=="subtract"?P=m-e.options.indentUnit:typeof i=="number"&&(P=m+i),P=Math.max(0,P);var H="",pe=0;if(e.options.indentWithTabs)for(var ce=Math.floor(P/l);ce;--ce)pe+=l,H+=" ";if(pe<P&&(H+=Z(P-pe)),H!=x)return ir(r,H,Te(t,0),Te(t,x.length),"+input"),p.stateAfter=null,!0;for(var Re=0;Re<r.sel.ranges.length;Re++){var Fe=r.sel.ranges[Re];if(Fe.head.line==t&&Fe.head.ch<x.length){var Qe=Te(t,x.length);Uo(r,Re,new tn(Qe,Qe));break}}}var ui=null;function so(e){ui=e}function Qo(e,t,i,n,r){var s=e.doc;e.display.shift=!1,n||(n=s.sel);var l=+new Date-200,p=r=="paste"||e.state.pasteIncoming>l,m=Mt(t),x=null;if(p&&n.ranges.length>1)if(ui&&ui.text.join(`
`)==t){if(n.ranges.length%ui.text.length==0){x=[];for(var P=0;P<ui.text.length;P++)x.push(s.splitLines(ui.text[P]))}}else m.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(x=Ye(m,function(et){return[et]}));for(var H=e.curOp.updateInput,pe=n.ranges.length-1;pe>=0;pe--){var ce=n.ranges[pe],Re=ce.from(),Fe=ce.to();ce.empty()&&(i&&i>0?Re=Te(Re.line,Re.ch-i):e.state.overwrite&&!p?Fe=Te(Fe.line,Math.min(He(s,Fe.line).text.length,Fe.ch+ze(m).length)):p&&ui&&ui.lineWise&&ui.text.join(`
`)==m.join(`
`)&&(Re=Fe=Te(Re.line,0)));var Qe={from:Re,to:Fe,text:x?x[pe%x.length]:m,origin:r||(p?"paste":e.state.cutIncoming>l?"cut":"+input")};nr(e.doc,Qe),Tn(e,"inputRead",e,Qe)}t&&!p&&ks(e,t),qi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=H),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ss(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Qn(t,function(){return Qo(t,i,0,null,"paste")}),!0}function ks(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var r=i.ranges[n];if(r.head.ch>100||n&&i.ranges[n-1].head.line==r.head.line)continue;var s=e.getModeAt(r.head),l=!1;if(s.electricChars){for(var p=0;p<s.electricChars.length;p++)if(t.indexOf(s.electricChars.charAt(p))>-1){l=Ur(e,r.head.line,"smart");break}}else s.electricInput&&(s.electricInput.test(He(e.doc,r.head.line).text.slice(0,r.head.ch))&&(l=Ur(e,r.head.line,"smart")));l&&Tn(e,"electricInput",e,r.head.line)}}function Ms(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var r=e.doc.sel.ranges[n].head.line,s={anchor:Te(r,0),head:Te(r+1,0)};i.push(s),t.push(e.getRange(s.anchor,s.head))}return{text:t,ranges:i}}function Rs(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function Ds(){var e=R("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=R("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return O?e.style.width="1000px":e.setAttribute("wrap","off"),L&&(e.style.border="1px solid black"),Rs(e),t}function $l(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,r){var s=this.options,l=s[n];if(s[n]==r&&n!="mode")return;s[n]=r,t.hasOwnProperty(n)&&Sn(this,t[n])(this,r,l),we(this,"optionChange",this,n)},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,r){this.state.keyMaps[r?"push":"unshift"](ro(n))},removeKeyMap:function(n){for(var r=this.state.keyMaps,s=0;s<r.length;++s)if(r[s]==n||r[s].name==n)return r.splice(s,1),!0},addOverlay:Nn(function(n,r){var s=n.token?n:e.getMode(this.options,n);if(s.startState)throw new Error("Overlays may not be stateful.");Ke(this.state.overlays,{mode:s,modeSpec:n,opaque:r&&r.opaque,priority:r&&r.priority||0},function(l){return l.priority}),this.state.modeGen++,_n(this)}),removeOverlay:Nn(function(n){for(var r=this.state.overlays,s=0;s<r.length;++s){var l=r[s].modeSpec;if(l==n||typeof n=="string"&&l.name==n){r.splice(s,1),this.state.modeGen++,_n(this);return}}}),indentLine:Nn(function(n,r,s){typeof r!="string"&&typeof r!="number"&&(r==null?r=this.options.smartIndent?"smart":"prev":r=r?"add":"subtract"),Et(this.doc,n)&&Ur(this,n,r,s)}),indentSelection:Nn(function(n){for(var r=this.doc.sel.ranges,s=-1,l=0;l<r.length;l++){var p=r[l];if(p.empty())p.head.line>s&&(Ur(this,p.head.line,n,!0),s=p.head.line,l==this.doc.sel.primIndex&&qi(this));else{var m=p.from(),x=p.to(),P=Math.max(s,m.line);s=Math.min(this.lastLine(),x.line-(x.ch?0:1))+1;for(var H=P;H<s;++H)Ur(this,H,n);var pe=this.doc.sel.ranges;m.ch==0&&r.length==pe.length&&pe[l].from().ch>0&&Uo(this.doc,l,new tn(m,pe[l].to()),We)}}}),getTokenAt:function(n,r){return sn(this,n,r)},getLineTokens:function(n,r){return sn(this,Te(n),r,!0)},getTokenTypeAt:function(n){n=o(this.doc,n);var r=Oe(this,He(this.doc,n.line)),s=0,l=(r.length-1)/2,p=n.ch,m;if(p==0)m=r[2];else for(;;){var x=s+l>>1;if((x?r[x*2-1]:0)>=p)l=x;else if(r[x*2+1]<p)s=x+1;else{m=r[x*2+2];break}}var P=m?m.indexOf("overlay "):-1;return P<0?m:P==0?null:m.slice(0,P-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 s=[];if(!i.hasOwnProperty(r))return s;var l=i[r],p=this.getModeAt(n);if(typeof p[r]=="string")l[p[r]]&&s.push(l[p[r]]);else if(p[r])for(var m=0;m<p[r].length;m++){var x=l[p[r][m]];x&&s.push(x)}else p.helperType&&l[p.helperType]?s.push(l[p.helperType]):l[p.name]&&s.push(l[p.name]);for(var P=0;P<l._global.length;P++){var H=l._global[P];H.pred(p,this)&&Se(s,H.val)==-1&&s.push(H.val)}return s},getStateAfter:function(n,r){var s=this.doc;return n=c(s,n==null?s.first+s.size-1:n),Ze(this,n+1,r).state},cursorCoords:function(n,r){var s,l=this.doc.sel.primary();return n==null?s=l.head:typeof n=="object"?s=o(this.doc,n):s=n?l.from():l.to(),si(this,s,r||"page")},charCoords:function(n,r){return vo(this,o(this.doc,n),r||"page")},coordsChar:function(n,r){return n=ha(this,n,r||"page"),bo(this,n.left,n.top)},lineAtHeight:function(n,r){return n=ha(this,{top:n,left:0},r||"page").top,dn(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,r,s){var l=!1,p;if(typeof n=="number"){var m=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>m&&(n=m,l=!0),p=He(this.doc,n)}else p=n;return Hr(this,p,{top:0,left:0},r||"page",s||l).top+(l?this.doc.height-ai(p):0)},defaultTextHeight:function(){return Yi(this.display)},defaultCharWidth:function(){return Xi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,r,s,l,p){var m=this.display;n=si(this,o(this.doc,n));var x=n.bottom,P=n.left;if(r.style.position="absolute",r.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(r),m.sizer.appendChild(r),l=="over")x=n.top;else if(l=="above"||l=="near"){var H=Math.max(m.wrapper.clientHeight,this.doc.height),pe=Math.max(m.sizer.clientWidth,m.lineSpace.clientWidth);(l=="above"||n.bottom+r.offsetHeight>H)&&n.top>r.offsetHeight?x=n.top-r.offsetHeight:n.bottom+r.offsetHeight<=H&&(x=n.bottom),P+r.offsetWidth>pe&&(P=pe-r.offsetWidth)}r.style.top=x+"px",r.style.left=r.style.right="",p=="right"?(P=m.sizer.clientWidth-r.offsetWidth,r.style.right="0px"):(p=="left"?P=0:p=="middle"&&(P=(m.sizer.clientWidth-r.offsetWidth)/2),r.style.left=P+"px"),s&&Xs(this,{left:P,top:x,right:P+r.offsetWidth,bottom:x+r.offsetHeight})},triggerOnKeyDown:Nn(gs),triggerOnKeyPress:Nn(ys),triggerOnKeyUp:vs,triggerOnMouseDown:Nn(bs),execCommand:function(n){if(Nr.hasOwnProperty(n))return Nr[n].call(null,this)},triggerElectric:Nn(function(n){ks(this,n)}),findPosH:function(n,r,s,l){var p=1;r<0&&(p=-1,r=-r);for(var m=o(this.doc,n),x=0;x<r&&!(m=Ko(this.doc,m,p,s,l),m.hitSide);++x);return m},moveH:Nn(function(n,r){var s=this;this.extendSelectionsBy(function(l){return s.display.shift||s.doc.extend||l.empty()?Ko(s.doc,l.head,n,r,s.options.rtlMoveVisually):n<0?l.from():l.to()},Ie)}),deleteH:Nn(function(n,r){var s=this.doc.sel,l=this.doc;s.somethingSelected()?l.replaceSelection("",null,"+delete"):ar(this,function(p){var m=Ko(l,p.head,n,r,!1);return n<0?{from:m,to:p.head}:{from:p.head,to:m}})}),findPosV:function(n,r,s,l){var p=1,m=l;r<0&&(p=-1,r=-r);for(var x=o(this.doc,n),P=0;P<r;++P){var H=si(this,x,"div");if(m==null?m=H.left:H.left=m,x=Ts(this,H,p,s),x.hitSide)break}return x},moveV:Nn(function(n,r){var s=this,l=this.doc,p=[],m=!this.display.shift&&!l.extend&&l.sel.somethingSelected();if(l.extendSelectionsBy(function(P){if(m)return n<0?P.from():P.to();var H=si(s,P.head,"div");P.goalColumn!=null&&(H.left=P.goalColumn),p.push(H.left);var pe=Ts(s,H,n,r);return r=="page"&&P==l.sel.primary()&&Mo(s,vo(s,pe,"div").top-H.top),pe},Ie),p.length)for(var x=0;x<l.sel.ranges.length;x++)l.sel.ranges[x].goalColumn=p[x]}),findWordAt:function(n){var r=this.doc,s=He(r,n.line).text,l=n.ch,p=n.ch;if(s){var m=this.getHelper(n,"wordChars");(n.sticky=="before"||p==s.length)&&l?--l:++p;for(var x=s.charAt(l),P=ye(x,m)?function(H){return ye(H,m)}:/\s/.test(x)?function(H){return/\s/.test(H)}:function(H){return!/\s/.test(H)&&!ye(H)};l>0&&P(s.charAt(l-1));)--l;for(;p<s.length&&P(s.charAt(p));)++p}return new tn(Te(n.line,l),Te(n.line,p))},toggleOverwrite:function(n){if(n!=null&&n==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?ie(this.display.cursorDiv,"CodeMirror-overwrite"):xe(this.display.cursorDiv,"CodeMirror-overwrite"),we(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==X()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Nn(function(n,r){br(this,n,r)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-di(this)-this.display.barHeight,width:n.scrollWidth-di(this)-this.display.barWidth,clientHeight:po(this),clientWidth:Oi(this)}},scrollIntoView:Nn(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:Te(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?Zs(this,n):Ea(this,n.from,n.to,n.margin)}),setSize:Nn(function(n,r){var s=this,l=function(m){return typeof m=="number"||/^\d+$/.test(String(m))?m+"px":m};n!=null&&(this.display.wrapper.style.width=l(n)),r!=null&&(this.display.wrapper.style.height=l(r)),this.options.lineWrapping&&la(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(m){if(m.widgets){for(var x=0;x<m.widgets.length;x++)if(m.widgets[x].noHScroll){Ei(s,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,we(this,"refresh",this)}),operation:function(n){return Qn(this,n)},startOperation:function(){return _i(this)},endOperation:function(){return Fi(this)},refresh:Nn(function(){var n=this.display.cachedTextHeight;_n(this),this.curOp.forceUpdate=!0,vr(this),br(this,this.doc.scrollLeft,this.doc.scrollTop),To(this.display),(n==null||Math.abs(n-Yi(this.display))>.5||this.options.lineWrapping)&&Ao(this),we(this,"refresh",this)}),swapDoc:Nn(function(n){var r=this.doc;return r.cm=null,this.state.selectingText&&this.state.selectingText(),Ba(this,n),vr(this),this.display.input.reset(),br(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,Tn(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}},$(e),e.registerHelper=function(n,r,s){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][r]=s},e.registerGlobalHelper=function(n,r,s,l){e.registerHelper(n,r,l),i[n]._global.push({pred:s,val:l})}}function Ko(e,t,i,n,r){var s=t,l=i,p=He(e,t.line),m=r&&e.direction=="rtl"?-i:i;function x(){var ft=t.line+m;return ft<e.first||ft>=e.first+e.size?!1:(t=new Te(ft,t.ch,t.sticky),p=He(e,ft))}function P(ft){var tt;if(n=="codepoint"){var bt=p.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(bt)?tt=null:tt=new Te(t.line,Math.max(0,Math.min(p.text.length,t.ch+i*(bt>=55296&&bt<56320?2:1))),-i)}else r?tt=Nl(e.cm,p,t,i):tt=Fo(p,t,i);if(tt==null)if(!ft&&x())t=Wo(r,e.cm,p,t.line,m);else return!1;else t=tt;return!0}if(n=="char"||n=="codepoint")P();else if(n=="column")P(!0);else if(n=="word"||n=="group")for(var H=null,pe=n=="group",ce=e.cm&&e.cm.getHelper(t,"wordChars"),Re=!0;!(i<0&&!P(!Re));Re=!1){var Fe=p.text.charAt(t.ch)||`
`,Qe=ye(Fe,ce)?"w":pe&&Fe==`
`?"n":!pe||/\s/.test(Fe)?null:"p";if(pe&&!Re&&!Qe&&(Qe="s"),H&&H!=Qe){i<0&&(i=1,P(),t.sticky="after");break}if(Qe&&(H=Qe),i>0&&!P(!Re))break}var et=to(e,t,s,l,!0);return Ft(s,et)&&(et.hitSide=!0),et}function Ts(e,t,i,n){var r=e.doc,s=t.left,l;if(n=="page"){var p=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),m=Math.max(p-.5*Yi(e.display),3);l=(i>0?t.bottom:t.top)+i*m}else n=="line"&&(l=i>0?t.bottom+3:t.top-3);for(var x;!(x=bo(e,s,l),!x.outside);){if(i<0?l<=0:l>=r.height){x.hitSide=!0;break}l+=i*5}return x}var on=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};on.prototype.init=function(e){var t=this,i=this,n=i.cm,r=i.div=e.lineDiv;Rs(r,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function s(p){for(var m=p.target;m;m=m.parentNode){if(m==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(m.className))break}return!1}Ee(r,"paste",function(p){if(!s(p)||_e(n,p)||Ss(p,n))return;Y<=11&&setTimeout(Sn(n,function(){return t.updateFromDOM()}),20)}),Ee(r,"compositionstart",function(p){t.composing={data:p.data,done:!1}}),Ee(r,"compositionupdate",function(p){t.composing||(t.composing={data:p.data,done:!1})}),Ee(r,"compositionend",function(p){t.composing&&(p.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ee(r,"touchstart",function(){return i.forceCompositionEnd()}),Ee(r,"input",function(){t.composing||t.readFromDOMSoon()});function l(p){if(!s(p)||_e(n,p))return;if(n.somethingSelected())so({lineWise:!1,text:n.getSelections()}),p.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var m=Ms(n);so({lineWise:!0,text:m.text}),p.type=="cut"&&n.operation(function(){n.setSelections(m.ranges,0,We),n.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var x=ui.text.join(`
`);if(p.clipboardData.setData("Text",x),p.clipboardData.getData("Text")==x){p.preventDefault();return}}var P=Ds(),H=P.firstChild;n.display.lineSpace.insertBefore(P,n.display.lineSpace.firstChild),H.value=ui.text.join(`
`);var pe=document.activeElement;me(H),setTimeout(function(){n.display.lineSpace.removeChild(P),pe.focus(),pe==r&&i.showPrimarySelection()},50)}Ee(r,"copy",l),Ee(r,"cut",l)},on.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},on.prototype.prepareSelection=function(){var e=va(this.cm,!1);return e.focus=document.activeElement==this.div,e},on.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},on.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},on.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),r=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||r.line<t.display.viewFrom){e.removeAllRanges();return}var s=lo(t,e.anchorNode,e.anchorOffset),l=lo(t,e.focusNode,e.focusOffset);if(s&&!s.bad&&l&&!l.bad&&ct(an(s,l),n)==0&&ct(nn(s,l),r)==0)return;var p=t.display.view,m=n.line>=t.display.viewFrom&&Ls(t,n)||{node:p[0].measure.map[2],offset:0},x=r.line<t.display.viewTo&&Ls(t,r);if(!x){var P=p[p.length-1].measure,H=P.maps?P.maps[P.maps.length-1]:P.map;x={node:H[H.length-1],offset:H[H.length-2]-H[H.length-3]}}if(!m||!x){e.removeAllRanges();return}var pe=e.rangeCount&&e.getRangeAt(0),ce;try{ce=K(m.node,m.offset,x.offset,x.node)}catch(Re){}ce&&(!re&&t.state.focused?(e.collapse(m.node,m.offset),ce.collapsed||(e.removeAllRanges(),e.addRange(ce))):(e.removeAllRanges(),e.addRange(ce)),pe&&e.anchorNode==null?e.addRange(pe):re&&this.startGracePeriod()),this.rememberSelection()},on.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)},on.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},on.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},on.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return N(this.div,t)},on.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},on.prototype.blur=function(){this.div.blur()},on.prototype.getField=function(){return this.div},on.prototype.supportsTouch=function(){return!0},on.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Qn(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)},on.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},on.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(g&&b&&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 i=lo(t,e.anchorNode,e.anchorOffset),n=lo(t,e.focusNode,e.focusOffset);i&&n&&Qn(t,function(){In(t.doc,wi(i,n),We),(i.bad||n.bad)&&(t.curOp.selectionChanged=!0)})},on.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,i=e.doc.sel.primary(),n=i.from(),r=i.to();if(n.ch==0&&n.line>e.firstLine()&&(n=Te(n.line-1,He(e.doc,n.line-1).length)),r.ch==He(e.doc,r.line).text.length&&r.line<e.lastLine()&&(r=Te(r.line+1,0)),n.line<t.viewFrom||r.line>t.viewTo-1)return!1;var s,l,p;n.line==t.viewFrom||(s=Bi(e,n.line))==0?(l=Pt(t.view[0].line),p=t.view[0].node):(l=Pt(t.view[s].line),p=t.view[s-1].node.nextSibling);var m=Bi(e,r.line),x,P;if(m==t.view.length-1?(x=t.viewTo-1,P=t.lineDiv.lastChild):(x=Pt(t.view[m+1].line)-1,P=t.view[m+1].node.previousSibling),!p)return!1;for(var H=e.doc.splitLines(tu(e,p,P,l,x)),pe=Qt(e.doc,Te(l,0),Te(x,He(e.doc,x).text.length));H.length>1&&pe.length>1;)if(ze(H)==ze(pe))H.pop(),pe.pop(),x--;else if(H[0]==pe[0])H.shift(),pe.shift(),l++;else break;for(var ce=0,Re=0,Fe=H[0],Qe=pe[0],et=Math.min(Fe.length,Qe.length);ce<et&&Fe.charCodeAt(ce)==Qe.charCodeAt(ce);)++ce;for(var ft=ze(H),tt=ze(pe),bt=Math.min(ft.length-(H.length==1?ce:0),tt.length-(pe.length==1?ce:0));Re<bt&&ft.charCodeAt(ft.length-Re-1)==tt.charCodeAt(tt.length-Re-1);)++Re;if(H.length==1&&pe.length==1&&l==n.line)for(;ce&&ce>n.ch&&ft.charCodeAt(ft.length-Re-1)==tt.charCodeAt(tt.length-Re-1);)ce--,Re++;H[H.length-1]=ft.slice(0,ft.length-Re).replace(/^\u200b+/,""),H[0]=H[0].slice(ce).replace(/\u200b+$/,"");var Rt=Te(l,ce),St=Te(x,pe.length?ze(pe).length-Re:0);if(H.length>1||H[0]||ct(Rt,St))return ir(e.doc,H,Rt,St,"+input"),!0},on.prototype.ensurePolled=function(){this.forceCompositionEnd()},on.prototype.reset=function(){this.forceCompositionEnd()},on.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},on.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)},on.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Qn(this.cm,function(){return _n(e.cm)})},on.prototype.setUneditable=function(e){e.contentEditable="false"},on.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Sn(this.cm,Qo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},on.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},on.prototype.onContextMenu=function(){},on.prototype.resetPosition=function(){},on.prototype.needsContentAttribute=!0;function Ls(e,t){var i=mo(e,t.line);if(!i||i.hidden)return null;var n=He(e.doc,t.line),r=ia(i,n,t.line),s=pt(n,e.doc.direction),l="left";if(s){var p=Ve(s,t.ch);l=p%2?"right":"left"}var m=aa(r.map,t.ch,l);return m.offset=m.collapse=="right"?m.end:m.start,m}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function lr(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,n,r){var s="",l=!1,p=e.doc.lineSeparator(),m=!1;function x(ce){return function(Re){return Re.id==ce}}function P(){l&&(s+=p,m&&(s+=p),l=m=!1)}function H(ce){ce&&(P(),s+=ce)}function pe(ce){if(ce.nodeType==1){var Re=ce.getAttribute("cm-text");if(Re){H(Re);return}var Fe=ce.getAttribute("cm-marker"),Qe;if(Fe){var et=e.findMarks(Te(n,0),Te(r+1,0),x(+Fe));et.length&&(Qe=et[0].find(0))&&H(Qt(e.doc,Qe.from,Qe.to).join(p));return}if(ce.getAttribute("contenteditable")=="false")return;var ft=/^(pre|div|p|li|table|br)$/i.test(ce.nodeName);if(!/^br$/i.test(ce.nodeName)&&ce.textContent.length==0)return;ft&&P();for(var tt=0;tt<ce.childNodes.length;tt++)pe(ce.childNodes[tt]);/^(pre|p)$/i.test(ce.nodeName)&&(m=!0),ft&&(l=!0)}else ce.nodeType==3&&H(ce.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(pe(t),t==i);)t=t.nextSibling,m=!1;return s}function lo(e,t,i){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[i],!n)return lr(e.clipPos(Te(e.display.viewTo-1)),!0);t=null,i=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 s=e.display.view[r];if(s.node==n)return nu(s,t,i)}}function nu(e,t,i){var n=e.text.firstChild,r=!1;if(!t||!N(n,t))return lr(Te(Pt(e.line),0),!0);if(t==n&&(r=!0,t=n.childNodes[i],i=0,!t)){var s=e.rest?ze(e.rest):e.line;return lr(Te(Pt(s),s.text.length),r)}var l=t.nodeType==3?t:null,p=t;for(!l&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(l=t.firstChild,i&&(i=l.nodeValue.length));p.parentNode!=n;)p=p.parentNode;var m=e.measure,x=m.maps;function P(Qe,et,ft){for(var tt=-1;tt<(x?x.length:0);tt++)for(var bt=tt<0?m.map:x[tt],Rt=0;Rt<bt.length;Rt+=3){var St=bt[Rt+2];if(St==Qe||St==et){var _t=Pt(tt<0?e.line:e.rest[tt]),ln=bt[Rt]+ft;return(ft<0||St!=Qe)&&(ln=bt[Rt+(ft?1:0)]),Te(_t,ln)}}}var H=P(l,p,i);if(H)return lr(H,r);for(var pe=p.nextSibling,ce=l?l.nodeValue.length-i:0;pe;pe=pe.nextSibling){if(H=P(pe,pe.firstChild,0),H)return lr(Te(H.line,H.ch-ce),r);ce+=pe.textContent.length}for(var Re=p.previousSibling,Fe=i;Re;Re=Re.previousSibling){if(H=P(Re,Re.firstChild,-1),H)return lr(Te(H.line,H.ch+Fe),r);Fe+=Re.textContent.length}}var vn=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ae,this.hasSelection=!1,this.composing=null};vn.prototype.init=function(e){var t=this,i=this,n=this.cm;this.createField(e);var r=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),L&&(r.style.width="0px"),Ee(r,"input",function(){W&&Y>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ee(r,"paste",function(l){if(_e(n,l)||Ss(l,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function s(l){if(_e(n,l))return;if(n.somethingSelected())so({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var p=Ms(n);so({lineWise:!0,text:p.text}),l.type=="cut"?n.setSelections(p.ranges,null,We):(i.prevInput="",r.value=p.text.join(`
`),me(r))}else return;l.type=="cut"&&(n.state.cutIncoming=+new Date)}Ee(r,"cut",s),Ee(r,"copy",s),Ee(e.scroller,"paste",function(l){if(gi(e,l)||_e(n,l))return;if(!r.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var p=new Event("paste");p.clipboardData=l.clipboardData,r.dispatchEvent(p)}),Ee(e.lineSpace,"selectstart",function(l){gi(e,l)||S(l)}),Ee(r,"compositionstart",function(){var l=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:l,range:n.markText(l,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Ee(r,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},vn.prototype.createField=function(e){this.wrapper=Ds(),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,i=e.doc,n=va(e);if(e.options.moveInputWithCursor){var r=si(e,i.sel.primary().head,"div"),s=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+l.top-s.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+l.left-s.left))}return n},vn.prototype.showSelection=function(e){var t=this.cm,i=t.display;T(i.cursorDiv,e.cursors),T(i.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 i=t.getSelection();this.textarea.value=i,t.state.focused&&me(this.textarea),W&&Y>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",W&&Y>=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"&&(!v||X()!=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 i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},vn.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||mt(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=i.value;if(r==n&&!t.somethingSelected())return!1;if(W&&Y>=9&&this.hasSelection===r||w&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var s=r.charCodeAt(0);if(s==8203&&!n&&(n="\u200B"),s==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,p=Math.min(n.length,r.length);l<p&&n.charCodeAt(l)==r.charCodeAt(l);)++l;return Qn(t,function(){Qo(t,r.slice(l),n.length-l,null,e.composing?"*compose":null),r.length>1e3||r.indexOf(`
`)>-1?i.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(){W&&Y>=9&&(this.hasSelection=null),this.fastPoll()},vn.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var s=Pi(i,e),l=n.scroller.scrollTop;if(!s||C)return;var p=i.options.resetSelectionOnContextMenu;p&&i.doc.sel.contains(s)==-1&&Sn(i,In)(i.doc,wi(s),We);var m=r.style.cssText,x=t.wrapper.style.cssText,P=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",r.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-P.top-5)+"px; left: "+(e.clientX-P.left-5)+`px;
z-index: 1000; background: `+(W?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var H;O&&(H=window.scrollY),n.input.focus(),O&&window.scrollTo(null,H),n.input.reset(),i.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=ce,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function pe(){if(r.selectionStart!=null){var Fe=i.somethingSelected(),Qe="\u200B"+(Fe?r.value:"");r.value="\u21DA",r.value=Qe,t.prevInput=Fe?"":"\u200B",r.selectionStart=1,r.selectionEnd=Qe.length,n.selForContextMenu=i.doc.sel}}function ce(){if(t.contextMenuPending!=ce)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=x,r.style.cssText=m,W&&Y<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=l),r.selectionStart!=null){(!W||W&&Y<9)&&pe();var Fe=0,Qe=function(){n.selForContextMenu==i.doc.sel&&r.selectionStart==0&&r.selectionEnd>0&&t.prevInput=="\u200B"?Sn(i,Ya)(i):Fe++<10?n.detectingSelectAll=setTimeout(Qe,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(Qe,200)}}if(W&&Y>=9&&pe(),Me){z(e);var Re=function(){ut(window,"mouseup",Re),setTimeout(ce,20)};Ee(window,"mouseup",Re)}else setTimeout(ce,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 iu(e,t){if(t=t?y(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 i=X();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=p.getValue()}var r;if(e.form&&(Ee(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var s=e.form;r=s.submit;try{var l=s.submit=function(){n(),s.submit=r,s.submit(),s.submit=l}}catch(m){}}t.finishInit=function(m){m.save=n,m.getTextArea=function(){return e},m.toTextArea=function(){m.toTextArea=isNaN,n(),e.parentNode.removeChild(m.getWrapperElement()),e.style.display="",e.form&&(ut(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=r))}},e.style.display="none";var p=hn(function(m){return e.parentNode.insertBefore(m,e.nextSibling)},t);return p}function ru(e){e.off=ut,e.on=Ee,e.wheelEventPixels=hl,e.Doc=Fn,e.splitLines=Mt,e.countColumn=q,e.findColumn=Ne,e.isWordChar=he,e.Pass=at,e.signal=we,e.Line=Ii,e.changeEnd=Si,e.scrollbarModel=Sa,e.Pos=Te,e.cmpPos=ct,e.modes=It,e.mimeModes=wt,e.resolveMode=ot,e.getMode=gt,e.modeExtensions=it,e.extendMode=xt,e.copyState=qt,e.startState=Nt,e.innerMode=un,e.commands=Nr,e.keyMap=vi,e.keyName=hs,e.isModifierKey=us,e.lookupKey=or,e.normalizeKeyMap=Ol,e.StringStream=vt,e.SharedTextMarker=Lr,e.TextMarker=Mi,e.LineWidget=Tr,e.e_preventDefault=S,e.e_stopPropagation=M,e.e_stop=z,e.addClass=ie,e.contains=N,e.rmClass=xe,e.keyNames=Ri}Yl(hn),$l(hn);var ou="iter insert remove copy getEditor constructor".split(" ");for(var uo in Fn.prototype)Fn.prototype.hasOwnProperty(uo)&&Se(ou,uo)<0&&(hn.prototype[uo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Fn.prototype[uo]));return $(Fn),hn.inputStyles={textarea:vn,contenteditable:on},hn.defineMode=function(e){!hn.defaults.mode&&e!="null"&&(hn.defaults.mode=e),jt.apply(this,arguments)},hn.defineMIME=Gt,hn.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),hn.defineMIME("text/plain","null"),hn.defineExtension=function(e,t){hn.prototype[e]=t},hn.defineDocExtension=function(e,t){Fn.prototype[e]=t},hn.fromTextArea=iu,ru(hn),hn.version="5.58.2",hn})},W6BS:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFV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Y/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},Xsq0:function(ke,_,d){ke.exports=d.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(ke,_,d){"use strict";d.r(_),d.d(_,"ResizableTextArea",function(){return Se});var G=d("wx14"),be=d("1OyB"),re=d("vuIU"),fe=d("Ji7U"),de=d("LK+K"),ne=d("q1tI"),W=d("VTBJ"),Y=d("rePB"),O=d("Zm9Q"),B=d("Kwbf"),b=d("c+Xe"),C=d("m+aA"),k=d("bdgK"),E=new Map;function A(We){We.forEach(function(Le){var Ie,Ne=Le.target;(Ie=E.get(Ne))===null||Ie===void 0||Ie.forEach(function(se){return se(Ne)})})}var L=new k.default(A),g=null,v=null;function w(We,Le){E.has(We)||(E.set(We,new Set),L.observe(We)),E.get(We).add(Le)}function I(We,Le){E.has(We)&&(E.get(We).delete(Le),E.get(We).size||(L.unobserve(We),E.delete(We)))}var le=function(We){Object(fe.a)(Ie,We);var Le=Object(de.a)(Ie);function Ie(){return Object(be.a)(this,Ie),Le.apply(this,arguments)}return Object(re.a)(Ie,[{key:"render",value:function(){return this.props.children}}]),Ie}(ne.Component),te=ne.createContext(null);function oe(We){var Le=We.children,Ie=We.onBatchResize,Ne=ne.useRef(0),se=ne.useRef([]),Z=ne.useContext(te),ze=ne.useCallback(function(Ye,Ke,rt){Ne.current+=1;var U=Ne.current;se.current.push({size:Ye,element:Ke,data:rt}),Promise.resolve().then(function(){U===Ne.current&&(Ie==null||Ie(se.current),se.current=[])}),Z==null||Z(Ye,Ke,rt)},[Ie,Z]);return ne.createElement(te.Provider,{value:ze},Le)}function Me(We){var Le=We.children,Ie=We.disabled,Ne=ne.useRef(null),se=ne.useRef(null),Z=ne.useContext(te),ze=ne.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ye=ne.isValidElement(Le)&&Object(b.c)(Le),Ke=Ye?Le.ref:null,rt=ne.useMemo(function(){return Object(b.a)(Ke,Ne)},[Ke,Ne]),U=ne.useRef(We);U.current=We;var F=ne.useCallback(function(he){var ye=U.current,Pe=ye.onResize,Be=ye.data,De=he.getBoundingClientRect(),Ge=De.width,lt=De.height,qe=he.offsetWidth,Je=he.offsetHeight,Ve=Math.floor(Ge),Ct=Math.floor(lt);if(ze.current.width!==Ve||ze.current.height!==Ct||ze.current.offsetWidth!==qe||ze.current.offsetHeight!==Je){var pt={width:Ve,height:Ct,offsetWidth:qe,offsetHeight:Je};ze.current=pt;var ht=qe===Math.round(Ge)?Ge:qe,Ee=Je===Math.round(lt)?lt:Je,Xe=Object(W.a)(Object(W.a)({},pt),{},{offsetWidth:ht,offsetHeight:Ee});Z==null||Z(Xe,he,Be),Pe&&Promise.resolve().then(function(){Pe(Xe,he)})}},[]);return ne.useEffect(function(){var he=Object(C.a)(Ne.current)||Object(C.a)(se.current);return he&&!Ie&&w(he,F),function(){return I(he,F)}},[Ne.current,Ie]),ne.createElement(le,{ref:se},Ye?ne.cloneElement(Le,{ref:rt}):Le)}var ge="rc-observer-key";function xe(We){var Le=We.children,Ie=Object(O.a)(Le);return Ie.map(function(Ne,se){var Z=(Ne==null?void 0:Ne.key)||"".concat(ge,"-").concat(se);return ne.createElement(Me,Object(G.a)({},We,{key:Z}),Ne)})}xe.Collection=oe;var ve=xe,T=d("bT9E"),R=d("TSYQ"),ue=d.n(R),K=`
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
`,N=["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"],X={},ie;function J(We){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ie=We.getAttribute("id")||We.getAttribute("data-reactid")||We.getAttribute("name");if(Le&&X[Ie])return X[Ie];var Ne=window.getComputedStyle(We),se=Ne.getPropertyValue("box-sizing")||Ne.getPropertyValue("-moz-box-sizing")||Ne.getPropertyValue("-webkit-box-sizing"),Z=parseFloat(Ne.getPropertyValue("padding-bottom"))+parseFloat(Ne.getPropertyValue("padding-top")),ze=parseFloat(Ne.getPropertyValue("border-bottom-width"))+parseFloat(Ne.getPropertyValue("border-top-width")),Ye=N.map(function(rt){return"".concat(rt,":").concat(Ne.getPropertyValue(rt))}).join(";"),Ke={sizingStyle:Ye,paddingSize:Z,borderSize:ze,boxSizing:se};return Le&&Ie&&(X[Ie]=Ke),Ke}function me(We){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ie||(ie=document.createElement("textarea"),ie.setAttribute("tab-index","-1"),ie.setAttribute("aria-hidden","true"),document.body.appendChild(ie)),We.getAttribute("wrap")?ie.setAttribute("wrap",We.getAttribute("wrap")):ie.removeAttribute("wrap");var se=J(We,Le),Z=se.paddingSize,ze=se.borderSize,Ye=se.boxSizing,Ke=se.sizingStyle;ie.setAttribute("style","".concat(Ke,";").concat(K)),ie.value=We.value||We.placeholder||"";var rt=Number.MIN_SAFE_INTEGER,U=Number.MAX_SAFE_INTEGER,F=ie.scrollHeight,he;if(Ye==="border-box"?F+=ze:Ye==="content-box"&&(F-=Z),Ie!==null||Ne!==null){ie.value=" ";var ye=ie.scrollHeight-Z;Ie!==null&&(rt=ye*Ie,Ye==="border-box"&&(rt=rt+Z+ze),F=Math.max(rt,F)),Ne!==null&&(U=ye*Ne,Ye==="border-box"&&(U=U+Z+ze),he=F>U?"":"hidden",F=Math.min(U,F))}return{height:F,minHeight:rt,maxHeight:U,overflowY:he,resize:"none"}}var D=d("Gytx"),y=d.n(D),q;(function(We){We[We.NONE=0]="NONE",We[We.RESIZING=1]="RESIZING",We[We.RESIZED=2]="RESIZED"})(q||(q={}));var Ae=function(We){Object(fe.a)(Ie,We);var Le=Object(de.a)(Ie);function Ie(Ne){var se;return Object(be.a)(this,Ie),se=Le.call(this,Ne),se.nextFrameActionId=void 0,se.resizeFrameId=void 0,se.textArea=void 0,se.saveTextArea=function(Z){se.textArea=Z},se.handleResize=function(Z){var ze=se.state.resizeStatus,Ye=se.props,Ke=Ye.autoSize,rt=Ye.onResize;if(ze!==q.NONE)return;typeof rt=="function"&&rt(Z),Ke&&se.resizeOnNextFrame()},se.resizeOnNextFrame=function(){cancelAnimationFrame(se.nextFrameActionId),se.nextFrameActionId=requestAnimationFrame(se.resizeTextarea)},se.resizeTextarea=function(){var Z=se.props.autoSize;if(!Z||!se.textArea)return;var ze=Z.minRows,Ye=Z.maxRows,Ke=me(se.textArea,!1,ze,Ye);se.setState({textareaStyles:Ke,resizeStatus:q.RESIZING},function(){cancelAnimationFrame(se.resizeFrameId),se.resizeFrameId=requestAnimationFrame(function(){se.setState({resizeStatus:q.RESIZED},function(){se.resizeFrameId=requestAnimationFrame(function(){se.setState({resizeStatus:q.NONE}),se.fixFirefoxAutoScroll()})})})})},se.renderTextArea=function(){var Z=se.props,ze=Z.prefixCls,Ye=ze===void 0?"rc-textarea":ze,Ke=Z.autoSize,rt=Z.onResize,U=Z.className,F=Z.disabled,he=se.state,ye=he.textareaStyles,Pe=he.resizeStatus,Be=Object(T.a)(se.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),De=ue()(Ye,U,Object(Y.a)({},"".concat(Ye,"-disabled"),F));"value"in Be&&(Be.value=Be.value||"");var Ge=Object(W.a)(Object(W.a)(Object(W.a)({},se.props.style),ye),Pe===q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return ne.createElement(ve,{onResize:se.handleResize,disabled:!(Ke||rt)},ne.createElement("textarea",Object(G.a)({},Be,{className:De,style:Ge,ref:se.saveTextArea})))},se.state={textareaStyles:{},resizeStatus:q.NONE},se}return Object(re.a)(Ie,[{key:"componentDidUpdate",value:function(se){(se.value!==this.props.value||!y()(se.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 se=this.textArea.selectionStart,Z=this.textArea.selectionEnd;this.textArea.setSelectionRange(se,Z)}}catch(ze){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ie}(ne.Component),Se=Ae,nt=function(We){Object(fe.a)(Ie,We);var Le=Object(de.a)(Ie);function Ie(Ne){var se;Object(be.a)(this,Ie),se=Le.call(this,Ne),se.resizableTextArea=void 0,se.focus=function(){se.resizableTextArea.textArea.focus()},se.saveTextArea=function(ze){se.resizableTextArea=ze},se.handleChange=function(ze){var Ye=se.props.onChange;se.setValue(ze.target.value,function(){se.resizableTextArea.resizeTextarea()}),Ye&&Ye(ze)},se.handleKeyDown=function(ze){var Ye=se.props,Ke=Ye.onPressEnter,rt=Ye.onKeyDown;ze.keyCode===13&&Ke&&Ke(ze),rt&&rt(ze)};var Z=typeof Ne.value=="undefined"||Ne.value===null?Ne.defaultValue:Ne.value;return se.state={value:Z},se}return Object(re.a)(Ie,[{key:"setValue",value:function(se,Z){"value"in this.props||this.setState({value:se},Z)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return ne.createElement(Se,Object(G.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(se){return"value"in se?{value:se.value}:null}}]),Ie}(ne.Component),at=_.default=nt},ZW9T:function(ke,_,d){"use strict";d.d(_,"a",function(){return ve});var G=d("k1fw"),be=d("oBTY"),re=d("9og8"),fe=d("miYZ"),de=d("tsqr"),ne=d("rAM+"),W=d("tJVT"),Y=d("PpiC"),O=d("WmNS"),B=d.n(O),b=d("q1tI"),C=d.n(b),k=d("bdgK");function E(T,R,ue,K,N){var X=R.getWordUntilPosition(ue),ie={startLineNumber:ue.lineNumber,endLineNumber:ue.lineNumber,startColumn:X.startColumn,endColumn:X.endColumn},J=K.map(function(me){return{label:me,kind:T.languages.CompletionItemKind.Keyword,insertText:me,insertTextRules:T.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}});return N.map(function(me){J.push(Object(G.a)(Object(G.a)({},me),{},{range:ie}))}),J}var A=function(T){var R={label:"ifelse",kind:T.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:T.languages.CompletionItemInsertTextRule.InsertAsSnippet},ue=["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"];T.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ie,J){var me=E(T,ie,J,ue,[R]);return{suggestions:me}}});var K=["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"];T.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ie,J){var me=[{label:"print",kind:T.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:T.languages.CompletionItemInsertTextRule.InsertAsSnippet}],D=E(T,ie,J,K,me);return{suggestions:D}}});var N=["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"];T.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ie,J){var me=[R,{label:"main",kind:T.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:T.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:T.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:T.languages.CompletionItemInsertTextRule.InsertAsSnippet}],D=E(T,ie,J,N,me);return{suggestions:D}}})},L="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",g=d("fjLI"),v=d("LvDl"),w=d("+ua5");function I(T){return/^\d+$/.test(T)?"".concat(T,"px"):T}function le(){}var te=!1,oe={"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",Scala:"scale"};function Me(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=T;if(Array.isArray(T)){for(var ue=0;ue<T.length;ue++){var K=oe[T[ue]];if(K)return K}return R[0]}return oe[R]||R}var ge=null,xe=_.b=function(T){var R=T.width,ue=R===void 0?"100%":R,K=T.height,N=K===void 0?"100%":K,X=T.value,ie=T.language,J=ie===void 0?"javascript":ie,me=T.style,D=me===void 0?{}:me,y=T.options,q=y===void 0?{}:y,Ae=T.overrideServices,Se=Ae===void 0?{}:Ae,nt=T.theme,at=nt===void 0?"vs-dark":nt,We=T.onEditBlur,Le=T.onSave,Ie=T.autoHeight,Ne=Ie===void 0?!1:Ie,se=T.forbidCopy,Z=se===void 0?!1:se,ze=T.onChange,Ye=ze===void 0?le:ze,Ke=T.editorDidMount,rt=Ke===void 0?le:Ke,U=T.onFocus,F=U===void 0?le:U,he=T.onBreakPoint,ye=he===void 0?le:he,Pe=T.breakPointValue,Be=Pe===void 0?[]:Pe,De=T.filename,Ge=De===void 0?"educoder.txt":De,lt=T.errorLine,qe=T.errorContent,Je=qe===void 0?"":qe,Ve=T.highlightLine,Ct=T.openBreakPoint,pt=Ct===void 0?!1:Ct,ht=Object(Y.a)(T,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint"]),Ee=Object(b.useRef)(),Xe=Object(b.useRef)({}),ut=Object(b.useRef)(),we=Object(b.useRef)(),_e=Object(b.useRef)([]),ee=Object(b.useRef)(!1),Q=Object(b.useRef)(),$=Object(b.useState)(!1),S=Object(W.a)($,2),M=S[0],j=S[1];function z(){var gt;return Ee.current&&(gt=new k.default(function(it){var xt=Object(ne.a)(it),qt;try{for(xt.s();!(qt=xt.n()).done;){var un=qt.value;(un.target.offsetHeight>0||un.target.offsetWidth>0)&&Xe.current.instance.layout()}}catch(Nt){xt.e(Nt)}finally{xt.f()}}),gt.observe(Ee.current)),gt}function Ce(){de.b.warn({content:decodeURIComponent(L),key:"monaco-editor-tip"})}var ae=function(){var it=Xe.current.instance;if(X!=null&&it&&M){var xt=it.getModel();xt&&X!==xt.getValue()&&(te=!0,xt.setValue(X),it.layout(),te=!1)}};Object(b.useEffect)(function(){try{var gt,it=Xe.current.instance;we.current&&clearTimeout(we.current),we.current=setTimeout(function(){ae()},500),it==null||((gt=it.updateOptions)===null||gt===void 0)||gt.call(it,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(X.split(/\r\n|\r|\n/g).length))+3,5)})}catch(xt){debugger}},[X,M,Xe.current]),Object(b.useEffect)(function(){try{if(lt&&Xe.current&&Xe.current.instance){var gt=Xe.current.instance;gt.changeViewZones(function(xt){var qt=document.createElement("div");qt.style.padding="10px 20px",qt.style.width="calc(100% - 20px)",qt.className="my-error-line-wrp",qt.innerHTML=Je,xt.addZone({afterLineNumber:lt||11,heightInLines:3,domNode:qt})});var it={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};gt.addOverlayWidget(it),gt.revealPositionInCenter({lineNumber:20,column:1})}}catch(xt){debugger}},[lt,Xe.current,M]),Object(b.useEffect)(function(){var gt;if((gt=Xe.current)!==null&&gt!==void 0&&gt.instance&&M&&pt){var it=Xe.current.instance,xt=it.getModel();if(!xt)return;var qt=function(){var ct=[],Ft=[],$t=xt.getAllDecorations(),nn=Object(ne.a)($t),an;try{for(nn.s();!(an=nn.n()).done;){var c=an.value;if(c.options.className==="highlighted-line"){var o;ct.push(c==null||((o=c.range)===null||o===void 0)?void 0:o.startLineNumber),Ft.push(c==null?void 0:c.id)}}}catch(u){nn.e(u)}finally{nn.f()}xt.deltaDecorations(Ft,[]);var a=xt.getLineCount();!!Ve&&Ve<=a&&(it.deltaDecorations([],[{range:new ge.Range(Ve,1,Ve,xt.getLineMaxColumn(Ve)),options:{isWholeLine:!0,className:"highlighted-line"}}]),it.revealLineInCenter(Ve))};qt();var un=function(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ft=[],$t=[],nn=xt.getAllDecorations(),an=Object(ne.a)(nn),c;try{for(an.s();!(c=an.n()).done;){var o=c.value;if(o.options.linesDecorationsClassName==="breakpoints"){var a;Ft.push(o==null||((a=o.range)===null||a===void 0)?void 0:a.startLineNumber),$t.push(o==null?void 0:o.id)}}}catch(u){an.e(u)}finally{an.f()}if(ct)return{lines:Ft,ids:$t};ye(Ft)},Nt=function(){var Te=Object(re.a)(B.a.mark(function ct(Ft){var $t;return B.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return $t={range:new ge.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},an.next=3,xt.deltaDecorations([],[$t]);case 3:un();case 4:case"end":return an.stop()}},ct)}));return function(Ft){return Te.apply(this,arguments)}}(),vt=function(){var Te=Object(re.a)(B.a.mark(function ct(Ft){var $t,nn,an,c,o;return B.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:$t=[],nn=it.getLineDecorations(Ft),an=Object(ne.a)(nn);try{for(an.s();!(c=an.n()).done;)o=c.value,o.options.linesDecorationsClassName==="breakpoints"&&$t.push(o.id)}catch(f){an.e(f)}finally{an.f()}return u.next=6,xt.deltaDecorations($t,[]);case 6:un();case 7:case"end":return u.stop()}},ct)}));return function(Ft){return Te.apply(this,arguments)}}(),He=function(ct){var Ft=it.getLineDecorations(ct),$t=Object(ne.a)(Ft),nn;try{for($t.s();!(nn=$t.n()).done;){var an=nn.value;if(an.options.linesDecorationsClassName==="breakpoints")return!0}}catch(c){$t.e(c)}finally{$t.f()}return!1};if(!Object(v.isEqual)(Be,un(!0).lines)){xt.deltaDecorations(un(!0).ids,[]);var Qt=Be.map(function(Te){return{range:new ge.Range(Te,1,Te,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});xt.deltaDecorations([],Qt)}var Dt=it.onDidChangeModelContent(function(Te){var ct=it.getPosition();if(ct){var Ft=ct.lineNumber;xt.getLineContent(Ft).trim()===""?vt(Ft):He(Ft)&&(vt(Ft),Nt(Ft))}}),cn=it.onMouseDown(function(Te){var ct,Ft,$t;if(Te.target.detail&&(ct=Te.target)!==null&&ct!==void 0&&(Ft=ct.element)!==null&&Ft!==void 0&&($t=Ft.className)!==null&&$t!==void 0&&$t.includes("line-numbers")){var nn=Te.target.position.lineNumber;if(xt.getLineContent(nn).trim()==="")return;He(nn)?vt(nn):Nt(nn)}}),Pt=function(ct){var Ft={range:new ge.Range(ct,1,ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};_e.current=it.deltaDecorations(_e.current,[Ft])},dn=function(){_e.current=it.deltaDecorations(_e.current,[])},Et=it.onMouseMove(function(Te){var ct,Ft,$t;if(dn(),Te.target.detail&&(ct=Te.target)!==null&&ct!==void 0&&(Ft=ct.element)!==null&&Ft!==void 0&&($t=Ft.className)!==null&&$t!==void 0&&$t.includes("line-numbers")){var nn=Te.target.position.lineNumber;if(xt.getLineContent(nn).trim()==="")return;Pt(nn)}}),Jn=it.onMouseLeave(function(){dn()});return function(){Dt.dispose(),cn.dispose(),Et.dispose(),Jn.dispose()}}},[Xe.current,M,Be,Ve,pt]);function je(){var gt=Xe.current.instance;if(gt){var it=gt.getSelection(),xt=Xe.current.pastePos||{},qt=new ge.Range(xt.startLineNumber||it.endLineNumber,xt.startColumn||it.endColumn,xt.endLineNumber||it.endLineNumber,xt.endColumn||it.endColumn);setTimeout(function(){gt.executeEdits("",[{range:qt,text:""}])},300)}}function $e(gt){(window.navigator.platform.match("Mac")?gt.metaKey:gt.ctrlKey)&&gt.keyCode==83&&(gt.preventDefault(),Le())}var dt=function(){if(Ne&&Xe.current.instance){var it=Xe.current.instance.getContentHeight();Gt(it<N?N:it)}else Gt(N)};function st(gt){var it=document.createEvent("MouseEvents");it.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),gt.dispatchEvent(it)}var Lt=function(it){var xt=it.keyCode,qt=it.ctrlKey,un=it.metaKey,Nt=it.target,vt=it.type;return(vt==="paste"||(xt===67||xt===86)&&(un||qt))&&Nt.nodeName==="TEXTAREA"&&(Ce(),it.preventDefault()),!1};function Mt(gt,it){var xt=window.URL||window.webkitURL||window,qt=new Blob([it]),un=document.createElementNS("http://www.w3.org/1999/xhtml","a");un.href=xt.createObjectURL(qt),un.download=gt,st(un)}Object(b.useEffect)(function(){dt()},[dt]),Object(b.useEffect)(function(){Ee.current&&!M&&d.e(27).then(d.t.bind(null,"M/lh",7)).then(function(gt){try{ge=gt,Xe.current.instance=ge.editor.create(Ee.current,{value:X,language:Me(J),theme:at,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Se);var it=Xe.current.instance,xt=g.c._menuItems,qt=Object(be.a)(xt).find(function(Nt){return Nt[0]._debugName=="EditorContext"});if(rt(it,ge),setTimeout(function(){dt(),Xe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Mt(Ge||"educoder.txt",it.getValue())}}),it.getDomNode().addEventListener("input",function(){ut.current.autoFormat&&it.getAction("editor.action.formatDocument").run()})},500),Xe.current.subscription=it.onDidChangeModelContent(function(Nt){debugger;ee.current?clearTimeout(Q.current):(dt(),Ye(it.getValue(),Nt)),Q.current=setTimeout(function(){ee.current=!1},500)}),window.Monaco||A(ge,Me(J)),Z&&(Ee.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Lt),window.removeEventListener("paste",Lt),window.addEventListener("keydown",Lt),window.addEventListener("paste",Lt)),window.Monaco=ge,We&&it.onDidBlurEditorWidget(function(){We(it.getValue())}),F&&it.onDidFocusEditorText(function(){F(it.getValue())}),Z)try{window.addEventListener("paste",je)}catch(Nt){}var un=z();return j(!0),function(){var Nt=Xe.current.instance;Nt.dispose();var vt=Nt.getModel();vt&&vt.dispose(),Xe.current.subscription&&Xe.current.subscription.dispose(),Z&&window.removeEventListener("paste",je),un.unobserve(Ee.current)}}catch(Nt){debugger}})},[]),Object(b.useEffect)(function(){var gt=Xe.current.instance;if(gt&&M)return document.addEventListener("keydown",$e,!1),function(){document.removeEventListener("keydown",$e)}},[Le,M]),Object(b.useEffect)(function(){var gt=Xe.current.instance;if(gt&&M){var it=Me(J);ge.editor.setModelLanguage(gt.getModel(),it)}},[J,M]),Object(b.useEffect)(function(){var gt=Xe.current.instance;gt&&M&&ge.editor.setTheme(at)},[at,M]),Object(b.useEffect)(function(){var gt=Xe.current.instance;ut.current=q,gt&&M&&(gt.updateOptions(Object(G.a)({},q)),setTimeout(function(){gt.getModel().updateOptions(Object(G.a)({},q))},200))},[JSON.stringify(q),M]),Object(b.useEffect)(function(){var gt=Xe.current.instance;gt&&M&&gt.layout()},[ue,N,M]);var mt=Object(b.useState)(I(ue)),Jt=Object(W.a)(mt,2),Bt=Jt[0],Ut=Jt[1],It=Object(b.useState)(I(N)),wt=Object(W.a)(It,2),jt=wt[0],Gt=wt[1],ot=Object(G.a)(Object(G.a)({},D),{},{width:Bt,height:jt});return C.a.createElement("div",{className:"my-monaco-editor",ref:Ee,style:ot})};function ve(T){var R=T.width,ue=R===void 0?"100%":R,K=T.height,N=K===void 0?"100%":K,X=T.original,ie=T.modified,J=T.language,me=T.options,D=me===void 0?{}:me,y=Object(b.useRef)(),q=Object(b.useState)(null),Ae=Object(W.a)(q,2),Se=Ae[0],nt=Ae[1];function at(Ne){var se;return y.current&&(se=new k.default(function(Z){var ze=Object(ne.a)(Z),Ye;try{for(ze.s();!(Ye=ze.n()).done;){var Ke=Ye.value;(Ke.target.offsetHeight>0||Ke.target.offsetWidth>0)&&Ne.layout()}}catch(rt){ze.e(rt)}finally{ze.f()}}),se.observe(y.current)),se}Object(b.useEffect)(function(){return y.current&&d.e(27).then(d.t.bind(null,"M/lh",7)).then(function(Ne){ge=Ne;var se=ge.editor.createDiffEditor(y.current,Object(G.a)(Object(G.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},D),{},{wordWrap:!0}));nt(se);var Z=at(se);return function(){se.dispose();var ze=se.getModel();ze&&ze.dispose(),Z.unobserve(y.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(b.useEffect)(function(){Se&&Se.setModel({original:ge.editor.createModel(X,J),modified:ge.editor.createModel(ie,J)})},[X,ie,J,Se]);var We=I(ue),Le=I(N),Ie={width:We,height:Le};return C.a.createElement("div",{className:"my-diff-editor",ref:y,style:Ie})}},ZpRC:function(ke,_,d){"use strict";function G(b){return typeof b=="object"&&b!=null&&b.nodeType===1}function be(b,C){return(!C||b!=="hidden")&&b!=="visible"&&b!=="clip"}function re(b,C){if(b.clientHeight<b.scrollHeight||b.clientWidth<b.scrollWidth){var k=getComputedStyle(b,null);return be(k.overflowY,C)||be(k.overflowX,C)||function(E){var A=function(L){if(!L.ownerDocument||!L.ownerDocument.defaultView)return null;try{return L.ownerDocument.defaultView.frameElement}catch(g){return null}}(E);return!!A&&(A.clientHeight<E.scrollHeight||A.clientWidth<E.scrollWidth)}(b)}return!1}function fe(b,C,k,E,A,L,g,v){return L<b&&g>C||L>b&&g<C?0:L<=b&&v<=k||g>=C&&v>=k?L-b-E:g>C&&v<k||L<b&&v>k?g-C+A:0}var de=function(b,C){var k=window,E=C.scrollMode,A=C.block,L=C.inline,g=C.boundary,v=C.skipOverflowHiddenElements,w=typeof g=="function"?g:function(ye){return ye!==g};if(!G(b))throw new TypeError("Invalid target");for(var I=document.scrollingElement||document.documentElement,le=[],te=b;G(te)&&w(te);){if((te=te.parentElement)===I){le.push(te);break}te!=null&&te===document.body&&re(te)&&!re(document.documentElement)||te!=null&&re(te,v)&&le.push(te)}for(var oe=k.visualViewport?k.visualViewport.width:innerWidth,Me=k.visualViewport?k.visualViewport.height:innerHeight,ge=window.scrollX||pageXOffset,xe=window.scrollY||pageYOffset,ve=b.getBoundingClientRect(),T=ve.height,R=ve.width,ue=ve.top,K=ve.right,N=ve.bottom,X=ve.left,ie=A==="start"||A==="nearest"?ue:A==="end"?N:ue+T/2,J=L==="center"?X+R/2:L==="end"?K:X,me=[],D=0;D<le.length;D++){var y=le[D],q=y.getBoundingClientRect(),Ae=q.height,Se=q.width,nt=q.top,at=q.right,We=q.bottom,Le=q.left;if(E==="if-needed"&&ue>=0&&X>=0&&N<=Me&&K<=oe&&ue>=nt&&N<=We&&X>=Le&&K<=at)return me;var Ie=getComputedStyle(y),Ne=parseInt(Ie.borderLeftWidth,10),se=parseInt(Ie.borderTopWidth,10),Z=parseInt(Ie.borderRightWidth,10),ze=parseInt(Ie.borderBottomWidth,10),Ye=0,Ke=0,rt="offsetWidth"in y?y.offsetWidth-y.clientWidth-Ne-Z:0,U="offsetHeight"in y?y.offsetHeight-y.clientHeight-se-ze:0;if(I===y)Ye=A==="start"?ie:A==="end"?ie-Me:A==="nearest"?fe(xe,xe+Me,Me,se,ze,xe+ie,xe+ie+T,T):ie-Me/2,Ke=L==="start"?J:L==="center"?J-oe/2:L==="end"?J-oe:fe(ge,ge+oe,oe,Ne,Z,ge+J,ge+J+R,R),Ye=Math.max(0,Ye+xe),Ke=Math.max(0,Ke+ge);else{Ye=A==="start"?ie-nt-se:A==="end"?ie-We+ze+U:A==="nearest"?fe(nt,We,Ae,se,ze+U,ie,ie+T,T):ie-(nt+Ae/2)+U/2,Ke=L==="start"?J-Le-Ne:L==="center"?J-(Le+Se/2)+rt/2:L==="end"?J-at+Z+rt:fe(Le,at,Se,Ne,Z+rt,J,J+R,R);var F=y.scrollLeft,he=y.scrollTop;ie+=he-(Ye=Math.max(0,Math.min(he+Ye,y.scrollHeight-Ae+U))),J+=F-(Ke=Math.max(0,Math.min(F+Ke,y.scrollWidth-Se+rt)))}me.push({el:y,top:Ye,left:Ke})}return me};function ne(b){return b===Object(b)&&Object.keys(b).length!==0}function W(b,C){C===void 0&&(C="auto");var k="scrollBehavior"in document.body.style;b.forEach(function(E){var A=E.el,L=E.top,g=E.left;A.scroll&&k?A.scroll({top:L,left:g,behavior:C}):(A.scrollTop=L,A.scrollLeft=g)})}function Y(b){return b===!1?{block:"end",inline:"nearest"}:ne(b)?b:{block:"start",inline:"nearest"}}function O(b,C){var k=!b.ownerDocument.documentElement.contains(b);if(ne(C)&&typeof C.behavior=="function")return C.behavior(k?[]:de(b,C));if(k)return;var E=Y(C);return W(de(b,E),E.behavior)}var B=_.a=O},bT9E:function(ke,_,d){"use strict";d.d(_,"a",function(){return be});var G=d("VTBJ");function be(re,fe){var de=Object(G.a)({},re);return Array.isArray(fe)&&fe.forEach(function(ne){delete de[ne]}),de}},c5Ni:function(ke,_,d){},cRFk:function(ke,_,d){ke.exports=d.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(ke,_,d){ke.exports=d.p+"static/choose.4ad1045f.svg"},dejd:function(ke,_,d){},djh8:function(ke,_,d){ke.exports=d.p+"static/qrCode.42927872.png"},dmUQ:function(ke,_,d){"use strict";var G=d("Ff2n"),be=d("rePB"),re=d("1OyB"),fe=d("vuIU"),de=d("Ji7U"),ne=d("md7G"),W=d("foSv"),Y=d("q1tI"),O=d.n(Y),B=d("TSYQ"),b=d.n(B),C=d("4IlW");function k(T,R){var ue=Object.keys(T);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(T);R&&(K=K.filter(function(N){return Object.getOwnPropertyDescriptor(T,N).enumerable})),ue.push.apply(ue,K)}return ue}function E(T){for(var R=1;R<arguments.length;R++){var ue=arguments[R]!=null?arguments[R]:{};R%2?k(Object(ue),!0).forEach(function(K){Object(be.a)(T,K,ue[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(ue)):k(Object(ue)).forEach(function(K){Object.defineProperty(T,K,Object.getOwnPropertyDescriptor(ue,K))})}return T}function A(T){var R=L();return function(){var K=Object(W.a)(T),N;if(R){var X=Object(W.a)(this).constructor;N=Reflect.construct(K,arguments,X)}else N=K.apply(this,arguments);return Object(ne.a)(this,N)}}function L(){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(T){return!1}}function g(){}function v(T){T.preventDefault()}var w=function(R){return R.replace(/[^\w.-]+/g,"")},I=200,le=600,te=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,oe=function(R){return R!=null},Me=function(R,ue){return ue===R||typeof ue=="number"&&typeof R=="number"&&isNaN(ue)&&isNaN(R)},ge=function(T){Object(de.a)(ue,T);var R=A(ue);function ue(K){var N;Object(re.a)(this,ue),N=R.call(this,K),N.onKeyDown=function(J){var me=N.props,D=me.onKeyDown,y=me.onPressEnter;if(J.keyCode===C.a.UP){var q=N.getRatio(J);N.up(J,q,null),N.stop()}else if(J.keyCode===C.a.DOWN){var Ae=N.getRatio(J);N.down(J,Ae,null),N.stop()}else J.keyCode===C.a.ENTER&&y&&y(J);if(N.recordCursorPosition(),N.lastKeyCode=J.keyCode,D){for(var Se=arguments.length,nt=new Array(Se>1?Se-1:0),at=1;at<Se;at++)nt[at-1]=arguments[at];D.apply(void 0,[J].concat(nt))}},N.onKeyUp=function(J){var me=N.props.onKeyUp;if(N.stop(),N.recordCursorPosition(),me){for(var D=arguments.length,y=new Array(D>1?D-1:0),q=1;q<D;q++)y[q-1]=arguments[q];me.apply(void 0,[J].concat(y))}},N.onChange=function(J){var me=N.props.onChange;N.state.focused&&(N.inputting=!0),N.rawInput=N.props.parser(N.getValueFromEvent(J)),N.setState({inputValue:N.rawInput}),me(N.toNumber(N.rawInput))},N.onMouseUp=function(){var J=N.props.onMouseUp;N.recordCursorPosition(),J&&J.apply(void 0,arguments)},N.onFocus=function(){var J;N.setState({focused:!0}),(J=N.props).onFocus.apply(J,arguments)},N.onBlur=function(){var J=N.props.onBlur;N.inputting=!1,N.setState({focused:!1});var me=N.getCurrentValidValue(N.state.inputValue),D=N.setValue(me,g);if(J){var y=N.input.value,q=N.getInputDisplayValue({focus:!1,value:D});N.input.value=q&&Number(q),J.apply(void 0,arguments),N.input.value=y}},N.getRatio=function(J){var me=1;return J.metaKey||J.ctrlKey?me=.1:J.shiftKey&&(me=10),me},N.getFullNum=function(J){return isNaN(J)?J:/e/i.test(String(J))?Number(J).toFixed(18).replace(/\.?0+$/,""):J},N.getPrecision=function(J){if(oe(N.props.precision))return N.props.precision;var me=String(J);if(me.indexOf("e-")>=0)return parseInt(me.slice(me.indexOf("e-")+2),10);var D=0;return me.indexOf(".")>=0&&(D=me.length-me.indexOf(".")-1),D},N.getInputDisplayValue=function(J){var me=J||N.state,D=me.focused,y=me.inputValue,q=me.value,Ae;D?Ae=y:Ae=N.toPrecisionAsStep(q),Ae==null&&(Ae="");var Se=N.formatWrapper(Ae);return oe(N.props.decimalSeparator)&&(Se=Se.toString().replace(".",N.props.decimalSeparator)),Se},N.recordCursorPosition=function(){try{N.cursorStart=N.input.selectionStart,N.cursorEnd=N.input.selectionEnd,N.currentValue=N.input.value,N.cursorBefore=N.input.value.substring(0,N.cursorStart),N.cursorAfter=N.input.value.substring(N.cursorEnd)}catch(J){}},N.restoreByAfter=function(J){if(J===void 0)return!1;var me=N.input.value,D=me.lastIndexOf(J);if(D===-1)return!1;var y=N.cursorBefore.length;return N.lastKeyCode===C.a.DELETE&&N.cursorBefore.charAt(y-1)===J[0]?(N.fixCaret(y,y),!0):D+J.length===me.length?(N.fixCaret(D,D),!0):!1},N.partRestoreByAfter=function(J){return J===void 0?!1:Array.prototype.some.call(J,function(me,D){var y=J.substring(D);return N.restoreByAfter(y)})},N.isNotCompleteNumber=function(J){return isNaN(J)||J===""||J===null||J&&J.toString().indexOf(".")===J.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(J,me,D){N.pressingUpOrDown=!0,N.step("down",J,me,D)},N.up=function(J,me,D){N.pressingUpOrDown=!0,N.step("up",J,me,D)},N.saveInput=function(J){N.input=J};var X=K.value;X===void 0&&(X=K.defaultValue),N.state={focused:K.autoFocus};var ie=N.getValidValue(N.toNumber(X));return N.state=E(E({},N.state),{},{inputValue:N.toPrecisionAsStep(ie),value:ie}),N}return Object(fe.a)(ue,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var X=this.props,ie=X.value,J=X.onChange,me=X.max,D=X.min,y=this.state.focused;if(N){if(!Me(N.value,ie)||!Me(N.max,me)||!Me(N.min,D)){var q=y?ie:this.getValidValue(ie),Ae;this.pressingUpOrDown?Ae=q:this.inputting?Ae=this.rawInput:Ae=this.toPrecisionAsStep(q),this.setState({value:q,inputValue:Ae})}var Se="value"in this.props?ie:this.state.value;"max"in this.props&&N.max!==me&&typeof Se=="number"&&Se>me&&J&&J(me),"min"in this.props&&N.min!==D&&typeof Se=="number"&&Se<D&&J&&J(D)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var nt=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===C.a.BACKSPACE?nt=this.cursorStart-1:this.lastKeyCode===C.a.DELETE&&(nt=this.cursorStart):nt=this.input.value.length,this.fixCaret(nt,nt)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case C.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case C.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(at){}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(N){var X=N;return X===""?X="":this.isNotCompleteNumber(parseFloat(X))?X=this.state.value:X=this.getValidValue(X),this.toNumber(X)}},{key:"getValueFromEvent",value:function(N){var X=N.target.value.trim().replace(/。/g,".");return oe(this.props.decimalSeparator)&&(X=X.replace(this.props.decimalSeparator,".")),X}},{key:"getValidValue",value:function(N){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,J=parseFloat(N);return isNaN(J)?N:(J<X&&(J=X),J>ie&&(J=ie),J)}},{key:"setValue",value:function(N,X){var ie=this.props.precision,J=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),me=this.state.value,D=me===void 0?null:me,y=this.state.inputValue,q=y===void 0?null:y,Ae=typeof J=="number"?J.toFixed(ie):"".concat(J),Se=J!==D||Ae!=="".concat(q);return"value"in this.props?(q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:q},X)):this.setState({value:J,inputValue:this.toPrecisionAsStep(N)},X),Se&&this.props.onChange(J),J}},{key:"getMaxPrecision",value:function(N){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=this.props,J=ie.precision,me=ie.step;if(oe(J))return J;var D=this.getPrecision(X),y=this.getPrecision(me),q=this.getPrecision(N);return N?Math.max(q,D+y):D+y}},{key:"getPrecisionFactor",value:function(N){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=this.getMaxPrecision(N,X);return Math.pow(10,ie)}},{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(N){return this.props.formatter?this.props.formatter(N):N}},{key:"toPrecisionAsStep",value:function(N){if(this.isNotCompleteNumber(N)||N==="")return N;var X=Math.abs(this.getMaxPrecision(N));return isNaN(X)?N.toString():Number(N).toFixed(X)}},{key:"toNumber",value:function(N){var X=this.props.precision,ie=this.state.focused,J=N&&N.length>16&&ie;return this.isNotCompleteNumber(N)||J?N:oe(X)?Math.round(N*Math.pow(10,X))/Math.pow(10,X):Number(N)}},{key:"upStep",value:function(N,X){var ie=this.props.step,J=this.getPrecisionFactor(N,X),me=Math.abs(this.getMaxPrecision(N,X)),D=((J*N+J*ie*X)/J).toFixed(me);return this.toNumber(D)}},{key:"downStep",value:function(N,X){var ie=this.props.step,J=this.getPrecisionFactor(N,X),me=Math.abs(this.getMaxPrecision(N,X)),D=((J*N-J*ie*X)/J).toFixed(me);return this.toNumber(D)}},{key:"step",value:function(N,X){var ie=this,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,me=arguments.length>3?arguments[3]:void 0;this.stop(),X&&(X.persist(),X.preventDefault());var D=this.props;if(D.disabled)return;var y=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(y))return;var q=this["".concat(N,"Step")](y,J),Ae=q>D.max||q<D.min;if(q>D.max?q=D.max:q<D.min&&(q=D.min),this.setValue(q,null),this.setState({focused:!0},function(){ie.pressingUpOrDown=!1}),Ae)return;this.autoStepTimer=setTimeout(function(){ie[N](X,J,!0)},me?I:le)}},{key:"fixCaret",value:function(N,X){if(N===void 0||X===void 0||!this.input||!this.input.value)return;try{var ie=this.input.selectionStart,J=this.input.selectionEnd;(N!==ie||X!==J)&&this.input.setSelectionRange(N,X)}catch(me){}}},{key:"render",value:function(){var N,X=this.props,ie=X.prefixCls,J=X.disabled,me=X.readOnly,D=X.useTouch,y=X.autoComplete,q=X.upHandler,Ae=X.downHandler,Se=X.className,nt=X.max,at=X.min,We=X.style,Le=X.title,Ie=X.onMouseEnter,Ne=X.onMouseLeave,se=X.onMouseOver,Z=X.onMouseOut,ze=X.required,Ye=X.onClick,Ke=X.tabIndex,rt=X.type,U=X.placeholder,F=X.id,he=X.inputMode,ye=X.pattern,Pe=X.step,Be=X.maxLength,De=X.autoFocus,Ge=X.name,lt=X.onPaste,qe=X.onInput,Je=Object(G.a)(X,["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"]),Ve=this.state,Ct=Ve.value,pt=Ve.focused,ht=b()(ie,(N={},Object(be.a)(N,Se,!!Se),Object(be.a)(N,"".concat(ie,"-disabled"),J),Object(be.a)(N,"".concat(ie,"-focused"),pt),N)),Ee={};Object.keys(Je).forEach(function(z){(z.substr(0,5)==="data-"||z.substr(0,5)==="aria-"||z==="role")&&(Ee[z]=Je[z])});var Xe=!me&&!J,ut=this.getInputDisplayValue(null),we=(Ct||Ct===0)&&(isNaN(Ct)||Number(Ct)>=nt),_e=(Ct||Ct===0)&&(isNaN(Ct)||Number(Ct)<=at),ee=we||J||me,Q=_e||J||me,$=b()("".concat(ie,"-handler"),"".concat(ie,"-handler-up"),Object(be.a)({},"".concat(ie,"-handler-up-disabled"),ee)),S=b()("".concat(ie,"-handler"),"".concat(ie,"-handler-down"),Object(be.a)({},"".concat(ie,"-handler-down-disabled"),Q)),M=D?{onTouchStart:ee?g:this.up,onTouchEnd:this.stop}:{onMouseDown:ee?g:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},j=D?{onTouchStart:Q?g:this.down,onTouchEnd:this.stop}:{onMouseDown:Q?g:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return O.a.createElement("div",{className:ht,style:We,title:Le,onMouseEnter:Ie,onMouseLeave:Ne,onMouseOver:se,onMouseOut:Z,onFocus:function(){return null},onBlur:function(){return null}},O.a.createElement("div",{className:"".concat(ie,"-handler-wrap")},O.a.createElement("span",Object.assign({unselectable:"on"},M,{role:"button","aria-label":"Increase Value","aria-disabled":ee,className:$}),q||O.a.createElement("span",{unselectable:"on",className:"".concat(ie,"-handler-up-inner"),onClick:v})),O.a.createElement("span",Object.assign({unselectable:"on"},j,{role:"button","aria-label":"Decrease Value","aria-disabled":Q,className:S}),Ae||O.a.createElement("span",{unselectable:"on",className:"".concat(ie,"-handler-down-inner"),onClick:v}))),O.a.createElement("div",{className:"".concat(ie,"-input-wrap")},O.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":at,"aria-valuemax":nt,"aria-valuenow":Ct,required:ze,type:rt,placeholder:U,onPaste:lt,onClick:Ye,onMouseUp:this.onMouseUp,className:"".concat(ie,"-input"),tabIndex:Ke,autoComplete:y,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Xe?this.onKeyDown:g,onKeyUp:Xe?this.onKeyUp:g,autoFocus:De,maxLength:Be,readOnly:me,disabled:J,max:nt,min:at,step:Pe,name:Ge,title:Le,id:F,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ut),pattern:ye,inputMode:he,onInput:qe},Ee))))}}]),ue}(O.a.Component);ge.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:te,min:-te,step:1,style:{},onChange:g,onKeyDown:g,onPressEnter:g,onFocus:g,onBlur:g,parser:w,required:!1,autoComplete:"off"};var xe=ge,ve=_.a=xe},fjLI:function(ke,_,d){"use strict";d.d(_,"e",function(){return B}),d.d(_,"a",function(){return b}),d.d(_,"c",function(){return C}),d.d(_,"d",function(){return E}),d.d(_,"b",function(){return A});var G=d("8HAY"),be=d("Cg/j"),re=d("T8No"),fe=d("nnTU"),de=d("MI8n"),ne=function(){var L=function(g,v){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var le in I)I.hasOwnProperty(le)&&(w[le]=I[le])},L(g,v)};return function(g,v){L(g,v);function w(){this.constructor=g}g.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}}(),W=function(L,g,v,w){var I=arguments.length,le=I<3?g:w===null?w=Object.getOwnPropertyDescriptor(g,v):w,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(L,g,v,w);else for(var oe=L.length-1;oe>=0;oe--)(te=L[oe])&&(le=(I<3?te(le):I>3?te(g,v,le):te(g,v))||le);return I>3&&le&&Object.defineProperty(g,v,le),le},Y=function(L,g){return function(v,w){g(v,w,L)}},O=function(){for(var L=0,g=0,v=arguments.length;g<v;g++)L+=arguments[g].length;for(var w=Array(L),I=0,g=0;g<v;g++)for(var le=arguments[g],te=0,oe=le.length;te<oe;te++,I++)w[I]=le[te];return w};function B(L){return L.command!==void 0}var b=Object(be.c)("menuService"),C=new(function(){function L(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new de.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return L.prototype.addCommand=function(g){var v=this;return this._commands.set(g.id,g),this._onDidChangeMenu.fire(0),{dispose:function(){v._commands.delete(g.id)&&v._onDidChangeMenu.fire(0)}}},L.prototype.getCommand=function(g){return this._commands.get(g)},L.prototype.getCommands=function(){var g=new Map;return this._commands.forEach(function(v,w){return g.set(w,v)}),g},L.prototype.appendMenuItem=function(g,v){var w=this,I=this._menuItems.get(g);return I?I.push(v):(I=[v],this._menuItems.set(g,I)),this._onDidChangeMenu.fire(g),{dispose:function(){var le=I.indexOf(v);le>=0&&(I.splice(le,1),w._onDidChangeMenu.fire(g))}}},L.prototype.getMenuItems=function(g){var v=(this._menuItems.get(g)||[]).slice(0);return g===0&&this._appendImplicitItems(v),v},L.prototype._appendImplicitItems=function(g){for(var v=new Set,w=g.filter(function(ge){return B(ge)}),I=0,le=w;I<le.length;I++){var te=le[I],oe=te.command,Me=te.alt;v.add(oe.id),Me&&v.add(Me.id)}this._commands.forEach(function(ge,xe){v.has(xe)||g.push({command:ge})})},L}()),k=function(L){ne(g,L);function g(v,w,I){var le=L.call(this,v,w)||this;return le._commandService=I,le}return g.prototype.run=function(){for(var v,w=[],I=0;I<arguments.length;I++)w[I]=arguments[I];return(v=this._commandService).executeCommand.apply(v,O([this.id],w))},g=W([Y(2,fe.b)],g),g}(G.a),E=function(L){ne(g,L);function g(v){var w=this;return typeof v.title=="string"?w=L.call(this,"",v.title,"submenu")||this:w=L.call(this,"",v.title.value,"submenu")||this,w.item=v,w}return g}(G.a),A=function(L){ne(g,L);function g(v,w,I,le,te){var oe=this;return typeof v.title=="string"?oe=L.call(this,v.id,v.title,te)||this:oe=L.call(this,v.id,v.title.value,te)||this,oe._cssClass=void 0,oe._enabled=!v.precondition||le.contextMatchesRules(v.precondition),oe._checked=Boolean(v.toggled&&le.contextMatchesRules(v.toggled)),oe._options=I||{},oe.item=v,oe.alt=w?new g(w,void 0,oe._options,le,te):void 0,oe}return g.prototype.dispose=function(){this.alt&&this.alt.dispose(),L.prototype.dispose.call(this)},g.prototype.run=function(){for(var v=[],w=0;w<arguments.length;w++)v[w]=arguments[w];var I=[];return this._options.arg&&(I=O(I,[this._options.arg])),this._options.shouldForwardArgs&&(I=O(I,v)),L.prototype.run.apply(this,I)},g=W([Y(3,re.c),Y(4,fe.b)],g),g}(k)},is8o:function(ke,_,d){ke.exports={flex_box_center:"flex_box_center___45jij",flex_space_between:"flex_space_between___2rBtS",flex_box_vertical_center:"flex_box_vertical_center___B3dEI",flex_box_center_end:"flex_box_center_end___1hlbx",flex_box_column:"flex_box_column___n3oa5",wrap:"wrap___2Ebga",modal:"modal___37ZgF",titleWrap:"titleWrap___dEwT4",required:"required___4a1a5",title:"title___1MHB3",colorGray:"colorGray___1tQ38",choiceWrap:"choiceWrap___2Ik_w",answer:"answer___3N5FQ",activeAnswer:"activeAnswer___3zdHK",deleteIcon:"deleteIcon___U7nIS",addIcon:"addIcon___2tuSF",editorWrap:"editorWrap___ZOK2K",htmlWrap:"htmlWrap___3X_dl",radio:"radio___wS7N0",color333:"color333___S1zDX",color999:"color999___VJwGv",questionType:"questionType___BHDve",questionChoices:"questionChoices___3YAfc"}},ji0R:function(ke,_,d){ke.exports=d.p+"static/douyu.3e6df9ee.jpg"},kPWJ:function(ke,_,d){ke.exports=d.p+"static/question.cb52bef9.gif"},kPYp:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPU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P2fV"),fe=d("NJEC"),de=d("14J3"),ne=d("BMrR"),W=d("jCWc"),Y=d("kPKH"),O=d("OaEy"),B=d("2fM7"),b=d("7Kak"),C=d("9yH6"),k=d("+L6B"),E=d("2/Rp"),A=d("5NDa"),L=d("5rEg"),g=d("miYZ"),v=d("tsqr"),w=d("k1fw"),I=d("9og8"),le=d("y8nQ"),te=d("Vl3Y"),oe=d("tJVT"),Me=d("PpiC"),ge=d("WmNS"),xe=d.n(ge),ve=d("q1tI"),T=d.n(ve),R=d("9kvl"),ue=d("Ot1p"),K=d("HBuW"),N=d("oBTY"),X=d("2qtc"),ie=d("kLXV"),J=d("Ty5D"),me=d("V0Rq"),D=d("9Bee"),y=d("is8o"),q=d.n(y),Ae=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Se=function(Ke,rt){var U=Ke.problemset,F=Ke.globalSetting,he=Ke.loading,ye=Ke.dispatch,Pe=Ke.onRef,Be=Pe===void 0?function(){}:Pe,De=Ke.editData,Ge=Object(Me.a)(Ke,["problemset","globalSetting","loading","dispatch","onRef","editData"]),lt=Object(ve.useState)([]),qe=Object(oe.a)(lt,2),Je=qe[0],Ve=qe[1],Ct=Object(ve.useState)(),pt=Object(oe.a)(Ct,2),ht=pt[0],Ee=pt[1],Xe=Object(ve.useState)([]),ut=Object(oe.a)(Xe,2),we=ut[0],_e=ut[1],ee=Object(ve.useState)(""),Q=Object(oe.a)(ee,2),$=Q[0],S=Q[1],M=Object(ve.useState)(5),j=Object(oe.a)(M,2),z=j[0],Ce=j[1],ae=Object(ve.useState)(!1),je=Object(oe.a)(ae,2),$e=je[0],dt=je[1],st=Object(J.i)();Object(ve.useEffect)(function(){Ve(["","","",""])},[]),Object(ve.useEffect)(function(){var Ut,It;if(!(De!=null&&De.challenge_id)){dt(!0);return}S(De==null?void 0:De.subject),Ce(parseInt(De==null?void 0:De.question_score)),Ve(De==null||((Ut=De.choose_contents)===null||Ut===void 0)?void 0:Ut.map(function(jt){return jt.option_name}));var wt=[];De==null||((It=De.standard_answer)===null||It===void 0)||It.split("").map(function(jt,Gt){wt.push(Ae.indexOf(jt))}),_e(wt)},[De]),Object(ve.useImperativeHandle)(rt,function(){return{onSave:Mt,onReset:Lt,isEdit:$e}});var Lt=function(){Ve(["","","",""]),S(""),_e([])},Mt=function(){var Ut=Object(I.a)(xe.a.mark(function It(){var wt,jt;return xe.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if($){ot.next=3;break}return v.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),ot.abrupt("return",!1);case 3:if(wt=Je.findIndex(function(gt){return!gt}),!(wt>-1)){ot.next=7;break}return v.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Ae[wt]," \u9009\u9879\u7684\u5185\u5BB9")),ot.abrupt("return",!1);case 7:if(we.length){ot.next=10;break}return v.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),ot.abrupt("return",!1);case 10:if(!(we.length<1)){ot.next=13;break}return v.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),ot.abrupt("return",!1);case 13:return jt=Je.map(function(gt,it){return{choice_text:gt,is_answer:!!we.includes(it)}}),ot.abrupt("return",{subject:$,question:{cnt:jt.map(function(gt){return gt.choice_text})},choice:{answer:jt.map(function(gt){return gt.is_answer})}});case 15:case"end":return ot.stop()}},It)}));return function(){return Ut.apply(this,arguments)}}(),mt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Jt=function(){var Ut=Object(I.a)(xe.a.mark(function It(wt){return xe.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:Gt.t0=wt.id,Gt.next=Gt.t0==="del"?3:Gt.t0==="up"||Gt.t0==="down"?5:Gt.t0==="edit"?9:11;break;case 3:return ie.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk:function(){return Object(I.a)(xe.a.mark(function gt(){return xe.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,Object(me.m)({id:De.question_id});case 2:ye({type:"exercise/editExercise",payload:Object(w.a)({},st)});case 3:case"end":return xt.stop()}},gt)}))()}}),Gt.abrupt("break",11);case 5:return Gt.next=7,ye({type:"exercise/exeriseMoveUpDown",payload:{id:De.question_id,opr:wt.id}});case 7:return ye({type:"exercise/editExercise",payload:Object(w.a)({},st)}),Gt.abrupt("break",11);case 9:return dt(!0),Gt.abrupt("break",11);case 11:case"end":return Gt.stop()}},It)}));return function(wt){return Ut.apply(this,arguments)}}(),Bt=function(){var It;return T.a.createElement("aside",null,T.a.createElement("p",{className:q.a.titleWrap},T.a.createElement("span",{className:q.a.required},"*"),T.a.createElement("span",{className:q.a.title},"\u9898\u5E72\uFF1A")),T.a.createElement(ue.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:$,onChange:function(jt){return S(jt)}}),T.a.createElement("p",{className:q.a.titleWrap},T.a.createElement("span",{className:q.a.required},"*"),T.a.createElement("span",{className:q.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",T.a.createElement("span",{className:q.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Je.map(function(wt,jt){return T.a.createElement("div",{className:q.a.choiceWrap,key:jt},T.a.createElement(be.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},T.a.createElement("div",{className:"".concat(q.a.answer," ").concat(we.includes(jt)?q.a.activeAnswer:""),onClick:function(){we.includes(jt)?_e(we.filter(function(ot){return ot!==jt})):_e([].concat(Object(N.a)(we),[jt]))}},Ae[jt])),T.a.createElement("div",{className:q.a.editorWrap},ht===jt?T.a.createElement(ue.a,{id:"single-question-option-".concat(jt),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:wt,onChange:function(ot){Je[jt]=ot,Ve(Je)}}):T.a.createElement("div",{className:q.a.htmlWrap,onClick:function(){return Ee(jt)}},T.a.createElement(D.a,{value:wt}))),jt>1&&T.a.createElement(be.a,{title:"\u5220\u9664"},T.a.createElement("i",{className:"".concat(q.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Ve(Je.filter(function(ot,gt){return gt!==jt}))}})),jt<7&&jt===Je.length-1&&T.a.createElement(be.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},T.a.createElement("i",{className:"".concat(q.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Ve([].concat(Object(N.a)(Je),[""]))}})))}),T.a.createElement(ne.a,{className:"mt10"},T.a.createElement(Y.a,{flex:"1"},T.a.createElement("p",{className:"c-grey-999"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898")),T.a.createElement(Y.a,null,"\u6807\u51C6\u7B54\u6848\uFF1A",T.a.createElement("span",{className:"c-orange"},we==null||((It=we.sort(function(wt,jt){return wt-jt}))===null||It===void 0)?void 0:It.map(function(wt){return Ae[wt]})))))};return T.a.createElement("section",{className:q.a.wrap},Bt())},nt=Object(R.a)(function(Ye){var Ke=Ye.problemset,rt=Ye.loading,U=Ye.globalSetting;return{problemset:Ke,globalSetting:U,loading:rt.effects}},null,null,{forwardRef:!0})(Object(ve.forwardRef)(Se)),at=d("1vsH"),We=d("zEei"),Le=d.n(We),Ie=d("CJF0"),Ne=d("2RCv"),se={1:[10,20],2:[30,40,50,60],3:[70,80,90,100]},Z=function(Ke){var rt,U=Ke.shixunsDetail,F=Ke.dispatch,he=Ke.loading,ye=Ke.match,Pe=Ke.location,Be=Object(Me.a)(Ke,["shixunsDetail","dispatch","loading","match","location"]),De=te.a.useForm(),Ge=Object(oe.a)(De,1),lt=Ge[0],qe=Object(ve.useState)({}),Je=Object(oe.a)(qe,2),Ve=Je[0],Ct=Je[1],pt=Object(ve.useState)(!1),ht=Object(oe.a)(pt,2),Ee=ht[0],Xe=ht[1],ut=Object(ve.useState)(!0),we=Object(oe.a)(ut,2),_e=we[0],ee=we[1],Q=Object(ve.useState)(),$=Object(oe.a)(Q,2),S=$[0],M=$[1],j=Object(ve.useState)([10,20]),z=Object(oe.a)(j,2),Ce=z[0],ae=z[1],je=Object(ve.useState)(!1),$e=Object(oe.a)(je,2),dt=$e[0],st=$e[1],Lt=Object(ve.useState)({}),Mt=Object(oe.a)(Lt,2),mt=Mt[0],Jt=Mt[1],Bt=U.challengesEdit,Ut=U.editChallengesQuestion,It=Object(ve.useRef)(),wt=function(){var Nt=Object(I.a)(xe.a.mark(function vt(){var He;return xe.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.next=2,F({type:"shixunsDetail/getChallengesEdit",payload:Object(w.a)({},ye.params)});case 2:He=Dt.sent,lt.setFieldsValue(Object(w.a)({},He));case 4:case"end":return Dt.stop()}},vt)}));return function(){return Nt.apply(this,arguments)}}(),jt=function(){var Nt=Object(I.a)(xe.a.mark(function vt(){var He;return xe.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(!ye.params.questionId){Dt.next=7;break}return Dt.next=3,F({type:"shixunsDetail/getEditChallengesQuestion",payload:Object(w.a)({},ye.params)});case 3:He=Dt.sent,lt.setFieldsValue({challenge_tag:He.tags,difficult:He.difficult,score:He.score,answer:He.answer}),ae(se[He.difficult]),Jt(He);case 7:case"end":return Dt.stop()}},vt)}));return function(){return Nt.apply(this,arguments)}}();Object(ve.useEffect)(function(){wt(),ye.params.questionId&&(M(!0),jt(),Xe(!0))},[Pe.pathname]);var Gt=function(){var Nt=Object(I.a)(xe.a.mark(function vt(){var He,Qt,Dt,cn;return xe.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:return Qt="",Dt=Object(w.a)({},Ve),dn.next=4,It.current.onSave();case 4:return cn=dn.sent,(He=cn.choice)===null||He===void 0||He.answer.map(function(Et,Jn){Et&&(Qt+=at.m[Jn])}),dn.abrupt("return",{challenge_choose:{subject:cn.subject,answer:Ve.task_pass,standard_answer:Qt,score:Ve.score,difficult:Ve.difficult},challenge_tag:Ve.challenge_tag,question:cn.question,choice:cn.choice});case 7:case"end":return dn.stop()}},vt)}));return function(){return Nt.apply(this,arguments)}}(),ot=function(vt){var He=se[vt],Qt=He==null?void 0:He[0];ae(He),lt.setFieldsValue({score:Qt}),Ct(Object(w.a)(Object(w.a)({},lt.getFieldsValue()),{score:Qt}))},gt=function(vt,He){Ct(Object(w.a)({},lt.getFieldsValue())),"difficult"in vt&&ot(vt.difficult)},it=function(){var Nt=Object(I.a)(xe.a.mark(function vt(){var He;return xe.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.t0=K.v,Dt.t1=w.a,Dt.t2=w.a,Dt.t3={},Dt.next=6,Gt();case 6:return Dt.t4=Dt.sent,Dt.t5=(0,Dt.t2)(Dt.t3,Dt.t4),Dt.t6=ye.params,Dt.t7=(0,Dt.t1)(Dt.t5,Dt.t6),Dt.next=12,(0,Dt.t0)(Dt.t7);case 12:He=Dt.sent,(He==null?void 0:He.status)===1&&v.b.success("\u5220\u9664\u6210\u529F"),Be.history.replace("/shixuns/".concat(ye.params.id,"/challenges/").concat(ye.params.challengesId,"/editquestion"));case 15:case"end":return Dt.stop()}},vt)}));return function(){return Nt.apply(this,arguments)}}(),xt=function(){var Nt=Object(I.a)(xe.a.mark(function vt(He){var Qt,Dt,cn,Pt;return xe.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(Qt=Object(w.a)({},Ve),st(!0),_e){Et.next=20;break}return Et.t0=K.c,Et.t1=w.a,Et.t2=w.a,Et.t3={},Et.next=9,Gt();case 9:return Et.t4=Et.sent,Et.t5=(0,Et.t2)(Et.t3,Et.t4),Et.t6=ye.params,Et.t7=(0,Et.t1)(Et.t5,Et.t6),Et.next=15,(0,Et.t0)(Et.t7);case 15:Dt=Et.sent,st(!1),Dt.challenge_choose_id&&(v.b.success("\u64CD\u4F5C\u6210\u529F"),Be.history.replace("/shixuns/".concat(ye.params.id,"/challenges/").concat(ye.params.challengesId,"/editquestion/").concat(Dt.challenge_choose_id))),Et.next=45;break;case 20:if(!ye.params.questionId){Et.next=38;break}return Et.t8=K.Mb,Et.t9=w.a,Et.t10=w.a,Et.t11={},Et.next=27,Gt();case 27:return Et.t12=Et.sent,Et.t13=(0,Et.t10)(Et.t11,Et.t12),Et.t14=ye.params,Et.t15=(0,Et.t9)(Et.t13,Et.t14),Et.next=33,(0,Et.t8)(Et.t15);case 33:cn=Et.sent,st(!1),cn.challenge_choose_id&&v.b.success("\u64CD\u4F5C\u6210\u529F"),Et.next=45;break;case 38:return Qt.identifier=ye.params.id,Qt.st=1,Et.next=42,Object(K.Lb)(Object(w.a)(Object(w.a)({},Qt),ye.params));case 42:Pt=Et.sent,st(!1),Pt.challenge_id&&v.b.success("\u64CD\u4F5C\u6210\u529F");case 45:case"end":return Et.stop()}},vt)}));return function(He){return Nt.apply(this,arguments)}}(),qt=function(){var vt;return T.a.createElement("div",null,T.a.createElement("div",{className:Le.a.fieldWrap},T.a.createElement(te.a.Item,{name:"subject",label:"\u4EFB\u52A1\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},T.a.createElement(L.a,{maxLength:60,suffix:"".concat(((vt=Ve.subject)===null||vt===void 0?void 0:vt.length)||0,"/60"),placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),T.a.createElement("div",{className:Le.a.mdWrap},T.a.createElement(te.a.Item,{name:"task_pass",label:"\u8FC7\u5173\u4EFB\u52A1:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:35e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},T.a.createElement(ue.a,{watch:!0,defaultValue:Bt.task_pass}))),T.a.createElement("div",{className:Le.a.backgroundFa},T.a.createElement("div",{className:"pt40 mb30"},T.a.createElement(te.a.Item,null,T.a.createElement(E.a,{size:"large",type:"primary",className:"".concat(Le.a.button," mr20"),htmlType:"submit",loading:dt},"\u63D0\u4EA4"),T.a.createElement(E.a,{size:"large",type:"primary",ghost:!0,className:Le.a.button,onClick:function(){return R.d.push("/shixuns/".concat(ye.params.id,"/challenges"))}},"\u53D6\u6D88")))))},un=function(){var vt,He;return T.a.createElement("div",null,T.a.createElement("div",{className:"bg-white"},T.a.createElement(nt,{ref:It,editData:mt})),T.a.createElement("div",{className:Le.a.mdWrap},T.a.createElement(te.a.Item,{name:"task_pass",label:"\u53C2\u8003\u7B54\u6848:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:35e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},T.a.createElement(ue.a,{watch:!0,defaultValue:_e?Ut.answer:""})),T.a.createElement(te.a.Item,{name:"difficult",label:"\u96BE\u5EA6\u7CFB\u6570:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6\u7CFB\u6570"}]},T.a.createElement(C.a.Group,{disabled:((vt=U.detail)===null||vt===void 0?void 0:vt.shixun_status)===2},T.a.createElement(C.a,{value:1},"\u7B80\u5355"),T.a.createElement(C.a,{value:2},"\u4E2D\u7B49"),T.a.createElement(C.a,{value:3},"\u56F0\u96BE"))),T.a.createElement(ne.a,null,T.a.createElement(Y.a,null,T.a.createElement(te.a.Item,{name:"score",label:"\u5956\u52B1\u7ECF\u9A8C\u503C:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5956\u52B1\u7ECF\u9A8C\u503C"}]},T.a.createElement(B.a,{disabled:((He=U.detail)===null||He===void 0?void 0:He.shixun_status)===2},Ce.map(function(Qt){return T.a.createElement(B.a.Option,{key:Qt,value:Qt},Qt)})))),T.a.createElement(Y.a,{flex:1},T.a.createElement("div",{className:"font12 c-light-black ml10 mt20"},"\u5982\u679C\u5B66\u5458\u7B54\u9898\u9519\u8BEF\uFF0C\u5219\u4E0D\u80FD\u5F97\u5230\u76F8\u5E94\u7684\u7ECF\u9A8C\u503C",T.a.createElement("br",null),"\u5982\u679C\u5B66\u5458\u6210\u529F\u5F97\u5230\u7ECF\u9A8C\u503C\uFF0C\u90A3\u4E48\u5C06\u540C\u65F6\u83B7\u5F97\u7B49\u503C\u7684\u91D1\u5E01\u5956\u52B1\uFF0C\u5982\uFF1A+10\u7ECF\u9A8C\u503C\u3001+10\u91D1\u5E01"))),T.a.createElement(te.a.Item,{name:"challenge_tag",label:T.a.createElement("div",null,"\u6280\u80FD\u6807\u7B7E ",T.a.createElement("span",{className:"pl20 font12 c-light-black"},"\u5B66\u5458\u7B54\u9898\u6B63\u786E\u5C06\u83B7\u5F97\u6280\u80FD\uFF0C\u5426\u5219\u4E0D\u80FD\u83B7\u5F97\u6280\u80FD\uFF08\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E\uFF09")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},T.a.createElement(Ne.a,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"}))),T.a.createElement("div",{className:Le.a.backgroundFa},T.a.createElement(ne.a,{className:"pt40 mb30"},T.a.createElement(Y.a,{flex:1},T.a.createElement(te.a.Item,null,T.a.createElement(E.a,{size:"large",type:"primary",className:"".concat(Le.a.button," mr20"),htmlType:"submit",loading:dt},"\u63D0\u4EA4"),T.a.createElement(E.a,{size:"large",type:"primary",ghost:!0,className:Le.a.button,onClick:function(){return R.d.push("/shixuns/".concat(ye.params.id,"/challenges"))}},"\u53D6\u6D88"))),T.a.createElement(Y.a,null,S&&T.a.createElement(E.a,{size:"large",ghost:!0,className:"".concat(Le.a.button," ").concat(Le.a.deleteButton),onClick:it},"\u5220\u9664")))))};return T.a.createElement("section",{className:Le.a.bg},T.a.createElement(Ie.a,{data:Bt,title:"\u9009\u62E9\u9898"}),T.a.createElement(te.a,{form:lt,className:Le.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:gt,onFinish:xt,initialValues:{difficult:1,score:10}},T.a.createElement("aside",{className:["bg-white",Le.a.navBar].join(" ")},T.a.createElement(fe.a,{title:"\u5207\u6362\u524D\u8BF7\u786E\u8BA4\u5F53\u524D\u9009\u62E9\u9898\u5DF2\u63D0\u4EA4\uFF0C\u5426\u5219\u4E0D\u4F1A\u4FDD\u5B58\u4F60\u5F53\u524D\u6240\u6709\u8F93\u5165\uFF01",onConfirm:function(){R.d.replace("/shixuns/".concat(ye.params.id,"/challenges/").concat(ye.params.challengesId,"/editquestion"))}},T.a.createElement("strong",{className:"current"},"\u672C\u5173\u4EFB\u52A1")),Bt==null||((rt=Bt.chooses)===null||rt===void 0)?void 0:rt.map(function(Nt,vt){return T.a.createElement(fe.a,{title:"\u5207\u6362\u524D\u8BF7\u786E\u8BA4\u5F53\u524D\u9009\u62E9\u9898\u5DF2\u63D0\u4EA4\uFF0C\u5426\u5219\u4E0D\u4F1A\u4FDD\u5B58\u4F60\u5F53\u524D\u6240\u6709\u8F93\u5165\uFF01",onConfirm:function(){R.d.replace("/shixuns/".concat(ye.params.id,"/challenges/").concat(ye.params.challengesId,"/editquestion/").concat(Nt.choose_id))}},T.a.createElement("strong",{className:"current ".concat(ye.params.questionId==Nt.choose_id&&_e?Le.a.actived:"")},Nt.type===1?"\u5355\u9009\u9898":"\u591A\u9009\u9898"))}),_e&&T.a.createElement(fe.a,{title:"\u5207\u6362\u524D\u8BF7\u786E\u8BA4\u5F53\u524D\u9009\u62E9\u9898\u5DF2\u63D0\u4EA4\uFF0C\u5426\u5219\u4E0D\u4F1A\u4FDD\u5B58\u4F60\u5F53\u524D\u6240\u6709\u8F93\u5165\uFF01",onConfirm:function(){Xe(!0),ee(!1),Jt({}),It.current&&It.current.onReset(),lt.resetFields()}},T.a.createElement(be.a,{title:"\u65B0\u589E\u9009\u62E9\u9898"},T.a.createElement("span",{className:Le.a.addButton,onClick:function(){}},"+"))),!_e&&T.a.createElement("strong",{className:Le.a.actived},"\u9009\u62E9\u9898")),!Ee&&qt(),Ee&&un()))},ze=_.default=Object(R.a)(function(Ye){var Ke=Ye.shixunsDetail,rt=Ye.newCourse,U=Ye.loading,F=Ye.globalSetting;return{shixunsDetail:Ke,newCourse:rt,globalSetting:F,loading:U.effects}})(Z)},l2Kq:function(ke,_,d){ke.exports=d.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(ke,_,d){(function(G){G(d("VrN/"),d("1eCo"),d("8EBN"))})(function(G){"use strict";G.defineMode("markdown",function(be,re){var fe=G.getMode(be,"text/html"),de=fe.name=="null";function ne(D){if(G.findModeByName){var y=G.findModeByName(D);y&&(D=y.mime||y.mimes[0])}var q=G.getMode(be,D);return q.name=="null"?null:q}re.highlightFormatting===void 0&&(re.highlightFormatting=!1),re.maxBlockquoteDepth===void 0&&(re.maxBlockquoteDepth=0),re.taskLists===void 0&&(re.taskLists=!1),re.strikethrough===void 0&&(re.strikethrough=!1),re.emoji===void 0&&(re.emoji=!1),re.fencedCodeBlockHighlighting===void 0&&(re.fencedCodeBlockHighlighting=!0),re.fencedCodeBlockDefaultMode===void 0&&(re.fencedCodeBlockDefaultMode="text/plain"),re.xml===void 0&&(re.xml=!0),re.tokenTypeOverrides===void 0&&(re.tokenTypeOverrides={});var W={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 Y in W)W.hasOwnProperty(Y)&&re.tokenTypeOverrides[Y]&&(W[Y]=re.tokenTypeOverrides[Y]);var O=/^([*\-_])(?:\s*\1){2,}\s*$/,B=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,b=/^\[(x| )\](?=\s)/i,C=re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,k=/^ {0,3}(?:\={1,}|-{2,})\s*$/,E=/^[^#!\[\]*_\\<>` "'(~:]+/,A=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,L=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,v=" ";function w(D,y,q){return y.f=y.inline=q,q(D,y)}function I(D,y,q){return y.f=y.block=q,q(D,y)}function le(D){return!D||!/\S/.test(D.string)}function te(D){if(D.linkTitle=!1,D.linkHref=!1,D.linkText=!1,D.em=!1,D.strong=!1,D.strikethrough=!1,D.quote=0,D.indentedCode=!1,D.f==Me){var y=de;if(!y){var q=G.innerMode(fe,D.htmlState);y=q.mode.name=="xml"&&q.state.tagStart===null&&!q.state.context&&q.state.tokenize.isInText}y&&(D.f=T,D.block=oe,D.htmlState=null)}return D.trailingSpace=0,D.trailingSpaceNewLine=!1,D.prevLine=D.thisLine,D.thisLine={stream:null},null}function oe(D,y){var q=D.column()===y.indentation,Ae=le(y.prevLine.stream),Se=y.indentedCode,nt=y.prevLine.hr,at=y.list!==!1,We=(y.listStack[y.listStack.length-1]||0)+3;y.indentedCode=!1;var Le=y.indentation;if(y.indentationDiff===null&&(y.indentationDiff=y.indentation,at)){for(y.list=null;Le<y.listStack[y.listStack.length-1];)y.listStack.pop(),y.listStack.length?y.indentation=y.listStack[y.listStack.length-1]:y.list=!1;y.list!==!1&&(y.indentationDiff=Le-y.listStack[y.listStack.length-1])}var Ie=!Ae&&!nt&&!y.prevLine.header&&(!at||!Se)&&!y.prevLine.fencedCodeEnd,Ne=(y.list===!1||nt||Ae)&&y.indentation<=We&&D.match(O),se=null;if(y.indentationDiff>=4&&(Se||y.prevLine.fencedCodeEnd||y.prevLine.header||Ae))return D.skipToEnd(),y.indentedCode=!0,W.code;if(D.eatSpace())return null;if(q&&y.indentation<=We&&(se=D.match(C))&&se[1].length<=6)return y.quote=0,y.header=se[1].length,y.thisLine.header=!0,re.highlightFormatting&&(y.formatting="header"),y.f=y.inline,xe(y);if(y.indentation<=We&&D.eat(">"))return y.quote=q?1:y.quote+1,re.highlightFormatting&&(y.formatting="quote"),D.eatSpace(),xe(y);if(!Ne&&!y.setext&&q&&y.indentation<=We&&(se=D.match(B))){var Z=se[1]?"ol":"ul";return y.indentation=Le+D.current().length,y.list=!0,y.quote=0,y.listStack.push(y.indentation),y.em=!1,y.strong=!1,y.code=!1,y.strikethrough=!1,re.taskLists&&D.match(b,!1)&&(y.taskList=!0),y.f=y.inline,re.highlightFormatting&&(y.formatting=["list","list-"+Z]),xe(y)}else{if(q&&y.indentation<=We&&(se=D.match(A,!0)))return y.quote=0,y.fencedEndRE=new RegExp(se[1]+"+ *$"),y.localMode=re.fencedCodeBlockHighlighting&&ne(se[2]||re.fencedCodeBlockDefaultMode),y.localMode&&(y.localState=G.startState(y.localMode)),y.f=y.block=ge,re.highlightFormatting&&(y.formatting="code-block"),y.code=-1,xe(y);if(y.setext||(!Ie||!at)&&!y.quote&&y.list===!1&&!y.code&&!Ne&&!L.test(D.string)&&(se=D.lookAhead(1))&&(se=se.match(k)))return y.setext?(y.header=y.setext,y.setext=0,D.skipToEnd(),re.highlightFormatting&&(y.formatting="header")):(y.header=se[0].charAt(0)=="="?1:2,y.setext=y.header),y.thisLine.header=!0,y.f=y.inline,xe(y);if(Ne)return D.skipToEnd(),y.hr=!0,y.thisLine.hr=!0,W.hr;if(D.peek()==="[")return w(D,y,X)}return w(D,y,y.inline)}function Me(D,y){var q=fe.token(D,y.htmlState);if(!de){var Ae=G.innerMode(fe,y.htmlState);(Ae.mode.name=="xml"&&Ae.state.tagStart===null&&!Ae.state.context&&Ae.state.tokenize.isInText||y.md_inside&&D.current().indexOf(">")>-1)&&(y.f=T,y.block=oe,y.htmlState=null)}return q}function ge(D,y){var q=y.listStack[y.listStack.length-1]||0,Ae=y.indentation<q,Se=q+3;if(y.fencedEndRE&&y.indentation<=Se&&(Ae||D.match(y.fencedEndRE))){re.highlightFormatting&&(y.formatting="code-block");var nt;return Ae||(nt=xe(y)),y.localMode=y.localState=null,y.block=oe,y.f=T,y.fencedEndRE=null,y.code=0,y.thisLine.fencedCodeEnd=!0,Ae?I(D,y,y.block):nt}else return y.localMode?y.localMode.token(D,y.localState):(D.skipToEnd(),W.code)}function xe(D){var y=[];if(D.formatting){y.push(W.formatting),typeof D.formatting=="string"&&(D.formatting=[D.formatting]);for(var q=0;q<D.formatting.length;q++)y.push(W.formatting+"-"+D.formatting[q]),D.formatting[q]==="header"&&y.push(W.formatting+"-"+D.formatting[q]+"-"+D.header),D.formatting[q]==="quote"&&(!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=D.quote?y.push(W.formatting+"-"+D.formatting[q]+"-"+D.quote):y.push("error"))}if(D.taskOpen)return y.push("meta"),y.length?y.join(" "):null;if(D.taskClosed)return y.push("property"),y.length?y.join(" "):null;if(D.linkHref?y.push(W.linkHref,"url"):(D.strong&&y.push(W.strong),D.em&&y.push(W.em),D.strikethrough&&y.push(W.strikethrough),D.emoji&&y.push(W.emoji),D.linkText&&y.push(W.linkText),D.code&&y.push(W.code),D.image&&y.push(W.image),D.imageAltText&&y.push(W.imageAltText,"link"),D.imageMarker&&y.push(W.imageMarker)),D.header&&y.push(W.header,W.header+"-"+D.header),D.quote&&(y.push(W.quote),!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=D.quote?y.push(W.quote+"-"+D.quote):y.push(W.quote+"-"+re.maxBlockquoteDepth)),D.list!==!1){var Ae=(D.listStack.length-1)%3;Ae?Ae===1?y.push(W.list2):y.push(W.list3):y.push(W.list1)}return D.trailingSpaceNewLine?y.push("trailing-space-new-line"):D.trailingSpace&&y.push("trailing-space-"+(D.trailingSpace%2?"a":"b")),y.length?y.join(" "):null}function ve(D,y){return D.match(E,!0)?xe(y):void 0}function T(D,y){var q=y.text(D,y);if(typeof q!="undefined")return q;if(y.list)return y.list=null,xe(y);if(y.taskList){var Ae=D.match(b,!0)[1]===" ";return Ae?y.taskOpen=!0:y.taskClosed=!0,re.highlightFormatting&&(y.formatting="task"),y.taskList=!1,xe(y)}if(y.taskOpen=!1,y.taskClosed=!1,y.header&&D.match(/^#+$/,!0))return re.highlightFormatting&&(y.formatting="header"),xe(y);var Se=D.next();if(y.linkTitle){y.linkTitle=!1;var nt=Se;Se==="("&&(nt=")"),nt=(nt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var at="^\\s*(?:[^"+nt+"\\\\]+|\\\\\\\\|\\\\.)"+nt;if(D.match(new RegExp(at),!0))return W.linkHref}if(Se==="`"){var We=y.formatting;re.highlightFormatting&&(y.formatting="code"),D.eatWhile("`");var Le=D.current().length;if(y.code==0&&(!y.quote||Le==1))return y.code=Le,xe(y);if(Le==y.code){var Ie=xe(y);return y.code=0,Ie}else return y.formatting=We,xe(y)}else if(y.code)return xe(y);if(Se==="\\"&&(D.next(),re.highlightFormatting)){var Ne=xe(y),se=W.formatting+"-escape";return Ne?Ne+" "+se:se}if(Se==="!"&&D.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return y.imageMarker=!0,y.image=!0,re.highlightFormatting&&(y.formatting="image"),xe(y);if(Se==="["&&y.imageMarker&&D.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return y.imageMarker=!1,y.imageAltText=!0,re.highlightFormatting&&(y.formatting="image"),xe(y);if(Se==="]"&&y.imageAltText){re.highlightFormatting&&(y.formatting="image");var Ne=xe(y);return y.imageAltText=!1,y.image=!1,y.inline=y.f=ue,Ne}if(Se==="["&&!y.image)return y.linkText&&D.match(/^.*?\]/)||(y.linkText=!0,re.highlightFormatting&&(y.formatting="link")),xe(y);if(Se==="]"&&y.linkText){re.highlightFormatting&&(y.formatting="link");var Ne=xe(y);return y.linkText=!1,y.inline=y.f=D.match(/\(.*?\)| ?\[.*?\]/,!1)?ue:T,Ne}if(Se==="<"&&D.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){y.f=y.inline=R,re.highlightFormatting&&(y.formatting="link");var Ne=xe(y);return Ne?Ne+=" ":Ne="",Ne+W.linkInline}if(Se==="<"&&D.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){y.f=y.inline=R,re.highlightFormatting&&(y.formatting="link");var Ne=xe(y);return Ne?Ne+=" ":Ne="",Ne+W.linkEmail}if(re.xml&&Se==="<"&&D.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Z=D.string.indexOf(">",D.pos);if(Z!=-1){var ze=D.string.substring(D.start,Z);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ze)&&(y.md_inside=!0)}return D.backUp(1),y.htmlState=G.startState(fe),I(D,y,Me)}if(re.xml&&Se==="<"&&D.match(/^\/\w*?>/))return y.md_inside=!1,"tag";if(Se==="*"||Se==="_"){for(var Ye=1,Ke=D.pos==1?" ":D.string.charAt(D.pos-2);Ye<3&&D.eat(Se);)Ye++;var rt=D.peek()||" ",U=!/\s/.test(rt)&&(!g.test(rt)||/\s/.test(Ke)||g.test(Ke)),F=!/\s/.test(Ke)&&(!g.test(Ke)||/\s/.test(rt)||g.test(rt)),he=null,ye=null;if(Ye%2&&(!y.em&&U&&(Se==="*"||!F||g.test(Ke))?he=!0:y.em==Se&&F&&(Se==="*"||!U||g.test(rt))&&(he=!1)),Ye>1&&(!y.strong&&U&&(Se==="*"||!F||g.test(Ke))?ye=!0:y.strong==Se&&F&&(Se==="*"||!U||g.test(rt))&&(ye=!1)),ye!=null||he!=null){re.highlightFormatting&&(y.formatting=he==null?"strong":ye==null?"em":"strong em"),he===!0&&(y.em=Se),ye===!0&&(y.strong=Se);var Ie=xe(y);return he===!1&&(y.em=!1),ye===!1&&(y.strong=!1),Ie}}else if(Se===" "&&(D.eat("*")||D.eat("_"))){if(D.peek()===" ")return xe(y);D.backUp(1)}if(re.strikethrough){if(Se==="~"&&D.eatWhile(Se)){if(y.strikethrough){re.highlightFormatting&&(y.formatting="strikethrough");var Ie=xe(y);return y.strikethrough=!1,Ie}else if(D.match(/^[^\s]/,!1))return y.strikethrough=!0,re.highlightFormatting&&(y.formatting="strikethrough"),xe(y)}else if(Se===" "&&D.match(/^~~/,!0)){if(D.peek()===" ")return xe(y);D.backUp(2)}}if(re.emoji&&Se===":"&&D.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){y.emoji=!0,re.highlightFormatting&&(y.formatting="emoji");var Pe=xe(y);return y.emoji=!1,Pe}return Se===" "&&(D.match(/^ +$/,!1)?y.trailingSpace++:y.trailingSpace&&(y.trailingSpaceNewLine=!0)),xe(y)}function R(D,y){var q=D.next();if(q===">"){y.f=y.inline=T,re.highlightFormatting&&(y.formatting="link");var Ae=xe(y);return Ae?Ae+=" ":Ae="",Ae+W.linkInline}return D.match(/^[^>]+/,!0),W.linkInline}function ue(D,y){if(D.eatSpace())return null;var q=D.next();return q==="("||q==="["?(y.f=y.inline=N(q==="("?")":"]"),re.highlightFormatting&&(y.formatting="link-string"),y.linkHref=!0,xe(y)):"error"}var K={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(D){return function(y,q){var Ae=y.next();if(Ae===D){q.f=q.inline=T,re.highlightFormatting&&(q.formatting="link-string");var Se=xe(q);return q.linkHref=!1,Se}return y.match(K[D]),q.linkHref=!0,xe(q)}}function X(D,y){return D.match(/^([^\]\\]|\\.)*\]:/,!1)?(y.f=ie,D.next(),re.highlightFormatting&&(y.formatting="link"),y.linkText=!0,xe(y)):w(D,y,T)}function ie(D,y){if(D.match(/^\]:/,!0)){y.f=y.inline=J,re.highlightFormatting&&(y.formatting="link");var q=xe(y);return y.linkText=!1,q}return D.match(/^([^\]\\]|\\.)+/,!0),W.linkText}function J(D,y){return D.eatSpace()?null:(D.match(/^[^\s]+/,!0),D.peek()===void 0?y.linkTitle=!0:D.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),y.f=y.inline=T,W.linkHref+" url")}var me={startState:function(){return{f:oe,prevLine:{stream:null},thisLine:{stream:null},block:oe,htmlState:null,indentation:0,inline:T,text:ve,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(D){return{f:D.f,prevLine:D.prevLine,thisLine:D.thisLine,block:D.block,htmlState:D.htmlState&&G.copyState(fe,D.htmlState),indentation:D.indentation,localMode:D.localMode,localState:D.localMode?G.copyState(D.localMode,D.localState):null,inline:D.inline,text:D.text,formatting:!1,linkText:D.linkText,linkTitle:D.linkTitle,linkHref:D.linkHref,code:D.code,em:D.em,strong:D.strong,strikethrough:D.strikethrough,emoji:D.emoji,header:D.header,setext:D.setext,hr:D.hr,taskList:D.taskList,list:D.list,listStack:D.listStack.slice(0),quote:D.quote,indentedCode:D.indentedCode,trailingSpace:D.trailingSpace,trailingSpaceNewLine:D.trailingSpaceNewLine,md_inside:D.md_inside,fencedEndRE:D.fencedEndRE}},token:function(D,y){if(y.formatting=!1,D!=y.thisLine.stream){if(y.header=0,y.hr=!1,D.match(/^\s*$/,!0))return te(y),null;if(y.prevLine=y.thisLine,y.thisLine={stream:D},y.taskList=!1,y.trailingSpace=0,y.trailingSpaceNewLine=!1,!y.localState&&(y.f=y.block,y.f!=Me)){var q=D.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(y.indentation=q,y.indentationDiff=null,q>0)return null}}return y.f(D,y)},innerMode:function(D){return D.block==Me?{state:D.htmlState,mode:fe}:D.localState?{state:D.localState,mode:D.localMode}:{state:D,mode:me}},indent:function(D,y,q){return D.block==Me&&fe.indent?fe.indent(D.htmlState,y,q):D.localState&&D.localMode.indent?D.localMode.indent(D.localState,y,q):G.Pass},blankLine:te,getType:xe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return me},"xml"),G.defineMIME("text/markdown","markdown"),G.defineMIME("text/x-markdown","markdown")})},lzim:function(ke,_,d){"use strict";var G=d("E7E6"),be=d.n(G);d.d(_,"A",function(){return be.a});var re=d("/GNS"),fe=d.n(re);d.d(_,"z",function(){return fe.a});var de=d("FOrL"),ne=d.n(de);d.d(_,"t",function(){return ne.a});var W=d("HpTS"),Y=d.n(W);d.d(_,"B",function(){return Y.a});var O=d("tWlo"),B=d.n(O);d.d(_,"b",function(){return B.a});var b=d("7ZXX"),C=d.n(b);d.d(_,"n",function(){return C.a});var k=d("GABl"),E=d.n(k);d.d(_,"g",function(){return E.a});var A=d("onxn"),L=d.n(A);d.d(_,"p",function(){return L.a});var g=d("nKGa"),v=d.n(g);d.d(_,"o",function(){return v.a});var w=d("4qgm"),I=d.n(w);d.d(_,"D",function(){return I.a});var le=d("JeFH"),te=d.n(le);d.d(_,"c",function(){return te.a});var oe=d("ji0R"),Me=d.n(oe);d.d(_,"k",function(){return Me.a});var ge=d("W6BS"),xe=d.n(ge);d.d(_,"E",function(){return xe.a});var ve=d("kPYp"),T=d.n(ve);d.d(_,"F",function(){return T.a});var R=d("nukY"),ue=d.n(R),K=d("4u4S"),N=d.n(K),X=d("yslc"),ie=d.n(X),J=d("l2Kq"),me=d.n(J),D=d("RMFE"),y=d.n(D);d.d(_,"q",function(){return y.a});var q=d("TGq3"),Ae=d.n(q);d.d(_,"r",function(){return Ae.a});var Se=d("SMhR"),nt=d.n(Se);d.d(_,"C",function(){return nt.a});var at=d("8/bI"),We=d.n(at);d.d(_,"l",function(){return We.a});var Le=d("JWDV"),Ie=d.n(Le);d.d(_,"e",function(){return Ie.a});var Ne=d("Xsq0"),se=d.n(Ne);d.d(_,"s",function(){return se.a});var Z=d("Ohmc"),ze=d.n(Z);d.d(_,"d",function(){return ze.a});var Ye=d("csWT"),Ke=d.n(Ye);d.d(_,"f",function(){return Ke.a});var rt=d("7v3h"),U=d.n(rt);d.d(_,"m",function(){return U.a});var F=d("cRFk"),he=d.n(F);d.d(_,"y",function(){return he.a});var ye=d("kPWJ"),Pe=d.n(ye);d.d(_,"x",function(){return Pe.a});var Be=d("qgvg"),De=d.n(Be);d.d(_,"u",function(){return De.a});var Ge=d("FPkq"),lt=d.n(Ge);d.d(_,"w",function(){return lt.a});var qe=d("A/g1"),Je=d.n(qe);d.d(_,"h",function(){return Je.a});var Ve=d("Nmxd"),Ct=d.n(Ve);d.d(_,"i",function(){return Ct.a});var pt=d("5D2P"),ht=d.n(pt);d.d(_,"j",function(){return ht.a});var Ee=d("djh8"),Xe=d.n(Ee);d.d(_,"v",function(){return Xe.a});var ut=d("Jq4h"),we=d.n(ut);d.d(_,"a",function(){return we.a})},nKGa:function(ke,_,d){ke.exports=d.p+"static/export_exercise-template.f7655c19.png"},nZ20:function(ke,_,d){ke.exports={icons:"icons___3O80F"}},nnTU:function(ke,_,d){"use strict";d.d(_,"b",function(){return Y}),d.d(_,"a",function(){return O});var G=d("pmY6"),be=d("746U"),re=d("Cg/j"),fe=d("MI8n"),de=d("24hK"),ne=d("QDVR"),W=function(){for(var B=0,b=0,C=arguments.length;b<C;b++)B+=arguments[b].length;for(var k=Array(B),E=0,b=0;b<C;b++)for(var A=arguments[b],L=0,g=A.length;L<g;L++,E++)k[E]=A[L];return k},Y=Object(re.c)("commandService"),O=new(function(){function B(){this._commands=new Map,this._onDidRegisterCommand=new fe.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return B.prototype.registerCommand=function(b,C){var k=this;if(!b)throw new Error("invalid command");if(typeof b=="string"){if(!C)throw new Error("invalid command");return this.registerCommand({id:b,handler:C})}if(b.description){for(var E=[],A=0,L=b.description.args;A<L.length;A++){var g=L[A];E.push(g.constraint)}var v=b.handler;b.handler=function(oe){for(var Me=[],ge=1;ge<arguments.length;ge++)Me[ge-1]=arguments[ge];return Object(be.m)(Me,E),v.apply(void 0,W([oe],Me))}}var w=b.id,I=this._commands.get(w);I||(I=new de.a,this._commands.set(w,I));var le=I.unshift(b),te=Object(G.h)(function(){le();var oe=k._commands.get(w);(oe==null?void 0:oe.isEmpty())&&k._commands.delete(w)});return this._onDidRegisterCommand.fire(w),te},B.prototype.registerCommandAlias=function(b,C){return O.registerCommand(b,function(k){for(var E,A=[],L=1;L<arguments.length;L++)A[L-1]=arguments[L];return(E=k.get(Y)).executeCommand.apply(E,W([C],A))})},B.prototype.getCommand=function(b){var C=this._commands.get(b);return!C||C.isEmpty()?void 0:C.iterator().next().value},B.prototype.getCommands=function(){for(var b=new Map,C=0,k=Object(ne.d)(this._commands);C<k.length;C++){var E=k[C],A=this.getCommand(E);A&&b.set(E,A)}return b},B}())},nukY:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06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/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(ke,_,d){(function(G){G(d("VrN/"))})(function(G){"use strict";var be=G.Pos;function re(g,v){return g.line-v.line||g.ch-v.ch}var fe="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",de=fe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ne=new RegExp("<(/?)(["+fe+"]["+de+"]*)","g");function W(g,v,w,I){this.line=v,this.ch=w,this.cm=g,this.text=g.getLine(v),this.min=I?Math.max(I.from,g.firstLine()):g.firstLine(),this.max=I?Math.min(I.to-1,g.lastLine()):g.lastLine()}function Y(g,v){var w=g.cm.getTokenTypeAt(be(g.line,v));return w&&/\btag\b/.test(w)}function O(g){return g.line>=g.max?void 0:(g.ch=0,g.text=g.cm.getLine(++g.line),!0)}function B(g){return g.line<=g.min?void 0:(g.text=g.cm.getLine(--g.line),g.ch=g.text.length,!0)}function b(g){for(;;){var v=g.text.indexOf(">",g.ch);if(v==-1){if(O(g))continue;return}if(!Y(g,v+1)){g.ch=v+1;continue}var w=g.text.lastIndexOf("/",v),I=w>-1&&!/\S/.test(g.text.slice(w+1,v));return g.ch=v+1,I?"selfClose":"regular"}}function C(g){for(;;){var v=g.ch?g.text.lastIndexOf("<",g.ch-1):-1;if(v==-1){if(B(g))continue;return}if(!Y(g,v+1)){g.ch=v;continue}ne.lastIndex=v,g.ch=v;var w=ne.exec(g.text);if(w&&w.index==v)return w}}function k(g){for(;;){ne.lastIndex=g.ch;var v=ne.exec(g.text);if(!v){if(O(g))continue;return}if(!Y(g,v.index+1)){g.ch=v.index+1;continue}return g.ch=v.index+v[0].length,v}}function E(g){for(;;){var v=g.ch?g.text.lastIndexOf(">",g.ch-1):-1;if(v==-1){if(B(g))continue;return}if(!Y(g,v+1)){g.ch=v;continue}var w=g.text.lastIndexOf("/",v),I=w>-1&&!/\S/.test(g.text.slice(w+1,v));return g.ch=v+1,I?"selfClose":"regular"}}function A(g,v){for(var w=[];;){var I=k(g),le,te=g.line,oe=g.ch-(I?I[0].length:0);if(!I||!(le=b(g)))return;if(le=="selfClose")continue;if(I[1]){for(var Me=w.length-1;Me>=0;--Me)if(w[Me]==I[2]){w.length=Me;break}if(Me<0&&(!v||v==I[2]))return{tag:I[2],from:be(te,oe),to:be(g.line,g.ch)}}else w.push(I[2])}}function L(g,v){for(var w=[];;){var I=E(g);if(!I)return;if(I=="selfClose"){C(g);continue}var le=g.line,te=g.ch,oe=C(g);if(!oe)return;if(oe[1])w.push(oe[2]);else{for(var Me=w.length-1;Me>=0;--Me)if(w[Me]==oe[2]){w.length=Me;break}if(Me<0&&(!v||v==oe[2]))return{tag:oe[2],from:be(g.line,g.ch),to:be(le,te)}}}}G.registerHelper("fold","xml",function(g,v){for(var w=new W(g,v.line,0);;){var I=k(w);if(!I||w.line!=v.line)return;var le=b(w);if(!le)return;if(!I[1]&&le!="selfClose"){var te=be(w.line,w.ch),oe=A(w,I[2]);return oe&&re(oe.from,te)>0?{from:te,to:oe.from}:null}}}),G.findMatchingTag=function(g,v,w){var I=new W(g,v.line,v.ch,w);if(I.text.indexOf(">")==-1&&I.text.indexOf("<")==-1)return;var le=b(I),te=le&&be(I.line,I.ch),oe=le&&C(I);if(!le||!oe||re(I,v)>0)return;var Me={from:be(I.line,I.ch),to:te,tag:oe[2]};return le=="selfClose"?{open:Me,close:null,at:"open"}:oe[1]?{open:L(I,oe[2]),close:Me,at:"close"}:(I=new W(g,te.line,te.ch,w),{open:Me,close:A(I,oe[2]),at:"open"})},G.findEnclosingTag=function(g,v,w,I){for(var le=new W(g,v.line,v.ch,w);;){var te=L(le,I);if(!te)break;var oe=new W(g,v.line,v.ch,w),Me=A(oe,te.tag);if(Me)return{open:te,close:Me}}},G.scanForClosingTag=function(g,v,w,I){var le=new W(g,v.line,v.ch,I?{from:0,to:I}:null);return A(le,w)}})},p5ED:function(ke,_,d){"use strict";var G=d("+L6B"),be=d("2/Rp"),re=d("5Dmo"),fe=d("3S7+"),de=d("k1fw"),ne=d("9og8"),W=d("tJVT"),Y=d("WmNS"),O=d.n(Y),B=d("q1tI"),b=d.n(B),C=d("vHTk"),k=d.n(C),E=d("yEEn"),A=d("ZW9T"),L=d("1vsH"),g=d("V0Rq"),v=d("m3rI");_.a=function(w){var I,le,te,oe,Me,ge,xe=w.editOffice,ve=xe===void 0?"view":xe,T=w.name,R=w.data,ue=w.theme,K=w.type,N=w.filename,X=w.monacoEditor,ie=w.className,J=w.style,me=w.close,D=w.onClose,y=w.hasMask,q=w.disabledDownload,Ae=w.onImgDimensions,Se=w.otherData,nt=Object(B.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),at=Object(W.a)(nt,2),We=at[0],Le=at[1],Ie=Object(B.useState)(""),Ne=Object(W.a)(Ie,2),se=Ne[0],Z=Ne[1],ze=Object(B.useState)(),Ye=Object(W.a)(ze,2),Ke=Ye[0],rt=Ye[1],U=window.ENV==="build"?"/react/build":"",F=location.host.startsWith("localhost")?v.a.PROXY_SERVER:v.a.API_SERVER,he,ye=1024*1024,Pe=10*ye,Be=Object(B.useRef)();(I=R)!==null&&I!==void 0&&I.startsWith("/api")&&K!=="txt"&&(R=v.a.API_SERVER+R),K==="office"&&(he=Object(L.P)(R).filesize,he>Pe&&(K="other")),N&&(X.filename=N),Object(B.useEffect)(function(){var qe,Je,Ve=(qe=document.cookie)===null||qe===void 0||((Je=qe.replace(/\s/g,""))===null||Je===void 0)?void 0:Je.split(";");Ve==null||Ve.map(function(Ct){var pt=Ct.split("=");pt[0]==="_educoder_session"&&Z(pt[1])})},[]),Object(B.useEffect)(function(){K==="office"&&De()},[K,R]);var De=function(){var qe=Object(ne.a)(O.a.mark(function Je(){var Ve,Ct,pt;return O.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return console.log("data:",R),Ve=R,R.startsWith("http")||(Ve=location.origin+Ve),Ct=new URL(Ve).pathname.split("/").pop(),Ee.next=6,Object(g.U)({attachment_id:Ct});case 6:pt=Ee.sent,rt(pt);case 8:case"end":return Ee.stop()}},Je)}));return function(){return qe.apply(this,arguments)}}(),Ge=function(){if(R.startsWith("http")||R.startsWith("blob:")){lt();return}Object(L.x)(N||"educoder",R,N)},lt=function(){Object(L.v)(N||"educoder",decodeURIComponent(R))};return b.a.createElement("div",{style:Object(de.a)({},J||{}),className:"".concat(y&&k.a.bgBlack," ").concat(K?k.a.wrp:"hide")},me&&b.a.createElement("div",{className:k.a.close,ref:Be},!!Ae&&b.a.createElement(fe.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Be.current}},b.a.createElement("span",{onClick:function(){D(),Ae()}},b.a.createElement("i",{className:"icon-yulanpizhu"}))),!q&&b.a.createElement(fe.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Be.current}},b.a.createElement("span",{onClick:lt},b.a.createElement("i",{className:"icon-quxiaozhiding"}))),b.a.createElement(fe.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Be.current}},b.a.createElement("span",{className:"",onClick:D},b.a.createElement("i",{className:"icon-guanbi1"})))),b.a.createElement("div",{className:"".concat(k.a[ie]," ").concat(ie," ").concat(k.a.monaco," ").concat(K==="txt"?"show":"hide")},K==="txt"&&b.a.createElement(A.b,X)),K==="audio"&&b.a.createElement("audio",{src:"".concat(((le=R)===null||le===void 0?void 0:le.indexOf("http://"))>-1||((te=R)===null||te===void 0?void 0:te.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(R),autoPlay:!0}),K==="video"&&b.a.createElement(b.a.Fragment,null,((oe=R)===null||oe===void 0?void 0:oe.indexOf("http"))>-1?b.a.createElement("video",{controls:!0,src:"".concat(R),autoPlay:!0}):b.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(R),autoPlay:!0})),K==="office"&&Ke&&b.a.createElement("iframe",{src:"".concat(U,"/office.html?key=").concat(Ke.key,"&url=").concat(F+Ke.url,"&callbackUrl=").concat(F+Ke.callbackUrl,"&fileType=").concat(Ke.fileType,"&title=").concat(Ke.title,"&model=").concat(ve,"&officeServer=").concat(v.a.OFFICE_SERVER,"&disabledDownload=").concat(!!q)}),(K==="xlsx"||K==="doc"||K==="pptx"||K==="docx")&&b.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(Se.key,"&url=").concat(v.a.API_SERVER+Se.url,"&callbackUrl=").concat(v.a.API_SERVER+Se.callbackUrl,"&fileType=").concat(Se.fileType,"&title=").concat(Se.title,"&model=").concat(Se.model)}),K==="html"&&b.a.createElement("iframe",{src:R+"&disposition=inline"}),K==="pdf"&&b.a.createElement("embed",{className:k.a.embed,src:R}),K==="image"&&b.a.createElement("img",{src:"".concat(((Me=R)===null||Me===void 0?void 0:Me.indexOf("http://"))>-1||((ge=R)===null||ge===void 0?void 0:ge.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(R)}),K==="other"&&b.a.createElement("div",null,b.a.createElement(be.a,{type:"primary",size:"large",onClick:Ge},b.a.createElement(E.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),K==="download"&&b.a.createElement(be.a,{type:"primary",size:"large",onClick:Ge},b.a.createElement(E.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(ke,_,d){},pmY6:function(ke,_,d){"use strict";d.d(_,"g",function(){return de}),d.d(_,"f",function(){return ne}),d.d(_,"e",function(){return W}),d.d(_,"h",function(){return Y}),d.d(_,"b",function(){return O}),d.d(_,"a",function(){return B}),d.d(_,"d",function(){return b}),d.d(_,"c",function(){return C});var G=!1,be="__is_disposable_tracked__";function re(k){if(!G)return;if(k&&k!==B.None)try{k[be]=!0}catch(E){}}function fe(k){if(!G)return k;var E=new Error("Potentially leaked disposable").stack;return setTimeout(function(){k[be]||console.log(E)},3e3),k}function de(k){return typeof k.dispose=="function"&&k.dispose.length===0}function ne(k){return Array.isArray(k)?(k.forEach(function(E){E&&(re(E),E.dispose())}),[]):k?(re(k),k.dispose(),k):void 0}function W(){for(var k=[],E=0;E<arguments.length;E++)k[E]=arguments[E];return k.forEach(re),fe({dispose:function(){return ne(k)}})}function Y(k){var E=fe({dispose:function(){re(E),k()}});return E}var O=function(){function k(){this._toDispose=new Set,this._isDisposed=!1}return k.prototype.dispose=function(){if(this._isDisposed)return;re(this),this._isDisposed=!0,this.clear()},k.prototype.clear=function(){this._toDispose.forEach(function(E){return E.dispose()}),this._toDispose.clear()},k.prototype.add=function(E){if(!E)return E;if(E===this)throw new Error("Cannot register a disposable on itself!");return re(E),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(E),E},k}(),B=function(){function k(){this._store=new O,fe(this)}return k.prototype.dispose=function(){re(this),this._store.dispose()},k.prototype._register=function(E){if(E===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(E)},k.None=Object.freeze({dispose:function(){}}),k}(),b=function(){function k(){this._isDisposed=!1,fe(this)}return Object.defineProperty(k.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(E){if(this._isDisposed||E===this._value)return;this._value&&this._value.dispose(),E&&re(E),this._value=E},enumerable:!0,configurable:!0}),k.prototype.clear=function(){this.value=void 0},k.prototype.dispose=function(){this._isDisposed=!0,re(this),this._value&&this._value.dispose(),this._value=void 0},k}(),C=function(){function k(E){this.object=E}return k.prototype.dispose=function(){},k}()},qgvg:function(ke,_){ke.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFM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T4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},"rAM+":function(ke,_,d){"use strict";d.d(_,"a",function(){return be});var G=d("Qw5x");function be(re,fe){var de;if(typeof Symbol=="undefined"||re[Symbol.iterator]==null){if(Array.isArray(re)||(de=Object(G.a)(re))||fe&&re&&typeof re.length=="number"){de&&(re=de);var ne=0,W=function(){};return{s:W,n:function(){return ne>=re.length?{done:!0}:{done:!1,value:re[ne++]}},e:function(C){throw C},f:W}}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 Y=!0,O=!1,B;return{s:function(){de=re[Symbol.iterator]()},n:function(){var C=de.next();return Y=C.done,C},e:function(C){O=!0,B=C},f:function(){try{!Y&&de.return!=null&&de.return()}finally{if(O)throw B}}}}},rUJ1:function(ke,_){const d=/[&<>"']/,G=/[&<>"']/g,be=/[<>"']|&(?!#?\w+;)/,re=/[<>"']|&(?!#?\w+;)/g,fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},de=ge=>fe[ge];function ne(ge,xe){if(xe){if(d.test(ge))return ge.replace(G,de)}else if(be.test(ge))return ge.replace(re,de);return ge}const W=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Y(ge){return ge.replace(W,(xe,ve)=>(ve=ve.toLowerCase(),ve==="colon"?":":ve.charAt(0)==="#"?ve.charAt(1)==="x"?String.fromCharCode(parseInt(ve.substring(2),16)):String.fromCharCode(+ve.substring(1)):""))}const O=/(^|[^\[])\^/g;function B(ge,xe){ge=ge.source||ge,xe=xe||"";const ve={replace:(T,R)=>(R=R.source||R,R=R.replace(O,"$1"),ge=ge.replace(T,R),ve),getRegex:()=>new RegExp(ge,xe)};return ve}const b=/[^\w:]/g,C=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(ge,xe,ve){if(ge){let T;try{T=decodeURIComponent(Y(ve)).replace(b,"").toLowerCase()}catch(R){return null}if(T.indexOf("javascript:")===0||T.indexOf("vbscript:")===0||T.indexOf("data:")===0)return null}xe&&!C.test(ve)&&(ve=v(xe,ve));try{ve=encodeURI(ve).replace(/%25/g,"%")}catch(T){return null}return ve}const E={},A=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(ge,xe){E[" "+ge]||(A.test(ge)?E[" "+ge]=ge+"/":E[" "+ge]=te(ge,"/",!0)),ge=E[" "+ge];const ve=ge.indexOf(":")===-1;return xe.substring(0,2)==="//"?ve?xe:ge.replace(L,"$1")+xe:xe.charAt(0)==="/"?ve?xe:ge.replace(g,"$1")+xe:ge+xe}const w={exec:function(){}};function I(ge){let xe=1,ve,T;for(;xe<arguments.length;xe++){ve=arguments[xe];for(T in ve)Object.prototype.hasOwnProperty.call(ve,T)&&(ge[T]=ve[T])}return ge}function le(ge,xe){const ve=ge.replace(/\|/g,(ue,K,N)=>{let X=!1,ie=K;for(;--ie>=0&&N[ie]==="\\";)X=!X;return X?"|":" |"}),T=ve.split(/ \|/);let R=0;if(T.length>xe)T.splice(xe);else for(;T.length<xe;)T.push("");for(;R<T.length;R++)T[R]=T[R].trim().replace(/\\\|/g,"|");return T}function te(ge,xe,ve){const T=ge.length;if(T===0)return"";let R=0;for(;R<T;){const ue=ge.charAt(T-R-1);if(ue===xe&&!ve)R++;else if(ue!==xe&&ve)R++;else break}return ge.substr(0,T-R)}function oe(ge,xe){if(ge.indexOf(xe[1])===-1)return-1;const ve=ge.length;let T=0,R=0;for(;R<ve;R++)if(ge[R]==="\\")R++;else if(ge[R]===xe[0])T++;else if(ge[R]===xe[1]&&(T--,T<0))return R;return-1}function Me(ge){ge&&ge.sanitize&&!ge.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")}ke.exports={escape:ne,unescape:Y,edit:B,cleanUrl:k,resolveUrl:v,noopTest:w,merge:I,splitCells:le,rtrim:te,findClosingBracket:oe,checkSanitizeDeprecation:Me}},tWlo:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlI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oCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},vHTk:function(ke,_,d){ke.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},yslc:function(ke,_){ke.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1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YKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},zEei:function(ke,_,d){ke.exports={flex_box_center:"flex_box_center___3trsE",flex_space_between:"flex_space_between___vYNfG",flex_box_vertical_center:"flex_box_vertical_center___267W4",flex_box_center_end:"flex_box_center_end___35F4i",flex_box_column:"flex_box_column___1cLWS",bg:"bg___13rUr",flexRow:"flexRow___geim6",flexJustifyCenter:"flexJustifyCenter___2SLQ2",flexAlignEnd:"flexAlignEnd___2-3OH",flexAlignCenter:"flexAlignCenter___2PK_9",flexColumn:"flexColumn___pc_D1",formWrap:"formWrap___3ozw6",titleWrap:"titleWrap___3JSLu",fieldWrap:"fieldWrap___1M8-z",mdWrap:"mdWrap___3iPl2",backgroundFa:"backgroundFa___2Wd1f",button:"button___3ie7q",icons:"icons___-WSHu",addButton:"addButton___1qx7n",navBar:"navBar___xDlWA",actived:"actived___dZNDy",deleteButton:"deleteButton___3Ethm"}}}]);