(window.webpackJsonp=window.webpackJsonp||[]).push([[214,5,7,8,10,14],{"+92d":function(Be,ie,M){Be.exports=M.p+"static/b1.8d46544a.svg"},"+GGh":function(Be,ie){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7VXQm4VVXZfvc+5yKzMqiAgpggqGihoBI4Zz+iQA7VX2Fa+GeFmjnmjAZmDlnmDGaDY5KzJmmWAiKIoCihmAN/ySTDvRcF4e691v+s4VvrW2vvcwFB8r/lcy/n7LP32nu9+/3e7/2+tU+CLfwjpaw0NmJfIcRBSYK+Uoq+QNIdEu0AtJMSLaSUABJzZPWn+iUlEiRQb6l37MvsfbOdfs+9qf5htnav6ffsvoP9+mPSsej4+iM0Jr5vPR4aIF0o9po6ziccPx1GnbWQZvzqNfef/rd9j7+uXhPmIqn36XN6H+rf+n/+dTV+2o/6kNq/39YfT72m3le7Vj/Cnq76tx4TGx9tS2Olz5RByc/EZgBNSlm3enU+TAiMkhJHSshtHULchKkrok5WnUY8SQxwNNf2hAmMRWD5ARMG9H4tWAxQ/XHoPQ5kt4cAVBZrHgF2Mw/kePwBYC2ozUDo+OoTFosMr24y7eTpCbY3SzzBZvLN9TMAor/55DMAWYAawHkwanAkBkgejAROvy8POPOe+r/+DL8R2N+14LNZAJNStmpoEGcikWdLKTvpiTbjt0zkJ5z4J5hgDjhiEY01zwyOXAL2spNtZ8GAx5wtAdgxEk14xJh6v3qGOdvFLGlhwW4SN/4YyHRw4lkGWn8DEPsyINkhqG2ILYhBPBNZkEjzOQNcYiILngCYFoAJ387MhQZm8Lq5ERzg1DW078cMZdjPMxyBrTlu+kQAU2GwYXV+shS4HJA7xUwQhjB+J9vwVRIiOZB8fCSgxmGxVriii2+ugmeamD1jINn9EbtE4GiWcdm5hGHa7LOMMQtA4myjgMNkgLmHolDpmMO8Xgh9jOk8Y9kwrMFTZCweBl1YJEC60OrBpc8tlislSNtkgDU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YvrrA3YWza8V+anyzz5HIJuZMX4xGQ7IUOrA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"+ua5":function(Be,ie,M){},"/cxE":function(Be,ie,M){"use strict";M.d(ie,"f",function(){return I}),M.d(ie,"g",function(){return j}),M.d(ie,"h",function(){return C}),M.d(ie,"e",function(){return H}),M.d(ie,"b",function(){return k}),M.d(ie,"c",function(){return e}),M.d(ie,"d",function(){return O}),M.d(ie,"a",function(){return g});class Q{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(p){setTimeout(()=>{throw p.stack?new Error(p.message+`
`+p.stack):p},0)}}emit(p){this.listeners.forEach(u=>{u(p)})}onUnexpectedError(p){this.unexpectedErrorHandler(p),this.emit(p)}onUnexpectedExternalError(p){this.unexpectedErrorHandler(p)}}const N=new Q;function I(p){H(p)||N.onUnexpectedError(p);return}function j(p){H(p)||N.onUnexpectedExternalError(p);return}function C(p){if(p instanceof Error){let{name:u,message:a}=p;const r=p.stacktrace||p.stack;return{$isError:!0,name:u,message:a,stack:r}}return p}const R="Canceled";function H(p){return p instanceof Error&&p.name===R&&p.message===R}function k(){const p=new Error(R);return p.name=p.message,p}function e(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function O(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class g extends Error{constructor(p){super("NotSupported");p&&(this.message=p)}}},"24hK":function(Be,ie,M){"use strict";M.d(ie,"a",function(){return N});class Q{constructor(I){this.element=I,this.next=Q.Undefined,this.prev=Q.Undefined}}Q.Undefined=new Q(void 0);class N{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let I=this._first;for(;I!==Q.Undefined;){const j=I.next;I.prev=Q.Undefined,I.next=Q.Undefined,I=j}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(I){return this._insert(I,!1)}push(I){return this._insert(I,!0)}_insert(I,j){const C=new Q(I);if(this._first===Q.Undefined)this._first=C,this._last=C;else if(j){const H=this._last;this._last=C,C.prev=H,H.next=C}else{const H=this._first;this._first=C,C.next=H,H.prev=C}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(C))}}shift(){if(this._first===Q.Undefined)return;{const I=this._first.element;return this._remove(this._first),I}}pop(){if(this._last===Q.Undefined)return;{const I=this._last.element;return this._remove(this._last),I}}_remove(I){if(I.prev!==Q.Undefined&&I.next!==Q.Undefined){const j=I.prev;j.next=I.next,I.next.prev=j}else I.prev===Q.Undefined&&I.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):I.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):I.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let I=this._first;for(;I!==Q.Undefined;)yield I.element,I=I.next}}},"3/fG":function(Be,ie,M){"use strict";M.d(ie,"a",function(){return N});function Q(I,j){let C;return j.length===0?C=I:C=I.replace(/\{(\d+)\}/g,function(R,H){const k=H[0];return typeof j[k]!="undefined"?j[k]:R}),C}function N(I,j,...C){return Q(j,C)}},"5A5F":function(Be,ie,M){Be.exports={flex_box_center:"flex_box_center___3fvo9",flex_space_between:"flex_space_between___2dIWe",flex_box_vertical_center:"flex_box_vertical_center___213Et",flex_box_center_end:"flex_box_center_end___1GXlY",flex_box_column:"flex_box_column___2XTWO",wrap:"wrap___1JbzU",addQuestion:"addQuestion___3n7jZ",content:"content___2Crhb",left:"left___12ObT",filterPoint:"filterPoint___1wSyY",filterType:"filterType___32Vjx",btnWarp:"btnWarp___XLUgV",btn:"btn___33IXa",count:"count___2zHIG",btnActive:"btnActive___2vIUq",fold:"fold___26POp",action:"action___m_eZE",filterOrigin:"filterOrigin___OKol4",control:"control___1SAJX",search:"search___2AvaM",searchIcon:"searchIcon___2TozR",table:"table___1Q9AI",tabWarp:"tabWarp___3884f",customTable:"customTable___6Ubut","btn-style-1":"btn-style-1___m4kGi","btn-style-2":"btn-style-2___2uJ8s","btn-style-3":"btn-style-3___3kuYl",right:"right___Ie2u1",statistics:"statistics___TecQK",title:"title___1uK2v",statisticItem:"statisticItem___oBHb3",rate:"rate___15q55",dataName:"dataName___1uxmm",sort:"sort___1hyjY",rankHeader:"rankHeader___3MEZr",rankIcon:"rankIcon___t_Ggc",li:"li___3lR-W",myRecord:"myRecord___3MQJH",recordPrefix:"recordPrefix___3rIwK",mine:"mine___1LgRJ",avatar:"avatar___2X3bF",nickname:"nickname___3uP5f",myRank:"myRank___3GS-w",questionNumber:"questionNumber___3kBy-",titleWarp:"titleWarp___t0Zdh",hov:"hov___30B5q",statusText:"statusText___3pFTN",hovBtn:"hovBtn___3ciGX",tag:"tag___hllWE",problemsclose:"problemsclose___1X9HB",imgsrc:"imgsrc___3koep",sendModal:"sendModal___1P3qc",bottom:"bottom___1gmim",line:"line___psQHn",del:"del___1Qufp"}},"5VLF":function(Be,ie,M){"use strict";var Q,N;function I(j,C,R){var H=function(k,e){return j.js_beautify(k,e)};return H.js=j.js_beautify,H.css=C.css_beautify,H.html=R.html_beautify,H.js_beautify=j.js_beautify,H.css_beautify=C.css_beautify,H.html_beautify=R.html_beautify,H}!(Q=[M("6UM0"),M("TXwP"),M("psGv")],N=function(j,C,R){return I(j,C,R)}.apply(ie,Q),N!==void 0&&(Be.exports=N))},"5Y4S":function(Be,ie,M){"use strict";M.d(ie,"a",function(){return I});var Q=M("MNsG");const N=Q.b.performance&&typeof Q.b.performance.now=="function";class I{constructor(j){this._highResolution=N&&j,this._startTime=this._now(),this._stopTime=-1}static create(j=!0){return new I(j)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Q.b.performance.now():Date.now()}}},"6+eU":function(Be,ie,M){"use strict";M.d(ie,"a",function(){return m});var Q=M("wx14"),N=M("rePB"),I=M("VTBJ"),j=M("1OyB"),C=M("vuIU"),R=M("Ji7U"),H=M("LK+K"),k=M("q1tI"),e=M.n(k),O=M("TSYQ"),g=M.n(O),p=function(_){var h,d="".concat(_.rootPrefixCls,"-item"),l=g()(d,"".concat(d,"-").concat(_.page),(h={},Object(N.a)(h,"".concat(d,"-active"),_.active),Object(N.a)(h,_.className,!!_.className),Object(N.a)(h,"".concat(d,"-disabled"),!_.page),h)),c=function(){_.onClick(_.page)},y=function(T){_.onKeyPress(T,_.onClick,_.page)};return e.a.createElement("li",{title:_.showTitle?_.page:null,className:l,onClick:c,onKeyPress:y,tabIndex:"0"},_.itemRender(_.page,"page",e.a.createElement("a",{rel:"nofollow"},_.page)))},u=p,a={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},r=function(x){Object(R.a)(h,x);var _=Object(H.a)(h);function h(){var d;Object(j.a)(this,h);for(var l=arguments.length,c=new Array(l),y=0;y=0||f.relatedTarget.className.indexOf("".concat(S,"-next"))>=0))return;d.setState({goInputText:""}),P(d.getValidValue())},d.go=function(f){var T=d.state.goInputText;if(T==="")return;(f.keyCode===a.ENTER||f.type==="click")&&(d.setState({goInputText:""}),d.props.quickGo(d.getValidValue()))},d}return Object(C.a)(h,[{key:"getValidValue",value:function(){var l=this.state,c=l.goInputText,y=l.current;return!c||isNaN(c)?y:Number(c)}},{key:"getPageSizeOptions",value:function(){var l=this.props,c=l.pageSize,y=l.pageSizeOptions;return y.some(function(f){return f.toString()===c.toString()})?y:y.concat([c.toString()]).sort(function(f,T){var L=isNaN(Number(f))?0:Number(f),P=isNaN(Number(T))?0:Number(T);return L-P})}},{key:"render",value:function(){var l=this,c=this.props,y=c.pageSize,f=c.locale,T=c.rootPrefixCls,L=c.changeSize,P=c.quickGo,S=c.goButton,A=c.selectComponentClass,W=c.buildOptionText,D=c.selectPrefixCls,K=c.disabled,Y=this.state.goInputText,oe="".concat(T,"-options"),le=A,Se=null,Ee=null,ae=null;if(!L&&!P)return null;var Ce=this.getPageSizeOptions();if(L&&le){var Le=Ce.map(function(de,$){return e.a.createElement(le.Option,{key:$,value:de.toString()},(W||l.buildOptionText)(de))});Se=e.a.createElement(le,{disabled:K,prefixCls:D,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(y||Ce[0]).toString(),onChange:this.changeSize,getPopupContainer:function($){return $.parentNode}},Le)}return P&&(S&&(ae=typeof S=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(oe,"-quick-jumper-button")},f.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},S)),Ee=e.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},f.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:Y,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),f.page,ae)),e.a.createElement("li",{className:"".concat(oe)},Se,Ee)}}]),h}(e.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var o=r,s=M("N2Kk");function i(){}function n(x){return typeof x=="number"&&isFinite(x)&&Math.floor(x)===x}function t(x,_,h){return h}function b(x,_,h){var d=typeof x=="undefined"?_.pageSize:x;return Math.floor((h.total-1)/d)+1}var v=function(x){Object(R.a)(h,x);var _=Object(H.a)(h);function h(d){var l;Object(j.a)(this,h),l=_.call(this,d),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(b(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(L,P){var S=l.props.prefixCls,A=L||e.a.createElement("button",{type:"button","aria-label":P,className:"".concat(S,"-item-link")});return typeof L=="function"&&(A=e.a.createElement(L,Object(I.a)({},l.props))),A},l.savePaginationNode=function(L){l.paginationNode=L},l.isValid=function(L){return n(L)&&L!==l.state.current},l.shouldDisplayQuickJumper=function(){var L=l.props,P=L.showQuickJumper,S=L.pageSize,A=L.total;return A<=S?!1:P},l.handleKeyDown=function(L){(L.keyCode===a.ARROW_UP||L.keyCode===a.ARROW_DOWN)&&L.preventDefault()},l.handleKeyUp=function(L){var P=l.getValidValue(L),S=l.state.currentInputValue;P!==S&&l.setState({currentInputValue:P}),L.keyCode===a.ENTER?l.handleChange(P):L.keyCode===a.ARROW_UP?l.handleChange(P-1):L.keyCode===a.ARROW_DOWN&&l.handleChange(P+1)},l.changePageSize=function(L){var P=l.state.current,S=b(L,l.state,l.props);P=P>S?S:P,S===0&&(P=l.state.current),typeof L=="number"&&("pageSize"in l.props||l.setState({pageSize:L}),"current"in l.props||l.setState({current:P,currentInputValue:P})),l.props.onShowSizeChange(P,L),"onChange"in l.props&&l.props.onChange&&l.props.onChange(P,L)},l.handleChange=function(L){var P=l.props.disabled,S=L;if(l.isValid(S)&&!P){var A=b(void 0,l.state,l.props);S>A?S=A:S<1&&(S=1),"current"in l.props||l.setState({current:S,currentInputValue:S});var W=l.state.pageSize;return l.props.onChange(S,W),S}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current2?S-2:0),W=2;W=y?T=y:T=Number(c),T}},{key:"getShowSizeChanger",value:function(){var l=this.props,c=l.showSizeChanger,y=l.total,f=l.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:y>f}},{key:"renderPrev",value:function(l){var c=this.props,y=c.prevIcon,f=c.itemRender,T=f(l,"prev",this.getItemIcon(y,"prev page")),L=!this.hasPrev();return Object(k.isValidElement)(T)?Object(k.cloneElement)(T,{disabled:L}):T}},{key:"renderNext",value:function(l){var c=this.props,y=c.nextIcon,f=c.itemRender,T=f(l,"next",this.getItemIcon(y,"next page")),L=!this.hasNext();return Object(k.isValidElement)(T)?Object(k.cloneElement)(T,{disabled:L}):T}},{key:"render",value:function(){var l=this,c=this.props,y=c.prefixCls,f=c.className,T=c.style,L=c.disabled,P=c.hideOnSinglePage,S=c.total,A=c.locale,W=c.showQuickJumper,D=c.showLessItems,K=c.showTitle,Y=c.showTotal,oe=c.simple,le=c.itemRender,Se=c.showPrevNextJumpers,Ee=c.jumpPrevIcon,ae=c.jumpNextIcon,Ce=c.selectComponentClass,Le=c.selectPrefixCls,de=c.pageSizeOptions,$=this.state,Fe=$.current,at=$.pageSize,it=$.currentInputValue;if(P===!0&&S<=at)return null;var Je=b(void 0,this.state,this.props),st=[],ke=null,Ge=null,$e=null,ee=null,ve=null,Te=W&&W.goButton,Ae=D?1:2,Ve=Fe-1>0?Fe-1:0,Ze=Fe+1=Ae*2&&Fe!==1+2&&(st[0]=Object(k.cloneElement)(st[0],{className:"".concat(y,"-item-after-jump-prev")}),st.unshift(ke)),Je-Fe>=Ae*2&&Fe!==Je-2&&(st[st.length-1]=Object(k.cloneElement)(st[st.length-1],{className:"".concat(y,"-item-before-jump-next")}),st.push(Ge)),Ne!==1&&st.unshift($e),We!==Je&&st.push(ee)}var he=null;Y&&(he=e.a.createElement("li",{className:"".concat(y,"-total-text")},Y(S,[S===0?0:(Fe-1)*at+1,Fe*at>S?S:Fe*at])));var se=!this.hasPrev()||!Je,re=!this.hasNext()||!Je;return e.a.createElement("ul",Object(Q.a)({className:g()(y,f,Object(N.a)({},"".concat(y,"-disabled"),L)),style:T,unselectable:"unselectable",ref:this.savePaginationNode},rt),he,e.a.createElement("li",{title:K?A.prev_page:null,onClick:this.prev,tabIndex:se?null:0,onKeyPress:this.runIfEnterPrev,className:g()("".concat(y,"-prev"),Object(N.a)({},"".concat(y,"-disabled"),se)),"aria-disabled":se},this.renderPrev(Ve)),st,e.a.createElement("li",{title:K?A.next_page:null,onClick:this.next,tabIndex:re?null:0,onKeyPress:this.runIfEnterNext,className:g()("".concat(y,"-next"),Object(N.a)({},"".concat(y,"-disabled"),re)),"aria-disabled":re},this.renderNext(Ze)),e.a.createElement(o,{disabled:L,locale:A,rootPrefixCls:y,selectComponentClass:Ce,selectPrefixCls:Le,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Fe,pageSize:at,pageSizeOptions:de,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Te}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var y={};if("current"in l&&(y.current=l.current,l.current!==c.current&&(y.currentInputValue=y.current)),"pageSize"in l&&l.pageSize!==c.pageSize){var f=c.current,T=b(l.pageSize,c,l);f=f>T?T:f,"current"in l||(y.current=f,y.currentInputValue=f),y.pageSize=l.pageSize}return y}}]),h}(e.a.Component);v.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:i,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:i,locale:s.a,style:{},itemRender:t,totalBoundaryShowSizeChanger:50};var m=v},"6RRn":function(Be,ie,M){"use strict";var Q=M("wCXF"),N=M("n6Qo");M.d(ie,"b",function(){return N.a});var I=M("IBYe"),j=M("6eGT"),C=M("hW8S");M.d(ie,"a",function(){return C.a}),ie.c=Q.b},"6UM0":function(Be,ie,M){var Q,N;(function(){var I;(function(){"use strict";var C=[function(e,O,g){var p=g(1).Beautifier,u=g(5).Options;function a(r,o){var s=new p(r,o);return s.beautify()}e.exports=a,e.exports.defaultOptions=function(){return new u}},function(e,O,g){var p=g(2).Output,u=g(3).Token,a=g(4),r=g(5).Options,o=g(7).Tokenizer,s=g(7).line_starters,i=g(7).positionable_operators,n=g(7).TOKEN;function t(D,K){return K.indexOf(D)!==-1}function b(D){return D.replace(/^\s+/g,"")}function v(D){for(var K={},Y=0;YY&&(Y=D.line_indent_level));var oe={mode:K,parent:D,last_token:D?D.last_token:new u(n.START_BLOCK,""),last_word:D?D.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:Y,alignment:0,line_indent_level:D?D.line_indent_level:Y,start_line_index:this._output.get_line_number(),ternary_depth:0};return oe},A.prototype._reset=function(D){var K=D.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new p(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(c.BlockStatement);var Y=new o(D,this._options);return this._tokens=Y.tokenize(),D},A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D,K=this._reset(this._source_text),Y=this._options.eol;this._options.eol==="auto"&&(Y=`
`,K&&a.lineBreak.test(K||"")&&(Y=K.match(a.lineBreak)[0]));for(var oe=this._tokens.next();oe;)this.handle_token(oe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=oe,oe=this._tokens.next();return D=this._output.get_code(Y),D},A.prototype.handle_token=function(D,K){D.type===n.START_EXPR?this.handle_start_expr(D):D.type===n.END_EXPR?this.handle_end_expr(D):D.type===n.START_BLOCK?this.handle_start_block(D):D.type===n.END_BLOCK?this.handle_end_block(D):D.type===n.WORD?this.handle_word(D):D.type===n.RESERVED?this.handle_word(D):D.type===n.SEMICOLON?this.handle_semicolon(D):D.type===n.STRING?this.handle_string(D):D.type===n.EQUALS?this.handle_equals(D):D.type===n.OPERATOR?this.handle_operator(D):D.type===n.COMMA?this.handle_comma(D):D.type===n.BLOCK_COMMENT?this.handle_block_comment(D,K):D.type===n.COMMENT?this.handle_comment(D,K):D.type===n.DOT?this.handle_dot(D):D.type===n.EOF?this.handle_eof(D):D.type===n.UNKNOWN?this.handle_unknown(D,K):this.handle_unknown(D,K)},A.prototype.handle_whitespace_and_comments=function(D,K){var Y=D.newlines,oe=this._options.keep_array_indentation&&T(this._flags.mode);if(D.comments_before)for(var le=D.comments_before.next();le;)this.handle_whitespace_and_comments(le,K),this.handle_token(le,K),le=D.comments_before.next();if(oe)for(var Se=0;Se0,K);else if(this._options.max_preserve_newlines&&Y>this._options.max_preserve_newlines&&(Y=this._options.max_preserve_newlines),this._options.preserve_newlines&&Y>1){this.print_newline(!1,K);for(var Ee=1;Ee0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},A.prototype.set_mode=function(D){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,D),this._flags=this.create_flags(this._previous_flags,D),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},A.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===c.Statement&&y(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},A.prototype.start_of_object_property=function(){return this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||x(this._flags.last_token,["get","set"]))},A.prototype.start_of_statement=function(D){var K=!1;return K=K||x(this._flags.last_token,["var","let","const"])&&D.type===n.WORD,K=K||m(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement)&&x(this._flags.last_token,W)&&!D.newlines,K=K||m(this._flags.last_token,"else")&&!(m(D,"if")&&!D.comments_before),K=K||this._flags.last_token.type===n.END_EXPR&&(this._previous_flags.mode===c.ForInitializer||this._previous_flags.mode===c.Conditional),K=K||this._flags.last_token.type===n.WORD&&this._flags.mode===c.BlockStatement&&!this._flags.in_case&&!(D.text==="--"||D.text==="++")&&this._last_last_text!=="function"&&D.type!==n.WORD&&D.type!==n.RESERVED,K=K||this._flags.mode===c.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||x(this._flags.last_token,["get","set"])),K?(this.set_mode(c.Statement),this.indent(),this.handle_whitespace_and_comments(D,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D,x(D,["do","for","if","while"])),!0):!1},A.prototype.handle_start_expr=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D);var K=c.Expression;if(D.text==="["){if(this._flags.last_token.type===n.WORD||this._flags.last_token.text===")"){x(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(D),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=c.ArrayLiteral,T(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),t(this._flags.last_token.type,[n.START_EXPR,n.END_EXPR,n.WORD,n.OPERATOR,n.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===n.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,K=c.ForInitializer):t(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=c.Conditional):t(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&D.whitespace_before===""?this._output.space_before_token=!1:(t(this._flags.last_token.text,s)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D);else if(this._flags.last_token.type===n.WORD){this._output.space_before_token=!1;var Y=this._tokens.peek(-3);if(this._options.space_after_named_function&&Y){var oe=this._tokens.peek(-4);x(Y,["async","function"])||Y.text==="*"&&x(oe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===c.ObjectLiteral?(Y.text==="{"||Y.text===","||Y.text==="*"&&(oe.text==="{"||oe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(D);(this._flags.last_token.type===n.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&t(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===n.START_BLOCK?this.print_newline():(this._flags.last_token.type===n.END_EXPR||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===n.COMMA)&&this.allow_wrap_or_preserved_newline(D,D.newlines),this.print_token(D),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},A.prototype.handle_end_expr=function(D){for(;this._flags.mode===c.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(D,D.text==="]"&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===n.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(D),this.restore_mode(),y(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===c.Conditional&&(this._previous_flags.mode=c.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},A.prototype.handle_start_block=function(D){this.handle_whitespace_and_comments(D);var K=this._tokens.peek(),Y=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===n.END_EXPR?(this.set_mode(c.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(c.BlockStatement):Y&&(t(Y.text,[":",","])&&t(K.type,[n.STRING,n.WORD,n.RESERVED])||t(K.text,["get","set","..."])&&t(Y.type,[n.WORD,n.RESERVED]))?t(this._last_last_text,["class","interface"])&&!t(Y.text,[":",","])?this.set_mode(c.BlockStatement):this.set_mode(c.ObjectLiteral):this._flags.last_token.type===n.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(c.BlockStatement):t(this._flags.last_token.type,[n.EQUALS,n.START_EXPR,n.COMMA,n.OPERATOR])||x(this._flags.last_token,["return","throw","import","default"])?this.set_mode(c.ObjectLiteral):this.set_mode(c.BlockStatement),this._flags.last_token&&(x(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var oe=!K.comments_before&&K.text==="}",le=oe&&this._flags.last_word==="function"&&this._flags.last_token.type===n.END_EXPR;if(this._options.brace_preserve_inline){var Se=0,Ee=null;this._flags.inline_frame=!0;do if(Se+=1,Ee=this._tokens.peek(Se-1),Ee.newlines){this._flags.inline_frame=!1;break}while(Ee.type!==n.EOF&&!(Ee.type===n.END_BLOCK&&Ee.opened===D))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==n.OPERATOR&&(le||this._flags.last_token.type===n.EQUALS||x(this._flags.last_token,_)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(T(this._previous_flags.mode)&&(this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.COMMA)&&((this._flags.last_token.type===n.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(D),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==n.OPERATOR&&this._flags.last_token.type!==n.START_EXPR&&(this._flags.last_token.type===n.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(D),this.indent(),!oe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},A.prototype.handle_end_block=function(D){for(this.handle_whitespace_and_comments(D);this._flags.mode===c.Statement;)this.restore_mode();var K=this._flags.last_token.type===n.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(T(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(D)},A.prototype.handle_word=function(D){if(D.type===n.RESERVED){if(t(D.text,["set","get"])&&this._flags.mode!==c.ObjectLiteral)D.type=n.WORD;else if(D.text==="import"&&t(this._tokens.peek().text,["(","."]))D.type=n.WORD;else if(t(D.text,["as","from"])&&!this._flags.import_block)D.type=n.WORD;else if(this._flags.mode===c.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(D.type=n.WORD)}}if(this.start_of_statement(D)?x(this._flags.last_token,["var","let","const"])&&D.type===n.WORD&&(this._flags.declaration_statement=!0):D.newlines&&!L(this._flags.mode)&&(this._flags.last_token.type!==n.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==n.EQUALS&&(this._options.preserve_newlines||!x(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(D),this.print_newline()):this.handle_whitespace_and_comments(D),this._flags.do_block&&!this._flags.do_while)if(m(D,"while")){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&m(D,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===c.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&x(D,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(D),this._flags.in_case=!0;return}if((this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D)),m(D,"function")){(t(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(t(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===n.OPERATOR))&&(!this._output.just_added_blankline()&&!D.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD?x(this._flags.last_token,["get","set","new","export"])||x(this._flags.last_token,W)?this._output.space_before_token=!0:m(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===n.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(L(this._flags.mode)||T(this._flags.mode))||this.print_newline(),this.print_token(D),this._flags.last_word=D.text;return}var Y="NONE";if(this._flags.last_token.type===n.END_BLOCK?this._previous_flags.inline_frame?Y="SPACE":x(D,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines?Y="NEWLINE":(Y="SPACE",this._output.space_before_token=!0):Y="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&this._flags.mode===c.BlockStatement?Y="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&L(this._flags.mode)?Y="SPACE":this._flags.last_token.type===n.STRING?Y="NEWLINE":this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&t(this._last_last_text,["{",","]))?Y="SPACE":this._flags.last_token.type===n.START_BLOCK?this._flags.inline_frame?Y="SPACE":Y="NEWLINE":this._flags.last_token.type===n.END_EXPR&&(this._output.space_before_token=!0,Y="NEWLINE"),x(D,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?Y="SPACE":Y="NEWLINE"),x(D,["else","catch","finally"]))if((!(this._flags.last_token.type===n.END_BLOCK&&this._previous_flags.mode===c.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var oe=this._output.current_line;oe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else Y==="NEWLINE"?x(this._flags.last_token,_)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&x(D,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==n.END_EXPR?(this._flags.last_token.type!==n.START_EXPR||!x(D,["var","let","const"]))&&this._flags.last_token.text!==":"&&(m(D,"if")&&m(D.previous,"else")?this._output.space_before_token=!0:this.print_newline()):x(D,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&T(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():Y==="SPACE"&&(this._output.space_before_token=!0);D.previous&&(D.previous.type===n.WORD||D.previous.type===n.RESERVED)&&(this._output.space_before_token=!0),this.print_token(D),this._flags.last_word=D.text,D.type===n.RESERVED&&(D.text==="do"?this._flags.do_block=!0:D.text==="if"?this._flags.if_block=!0:D.text==="import"?this._flags.import_block=!0:this._flags.import_block&&m(D,"from")&&(this._flags.import_block=!1))},A.prototype.handle_semicolon=function(D){this.start_of_statement(D)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(D);for(var K=this._tokens.peek();this._flags.mode===c.Statement&&!(this._flags.if_block&&m(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(D)},A.prototype.handle_string=function(D){D.text.startsWith("`")&&D.newlines===0&&D.whitespace_before===""&&(D.previous.text===")"||this._flags.last_token.type===n.WORD)||(this.start_of_statement(D)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(D),this._flags.last_token.type===n.RESERVED||this._flags.last_token.type===n.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR||this._flags.last_token.type===n.EQUALS||this._flags.last_token.type===n.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D):D.text.startsWith("`")&&this._flags.last_token.type===n.END_EXPR&&(D.previous.text==="]"||D.previous.text===")")&&D.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(D)},A.prototype.handle_equals=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0},A.prototype.handle_comma=function(D){this.handle_whitespace_and_comments(D,!0),this.print_token(D),this._output.space_before_token=!0,this._flags.declaration_statement?(L(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)):this._flags.mode===c.ObjectLiteral||this._flags.mode===c.Statement&&this._flags.parent.mode===c.ObjectLiteral?(this._flags.mode===c.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)},A.prototype.handle_operator=function(D){var K=D.text==="*"&&(x(this._flags.last_token,["function","yield"])||t(this._flags.last_token.type,[n.START_BLOCK,n.COMMA,n.END_BLOCK,n.SEMICOLON])),Y=t(D.text,["-","+"])&&(t(this._flags.last_token.type,[n.START_BLOCK,n.START_EXPR,n.EQUALS,n.OPERATOR])||t(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(D)){var oe=!K;this.handle_whitespace_and_comments(D,oe)}if(D.text==="*"&&this._flags.last_token.type===n.DOT){this.print_token(D);return}if(D.text==="::"){this.print_token(D);return}if(this._flags.last_token.type===n.OPERATOR&&t(this._options.operator_position,l)&&this.allow_wrap_or_preserved_newline(D),D.text===":"&&this._flags.in_case){this.print_token(D),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==n.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var le=!0,Se=!0,Ee=!1;if(D.text===":"?this._flags.ternary_depth===0?le=!1:(this._flags.ternary_depth-=1,Ee=!0):D.text==="?"&&(this._flags.ternary_depth+=1),!Y&&!K&&this._options.preserve_newlines&&t(D.text,i)){var ae=D.text===":",Ce=ae&&Ee,Le=ae&&!Ee;switch(this._options.operator_position){case d.before_newline:this._output.space_before_token=!Le,this.print_token(D),(!ae||Ce)&&this.allow_wrap_or_preserved_newline(D),this._output.space_before_token=!0;return;case d.after_newline:this._output.space_before_token=!0,!ae||Ce?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(D):this._output.space_before_token=!1,this.print_token(D),this._output.space_before_token=!0;return;case d.preserve_newline:Le||this.allow_wrap_or_preserved_newline(D),le=!(this._output.just_added_newline()||Le),this._output.space_before_token=le,this.print_token(D),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(D),le=!1;var de=this._tokens.peek();Se=de&&t(de.type,[n.WORD,n.RESERVED])}else if(D.text==="...")this.allow_wrap_or_preserved_newline(D),le=this._flags.last_token.type===n.START_BLOCK,Se=!1;else if(t(D.text,["--","++","!","~"])||Y){if((this._flags.last_token.type===n.COMMA||this._flags.last_token.type===n.START_EXPR)&&this.allow_wrap_or_preserved_newline(D),le=!1,Se=!1,D.newlines&&(D.text==="--"||D.text==="++"||D.text==="~")){var $=x(this._flags.last_token,_)&&D.newlines;$&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline($,!0)}this._flags.last_token.text===";"&&L(this._flags.mode)&&(le=!0),this._flags.last_token.type===n.RESERVED?le=!0:this._flags.last_token.type===n.END_EXPR?le=!(this._flags.last_token.text==="]"&&(D.text==="--"||D.text==="++")):this._flags.last_token.type===n.OPERATOR&&(le=t(D.text,["--","-","++","+"])&&t(this._flags.last_token.text,["--","-","++","+"]),t(D.text,["+","-"])&&t(this._flags.last_token.text,["--","++"])&&(Se=!0)),(this._flags.mode===c.BlockStatement&&!this._flags.inline_frame||this._flags.mode===c.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||le,this.print_token(D),this._output.space_before_token=Se},A.prototype.handle_block_comment=function(D,K){if(this._output.raw){this._output.add_raw_token(D),D.directives&&D.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(D.directives){this.print_newline(!1,K),this.print_token(D),D.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(D.text)&&!D.newlines){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0;return}else this.print_block_commment(D,K)},A.prototype.print_block_commment=function(D,K){var Y=f(D.text),oe,le=!1,Se=!1,Ee=D.whitespace_before,ae=Ee.length;if(this.print_newline(!1,K),this.print_token_line_indentation(D),this._output.add_token(Y[0]),this.print_newline(!1,K),Y.length>1){for(Y=Y.slice(1),le=P(Y,"*"),Se=S(Y,Ee),le&&(this._flags.alignment=1),oe=0;oe=0;a--)if(this.__items[a].match(u))return!0;return!1},O.prototype.set_indent=function(u,a){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},O.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},O.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},O.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},O.prototype.is_empty=function(){return this.__items.length===0},O.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},O.prototype.push=function(u){this.__items.push(u);var a=u.lastIndexOf(`
`);a!==-1?this.__character_count=u.length-a:this.__character_count+=u.length},O.prototype.pop=function(){var u=null;return this.is_empty()||(u=this.__items.pop(),this.__character_count-=u.length),u},O.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},O.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},O.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},O.prototype.toString=function(){var u="";return this.is_empty()?this.__parent.indent_empty_lines&&(u=this.__parent.get_indent_string(this.__indent_count)):(u=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),u+=this.__items.join("")),u};function g(u,a){this.__cache=[""],this.__indent_size=u.indent_size,this.__indent_string=u.indent_char,u.indent_with_tabs||(this.__indent_string=new Array(u.indent_size+1).join(u.indent_char)),a=a||"",u.indent_level>0&&(a=new Array(u.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}g.prototype.get_indent_size=function(u,a){var r=this.__base_string_length;return a=a||0,u<0&&(r=0),r+=u*this.__indent_size,r+=a,r},g.prototype.get_indent_string=function(u,a){var r=this.__base_string;return a=a||0,u<0&&(u=0,r=""),a+=u*this.__indent_size,this.__ensure_cache(a),r+=this.__cache[a],r},g.prototype.__ensure_cache=function(u){for(;u>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var u=this.__cache.length,a=0,r="";this.__indent_size&&u>=this.__indent_size&&(a=Math.floor(u/this.__indent_size),u-=a*this.__indent_size,r=new Array(a+1).join(this.__indent_string)),u&&(r+=new Array(u+1).join(" ")),this.__cache.push(r)};function p(u,a){this.__indent_cache=new g(u,a),this.raw=!1,this._end_with_newline=u.end_with_newline,this.indent_size=u.indent_size,this.wrap_line_length=u.wrap_line_length,this.indent_empty_lines=u.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new O(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(u,a){return this.__indent_cache.get_indent_string(u,a)},p.prototype.get_indent_size=function(u,a){return this.__indent_cache.get_indent_size(u,a)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(u){return this.is_empty()||!u&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(u){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var r=this.__lines.join(`
`);return u!==`
`&&(r=r.replace(/[\n]/g,u)),r},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(u,a){return u=u||0,a=a||0,this.next_line.set_indent(u,a),this.__lines.length>1?(this.current_line.set_indent(u,a),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(u){for(var a=0;a1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},p.prototype.just_added_newline=function(){return this.current_line.is_empty()},p.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},p.prototype.ensure_empty_line_above=function(u,a){for(var r=this.__lines.length-2;r>=0;){var o=this.__lines[r];if(o.is_empty())break;if(o.item(0).indexOf(u)!==0&&o.item(-1)!==a){this.__lines.splice(r+1,0,new O(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=p},function(e){function O(g,p,u,a){this.type=g,this.text=p,this.comments_before=null,this.newlines=u||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=O},function(e,O){var g="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",u="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",r="(?:\\\\u[0-9a-fA-F]{4}|["+g+u+"])",o="(?:\\\\u[0-9a-fA-F]{4}|["+p+u+a+"])*";O.identifier=new RegExp(r+o,"g"),O.identifierStart=new RegExp(r),O.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+p+u+a+"])+");var s=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;O.newline=/[\n\r\u2028\u2029]/,O.lineBreak=new RegExp(`\r
|`+O.newline.source),O.allLineBreaks=new RegExp(O.lineBreak.source,"g")},function(e,O,g){var p=g(6).Options,u=["before-newline","after-newline","preserve-newline"];function a(r){p.call(this,r,"js");var o=this.raw_options.brace_style||null;o==="expand-strict"?this.raw_options.brace_style="expand":o==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var i=0;i>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),h=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";h=h.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),h="\\?\\.(?!\\d) "+h,h=h.replace(/ /g,"|");var d=new RegExp(h),l="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),c=l.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),y=new RegExp("^(?:"+c.join("|")+")$"),f,T=function(P,S){u.call(this,P,S),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var A=new s(this._input),W=new i(this._input).read_options(this._options);this.__patterns={template:W,identifier:W.starting_with(o.identifier).matching(o.identifierMatch),number:A.matching(v),punct:A.matching(d),comment:A.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:A.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:A.matching(//),include:A.starting_with(/#include/).until_after(o.lineBreak),shebang:A.starting_with(/#!/).until_after(o.lineBreak),xml:A.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:W.until(/['\\\n\r\u2028\u2029]/),double_quote:W.until(/["\\\n\r\u2028\u2029]/),template_text:W.until(/[`\\$]/),template_expression:W.until(/[`}\\]/)}};T.prototype=new u,T.prototype._is_comment=function(P){return P.type===t.COMMENT||P.type===t.BLOCK_COMMENT||P.type===t.UNKNOWN},T.prototype._is_opening=function(P){return P.type===t.START_BLOCK||P.type===t.START_EXPR},T.prototype._is_closing=function(P,S){return(P.type===t.END_BLOCK||P.type===t.END_EXPR)&&S&&(P.text==="]"&&S.text==="["||P.text===")"&&S.text==="("||P.text==="}"&&S.text==="{")},T.prototype._reset=function(){f=!1},T.prototype._get_next_token=function(P,S){var A=null;this._readWhitespace();var W=this._input.peek();return W===null?this._create_token(t.EOF,""):(A=A||this._read_non_javascript(W),A=A||this._read_string(W),A=A||this._read_word(P),A=A||this._read_singles(W),A=A||this._read_comment(W),A=A||this._read_regexp(W,P),A=A||this._read_xml(W,P),A=A||this._read_punctuation(),A=A||this._create_token(t.UNKNOWN,this._input.next()),A)},T.prototype._read_word=function(P){var S;if(S=this.__patterns.identifier.read(),S!=="")return S=S.replace(o.allLineBreaks,`
`),!(P.type===t.DOT||P.type===t.RESERVED&&(P.text==="set"||P.text==="get"))&&y.test(S)?(S==="in"||S==="of")&&(P.type===t.WORD||P.type===t.STRING)?this._create_token(t.OPERATOR,S):this._create_token(t.RESERVED,S):this._create_token(t.WORD,S);if(S=this.__patterns.number.read(),S!=="")return this._create_token(t.WORD,S)},T.prototype._read_singles=function(P){var S=null;return P==="("||P==="["?S=this._create_token(t.START_EXPR,P):P===")"||P==="]"?S=this._create_token(t.END_EXPR,P):P==="{"?S=this._create_token(t.START_BLOCK,P):P==="}"?S=this._create_token(t.END_BLOCK,P):P===";"?S=this._create_token(t.SEMICOLON,P):P==="."&&x.test(this._input.peek(1))?S=this._create_token(t.DOT,P):P===","&&(S=this._create_token(t.COMMA,P)),S&&this._input.next(),S},T.prototype._read_punctuation=function(){var P=this.__patterns.punct.read();if(P!=="")return P==="="?this._create_token(t.EQUALS,P):P==="?."?this._create_token(t.DOT,P):this._create_token(t.OPERATOR,P)},T.prototype._read_non_javascript=function(P){var S="";if(P==="#"){if(this._is_first_token()&&(S=this.__patterns.shebang.read(),S))return this._create_token(t.UNKNOWN,S.trim()+`
`);if(S=this.__patterns.include.read(),S)return this._create_token(t.UNKNOWN,S.trim()+`
`);P=this._input.next();var A="#";if(this._input.hasNext()&&this._input.testChar(m)){do P=this._input.next(),A+=P;while(this._input.hasNext()&&P!=="#"&&P!=="=");return P==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(A+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(A+="{}",this._input.next(),this._input.next())),this._create_token(t.WORD,A)}this._input.back()}else if(P==="<"&&this._is_first_token()){if(S=this.__patterns.html_comment_start.read(),S){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)S+=this._input.next();return f=!0,this._create_token(t.COMMENT,S)}}else if(f&&P==="-"&&(S=this.__patterns.html_comment_end.read(),S))return f=!1,this._create_token(t.COMMENT,S);return null},T.prototype._read_comment=function(P){var S=null;if(P==="/"){var A="";if(this._input.peek(1)==="*"){A=this.__patterns.block_comment.read();var W=b.get_directives(A);W&&W.ignore==="start"&&(A+=b.readIgnored(this._input)),A=A.replace(o.allLineBreaks,`
`),S=this._create_token(t.BLOCK_COMMENT,A),S.directives=W}else this._input.peek(1)==="/"&&(A=this.__patterns.comment.read(),S=this._create_token(t.COMMENT,A))}return S},T.prototype._read_string=function(P){if(P==="`"||P==="'"||P==='"'){var S=this._input.next();return this.has_char_escapes=!1,P==="`"?S+=this._read_string_recursive("`",!0,"${"):S+=this._read_string_recursive(P),this.has_char_escapes&&this._options.unescape_strings&&(S=L(S)),this._input.peek()===P&&(S+=this._input.next()),S=S.replace(o.allLineBreaks,`
`),this._create_token(t.STRING,S)}return null},T.prototype._allow_regexp_or_xml=function(P){return P.type===t.RESERVED&&n(P.text,["return","case","throw","else","do","typeof","yield"])||P.type===t.END_EXPR&&P.text===")"&&P.opened.previous.type===t.RESERVED&&n(P.opened.previous.text,["if","while","for"])||n(P.type,[t.COMMENT,t.START_EXPR,t.START_BLOCK,t.START,t.END_BLOCK,t.OPERATOR,t.EQUALS,t.EOF,t.SEMICOLON,t.COMMA])},T.prototype._read_regexp=function(P,S){if(P==="/"&&this._allow_regexp_or_xml(S)){for(var A=this._input.next(),W=!1,D=!1;this._input.hasNext()&&(W||D||this._input.peek()!==P)&&!this._input.testChar(o.newline);)A+=this._input.peek(),W?W=!1:(W=this._input.peek()==="\\",this._input.peek()==="["?D=!0:this._input.peek()==="]"&&(D=!1)),this._input.next();return this._input.peek()===P&&(A+=this._input.next(),A+=this._input.read(o.identifier)),this._create_token(t.STRING,A)}return null},T.prototype._read_xml=function(P,S){if(this._options.e4x&&P==="<"&&this._allow_regexp_or_xml(S)){var A="",W=this.__patterns.xml.read_match();if(W){for(var D=W[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=D.indexOf("{")===0,Y=0;W;){var oe=!!W[1],le=W[2],Se=!!W[W.length-1]||le.slice(0,8)==="![CDATA[";if(!Se&&(le===D||K&&le.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(oe?--Y:++Y),A+=W[0],Y<=0)break;W=this.__patterns.xml.read_match()}return W||(A+=this._input.match(/[\s\S]*/g)[0]),A=A.replace(o.allLineBreaks,`
`),this._create_token(t.STRING,A)}}return null};function L(P){for(var S="",A=0,W=new p(P),D=null;W.hasNext();)if(D=W.match(/([\s]|[^\\]|\\\\)+/g),D&&(S+=D[0]),W.peek()==="\\"){if(W.next(),W.peek()==="x")D=W.match(/x([0-9A-Fa-f]{2})/g);else if(W.peek()==="u")D=W.match(/u([0-9A-Fa-f]{4})/g);else{S+="\\",W.hasNext()&&(S+=W.next());continue}if(!D)return P;if(A=parseInt(D[1],16),A>126&&A<=255&&D[0].indexOf("x")===0)return P;if(A>=0&&A<32){S+="\\"+D[0];continue}else A===34||A===39||A===92?S+="\\"+String.fromCharCode(A):S+=String.fromCharCode(A)}return S}T.prototype._read_string_recursive=function(P,S,A){var W,D;P==="'"?D=this.__patterns.single_quote:P==='"'?D=this.__patterns.double_quote:P==="`"?D=this.__patterns.template_text:P==="}"&&(D=this.__patterns.template_expression);for(var K=D.read(),Y="";this._input.hasNext();){if(Y=this._input.next(),Y===P||!S&&o.newline.test(Y)){this._input.back();break}else Y==="\\"&&this._input.hasNext()?(W=this._input.peek(),W==="x"||W==="u"?this.has_char_escapes=!0:W==="\r"&&this._input.peek(1)===`
`&&this._input.next(),Y+=this._input.next()):A&&(A==="${"&&Y==="$"&&this._input.peek()==="{"&&(Y+=this._input.next()),A===Y&&(P==="`"?Y+=this._read_string_recursive("}",S,"`"):Y+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(Y+=this._input.next())));Y+=D.read(),K+=Y}return K},e.exports.Tokenizer=T,e.exports.TOKEN=t,e.exports.positionable_operators=_.slice(),e.exports.line_starters=l.slice()},function(e){var O=RegExp.prototype.hasOwnProperty("sticky");function g(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position=0&&p=0&&u=p.length&&this.__input.substring(u-p.length,u).toLowerCase()===p},e.exports.InputScanner=g},function(e,O,g){var p=g(8).InputScanner,u=g(3).Token,a=g(10).TokenStream,r=g(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(i,n){this._input=new p(i),this._options=n||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var i,n=new u(o.START,""),t=null,b=[],v=new a;n.type!==o.EOF;){for(i=this._get_next_token(n,t);this._is_comment(i);)v.add(i),i=this._get_next_token(n,t);v.isEmpty()||(i.comments_before=v,v=new a),i.parent=t,this._is_opening(i)?(b.push(t),t=i):t&&this._is_closing(i,t)&&(i.opened=t,t.closed=i,t=b.pop(),i.parent=t),i.previous=n,n.next=i,this.__tokens.add(i),n=i}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(i,n){this._readWhitespace();var t=this._input.read(/.+/g);return t?this._create_token(o.RAW,t):this._create_token(o.EOF,"")},s.prototype._is_comment=function(i){return!1},s.prototype._is_opening=function(i){return!1},s.prototype._is_closing=function(i,n){return!1},s.prototype._create_token=function(i,n){var t=new u(i,n,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return t},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=s,e.exports.TOKEN=o},function(e){function O(g){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=g}O.prototype.restart=function(){this.__position=0},O.prototype.isEmpty=function(){return this.__tokens_length===0},O.prototype.hasNext=function(){return this.__position=0&&g/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new p,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(r){var o=this._create();return o._disabled[r]=!0,o._update(),o},a.prototype.read_options=function(r){var o=this._create();for(var s in u)o._disabled[s]=r.templating.indexOf(s)===-1;return o._update(),o},a.prototype.exclude=function(r){var o=this._create();return o._excluded[r]=!0,o._update(),o},a.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var o=this._read_template();o;)this._match_pattern?o+=this._input.read(this._match_pattern):o+=this._input.readUntil(this.__template_pattern),r+=o,o=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},a.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},a.prototype._read_template=function(){var r="",o=this._input.peek();if(o==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(r=r||this.__patterns.erb.read())}else o==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},e.exports.TemplatablePattern=a}],R={};function H(e){var O=R[e];if(O!==void 0)return O.exports;var g=R[e]={exports:{}};return C[e](g,g.exports,H),g.exports}var k=H(0);I=k})();var j=I;!(Q=[],N=function(){return{js_beautify:j}}.apply(ie,Q),N!==void 0&&(Be.exports=N))})()},"6eGT":function(Be,ie,M){"use strict";function Q(N){return null}ie.a=Q},"6nfa":function(Be,ie,M){Be.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"746U":function(Be,ie,M){"use strict";M.d(ie,"f",function(){return Q}),M.d(ie,"l",function(){return N}),M.d(ie,"k",function(){return I}),M.d(ie,"j",function(){return j}),M.d(ie,"g",function(){return C}),M.d(ie,"m",function(){return R}),M.d(ie,"h",function(){return H}),M.d(ie,"n",function(){return k}),M.d(ie,"c",function(){return e}),M.d(ie,"a",function(){return O}),M.d(ie,"i",function(){return g}),M.d(ie,"o",function(){return p}),M.d(ie,"e",function(){return r}),M.d(ie,"d",function(){return o}),M.d(ie,"p",function(){return s}),M.d(ie,"b",function(){return i});function Q(n){return Array.isArray(n)}function N(n){return typeof n=="string"}function I(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function j(n){return typeof n=="number"&&!isNaN(n)}function C(n){return n===!0||n===!1}function R(n){return typeof n=="undefined"}function H(n){return!k(n)}function k(n){return R(n)||n===null}function e(n,t){if(!n)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function O(n){if(k(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function g(n){return typeof n=="function"}function p(n,t){const b=Math.min(n.length,t.length);for(let v=0;vfunction(){const x=Array.prototype.slice.call(arguments,0);return t(m,x)};let v={};for(const m of n)v[m]=b(m);return v}function s(n){return n===null?void 0:n}function i(n,t="Unreachable"){throw new Error(t)}},"815F":function(Be,ie,M){"use strict";M.d(ie,"e",function(){return H}),M.d(ie,"c",function(){return e}),M.d(ie,"d",function(){return O}),M.d(ie,"a",function(){return p}),M.d(ie,"f",function(){return u}),M.d(ie,"b",function(){return a});var Q=M("KQm4"),N=M("VTBJ"),I=M("Ff2n"),j=M("Zm9Q"),C=M("Kwbf"),R=M("OZM5");function H(r,o){return r!=null?r:o}function k(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=new Map;function s(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(i||[]).forEach(function(t){var b=t.key,v=t.children;Object(C.a)(b!=null,"Tree node must have a certain key: [".concat(n).concat(b,"]"));var m=String(b);Object(C.a)(!o.has(m)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(m)),o.set(m,!0),s(v,"".concat(n).concat(m," > "))})}s(r)}function e(r){function o(s){var i=Object(j.a)(s);return i.map(function(n){if(!Object(R.i)(n))return Object(C.a)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,b=n.props,v=b.children,m=Object(I.a)(b,["children"]),x=Object(N.a)({key:t},m),_=o(v);return _.length&&(x.children=_),x}).filter(function(n){return n})}return o(r)}function O(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=new Set(o===!0?[]:o),i=[];function n(t){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return t.map(function(v,m){var x=Object(R.h)(b?b.pos:"0",m),_=H(v.key,x),h=Object(N.a)(Object(N.a)({},v),{},{parent:b,pos:x,children:null,data:v,isStart:[].concat(Object(Q.a)(b?b.isStart:[]),[m===0]),isEnd:[].concat(Object(Q.a)(b?b.isEnd:[]),[m===t.length-1])});return i.push(h),o===!0||s.has(_)?h.children=n(v.children||[],h):h.children=[],h})}return n(r),i}function g(r,o,s){var i;s?typeof s=="string"?i=function(b){return b[s]}:typeof s=="function"&&(i=function(b){return s(b)}):i=function(b,v){return H(b.key,v)};function n(t,b,v){var m=t?t.children:r,x=t?Object(R.h)(v.pos,b):"0";if(t){var _=i(t,x),h={node:t,index:b,pos:x,key:_,parentPos:v.node?v.pos:null,level:v.level+1};o(h)}m&&m.forEach(function(d,l){n(d,l,{node:t,pos:x,level:v?v.level+1:-1})})}n(null)}function p(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.initWrapper,i=o.processEntity,n=o.onProcessFinished,t=arguments.length>2?arguments[2]:void 0,b={},v={},m={posEntities:b,keyEntities:v};return s&&(m=s(m)||m),g(r,function(x){var _=x.node,h=x.index,d=x.pos,l=x.key,c=x.parentPos,y=x.level,f={node:_,index:h,key:l,pos:d,level:y},T=H(l,d);b[d]=f,v[T]=f,f.parent=b[c],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),i&&i(f,m)},t),n&&n(m),m}function u(r,o){var s=o.expandedKeys,i=o.selectedKeys,n=o.loadedKeys,t=o.loadingKeys,b=o.checkedKeys,v=o.halfCheckedKeys,m=o.dragOverNodeKey,x=o.dropPosition,_=o.keyEntities,h=_[r],d={eventKey:r,expanded:s.indexOf(r)!==-1,selected:i.indexOf(r)!==-1,loaded:n.indexOf(r)!==-1,loading:t.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:v.indexOf(r)!==-1,pos:String(h?h.pos:""),dragOver:m===r&&x===0,dragOverGapTop:m===r&&x===-1,dragOverGapBottom:m===r&&x===1};return d}function a(r){var o=r.data,s=r.expanded,i=r.selected,n=r.checked,t=r.loaded,b=r.loading,v=r.halfChecked,m=r.dragOver,x=r.dragOverGapTop,_=r.dragOverGapBottom,h=r.pos,d=r.active,l=Object(N.a)(Object(N.a)({},o),{},{expanded:s,selected:i,checked:n,loaded:t,loading:b,halfChecked:v,dragOver:m,dragOverGapTop:x,dragOverGapBottom:_,pos:h,active:d});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(C.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),l}},"8HAY":function(Be,ie,M){"use strict";M.d(ie,"a",function(){return C}),M.d(ie,"b",function(){return R}),M.d(ie,"d",function(){return H}),M.d(ie,"e",function(){return k}),M.d(ie,"c",function(){return e});var Q=M("MI8n"),N=M("pmY6"),I=M("3/fG"),j=function(O,g,p,u){function a(r){return r instanceof p?r:new p(function(o){o(r)})}return new(p||(p=Promise))(function(r,o){function s(t){try{n(u.next(t))}catch(b){o(b)}}function i(t){try{n(u.throw(t))}catch(b){o(b)}}function n(t){t.done?r(t.value):a(t.value).then(s,i)}n((u=u.apply(O,g||[])).next())})};class C extends N.a{constructor(O,g="",p="",u=!0,a){super();this._onDidChange=this._register(new Q.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=O,this._label=g,this._cssClass=p,this._enabled=u,this._actionCallback=a}get id(){return this._id}get label(){return this._label}set label(O){this._setLabel(O)}_setLabel(O){this._label!==O&&(this._label=O,this._onDidChange.fire({label:O}))}get tooltip(){return this._tooltip||""}set tooltip(O){this._setTooltip(O)}_setTooltip(O){this._tooltip!==O&&(this._tooltip=O,this._onDidChange.fire({tooltip:O}))}get class(){return this._cssClass}set class(O){this._setClass(O)}_setClass(O){this._cssClass!==O&&(this._cssClass=O,this._onDidChange.fire({class:O}))}get enabled(){return this._enabled}set enabled(O){this._setEnabled(O)}_setEnabled(O){this._enabled!==O&&(this._enabled=O,this._onDidChange.fire({enabled:O}))}get checked(){return this._checked}set checked(O){this._setChecked(O)}_setChecked(O){this._checked!==O&&(this._checked=O,this._onDidChange.fire({checked:O}))}run(O,g){return j(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(O))})}}class R extends N.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new Q.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Q.b),this.onDidRun=this._onDidRun.event}run(O,g){return j(this,void 0,void 0,function*(){if(!O.enabled)return;this._onBeforeRun.fire({action:O});let p;try{yield this.runAction(O,g)}catch(u){p=u}this._onDidRun.fire({action:O,error:p})})}runAction(O,g){return j(this,void 0,void 0,function*(){yield O.run(g)})}}class H extends C{constructor(O){super(H.ID,O,O?"separator text":"separator");this.checked=!1,this.enabled=!1}}H.ID="vs.actions.separator";class k{constructor(O,g,p,u){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=O,this.label=g,this.class=u,this._actions=p}get actions(){return this._actions}dispose(){}run(){return j(this,void 0,void 0,function*(){})}}class e extends C{constructor(){super(e.ID,I.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8WcF":function(Be,ie,M){Be.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8hTe":function(Be,ie,M){Be.exports={button:"button___1wy9m"}},"8mKB":function(Be,ie,M){"use strict";var Q=M("rePB"),N=M("1OyB"),I=M("vuIU"),j=M("Ji7U"),C=M("md7G"),R=M("foSv"),H=M("q1tI"),k=M.n(H),e=M("m+aA"),O=M("TSYQ"),g=M.n(O),p=M("4IlW");function u(d){var l=d.pageXOffset,c="scrollLeft";if(typeof l!="number"){var y=d.document;l=y.documentElement[c],typeof l!="number"&&(l=y.body[c])}return l}function a(d){var l,c,y=d.ownerDocument,f=y.body,T=y&&y.documentElement,L=d.getBoundingClientRect();return l=L.left,c=L.top,l-=T.clientLeft||f.clientLeft||0,c-=T.clientTop||f.clientTop||0,{left:l,top:c}}function r(d){var l=a(d),c=d.ownerDocument,y=c.defaultView||c.parentWindow;return l.left+=u(y),l.left}function o(d){var l=s();return function(){var y=Object(R.a)(d),f;if(l){var T=Object(R.a)(this).constructor;f=Reflect.construct(y,arguments,T)}else f=y.apply(this,arguments);return Object(C.a)(this,f)}}function s(){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(d){return!1}}var i=function(d){Object(j.a)(c,d);var l=o(c);function c(){var y;return Object(N.a)(this,c),y=l.apply(this,arguments),y.onHover=function(f){var T=y.props,L=T.onHover,P=T.index;L(f,P)},y.onClick=function(f){var T=y.props,L=T.onClick,P=T.index;L(f,P)},y.onKeyDown=function(f){var T=y.props,L=T.onClick,P=T.index;f.keyCode===13&&L(f,P)},y}return Object(I.a)(c,[{key:"getClassName",value:function(){var f=this.props,T=f.prefixCls,L=f.index,P=f.value,S=f.allowHalf,A=f.focused,W=L+1,D=T;return P===0&&L===0&&A?D+=" ".concat(T,"-focused"):S&&P+.5>=W&&PK?"true":"false","aria-posinset":K+1,"aria-setsize":Y,tabIndex:S?-1:0},k.a.createElement("div",{className:"".concat(A,"-first")},le),k.a.createElement("div",{className:"".concat(A,"-second")},le)));return D&&(Se=D(Se,this.props)),Se}}]),c}(k.a.Component);function n(d,l){var c=Object.keys(d);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(d);l&&(y=y.filter(function(f){return Object.getOwnPropertyDescriptor(d,f).enumerable})),c.push.apply(c,y)}return c}function t(d){for(var l=1;l0&&!Y||P===p.a.RIGHT&&oe>0&&Y?(W?oe-=.5:oe-=1,f.changeValue(oe),L.preventDefault()):P===p.a.LEFT&&oeY/2||!A&&T-K=U.length?z.slice(U.length):z}).join(`
`)}var s=[],i=[""],n=new a.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){s.length=0,i=[""]}var v={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function m(B,E,w,U){if(E>=B.length||B[E].level<=w)return E;var z=B[E];U.push("- "+z.text+""),E++;var F=[];return E=m(B,E,z.level,F),F.length>0&&(U.push("
"),F.forEach(function(me){U.push(me)}),U.push("
")),U.push(" "),E=m(B,E,w,U),E}function x(){return m(s,0,0,i),i.push("
"),i.join("")}var _={heading:function(E){var w=t.exec(E);if(w)return{type:"heading",raw:w[0],depth:w[1].length,text:w[2]}},fences:function(E){var w=this.rules.block.fences.exec(E);if(w){var U=w[0],z=o(U,w[3]||""),F=w[2]?w[2].trim():w[2];if(["latex","katex","math"].indexOf(F)>=0){var me=l(),Ke=z;z=me,c[me]={type:"block",expression:Ke}}return{type:"code",raw:U,lang:F,text:z}}}},h=/(?:\${2})([^\n`]+?)(?:\${2})/gi,d=0,l=function(){return"__special_katext_id_".concat(d++,"__")},c={};function y(){return c}function f(){d=0,c={}}function T(B){return B=B.replace(h,function(E,w){var U=l();return c[U]={type:"inline",expression:w},U}),B}var L=n.listitem;n.listitem=function(B){return L(T(B))};var P=n.paragraph;n.paragraph=function(B){return P(T(B))};var S=n.tablecell;n.tablecell=function(B,E){return S(T(B),E)},n.code=function(B,E,w){var U=(E||"").match(/\S*/)[0];return U?["latex","katex","math"].indexOf(U)>=0?"".concat(B,"
"):'
').concat(w?B:Object(r.escape)(B,!0),`
`):''+(w?B:Object(r.escape)(B,!0))+"
"},n.heading=function(B,E,w){var U=this.options.headerPrefix+w.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:U,level:E,text:B}),"'+B+""},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:_,renderer:n});var A=a.a,W=M("SJMd"),D=M("ulZh"),K=M.n(D),Y=M("m3rI"),oe=M("Oy/b"),le=M("p5ED"),Se=M("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 Ee=function(B,E){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,U){w.__proto__=U}||function(w,U){for(var z in U)Object.prototype.hasOwnProperty.call(U,z)&&(w[z]=U[z])})(B,E)};function ae(B,E){function w(){this.constructor=B}Ee(B,E),B.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}function Ce(B,E,w,U){return new(w||(w=Promise))(function(z,F){function me(yt){try{ct(U.next(yt))}catch(Ye){F(Ye)}}function Ke(yt){try{ct(U.throw(yt))}catch(Ye){F(Ye)}}function ct(yt){var Ye;yt.done?z(yt.value):(Ye=yt.value,Ye instanceof w?Ye:new w(function(Ct){Ct(Ye)})).then(me,Ke)}ct((U=U.apply(B,E||[])).next())})}function Le(B,E){var w,U,z,F,me={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return F={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Ke(ct){return function(yt){return function(Ye){if(w)throw new TypeError("Generator is already executing.");for(;me;)try{if(w=1,U&&(z=2&Ye[0]?U.return:Ye[0]?U.throw||((z=U.return)&&z.call(U),0):U.next)&&!(z=z.call(U,Ye[1])).done)return z;switch(U=0,z&&(Ye=[2&Ye[0],z.value]),Ye[0]){case 0:case 1:z=Ye;break;case 4:return me.label++,{value:Ye[1],done:!1};case 5:me.label++,U=Ye[1],Ye=[0];continue;case 7:Ye=me.ops.pop(),me.trys.pop();continue;default:if(!(z=me.trys,(z=z.length>0&&z[z.length-1])||Ye[0]!==6&&Ye[0]!==2)){me=0;continue}if(Ye[0]===3&&(!z||Ye[1]>z[0]&&Ye[1]',"select"),this.addActionButton(U,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(U,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(U,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(U,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(U,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(U,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(U,'',"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(F){var me=document.createElement("div");me.className=""+w.toolbarButtonStyleClass.name,me.setAttribute("data-type-name",F.typeName),me.innerHTML=F.icon,me.addEventListener("click",function(){w.markerToolbarButtonClicked(me,F)}),w.buttons.push(me),w.markerButtons.push(me)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var z=document.createElement("div");z.className=this.toolbarBlockStyleClass.name,z.style.whiteSpace="nowrap",z.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(z),this.addActionButton(z,'',"render"),this.addActionButton(z,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},B.prototype.addButtonClickListener=function(E){this.buttonClickListeners.push(E)},B.prototype.removeButtonClickListener=function(E){this.buttonClickListeners.indexOf(E)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(E),1)},B.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},B.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var E=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var w=0;w0&&this.buttonClickListeners.forEach(function(U){return U("marker",w)}),this.markerButtonOverflowBlock.style.display="none"},B.prototype.actionToolbarButtonClicked=function(E,w){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(U){return U("action",w)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},B.prototype.setActiveButton=function(E){this.resetButtonStyles(),E.className=E.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),E.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},B.prototype.setActiveMarkerButton=function(E){var w=this.markerButtons.find(function(U){return U.getAttribute("data-type-name")===E});w&&this.setActiveButton(w)},B.prototype.setCurrentMarker=function(E){var w=this;this.currentMarker=E,this.buttons.filter(function(U){return/delete|notes/.test(U.getAttribute("data-action"))}).forEach(function(U){w.currentMarker===void 0?(U.style.fillOpacity="0.4",U.style.pointerEvents="none"):(U.style.fillOpacity="1",U.style.pointerEvents="all")})},B}(),$e=function(){function B(E,w,U,z){this.panels=[],this.panelButtons=[],this.markerjsContainer=E,this.displayMode=w,this.uiStyleSettings=U,this.styles=z,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return B.prototype.addStyles=function(){var E;this.toolboxStyleClass=this.styles.addClass(new ke("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 ke("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var w=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ke("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ke("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ke("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 ke("toolbox-panel-row_colors",`
background-color: `+((E=this.uiStyleSettings.toolboxBackgroundColor)!==null&&E!==void 0?E:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ke("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*w)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*w)+`px;
padding: `+w+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ke("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ke("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new st("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new st("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},B.prototype.show=function(E){var w;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=E,this.uiContainer.className=this.toolboxStyleClass.name+" "+((w=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&w!==void 0?w:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},B.prototype.setPanelButtons=function(E){var w,U,z=this;this.panels=E,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((w=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&w!==void 0?w: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(F){var me;F.uiStyleSettings=z.uiStyleSettings;var Ke=document.createElement("div");Ke.className=z.toolboxButtonStyleClass.name+" "+((me=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:z.toolboxButtonStyleColorsClass.name),Ke.innerHTML=F.icon,Ke.title=F.title,Ke.addEventListener("click",function(){z.panelButtonClick(F)}),z.panelButtons.push(Ke),z.buttonRow.appendChild(Ke)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},B.prototype.panelButtonClick=function(E){var w=this,U=-1;if(E!==this.activePanel){U=this.panels.indexOf(E),this.panelRow.innerHTML="";var z=E.getUi();z.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(z),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=E}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){w.displayMode==="inline"?w.panelRow.style.display="none":w.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(F,me){var Ke,ct;F.className=w.toolboxButtonStyleClass.name+" "+(me===U?""+((Ke=w.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:w.toolboxActiveButtonStyleColorsClass.name):""+((ct=w.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ct!==void 0?ct:w.toolboxButtonStyleColorsClass.name))})},B}(),ee=function(B,E){this.title=B,this.icon=E},ve=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'')||this;return me.colors=[],me.addTransparent=!1,me.colorBoxes=[],me.colors=U,me.currentColor=z,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.overflow="hidden",U.style.whiteSpace="nowrap",this.colors.forEach(function(z){var F=w.getColorBox(z);U.appendChild(F),w.colorBoxes.push(F)}),U},E.prototype.getColorBox=function(w){var U=this,z=this.uiStyleSettings.toolbarHeight/4,F=this.uiStyleSettings.toolbarHeight-z,me=document.createElement("div");me.style.display="inline-block",me.style.boxSizing="content-box",me.style.width=F-2+"px",me.style.height=F-2+"px",me.style.padding="1px",me.style.marginRight="2px",me.style.marginBottom="2px",me.style.borderWidth="2px",me.style.borderStyle="solid",me.style.borderRadius=(F+2)/2+"px",me.style.borderColor=w===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){U.setCurrentColor(w,me)});var Ke=document.createElement("div");return Ke.style.display="inline-block",Ke.style.width=F-2+"px",Ke.style.height=F-2+"px",Ke.style.backgroundColor=w,Ke.style.borderRadius=F/2+"px",w==="transparent"&&(Ke.style.fill=this.uiStyleSettings.toolboxAccentColor,Ke.innerHTML=``),me.appendChild(Ke),me},E.prototype.setCurrentColor=function(w,U){var z=this;this.currentColor=w,this.colorBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(w)},E}(ee),Te=function(){function B(E,w,U){this._state="new",this._isSelected=!1,this._container=E,this._overlayContainer=w,this.globalSettings=U,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(B.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(E){return!1},Object.defineProperty(B.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),B.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},B.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},B.prototype.pointerDown=function(E,w){},B.prototype.dblClick=function(E,w){},B.prototype.manipulate=function(E){},B.prototype.pointerUp=function(E){this.stateChanged()},B.prototype.dispose=function(){},B.prototype.addMarkerVisualToContainer=function(E){this.container.childNodes.length>0?this.container.insertBefore(E,this.container.childNodes[0]):this.container.appendChild(E)},B.prototype.getState=function(){return{typeName:B.typeName,state:this.state,notes:this.notes}},B.prototype.restoreState=function(E){this._state=E.state,this.notes=E.notes},B.prototype.scale=function(E,w){},B.prototype.colorChanged=function(E){this.onColorChanged&&this.onColorChanged(E),this.stateChanged()},B.prototype.fillColorChanged=function(E){this.onFillColorChanged&&this.onFillColorChanged(E),this.stateChanged()},B.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var E=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),E.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(E)&&this.onStateChanged(this)}},B.typeName="MarkerBase",B}(),Ae=function(){function B(){this.findGripByVisual=this.findGripByVisual.bind(this)}return B.prototype.findGripByVisual=function(E){return this.topLeft.ownsTarget(E)?this.topLeft:this.topCenter.ownsTarget(E)?this.topCenter:this.topRight.ownsTarget(E)?this.topRight:this.centerLeft.ownsTarget(E)?this.centerLeft:this.centerRight.ownsTarget(E)?this.centerRight:this.bottomLeft.ownsTarget(E)?this.bottomLeft:this.bottomCenter.ownsTarget(E)?this.bottomCenter:this.bottomRight.ownsTarget(E)?this.bottomRight:void 0},B}(),Ve=function(){function B(){this.GRIP_SIZE=10,this.visual=$.createGroup(),this.visual.appendChild($.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild($.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return B.prototype.ownsTarget=function(E){return E===this.visual||E===this.visual.childNodes[0]||E===this.visual.childNodes[1]},B}(),Ze=function(){function B(){}return B.toITransformMatrix=function(E){return{a:E.a,b:E.b,c:E.c,d:E.d,e:E.e,f:E.f}},B.toSVGMatrix=function(E,w){return E.a=w.a,E.b=w.b,E.c=w.c,E.d=w.d,E.e=w.e,E.f=w.f,E},B}(),rt=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.left=0,F.top=0,F.width=0,F.height=0,F.defaultSize={x:50,y:20},F.offsetX=0,F.offsetY=0,F.rotationAngle=0,F.CB_DISTANCE=10,F._suppressMarkerCreateEvent=!1,F.container.transform.baseVal.appendItem($.createTransform()),F.setupControlBox(),F}return ae(E,B),Object.defineProperty(E.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"visual",{get:function(){return this._visual},set:function(w){this._visual=w;var U=$.createTransform();this._visual.transform.baseVal.appendItem(U)},enumerable:!1,configurable:!0}),E.prototype.ownsTarget=function(w){return!!B.prototype.ownsTarget.call(this,w)||!!(this.controlGrips.findGripByVisual(w)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(w))},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.left=w.x,this.top=w.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var z=this.unrotatePoint(w);if(this.manipulationStartX=z.x,this.manipulationStartY=z.y,this.offsetX=z.x-this.left,this.offsetY=z.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 F=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=F.x-this.width/2,this.top=F.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var me=this.container.transform.baseVal.getItem(0);me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(me,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},E.prototype.pointerUp=function(w){var U=this.state;B.prototype.pointerUp.call(this,w),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(w),this._state="select",U==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},E.prototype.moveVisual=function(w){this.visual.style.transform="translate("+w.x+"px, "+w.y+"px)"},E.prototype.manipulate=function(w){var U=this.unrotatePoint(w);this.state==="creating"?this.resize(w):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(w)},E.prototype.resize=function(w){var U=this.manipulationStartLeft,z=this.manipulationStartWidth,F=this.manipulationStartTop,me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:U=this.manipulationStartLeft+w.x-this.manipulationStartX,z=this.manipulationStartWidth+this.manipulationStartLeft-U;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:z=this.manipulationStartWidth+w.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:F=this.manipulationStartTop+w.y-this.manipulationStartY,me=this.manipulationStartHeight+this.manipulationStartTop-F;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:me=this.manipulationStartHeight+w.y-this.manipulationStartY}z>=0?(this.left=U,this.width=z):(this.left=U+z,this.width=-z),me>=0?(this.top=F,this.height=me):(this.top=F+me,this.height=-me),this.setSize()},E.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},E.prototype.rotate=function(w){if(Math.abs(w.x-this.centerX)>.1){var U=Math.sign(w.x-this.centerX);this.rotationAngle=180*Math.atan((w.y-this.centerY)/(w.x-this.centerX))/Math.PI+90*U,this.applyRotation()}},E.prototype.applyRotation=function(){var w=this.container.transform.baseVal.getItem(0);w.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(w,0)},E.prototype.rotatePoint=function(w){if(this.rotationAngle===0)return w;var U=this.container.getCTM(),z=$.createPoint(w.x,w.y);return{x:(z=z.matrixTransform(U)).x,y:z.y}},E.prototype.unrotatePoint=function(w){if(this.rotationAngle===0)return w;var U=this.container.getCTM();U=U.inverse();var z=$.createPoint(w.x,w.y);return{x:(z=z.matrixTransform(U)).x,y:z.y}},E.prototype.select=function(){B.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){B.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=$.createGroup();var w=$.createTransform();w.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(w),this.container.appendChild(this.controlBox),this.controlRect=$.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=$.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 Ae,this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){var w=this.controlBox.transform.baseVal.getItem(0);w.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(w,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()},E.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()},E.prototype.createGrip=function(){var w=new Ve;return w.visual.transform.baseVal.appendItem($.createTransform()),this.controlBox.appendChild(w.visual),w},E.prototype.positionGrips=function(){var w=this.controlGrips.topLeft.GRIP_SIZE,U=-w/2,z=U,F=(this.width+this.CB_DISTANCE)/2-w/2,me=(this.height+this.CB_DISTANCE)/2-w/2,Ke=this.height+this.CB_DISTANCE-w/2,ct=this.width+this.CB_DISTANCE-w/2;this.positionGrip(this.controlGrips.topLeft.visual,U,z),this.positionGrip(this.controlGrips.topCenter.visual,F,z),this.positionGrip(this.controlGrips.topRight.visual,ct,z),this.positionGrip(this.controlGrips.centerLeft.visual,U,me),this.positionGrip(this.controlGrips.centerRight.visual,ct,me),this.positionGrip(this.controlGrips.bottomLeft.visual,U,Ke),this.positionGrip(this.controlGrips.bottomCenter.visual,F,Ke),this.positionGrip(this.controlGrips.bottomRight.visual,ct,Ke),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,F,z-3*this.CB_DISTANCE)},E.prototype.positionGrip=function(w,U,z){var F=w.transform.baseVal.getItem(0);F.setTranslate(U,z),w.transform.baseVal.replaceItem(F,0)},E.prototype.hideControlBox=function(){this.controlBox.style.display="none"},E.prototype.showControlBox=function(){this.controlBox.style.display=""},E.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ze.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ze.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},B.prototype.getState.call(this))},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;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(Ze.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,U.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ze.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,U.containerTransformMatrix))},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U);var z=this.rotatePoint({x:this.left,y:this.top}),F=this.unrotatePoint({x:z.x*w,y:z.y*U});this.left=F.x,this.top=F.y,this.width=this.width*w,this.height=this.height*U,this.adjustControlBox()},E}(Te),et=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.fillColor="transparent",F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.opacity=1,F.setStrokeColor=F.setStrokeColor.bind(F),F.setFillColor=F.setFillColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.createVisual=F.createVisual.bind(F),F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual)},E.prototype.createVisual=function(){this.visual=$.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)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.createVisual(),this.moveVisual(w),this._state="creating")},E.prototype.manipulate=function(w){B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.setSize()},E.prototype.setSize=function(){B.prototype.setSize.call(this),$.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(w){B.prototype.pointerUp.call(this,w),this.setSize()},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.visual&&$.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(w),this.stateChanged()},E.prototype.setFillColor=function(w){this.fillColor=w,this.visual&&$.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.visual&&$.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.visual&&$.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},E.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},B.prototype.getState.call(this))},E.prototype.restoreState=function(w){var U=w;this.fillColor=U.fillColor,this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.opacity=U.opacity,this.createVisual(),B.prototype.restoreState.call(this,w),this.setSize()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setSize()},E.title="Rectangle marker",E}(rt),dt=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'')||this;return me.widths=[],me.widthBoxes=[],me.widths=U,me.currentWidth=z,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2",this.widths.forEach(function(z){var F=document.createElement("div");F.style.display="flex",F.style.flexGrow="2",F.style.alignItems="center",F.style.justifyContent="space-between",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.borderColor=z===w.currentWidth?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentWidth(z,F)}),U.appendChild(F);var me=document.createElement("div");me.innerText=z.toString(),me.style.marginRight="5px",F.appendChild(me);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.display="flex",Ke.style.alignItems="center";var ct=document.createElement("hr");ct.style.minWidth="20px",ct.style.border="0px",ct.style.borderTop=z+"px solid "+w.uiStyleSettings.toolboxColor,ct.style.flexGrow="2",Ke.appendChild(ct),F.appendChild(Ke),w.widthBoxes.push(F)}),U},E.prototype.setCurrentWidth=function(w,U){var z=this;this.currentWidth=w,this.widthBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},E}(ee),ht=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'')||this;return me.styles=[],me.styleBoxes=[],me.styles=U,me.currentStyle=z,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2",this.styles.forEach(function(z){var F=document.createElement("div");F.style.display="flex",F.style.alignItems="center",F.style.justifyContent="space-between",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.overflow="hidden",F.style.maxWidth=100/w.styles.length-5+"%",F.style.borderColor=z===w.currentStyle?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentStyle(z,F)}),U.appendChild(F);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var Ke=``;me.innerHTML=Ke,F.appendChild(me),w.styleBoxes.push(F)}),U},E.prototype.setCurrentStyle=function(w,U){var z=this;this.currentStyle=w,this.styleBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},E}(ee),ye=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.strokeColor=z.defaultColor,F.strokeWidth=z.defaultStrokeWidth,F.strokeDasharray=z.defaultStrokeDasharray,F.strokePanel=new ve("Line color",z.defaultColorSet,z.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",z.defaultStrokeDasharrays,z.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ae(E,B),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="FrameMarker",E.title="Frame marker",E.icon='',E}(et),Oe=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},Ne=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.x1=0,F.y1=0,F.x2=0,F.y2=0,F.defaultLength=50,F.manipulationStartX=0,F.manipulationStartY=0,F.manipulationStartX1=0,F.manipulationStartY1=0,F.manipulationStartX2=0,F.manipulationStartY2=0,F.setupControlBox(),F}return ae(E,B),E.prototype.ownsTarget=function(w){return!!B.prototype.ownsTarget.call(this,w)||!(!this.grip1.ownsTarget(w)&&!this.grip2.ownsTarget(w))},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.manipulationStartX=w.x,this.manipulationStartY=w.y,this.state==="new"&&(this.x1=w.x,this.y1=w.y,this.x2=w.x,this.y2=w.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")},E.prototype.pointerUp=function(w){var U=this.state;B.prototype.pointerUp.call(this,w),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(w),this._state="select",U==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},E.prototype.adjustVisual=function(){},E.prototype.manipulate=function(w){this.state==="creating"?this.resize(w):this.state==="move"?(this.x1=this.manipulationStartX1+w.x-this.manipulationStartX,this.y1=this.manipulationStartY1+w.y-this.manipulationStartY,this.x2=this.manipulationStartX2+w.x-this.manipulationStartX,this.y2=this.manipulationStartY2+w.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(w)},E.prototype.resize=function(w){switch(this.activeGrip){case this.grip1:this.x1=w.x,this.y1=w.y;break;case this.grip2:case void 0:this.x2=w.x,this.y2=w.y}this.adjustVisual(),this.adjustControlBox()},E.prototype.select=function(){B.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){B.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=$.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){this.positionGrips()},E.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},E.prototype.createGrip=function(){var w=new Ve;return w.visual.transform.baseVal.appendItem($.createTransform()),this.controlBox.appendChild(w.visual),w},E.prototype.positionGrips=function(){var w=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-w/2,this.y1-w/2),this.positionGrip(this.grip2.visual,this.x2-w/2,this.y2-w/2)},E.prototype.positionGrip=function(w,U,z){var F=w.transform.baseVal.getItem(0);F.setTranslate(U,z),w.transform.baseVal.replaceItem(F,0)},E.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},B.prototype.getState.call(this))},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.x1=U.x1,this.y1=U.y1,this.x2=U.x2,this.y2=U.y2},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.x1=this.x1*w,this.y1=this.y1*U,this.x2=this.x2*w,this.y2=this.y2*U,this.adjustVisual(),this.adjustControlBox()},E}(Te),We=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.setStrokeColor=F.setStrokeColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.strokeColor=z.defaultColor,F.strokeWidth=z.defaultStrokeWidth,F.strokeDasharray=z.defaultStrokeDasharray,F.strokePanel=new ve("Line color",z.defaultColorSet,z.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",z.defaultStrokeDasharrays,z.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual&&w!==this.selectorLine&&w!==this.visibleLine)},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.selectorLine=$.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=$.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)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},E.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()),$.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),$.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),$.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.adjustVisual(),this.colorChanged(w)},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.adjustVisual()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.createVisual(),this.adjustVisual()},E.typeName="LineMarker",E.title="Line marker",E.icon='',E}(Ne),Re=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'')||this;return me.fonts=[],me.fontBoxes=[],me.fonts=U,me.currentFont=z,me.setCurrentFont=me.setCurrentFont.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");return U.style.overflow="hidden",U.style.flexGrow="2",this.fonts.forEach(function(z){var F=document.createElement("div");F.style.display="inline-block",F.style.alignItems="center",F.style.justifyContent="space-between",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.overflow="hidden",F.style.maxWidth=100/w.fonts.length-5+"%",F.style.borderColor=z===w.currentFont?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentFont(z,F)}),U.appendChild(F);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=z,me.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(Ke),F.appendChild(me),w.fontBoxes.push(F)}),U},E.prototype.setCurrentFont=function(w,U){var z=this;this.currentFont=w,this.fontBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},E}(ee),De=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.color="transparent",F.padding=5,F.DEFAULT_TEXT="your text here",F.text=F.DEFAULT_TEXT,F.isMoved=!1,F.color=z.defaultColor,F.fontFamily=z.defaultFontFamily,F.defaultSize={x:100,y:30},F.setColor=F.setColor.bind(F),F.setFont=F.setFont.bind(F),F.renderText=F.renderText.bind(F),F.sizeText=F.sizeText.bind(F),F.textEditDivClicked=F.textEditDivClicked.bind(F),F.showTextEditor=F.showTextEditor.bind(F),F.setSize=F.setSize.bind(F),F.positionTextEditor=F.positionTextEditor.bind(F),F.colorPanel=new ve("Color",z.defaultColorSet,z.defaultColor),F.colorPanel.onColorChanged=F.setColor,F.fontFamilyPanel=new Re("Font",z.defaultFontFamilies,z.defaultFontFamily),F.fontFamilyPanel.onFontChanged=F.setFont,F}return ae(E,B),E.prototype.ownsTarget=function(w){if(B.prototype.ownsTarget.call(this,w)||w===this.visual||w===this.textElement||w===this.bgRectangle)return!0;var U=!1;return this.textElement.childNodes.forEach(function(z){z===w&&(U=!0)}),U},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.bgRectangle=$.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=$.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem($.createTransform()),this.textElement.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.isMoved=!1,this.pointerDownPoint=w,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(w),this._state="creating")},E.prototype.renderText=function(){var w=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){w.textElement.appendChild($.createTSpan(U.trim()===""?" ":U.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},E.prototype.getTextScale=function(){var w=this.textElement.getBBox(),U=1;if(w.width>0&&w.height>0){var z=(1*this.width-this.width*this.padding*2/100)/w.width,F=(1*this.height-this.height*this.padding*2/100)/w.height;U=Math.min(z,F)}return U},E.prototype.getTextPosition=function(w){var U=this.textElement.getBBox(),z=0,F=0;return U.width>0&&U.height>0&&(z=(this.width-U.width*w)/2,F=this.height/2-U.height*w/2),{x:z,y:F}},E.prototype.sizeText=function(){var w=this.textElement.getBBox(),U=this.getTextScale(),z=this.getTextPosition(U);z.y-=w.y*U,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+z.x+"px, "+z.y+"px) scale("+U+", "+U+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(z.x,z.y),this.textElement.transform.baseVal.getItem(1).setScale(U,U))},E.prototype.manipulate=function(w){B.prototype.manipulate.call(this,w),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(w.x-this.pointerDownPoint.x)>5||Math.abs(w.y-this.pointerDownPoint.y)>5)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.isMoved=!0,this.setSize(),this.sizeText()},E.prototype.setSize=function(){B.prototype.setSize.call(this),this.visual&&this.bgRectangle&&($.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),$.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},E.prototype.pointerUp=function(w){var U=this.state;U==="creating"&&(this._suppressMarkerCreateEvent=!0),B.prototype.pointerUp.call(this,w),this.setSize(),(U==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},E.prototype.showTextEditor=function(){var w=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(w.textEditor.style.fontSize);w.textEditor.clientWidth>=Number.parseInt(w.textEditor.style.maxWidth)&&U>.9;)U-=.1,w.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 z=U.clipboardData.getData("text"),F=window.getSelection();if(!F.rangeCount)return!1;F.deleteFromDocument(),F.getRangeAt(0).insertNode(document.createTextNode(z)),U.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){w.textEditDivClicked(w.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},E.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var w=this.getTextScale(),U=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),z=this.textElement.getBBox(),F={x:z.width*w,y:z.height*w};U.x-=F.x/2,U.y-=F.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*w,12)+"px",this.textElement.style.display="none"}},E.prototype.textEditDivClicked=function(w){this.text=w.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},E.prototype.select=function(){B.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},E.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),B.prototype.deselect.call(this)},E.prototype.dblClick=function(w,U){B.prototype.dblClick.call(this,w,U),this.showTextEditor()},E.prototype.setColor=function(w){this.textElement&&$.setAttributes(this.textElement,[["fill",w]]),this.color=w,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(w)},E.prototype.setFont=function(w){this.textElement&&$.setAttributes(this.textElement,[["font-family",w]]),this.fontFamily=w,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},E.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},E.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){var U=w;this.color=U.color,this.fontFamily=U.fontFamily,this.padding=U.padding,this.text=U.text,this.createVisual(),B.prototype.restoreState.call(this,w),this.setSize()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setSize(),this.sizeText(),this.positionTextEditor()},E.typeName="TextMarker",E.title="Text marker",E.icon='',E}(rt),he=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.color="transparent",F.lineWidth=3,F.drawing=!1,F.pixelRatio=1,F.color=z.defaultColor,F.lineWidth=z.defaultStrokeWidth,F.pixelRatio=z.freehandPixelRatio,F.setColor=F.setColor.bind(F),F.addCanvas=F.addCanvas.bind(F),F.finishCreation=F.finishCreation.bind(F),F.setLineWidth=F.setLineWidth.bind(F),F.colorPanel=new ve("Color",z.defaultColorSet,z.defaultColor),F.colorPanel.onColorChanged=F.setColor,F.lineWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.lineWidthPanel.onWidthChanged=F.setLineWidth,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual&&w!==this.drawingImage)},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.drawingImage=$.createImage(),this.visual.appendChild(this.drawingImage);var w=$.createTransform();this.visual.transform.baseVal.appendItem(w),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(w,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(w.x,w.y),this.drawing=!0):B.prototype.pointerDown.call(this,w,U)},E.prototype.manipulate=function(w){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(w.x,w.y),this.canvasContext.stroke()):B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),$.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),$.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(w){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):B.prototype.pointerUp.call(this,w)},E.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)},E.prototype.select=function(){this.state==="creating"&&this.finishCreation(),B.prototype.select.call(this)},E.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),B.prototype.deselect.call(this)},E.prototype.finishCreation=function(){for(var w=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),U=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],z=U[0],F=U[1],me=U[2],Ke=U[3],ct=!1,yt=0;yt0&&(ct=!0,ytKe&&(Ke=yt),Ye>me&&(me=Ye));if(ct){this.left=z/this.pixelRatio,this.top=F/this.pixelRatio,this.width=(me-z)/this.pixelRatio,this.height=(Ke-F)/this.pixelRatio;var Ct=document.createElement("canvas");Ct.width=me-z,Ct.height=Ke-F,Ct.getContext("2d").putImageData(this.canvasContext.getImageData(z,F,me-z,Ke-F),0,0),this.drawingImgUrl=Ct.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},E.prototype.setDrawingImage=function(){$.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),$.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},E.prototype.setColor=function(w){this.color=w,this.colorChanged(w)},E.prototype.setLineWidth=function(w){this.lineWidth=w},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({drawingImgUrl:this.drawingImgUrl},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){this.createVisual(),B.prototype.restoreState.call(this,w),this.drawingImgUrl=w.drawingImgUrl,this.setDrawingImage()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setDrawingImage()},E.typeName="FreehandMarker",E.title="Freehand marker",E.icon='',E}(rt),se=function(B){function E(w,U,z){var F=B.call(this,w,z||'')||this;return F.typeBoxes=[],F.currentType=U,F.setCurrentType=F.setCurrentType.bind(F),F}return ae(E,B),E.prototype.getUi=function(){var w=this,U=document.createElement("div");U.style.display="flex",U.style.overflow="hidden",U.style.flexGrow="2";for(var z=function(Ke){var ct="both";switch(Ke){case 0:ct="both";break;case 1:ct="start";break;case 2:ct="end";break;case 3:ct="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=ct===F.currentType?F.uiStyleSettings.toolboxAccentColor:"transparent",yt.addEventListener("click",function(){w.setCurrentType(ct,yt)}),U.appendChild(yt),ct==="both"||ct==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=``,Ye.style.marginLeft="5px",yt.appendChild(Ye)}var Ct=document.createElement("div");Ct.style.display="flex",Ct.style.alignItems="center",Ct.style.minHeight="20px",Ct.style.flexGrow="2";var Pt=document.createElement("hr");if(Pt.style.minWidth="20px",Pt.style.border="0px",Pt.style.borderTop="3px solid "+(F.uiStyleSettings!==void 0?F.uiStyleSettings.toolboxColor:"#eeeeee"),Pt.style.flexGrow="2",Ct.appendChild(Pt),yt.appendChild(Ct),ct==="both"||ct==="end"){var tn=document.createElement("div");tn.style.display="flex",tn.style.alignItems="center",tn.style.minHeight="20px",tn.innerHTML=``,tn.style.marginRight="5px",yt.appendChild(tn)}F.typeBoxes.push(yt)},F=this,me=0;me<4;me++)z(me);return U},E.prototype.setCurrentType=function(w,U){var z=this;this.currentType=w,this.typeBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings!==void 0?z.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},E}(ee),re=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.arrowType="end",F.arrowBaseHeight=10,F.arrowBaseWidth=10,F.getArrowPoints=F.getArrowPoints.bind(F),F.setArrowType=F.setArrowType.bind(F),F.arrowTypePanel=new se("Arrow type","end"),F.arrowTypePanel.onArrowTypeChanged=F.setArrowType,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.arrow1&&w!==this.arrow2)},E.prototype.getArrowPoints=function(w,U){var z=this.arrowBaseWidth+2*this.strokeWidth,F=this.arrowBaseHeight+2*this.strokeWidth;return w-z/2+","+(U+F/2)+" "+w+","+(U-F/2)+" "+(w+z/2)+","+(U+F/2)},E.prototype.createTips=function(){this.arrow1=$.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=$.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem($.createTransform()),this.visual.appendChild(this.arrow2)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(B.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",$.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),$.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var w=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(w,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(U,0);var z=this.arrow2.transform.baseVal.getItem(0);z.setRotate(w+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(z,0)}},E.prototype.setArrowType=function(w){this.arrowType=w,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({arrowType:this.arrowType},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.arrowType=U.arrowType,this.createTips(),this.adjustVisual()},E.typeName="ArrowMarker",E.title="Arrow marker",E.icon='',E}(We),G=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.fillColor=z.defaultFillColor,F.strokeWidth=0,F.fillPanel=new ve("Color",z.defaultColorSet,z.defaultFillColor),F.fillPanel.onColorChanged=F.setFillColor,F}return ae(E,B),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="CoverMarker",E.title="Cover marker",E.icon='',E}(et),X=function(B){function E(w,U,z,F){var me=B.call(this,w,F||'')||this;return me.opacities=[],me.opacityBoxes=[],me.opacities=U,me.currentOpacity=z,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}return ae(E,B),E.prototype.getUi=function(){var w=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(z){var F=document.createElement("div");F.style.display="flex",F.style.alignItems="center",F.style.justifyContent="center",F.style.padding="5px",F.style.borderWidth="2px",F.style.borderStyle="solid",F.style.borderColor=z===w.currentOpacity?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentOpacity(z,F)}),U.appendChild(F);var me=document.createElement("div");me.innerText=100*z+"%",F.appendChild(me),w.opacityBoxes.push(F)}),U},E.prototype.setCurrentOpacity=function(w,U){var z=this;this.currentOpacity=w,this.opacityBoxes.forEach(function(F){F.style.borderColor=F===U?z.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},E}(ee),Z=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.setOpacity=F.setOpacity.bind(F),F.fillColor=z.defaultHighlightColor,F.strokeWidth=0,F.opacity=z.defaultHighlightOpacity,F.fillPanel=new ve("Color",z.defaultColorSet,F.fillColor),F.fillPanel.onColorChanged=F.setFillColor,F.opacityPanel=new X("Opacity",z.defaultOpacitySteps,F.opacity),F.opacityPanel.onOpacityChanged=F.setOpacity,F}return ae(E,B),E.prototype.setOpacity=function(w){this.opacity=w,this.visual&&$.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="HighlightMarker",E.title="Highlight marker",E.icon='',E}(G),te='',ge=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.bgColor="transparent",F.tipPosition={x:0,y:0},F.tipBase1Position={x:0,y:0},F.tipBase2Position={x:0,y:0},F.tipMoving=!1,F.color=z.defaultStrokeColor,F.bgColor=z.defaultFillColor,F.fontFamily=z.defaultFontFamily,F.defaultSize={x:100,y:30},F.setBgColor=F.setBgColor.bind(F),F.getTipPoints=F.getTipPoints.bind(F),F.positionTip=F.positionTip.bind(F),F.setTipPoints=F.setTipPoints.bind(F),F.colorPanel=new ve("Text color",z.defaultColorSet,F.color,''),F.colorPanel.onColorChanged=F.setColor,F.bgColorPanel=new ve("Fill color",z.defaultColorSet,F.bgColor,te),F.bgColorPanel.onColorChanged=F.setBgColor,F.fontFamilyPanel=new Re("Font",z.defaultFontFamilies,z.defaultFontFamily),F.fontFamilyPanel.onFontChanged=F.setFont,F.tipGrip=new Ve,F.tipGrip.visual.transform.baseVal.appendItem($.createTransform()),F.controlBox.appendChild(F.tipGrip.visual),F}return ae(E,B),E.prototype.ownsTarget=function(w){return B.prototype.ownsTarget.call(this,w)||this.tipGrip.ownsTarget(w)||this.tip===w},E.prototype.createTip=function(){$.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=$.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},E.prototype.pointerDown=function(w,U){this.state==="new"&&B.prototype.pointerDown.call(this,w,U),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(U)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):B.prototype.pointerDown.call(this,w,U)},E.prototype.pointerUp=function(w){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,B.prototype.pointerUp.call(this,w);else{var U=this.state==="creating";B.prototype.pointerUp.call(this,w),this.setTipPoints(U),this.positionTip()}},E.prototype.manipulate=function(w){if(this.tipMoving){var U=this.unrotatePoint(w);this.tipPosition={x:U.x-this.manipulationStartLeft,y:U.y-this.manipulationStartTop},this.positionTip()}else B.prototype.manipulate.call(this,w)},E.prototype.setBgColor=function(w){this.bgRectangle&&this.tip&&($.setAttributes(this.bgRectangle,[["fill",w]]),$.setAttributes(this.tip,[["fill",w]])),this.bgColor=w,this.fillColorChanged(w)},E.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},E.prototype.setTipPoints=function(w){w===void 0&&(w=!1);var U=Math.min(this.height/2,15),z=this.height/5;w&&(this.tipPosition={x:U+z/2,y:this.height+20});var F=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?F',E}(De),we=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.fillColor="transparent",F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.opacity=1,F.strokeColor=z.defaultColor,F.strokeWidth=z.defaultStrokeWidth,F.strokeDasharray=z.defaultStrokeDasharray,F.fillColor=z.defaultFillColor,F.setStrokeColor=F.setStrokeColor.bind(F),F.setFillColor=F.setFillColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.setOpacity=F.setOpacity.bind(F),F.createVisual=F.createVisual.bind(F),F.strokePanel=new ve("Line color",de(z.defaultColorSet,["transparent"]),z.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.fillPanel=new ve("Fill color",de(z.defaultColorSet,["transparent"]),F.fillColor,te),F.fillPanel.onColorChanged=F.setFillColor,F.strokeWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",z.defaultStrokeDasharrays,z.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F.opacityPanel=new X("Opacity",z.defaultOpacitySteps,F.opacity),F.opacityPanel.onOpacityChanged=F.setOpacity,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual)},E.prototype.createVisual=function(){this.visual=$.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)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="new"&&(this.createVisual(),this.moveVisual(w),this._state="creating")},E.prototype.manipulate=function(w){B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){B.prototype.resize.call(this,w),this.setSize()},E.prototype.setSize=function(){B.prototype.setSize.call(this),$.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},E.prototype.pointerUp=function(w){B.prototype.pointerUp.call(this,w),this.setSize()},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.visual&&$.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(w),this.stateChanged()},E.prototype.setFillColor=function(w){this.fillColor=w,this.visual&&$.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(w),this.stateChanged()},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.visual&&$.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.visual&&$.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},E.prototype.setOpacity=function(w){this.opacity=w,this.visual&&$.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){var U=w;this.fillColor=U.fillColor,this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.opacity=U.opacity,this.createVisual(),B.prototype.restoreState.call(this,w),this.setSize()},E.prototype.scale=function(w,U){B.prototype.scale.call(this,w,U),this.setSize()},E.typeName="EllipseMarker",E.title="Ellipse marker",E.icon='',E}(rt),Me=function(B){function E(w,U,z){return B.call(this,w,U,z)||this}return ae(E,B),Object.defineProperty(E.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.tip1&&w!==this.tip2)},E.prototype.createTips=function(){this.tip1=$.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($.createTransform()),this.visual.appendChild(this.tip1),this.tip2=$.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($.createTransform()),this.visual.appendChild(this.tip2)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(B.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&($.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()]]),$.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 w=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(w,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(U,0);var z=this.tip2.transform.baseVal.getItem(0);z.setRotate(w+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(z,0)}},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w),this.createTips(),this.adjustVisual()},E.typeName="MeasurementMarker",E.title="Measurement marker",E.icon='',E}(We),qe=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.strokePanel.colors=z.defaultColorSet,F.fillColor="transparent",F}return ae(E,B),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=B.prototype.getState.call(this);return w.typeName=E.typeName,w},E.typeName="EllipseFrameMarker",E.title="Ellipse frame marker",E.icon='',E}(we),ot=function(){function B(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(B.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),B.prototype.addUndoStep=function(E){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(E)||(this.undoStack.push(E),JSON.stringify(this.lastRedoStep)!==JSON.stringify(E)&&this.redoStack.splice(0,this.redoStack.length))},B.prototype.replaceLastUndoStep=function(E){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=E)},B.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},B.prototype.undo=function(){if(this.undoStack.length>1){var E=this.undoStack.pop();return E!==void 0&&this.redoStack.push(E),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},B.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},B}(),ze=function(B){function E(w,U,z){var F=B.call(this,w,U,z)||this;return F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.curveX=0,F.curveY=0,F.manipulationStartCurveX=0,F.manipulationStartCurveY=0,F.setStrokeColor=F.setStrokeColor.bind(F),F.setStrokeWidth=F.setStrokeWidth.bind(F),F.setStrokeDasharray=F.setStrokeDasharray.bind(F),F.positionGrips=F.positionGrips.bind(F),F.addControlGrips=F.addControlGrips.bind(F),F.adjustVisual=F.adjustVisual.bind(F),F.setupControlBox=F.setupControlBox.bind(F),F.resize=F.resize.bind(F),F.strokeColor=z.defaultColor,F.strokeWidth=z.defaultStrokeWidth,F.strokeDasharray=z.defaultStrokeDasharray,F.strokePanel=new ve("Line color",z.defaultColorSet,z.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new dt("Line width",z.defaultStrokeWidths,z.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",z.defaultStrokeDasharrays,z.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ae(E,B),E.prototype.ownsTarget=function(w){return!(!B.prototype.ownsTarget.call(this,w)&&w!==this.visual&&w!==this.selectorCurve&&w!==this.visibleCurve&&!this.curveGrip.ownsTarget(w))},E.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},E.prototype.createVisual=function(){this.visual=$.createGroup(),this.selectorCurve=$.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=$.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)},E.prototype.pointerDown=function(w,U){B.prototype.pointerDown.call(this,w,U),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=w.x,this.curveY=w.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(U)&&(this.activeGrip=this.curveGrip,this._state="resize")},E.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),$.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),$.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),$.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setupControlBox=function(){B.prototype.setupControlBox.call(this),this.curveControlLine1=$.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=$.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)},E.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,B.prototype.addControlGrips.call(this)},E.prototype.positionGrips=function(){B.prototype.positionGrips.call(this);var w=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-w/2,this.curveY-w/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()))},E.prototype.manipulate=function(w){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+w.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+w.y-this.manipulationStartY),B.prototype.manipulate.call(this,w)},E.prototype.resize=function(w){this.activeGrip===this.curveGrip&&(this.curveX=w.x,this.curveY=w.y),B.prototype.resize.call(this,w),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},E.prototype.setStrokeColor=function(w){this.strokeColor=w,this.adjustVisual(),this.colorChanged(w)},E.prototype.setStrokeWidth=function(w){this.strokeWidth=w,this.adjustVisual()},E.prototype.setStrokeDasharray=function(w){this.strokeDasharray=w,this.adjustVisual()},E.prototype.scale=function(w,U){this.curveX=this.curveX*w,this.curveY=this.curveY*U,B.prototype.scale.call(this,w,U)},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var w=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},B.prototype.getState.call(this));return w.typeName=E.typeName,w},E.prototype.restoreState=function(w){B.prototype.restoreState.call(this,w);var U=w;this.strokeColor=U.strokeColor,this.strokeWidth=U.strokeWidth,this.strokeDasharray=U.strokeDasharray,this.curveX=U.curveX,this.curveY=U.curveY,this.createVisual(),this.adjustVisual()},E.typeName="CurveMarker",E.title="Curve marker",E.icon='',E}(Ne),vt=function(){function B(E,w){w===void 0&&(w=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=E,this.cancelable=w}return Object.defineProperty(B.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),B.prototype.preventDefault=function(){this._defaultPrevented=!0},B}(),bt=function(B){function E(w,U,z){var F=B.call(this,w,!1)||this;return F.dataUrl=U,F.state=z,F}return ae(E,B),E}(vt),lt=function(B){function E(w,U,z){z===void 0&&(z=!1);var F=B.call(this,w,z)||this;return F.marker=U,F}return ae(E,B),E}(vt),Ot=function(){function B(){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 B.prototype.addEventListener=function(E,w){this[E].push(w)},B.prototype.removeEventListener=function(E,w){var U=this[E].indexOf(w);U>-1&&this[E].splice(U,1)},B}(),Rt=function(){function B(E){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Oe,this._isOpen=!1,this.undoRedoManager=new ot,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 Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=B.instanceCounter++,this.styles=new Je(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=E,this.targetRoot=document.body,this.width=E.clientWidth,this.height=E.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(B.prototype,"ALL_MARKER_TYPES",{get:function(){return[ye,he,re,De,qe,we,Z,ge,Me,G,We,ze]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ye,he,re,De,we,Z,ge]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ye,he,re,De,Z]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(E){var w=this;this._availableMarkerTypes.splice(0),E.forEach(function(U){if(typeof U=="string"){var z=w.ALL_MARKER_TYPES.find(function(F){return F.typeName===U});z!==void 0&&w._availableMarkerTypes.push(z)}else w._availableMarkerTypes.push(U)})},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(E){this._zoomLevel=E,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(B.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),B.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Fe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},B.prototype.show=function(){var E=this;this.styles.styleSheetRoot===void 0&&it.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=it.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(w){return w(new vt(E))})},B.prototype.render=function(){return Ce(this,void 0,void 0,function(){var E;return Le(this,function(w){switch(w.label){case 0:return this.setCurrentMarker(),(E=new at).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.markersOnly=this.renderMarkersOnly,E.width=this.renderWidth,E.height=this.renderHeight,[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return w.sent(),[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,w.sent()]}})})},B.prototype.close=function(E){var w=this;if(E===void 0&&(E=!1),this.isOpen){var U=!1;E||this.eventListeners.beforeclose.forEach(function(z){var F=new vt(w,!0);z(F),F.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(z){return z(new vt(w))}),this.detachEvents(),this._isOpen=!1)}},B.prototype.addMarkersToToolbar=function(){for(var E,w=[],U=0;Uthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*E:this.editorCanvas.clientWidth,U=w',E.title="Powered by marker.js",E.style.display="grid",E.style.alignItems="center",E.style.justifyItems="center",E.style.padding="3px",E.style.width="20px",E.style.height="20px",this.logoUI.appendChild(E),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},B.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")},B.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"},B.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},B.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 E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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 Ge(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-1&&this.markers.splice(this.markers.indexOf(E),1),E.dispose()},B.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())},B.prototype.toolbarButtonClicked=function(E,w){if(E==="marker"&&w!==void 0)this.createNewMarker(w);else if(E==="action")switch(w){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()}},B.prototype.deleteSelectedMarker=function(){var E=this;if(this._currentMarker!==void 0){var w=!1;if(this.eventListeners.markerbeforedelete.forEach(function(z){var F=new lt(E,E._currentMarker,!0);z(F),F.defaultPrevented&&(w=!0)}),!w){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(z){return z(new lt(E,U))})}}},B.prototype.clear=function(){var E=this,w=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var Ke=new lt(E,void 0,!0);me(Ke),Ke.defaultPrevented&&(w=!0)}),!w)){this.setCurrentMarker();for(var U=function(me){var Ke=z.markers[me];z.setCurrentMarker(z.markers[me]),z._currentMarker.dispose(),z.markerImage.removeChild(z._currentMarker.container),z.markers.splice(z.markers.indexOf(z._currentMarker),1),z.eventListeners.markerdelete.forEach(function(ct){return ct(new lt(E,Ke))})},z=this,F=this.markers.length-1;F>=0;F--)U(F);this.addUndoStep()}},Object.defineProperty(B.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),B.prototype.showNotesEditor=function(){var E;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=(E=this._currentMarker.notes)!==null&&E!==void 0?E:"",this.overlayContainer.appendChild(this.notesArea))},B.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)},B.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},B.prototype.addUndoStep=function(){var E=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var w=this.getState(),U=this.undoRedoManager.getLastUndoStep();if(!U||U.width===w.width&&U.height===w.height){var z=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(w),z1&&this.panTo({x:E.clientX,y:E.clientY}))},B.prototype.onPointerUp=function(E){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(E.clientX,E.clientY)),this.isDragging=!1,this.addUndoStep()},B.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},B.prototype.onKeyUp=function(E){this._currentMarker===void 0||this.notesArea!==void 0||E.key!=="Delete"&&E.key!=="Backspace"||this.deleteSelectedMarker()},B.prototype.clientToLocalCoordinates=function(E,w){var U=this.markerImage.getBoundingClientRect();return{x:(E-U.left)/this.zoomLevel,y:(w-U.top)/this.zoomLevel}},B.prototype.onWindowResize=function(){this.positionUI()},B.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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()},B.prototype.addLicenseKey=function(E){Fe.addKey(E)},B.prototype.addEventListener=function(E,w){this.eventListeners.addEventListener(E,w)},B.prototype.removeEventListener=function(E,w){this.eventListeners.removeEventListener(E,w)},B.prototype.renderState=function(E){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(E),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(B.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),B.prototype.focus=function(){var E=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(w){return w(new vt(E))}))},B.prototype.blur=function(){var E=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(w){return w(new vt(E))}))},B.instanceCounter=0,B}();/* **********************************
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 xt=function(B,E){return(xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,U){w.__proto__=U}||function(w,U){for(var z in U)Object.prototype.hasOwnProperty.call(U,z)&&(w[z]=U[z])})(B,E)};function gt(B,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function w(){this.constructor=B}xt(B,E),B.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}function _t(B,E,w,U){return new(w||(w=Promise))(function(z,F){function me(yt){try{ct(U.next(yt))}catch(Ye){F(Ye)}}function Ke(yt){try{ct(U.throw(yt))}catch(Ye){F(Ye)}}function ct(yt){var Ye;yt.done?z(yt.value):(Ye=yt.value,Ye instanceof w?Ye:new w(function(Ct){Ct(Ye)})).then(me,Ke)}ct((U=U.apply(B,E||[])).next())})}function St(B,E){var w,U,z,F,me={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return F={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Ke(ct){return function(yt){return function(Ye){if(w)throw new TypeError("Generator is already executing.");for(;me;)try{if(w=1,U&&(z=2&Ye[0]?U.return:Ye[0]?U.throw||((z=U.return)&&z.call(U),0):U.next)&&!(z=z.call(U,Ye[1])).done)return z;switch(U=0,z&&(Ye=[2&Ye[0],z.value]),Ye[0]){case 0:case 1:z=Ye;break;case 4:return me.label++,{value:Ye[1],done:!1};case 5:me.label++,U=Ye[1],Ye=[0];continue;case 7:Ye=me.ops.pop(),me.trys.pop();continue;default:if(!(z=me.trys,(z=z.length>0&&z[z.length-1])||Ye[0]!==6&&Ye[0]!==2)){me=0;continue}if(Ye[0]===3&&(!z||Ye[1]>z[0]&&Ye[1]0&&w>0){var U=new Pn(E,w),z=U.ratio>=1?20:U.getHorizontalLength(20),F=U.ratio<1?20:U.getVerticalLength(20),me=document.createElementNS("http://www.w3.org/2000/svg","svg");me.setAttribute("xmlns","http://www.w3.org/2000/svg"),me.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(me);var Ke=Qe.createDefs();me.appendChild(Ke);var ct=Qe.createElement("clipPath",[["id","text-bg-clip"]]);Ke.appendChild(ct);var yt=Qe.createPath(Qe.getHollowRectanglePath((24-z)/2,(24-F)/2,z,F,(24-z)/2+2,(24-F)/2+2,z-4,F-4));me.appendChild(yt);var Ye=Qe.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ye.appendChild(Qe.createTSpan(E+":"+w)),me.appendChild(Ye);var Ct=Ye.getBBox();Qe.setAttributes(Ye,[["x",((24-Ct.width)/2).toString()],["y",((24-Ct.height)/2-Ct.y).toString()]]);var Pt=Qe.createPath(Qe.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Ct.width))/2,(24-Math.ceil(Ct.height))/2,Math.ceil(Ct.width),Math.ceil(Ct.height)));return ct.appendChild(Pt),Qe.setAttributes(yt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(me),me.outerHTML}return''},B}(),Tn=function(B){function E(w,U,z){var F=B.call(this,w,U)||this;return F.isDropdownOpen=!1,F.onClick=F.dropdownButtonClicked,F.dropdownButtons=z,F}return gt(E,B),E.prototype.setupDropdown=function(){var w=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=w.className,U.colorsClassName=w.colorsClassName,w.dropdownBlock.appendChild(U.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},E.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},E.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},E.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},E.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},E.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},E}(yn),Mn=function(){function B(E,w){this.GRIP_SIZE=10,this.color=E,this.fillColor=w,this.visual=Qe.createGroup(),this.visual.appendChild(Qe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Qe.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return B.prototype.ownsTarget=function(E){return E===this.visual||E===this.visual.childNodes[0]||E===this.visual.childNodes[1]},B.prototype.setCenter=function(E,w){this.visual.childNodes.forEach(function(U){return Qe.setAttributes(U,[["cx",E.toString()],["cy",w.toString()]])})},B}(),dn=function(){function B(E,w,U,z){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=E,this.canvasHeight=w,this.margin=U,this.container=z,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(B.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(E){this._aspectRatio=E,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(E){this._isGridVisible=E,this.gridContainer&&Qe.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(E){this._zoomFactor=E,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),B.prototype.open=function(){var E=this;this.cropShadeElement=Qe.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Qe.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var w=0;wthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-w.height/2),Qe.setAttributes(this.cropRectElement,[["x",w.x.toString()],["y",w.y.toString()],["width",w.width.toString()],["height",w.height.toString()]]);var U=w.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(F,me){var Ke=w.y+U*(me+1);Qe.setAttributes(F,[["x1",""+w.x],["y1",""+Ke],["x2",""+(w.x+w.width)],["y2",""+Ke]])});var z=w.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(F,me){var Ke=w.x+z*(me+1);Qe.setAttributes(F,[["x1",""+Ke],["y1",""+w.y],["x2",""+Ke],["y2",""+(w.y+w.height)]])}),Qe.setAttributes(this.cropShadeElement,[["d",Qe.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,w.x,w.y,w.width,w.height)]]),this.topLeftGrip.setCenter(w.x,w.y),this.topRightGrip.setCenter(w.x+w.width,w.y),this.bottomLeftGrip.setCenter(w.x,w.y+w.height),this.bottomRightGrip.setCenter(w.x+w.width,w.y+w.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},B.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)},B.prototype.clientToLocalCoordinates=function(E,w){var U=this.container.getBoundingClientRect();return{x:E-U.left+this.margin,y:w-U.top+this.margin}},B.prototype.onPointerDown=function(E){this.container.setPointerCapture(E.pointerId),this.previousPoint=this.clientToLocalCoordinates(E.clientX,E.clientY),this.cropRectElement===E.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(E.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(E.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(E.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(E.target)&&(this.activeGrip=this.bottomRightGrip)},B.prototype.onPointerMove=function(E){if(this.isMoving)this.move(this.clientToLocalCoordinates(E.clientX,E.clientY));else if(this.activeGrip){var w=this.clientToLocalCoordinates(E.clientX,E.clientY);this.resize(w)}E.preventDefault()},B.prototype.onPointerUp=function(E){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(E.pointerId)},B.prototype.move=function(E){var w=E.x-this.previousPoint.x,U=E.y-this.previousPoint.y;this.zoomFactor!==1&&(w=-w/this.zoomFactor,U=-U/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+w),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=E},B.prototype.resize=function(E){var w=Object.assign({},this.cropRect),U=E.x-this.previousPoint.x,z=E.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:w.x+Uthis.canvasWidth*this.zoomFactor&&(U=this.canvasWidth*this.zoomFactor-w.width),w.width+=U}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(w.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(U),w.height=this.aspectRatio.getVerticalLength(w.width)):(w.y+=z,w.height=this.cropRect.y+this.cropRect.height-w.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?w.height=this.aspectRatio.getVerticalLength(w.width):w.height+=z}w.width<10&&(w.x=this.cropRect.x,w.width=10),w.height<10&&(w.y=this.cropRect.y,w.height=10),this.previousPoint=E,w.x>=this.margin&&w.y>=this.margin&&w.x-this.margin+w.width<=this.canvasWidth&&w.y-this.margin+w.height<=this.canvasHeight&&(this.cropRect=w,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},B.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var E=this.cropRect.x+this.cropRect.width/2,w=this.cropRect.y+this.cropRect.height/2,U=this.aspectRatio.getHorizontalLength(this.cropRect.height),z=this.aspectRatio.getVerticalLength(this.cropRect.width);U/this.canvasWidththis.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=E-this.cropRect.width/2,this.cropRect.y=w-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)}},B.prototype.getRescaledRect=function(E,w,U,z,F,me){var Ke=U/E,ct=z/w;return{x:(F.x-me)*Ke+me,y:(F.y-me)*ct+me,width:F.width*Ke,height:F.height*ct}},B.prototype.scaleCanvas=function(E,w){var U=this.getRescaledRect(this.canvasWidth,this.canvasHeight,E,w,this.cropRect,this.margin);this.canvasWidth=E,this.canvasHeight=w,this.onCropChange&&this.onCropChange(U),this.setCropRectangle(U)},B}(),An=function(){function B(E){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=E,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(B.prototype,"angle",{get:function(){return this._angle},set:function(E){this._angle=E,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),B.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},B.prototype.onPointerDown=function(E){this.controlContainer.setPointerCapture(E.pointerId),this.isDragging=!0,this.previousPoint={x:E.clientX,y:E.clientY}},B.prototype.onPointerMove=function(E){this.isDragging&&(this.onAngleChange&&this.onAngleChange((E.clientX-this.previousPoint.x)/5),this.previousPoint.x=E.clientX)},B.prototype.onPointerUp=function(E){this.isDragging&&this.onAngleChange&&this.onAngleChange((E.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(E.pointerId)},B.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var E=this.angleLabelText.getBBox();Qe.setAttributes(this.angleLabelElement,[["x",((this.width-E.width)/2).toString()],["y",(this.height/2).toString()]])}},B.prototype.positionScaleShape=function(){if(this.scaleShape){var E=this.scaleShape.transform.baseVal.getItem(0);E.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(E,0)}},B.prototype.getVisual=function(){var E=document.createElementNS("http://www.w3.org/2000/svg","svg");E.setAttribute("xmlns","http://www.w3.org/2000/svg"),E.setAttribute("width",this.width+"px"),E.setAttribute("height",this.height+"px"),E.setAttribute("viewBox","0 0 "+this.width+" "+this.height),E.style.flexShrink="0",document.body.appendChild(E);for(var w="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,U=1;U<=this.width/5+10;U++){var z=U%5==0?this.height/3:this.height/6;w+="h4v"+-z+"h1v"+z}w+="v1H0Z",this.scaleShape=Qe.createPath(w);var F=Qe.createTransform();this.scaleShape.transform.baseVal.appendItem(F),E.appendChild(this.scaleShape),this.angleLabelElement=Qe.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Qe.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var me=Qe.createTSpan("");return me.innerHTML="°",this.angleLabelElement.appendChild(me),E.appendChild(this.angleLabelElement),document.body.removeChild(E),E},B}(),Nn=function(){function B(){this.naturalSize=!1,this.imageType="image/png"}return B.prototype.rasterize=function(E,w,U,z,F,me,Ke){var ct=this;return new Promise(function(yt){var Ye=document.createElement("canvas");Ye.width=E.width.baseVal.value-2*z,Ye.height=E.height.baseVal.value-2*z;var Ct=1,Pt=1;ct.naturalSize===!0?(Ct=w.naturalWidth/(E.width.baseVal.value-2*z)/me,Pt=w.naturalHeight/(E.height.baseVal.value-2*z)/Ke,Ye.width=w.naturalWidth/me,Ye.height=w.naturalHeight/Ke):ct.width!==void 0&&ct.height!==void 0&&(Ct=ct.width/U.width,Pt=ct.height/U.height,Ye.width*=Ct,Ye.height*=Pt);var tn=Ye.getContext("2d");tn.translate(Ye.width/2,Ye.height/2),tn.rotate(F*Math.PI/180),tn.scale(me,Ke),tn.translate(-Ye.width/2,-Ye.height/2),tn.drawImage(w,0,0,Ye.width,Ye.height);var kn=document.createElement("canvas");kn.width=U.width*Ct,kn.height=U.height*Pt,kn.getContext("2d").putImageData(tn.getImageData((U.x-z)*Ct,(U.y-z)*Pt,U.width*Ct,U.height*Pt),0,0),yt(kn.toDataURL(ct.imageType,ct.imageQuality))})},B}(),Vn=function(){function B(E){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=B.instanceCounter++,this.styles=new Lt(this.instanceNo),this.target=E,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(B.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(E){this._zoomToCropEnabled=E,E?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(E){this._isGridVisible=E,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"gridLines",{get:function(){return this._gridLines},set:function(E){this._gridLines=E,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(E){this._rotationAngle=E,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"aspectRatio",{get:function(){var E;return(E=this._aspectRatio)!==null&&E!==void 0?E:this.aspectRatios[0]},set:function(E){this._aspectRatio=E},enumerable:!1,configurable:!0}),B.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},B.prototype.show=function(){this.showUI(),this.open()},B.prototype.close=function(E){E===void 0&&(E=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),E||this.closeEventListeners.forEach(function(w){return w()}),this._isOpen=!1)},B.prototype.addRenderEventListener=function(E){this.renderEventListeners.push(E)},B.prototype.removeRenderEventListener=function(E){this.renderEventListeners.indexOf(E)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(E),1)},B.prototype.addCloseEventListener=function(E){this.closeEventListeners.push(E)},B.prototype.removeCloseEventListener=function(E){this.closeEventListeners.indexOf(E)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(E),1)},B.prototype.setupResizeObserver=function(){var E=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){E.resize(E.target.clientWidth,E.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))},B.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var E=1*this.target.clientWidth/this.target.clientHeight,w=this.contentDiv.clientWidth/E>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*E:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,U=w+2*this.CANVAS_MARGINE+this.CANVAS_MARGIN?this.target.offsetTop-(E+this.CANVAS_MARGIN):0;this.coverDiv.style.top=w+"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},B.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},B.prototype.addTopToolbar=function(){var E=this;this.topToolbar=new wt,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 w=new vn;w.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(w);var U=[];this.aspectRatios.forEach(function(Pt){var tn=new yn(Yt.getIcon(Pt.horizontal,Pt.vertical),Pt.horizontal===0&&Pt.vertical===0?"FREE":Pt.horizontal+":"+Pt.vertical);tn.onClick=function(){return E.ratioButtonClicked(Pt)},U.push(tn)}),this.aspectRatioButton=new Tn(Yt.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,w.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var z=new yn('',"Toggle grid");z.isActive=this.isGridVisible,z.onClick=function(){E.isGridVisible=!E.isGridVisible,z.isActive=E.isGridVisible},w.addButton(z);var F=new yn('',"Zoom to selection");if(F.isActive=this.zoomToCropEnabled,F.onClick=function(){E.zoomToCropEnabled=!E.zoomToCropEnabled,F.isActive=E.zoomToCropEnabled},w.addButton(F),!Nt.isLicensed){var me=new Dn;this.topToolbar.addElementBlock(me);var Ke=document.createElement("div");Ke.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var ct=document.createElement("a");ct.style.color="currentColor",ct.href="https://markerjs.com/products/cropro",ct.target="_blank",ct.innerHTML='',Ke.appendChild(ct),me.addElement(Ke)}var yt=new vn;yt.minWidth=3*this.toolbarHeight+"px",yt.contentAlign="end",this.topToolbar.addButtonBlock(yt);var Ye=new yn('',"OK");Ye.onClick=this.startRenderAndClose,yt.addButton(Ye),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ye.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Ct=new yn('',"Close");Ct.onClick=this.close,yt.addButton(Ct),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Ct.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},B.prototype.addBottomToolbar=function(){var E=this;this.bottomToolbar=new wt,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 w=new vn;w.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(w);var U=new yn('',"Rotate left");U.onClick=this.rotateLeftButtonClicked,w.addButton(U);var z=new yn('',"Rotate right");z.onClick=this.rotateRightButtonClicked,w.addButton(z);var F=new Dn;F.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(F),this.straightener=new An("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){E.rotateBy(yt),E.straightener.angle=E.rotationAngle},F.addElement(this.straightener.getUI());var me=new vn;me.minWidth=2*this.toolbarHeight+"px",me.contentAlign="end",this.bottomToolbar.addButtonBlock(me);var Ke=new yn('',"Flip horizontal");Ke.onClick=this.flipHorizontallyButtonClicked,me.addButton(Ke);var ct=new yn('',"Flip vertical");ct.onClick=this.flipVerticallyButtonClicked,me.addButton(ct)},B.prototype.ratioButtonClicked=function(E){this.aspectRatio=E,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},B.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Yt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},B.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Pn(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},B.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},B.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},B.prototype.restoreState=function(E){if(E){var w=this.cropLayer.getRescaledRect(E.width,E.height,this.imageWidth,this.imageHeight,E.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(w),this.cropRectChanged(w),this.flippedHorizontally=E.flippedHorizontally,this.flippedVertically=E.flippedVertically,this.applyFlip(),this.rotationAngle=E.rotationAngle,this.applyRotation()}},B.prototype.clientToLocalCoordinates=function(E,w){var U=this.cropImage.getBoundingClientRect();return{x:E-U.left,y:w-U.top}},B.prototype.onWindowResize=function(){this.positionUI()},B.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var E=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=E+"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()},B.prototype.rotateLeftButtonClicked=function(){var E=this.rotationAngle-90;this.rotationAngle%90!=0&&(E+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(E)},B.prototype.rotateRightButtonClicked=function(){var E=this.rotationAngle+90;this.rotationAngle%90!=0&&(E-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(E)},B.prototype.rotateTo=function(E){E=(E=E>180?E-360:E)<=-180?E+360:E,this.rotationAngle=E,this.applyRotation()},B.prototype.rotateBy=function(E){this.rotateTo((this.rotationAngle+E)%360)},B.prototype.applyRotation=function(){var E=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var w=this.editingTargetRotationContainer.transform.baseVal.getItem(0);w.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(w,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=E},B.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},B.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},B.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},B.prototype.startRenderAndClose=function(){return _t(this,void 0,void 0,function(){var E,w;return St(this,function(U){switch(U.label){case 0:return[4,this.render()];case 1:return E=U.sent(),w=this.getState(),this.renderEventListeners.forEach(function(z){return z(E,w)}),this.close(!0),[2]}})})},B.prototype.render=function(){return _t(this,void 0,void 0,function(){var E;return St(this,function(w){switch(w.label){case 0:return(E=new Nn).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.width=this.renderWidth,E.height=this.renderHeight,this.unzoomFromCrop(),Qe.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,E.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 w.sent(),[4,E.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,w.sent()]}})})},B.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new mt("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 mt("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new mt("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var E=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new mt("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*E)+`px;
height: `+(this.toolbarHeight-2*E)+`px;
padding: `+E+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new mt("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new mt("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new ut("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new ut("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new mt("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 mt("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new mt("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 mt("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*E)+`px;
padding: `+E+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new mt("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},B.instanceCounter=0,B}(),Yn=M("8hTe"),kt=M.n(Yn),qn=/]*>/g;function fi(B){var E=document.createElement("div");return E.innerHTML=B,E.childNodes.length===0?"":E.childNodes[0].nodeValue}var $n=ie.a=function(B){var E=B.value,w=E===void 0?"":E,U=B.edit,z=U===void 0?!1:U,F=B.className,me=B.showTextOnly,Ke=B.showLines,ct=B.replaces,yt=B.zoomImg,Ye=B.hasMask,Ct=B.style,Pt=Ct===void 0?{}:Ct,tn=B.stylesPrev,kn=tn===void 0?{}:tn,Xn=String(w),Pe=Object(O.useRef)(),On=Object(O.useRef)(),oi=Object(O.useState)(""),Jn=Object(H.a)(oi,2),pi=Jn[0],ei=Jn[1],_n=Object(O.useState)("office"),Kn=Object(H.a)(_n,2),li=Kn[0],mi=Kn[1],xi=function(){var Bt=new Vn(On.current);Bt.displayMode="popup",Bt.addRenderEventListener(function(){var hn=Object(R.a)(e.a.mark(function Vt(Sn){var nn;return e.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return Pe.current.style.display="none",wn.next=3,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Sn}});case 3:nn=wn.sent,nn!=null&&nn.id&&ct(On.current.getAttribute("src").replace(Y.a.API_SERVER,""),"/api/attachments/".concat(nn==null?void 0:nn.id,"?type=").concat(nn.content_type));case 5:case"end":return wn.stop()}},Vt)}));return function(Vt){return hn.apply(this,arguments)}}()),Bt.show()},Ni=function(){var Bt=new Rt(On.current);Bt.settings.displayMode="popup",Bt.addEventListener("render",function(){var hn=Object(R.a)(e.a.mark(function Vt(Sn){var nn;return e.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(Pe.current.style.display="none",!On.current){wn.next=6;break}return wn.next=4,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Sn.dataUrl}});case 4:nn=wn.sent,nn!=null&&nn.id&&ct(On.current.getAttribute("src").replace(Y.a.API_SERVER,""),"/api/attachments/".concat(nn==null?void 0:nn.id,"?type=").concat(nn.content_type));case 6:case"end":return wn.stop()}},Vt)}));return function(Vt){return hn.apply(this,arguments)}}()),Bt.show(),window.markerArea=Bt},ui=Object(O.useMemo)(function(){Pe.current&&(Pe.current.style.zIndex=-1);try{var an=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Bt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,hn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Xn=Xn.replace(an,"("+Y.a.API_SERVER+"/api/attachments/").replace(Bt,'"'+Y.a.API_SERVER+"/api/attachments/").replace(hn,'"'+Y.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(vi){}var Vt=A(Xn),Sn=y();if(Xn.match(/\[TOC\]/)&&(Vt=Vt.replace("[TOC]
",x()),b()),Vt=Vt.replace(/(__special_katext_id_\d+__)/g,function(vi,wn){var Ti=Sn[wn],yi=Ti.type,bi=Ti.expression;return Object(oe.renderToString)(fi(bi)||"",{displayMode:yi==="block",throwOnError:!1,output:"html"})}),Vt=Vt.replace(/▁/g,"\u2581\u2581\u2581"),f(),me){var nn=document.createElement("div");return nn.innerHTML=Vt,nn.innerText}return setTimeout(function(){return Ri()},500),Vt},[Xn]),Rn=Object(O.useRef)();v.WebkitLineClamp=Ke,Ke&&(Pt=Object(C.a)(Object(C.a)({},Pt),v));function ti(an){var Bt=an.target;if(Bt.tagName.toUpperCase()==="IMG"){if(yt){var hn=Bt.getAttribute("src");ei(hn),mi("image")}}else if(Bt.tagName.toUpperCase()==="A"){var Vt=Bt.getAttribute("href");if(Vt.indexOf("office")>-1)an.preventDefault(),ei(Vt),mi("office");else if(Vt.indexOf("application/pdf")>-1)an.preventDefault(),ei(Vt),mi("pdf");else if(Vt.indexOf("text/html")>-1)an.preventDefault(),ei(Vt),mi("html");else if(Vt.startsWith("#")){an.preventDefault();var Sn=document.getElementById(Vt.replace("#",""));Sn&&Sn.scrollIntoView(!0)}}}var Ri=function(){var Bt,hn=(Bt=Rn.current)===null||Bt===void 0?void 0:Bt.querySelectorAll("video");hn==null||hn.forEach(function(Vt){if(Vt.oncontextmenu=function(){return!1},Vt.src.indexOf(".m3u8")>-1&&!Vt.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var Sn=new K.a;Sn.loadSource(Vt.src),Sn.attachMedia(Vt)}}})};Object(O.useEffect)(function(){if(Rn.current&&ui&&(ui.match(qn)&&window.PR.prettyPrint()),Rn.current)return Rn.current.addEventListener("click",ti),function(){Rn.current.removeEventListener("click",ti),f(),b()}},[ui,Rn.current,ti]);var gi=function(Bt){if(!z)return;Bt.target.nodeName==="IMG"?(Pe.current.style.zIndex=1,Pe.current.style.display="flex",Pe.current.style.width=Bt.target.clientWidth+"px",Pe.current.style.height=Bt.target.clientHeight+"px",Pe.current.style.top=Bt.target.offsetTop+"px",Pe.current.style.left=Bt.target.offsetLeft+"px",On.current.src=Bt.target.getAttribute("src")):Pe.current.style.display="none"};return g.a.createElement("div",{style:{position:"relative"}},g.a.createElement("div",{ref:Rn,style:Object(C.a)({},Pt),className:"".concat(F||""," markdown-body ").concat(kt.a.mdBody),onMouseOver:gi,dangerouslySetInnerHTML:{__html:ui}}),g.a.createElement("div",{ref:Pe,className:kt.a.button},g.a.createElement(N.a,null,g.a.createElement(j.a,{onClick:function(){return xi()}},"\u88C1\u526A"),g.a.createElement(j.a,{onClick:function(){return Ni()}},"\u7F16\u8F91"))),g.a.createElement("img",{ref:On,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),g.a.createElement(le.a,{close:!0,data:pi,type:pi!=null&&pi.length?li:"",style:Object(C.a)({},kn),onClose:function(){return ei("")}}))}},"9JIy":function(Be,ie,M){Be.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},BJfS:function(Be,ie){var M=function(Q){return Q.replace(/[A-Z]/g,function(N){return"-"+N.toLowerCase()}).toLowerCase()};Be.exports=M},BU3w:function(Be,ie,M){"use strict";M.d(ie,"a",function(){return R});var Q=M("MNnm"),N="rc-util-key";function I(H){if(H.attachTo)return H.attachTo;var k=document.querySelector("head");return k||document.body}function j(H){var k,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Q.a)())return null;var O=document.createElement("style");if((k=e.csp)===null||k===void 0?void 0:k.nonce){var g;O.nonce=(g=e.csp)===null||g===void 0?void 0:g.nonce}O.innerHTML=H;var p=I(e),u=p.firstChild;return e.prepend&&p.prepend?p.prepend(O):e.prepend&&u?p.insertBefore(O,u):p.appendChild(O),O}var C=new Map;function R(H,k){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=I(e);if(!C.has(O)){var g=j("",e),p=g.parentNode;C.set(O,p),p.removeChild(g)}var u=Array.from(C.get(O).children).find(function(i){return i.tagName==="STYLE"&&i[N]===k});if(u){var a,r;if(((a=e.csp)===null||a===void 0?void 0:a.nonce)&&u.nonce!==((r=e.csp)===null||r===void 0?void 0:r.nonce)){var o;u.nonce=(o=e.csp)===null||o===void 0?void 0:o.nonce}return u.innerHTML!==H&&(u.innerHTML=H),u}var s=j(H,e);return s[N]=k,s}},BdwD:function(Be,ie,M){"use strict";var Q=M("+L6B"),N=M("2/Rp"),I=M("0Owb"),j=M("k1fw"),C=M("q1tI"),R=M.n(C),H=M("FOrL"),k=M.n(H),e=function(g){var p=g.buttonProps,u=p===void 0?{}:p,a=g.styles,r=a===void 0?{}:a,o=g.customText,s=g.ButtonText,i=g.ButtonClick,n=g.Buttonclass,t=g.ButtonTwo;return R.a.createElement("section",{className:"tc animated fadeIn",style:Object(j.a)(Object(j.a)({},{color:"#999",margin:"200px auto"}),r)},R.a.createElement("img",{src:k.a}),R.a.createElement("p",{className:"mt20 font14"},o||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),s&&R.a.createElement(N.a,Object(I.a)({className:n,onClick:i},u),s),t&&t)};ie.a=e},Bq7L:function(Be,ie){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodn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jJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},"C/vA":function(Be,ie,M){"use strict";M.d(ie,"a",function(){return Q});function Q(N){const I=this;let j=!1,C;return function(){return j||(j=!0,C=N.apply(I,arguments)),C}}},"Cg/j":function(Be,ie,M){"use strict";M.d(ie,"b",function(){return Q}),M.d(ie,"a",function(){return N}),M.d(ie,"c",function(){return j}),M.d(ie,"d",function(){return C});var Q;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function H(k){return k[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=H})(Q||(Q={}));const N=j("instantiationService");function I(R,H,k,e){H[Q.DI_TARGET]===H?H[Q.DI_DEPENDENCIES].push({id:R,index:k,optional:e}):(H[Q.DI_DEPENDENCIES]=[{id:R,index:k,optional:e}],H[Q.DI_TARGET]=H)}function j(R){if(Q.serviceIds.has(R))return Q.serviceIds.get(R);const H=function(k,e,O){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(H,k,O,!1)};return H.toString=()=>R,Q.serviceIds.set(R,H),H}function C(R){return function(H,k,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");I(R,H,e,!0)}}},DlQD:function(Be,ie,M){(function(Q,N){Be.exports=N()})(this,function(){"use strict";function Q(he,se){for(var re=0;rehe.length)&&(se=he.length);for(var re=0,G=new Array(se);re=he.length?{done:!0}:{done:!1,value:he[G++]}}}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 re=he[Symbol.iterator](),re.next.bind(re)}function R(he,se){return se={exports:{}},he(se,se.exports),se.exports}var H=R(function(he){function se(){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 re(G){he.exports.defaults=G}he.exports={defaults:se(),getDefaults:se,changeDefaults:re}}),k=H.defaults,e=H.getDefaults,O=H.changeDefaults,g=/[&<>"']/,p=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},o=function(se){return r[se]};function s(he,se){if(se){if(g.test(he))return he.replace(p,o)}else if(u.test(he))return he.replace(a,o);return he}var i=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function n(he){return he.replace(i,function(se,re){return re=re.toLowerCase(),re==="colon"?":":re.charAt(0)==="#"?re.charAt(1)==="x"?String.fromCharCode(parseInt(re.substring(2),16)):String.fromCharCode(+re.substring(1)):""})}var t=/(^|[^\[])\^/g;function b(he,se){he=he.source||he,se=se||"";var re={replace:function(X,Z){return Z=Z.source||Z,Z=Z.replace(t,"$1"),he=he.replace(X,Z),re},getRegex:function(){return new RegExp(he,se)}};return re}var v=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(he,se,re){if(he){var G;try{G=decodeURIComponent(n(re)).replace(v,"").toLowerCase()}catch(X){return null}if(G.indexOf("javascript:")===0||G.indexOf("vbscript:")===0||G.indexOf("data:")===0)return null}se&&!m.test(re)&&(re=c(se,re));try{re=encodeURI(re).replace(/%25/g,"%")}catch(X){return null}return re}var _={},h=/^[^:]+:\/*[^/]*$/,d=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(he,se){_[" "+he]||(h.test(he)?_[" "+he]=he+"/":_[" "+he]=L(he,"/",!0)),he=_[" "+he];var re=he.indexOf(":")===-1;return se.substring(0,2)==="//"?re?se:he.replace(d,"$1")+se:se.charAt(0)==="/"?re?se:he.replace(l,"$1")+se:he+se}var y={exec:function(){}};function f(he){for(var se=1,re,G;se=0&&ge[Me]==="\\";)we=!we;return we?"|":" |"}),G=re.split(/ \|/),X=0;if(G.length>se)G.splice(se);else for(;G.length=G.length?X.slice(G.length):X}).join(`
`)}var Ee=function(){function he(re){this.options=re||W}var se=he.prototype;return se.space=function(G){var X=this.rules.block.newline.exec(G);if(X)return X[0].length>1?{type:"space",raw:X[0]}:{raw:`
`}},se.code=function(G,X){var Z=this.rules.block.code.exec(G);if(Z){var te=X[X.length-1];if(te&&te.type==="paragraph")return{raw:Z[0],text:Z[0].trimRight()};var ge=Z[0].replace(/^ {4}/gm,"");return{type:"code",raw:Z[0],codeBlockStyle:"indented",text:this.options.pedantic?ge:D(ge,`
`)}}},se.fences=function(G){var X=this.rules.block.fences.exec(G);if(X){var Z=X[0],te=Se(Z,X[3]||"");return{type:"code",raw:Z,lang:X[2]?X[2].trim():X[2],text:te}}},se.heading=function(G){var X=this.rules.block.heading.exec(G);if(X)return{type:"heading",raw:X[0],depth:X[1].length,text:X[2]}},se.nptable=function(G){var X=this.rules.block.nptable.exec(G);if(X){var Z={type:"table",header:K(X[1].replace(/^ *| *\| *$/g,"")),align:X[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:X[3]?X[3].replace(/\n$/,"").split(`
`):[],raw:X[0]};if(Z.header.length===Z.align.length){var te=Z.align.length,ge;for(ge=0;ge ?/gm,"");return{type:"blockquote",raw:X[0],text:Z}}},se.list=function(G){var X=this.rules.block.list.exec(G);if(X){for(var Z=X[0],te=X[2],ge=te.length>1,we=te[te.length-1]===")",Me={type:"list",raw:Z,ordered:ge,start:ge?+te.slice(0,-1):"",loose:!1,items:[]},qe=X[0].match(this.rules.block.item),ot=!1,ze,vt,bt,lt,Ot,Rt,xt,gt=qe.length,_t=0;_t1||this.options.smartLists&&bt!==te)&&(lt=qe.slice(_t+1).join(`
`),Me.raw=Me.raw.substring(0,Me.raw.length-lt.length),_t=gt-1)),Ot=ot||/\n\n(?!\s*$)/.test(ze),_t!==gt-1&&(ot=ze.charAt(ze.length-1)===`
`,Ot||(Ot=ot)),Ot&&(Me.loose=!0),Rt=/^\[[ xX]\] /.test(ze),xt=void 0,Rt&&(xt=ze[1]!==" ",ze=ze.replace(/^\[[ xX]\] +/,"")),Me.items.push({type:"list_item",raw:Z,task:Rt,checked:xt,loose:Ot,text:ze});return Me}},se.html=function(G){var X=this.rules.block.html.exec(G);if(X)return{type:this.options.sanitize?"paragraph":"html",raw:X[0],pre:!this.options.sanitizer&&(X[1]==="pre"||X[1]==="script"||X[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(X[0]):Y(X[0]):X[0]}},se.def=function(G){var X=this.rules.block.def.exec(G);if(X){X[3]&&(X[3]=X[3].substring(1,X[3].length-1));var Z=X[1].toLowerCase().replace(/\s+/g," ");return{tag:Z,raw:X[0],href:X[2],title:X[3]}}},se.table=function(G){var X=this.rules.block.table.exec(G);if(X){var Z={type:"table",header:K(X[1].replace(/^ *| *\| *$/g,"")),align:X[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:X[3]?X[3].replace(/\n$/,"").split(`
`):[]};if(Z.header.length===Z.align.length){Z.raw=X[0];var te=Z.align.length,ge;for(ge=0;ge/i.test(te[0])&&(X=!1),!Z&&/^<(pre|code|kbd|script)(\s|>)/i.test(te[0])?Z=!0:Z&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(te[0])&&(Z=!1),{type:this.options.sanitize?"text":"html",raw:te[0],inLink:X,inRawBlock:Z,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(te[0]):Y(te[0]):te[0]}},se.link=function(G){var X=this.rules.inline.link.exec(G);if(X){var Z=oe(X[2],"()");if(Z>-1){var te=X[0].indexOf("!")===0?5:4,ge=te+X[1].length+Z;X[2]=X[2].substring(0,Z),X[0]=X[0].substring(0,ge).trim(),X[3]=""}var we=X[2],Me="";if(this.options.pedantic){var qe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(we);qe?(we=qe[1],Me=qe[3]):Me=""}else Me=X[3]?X[3].slice(1,-1):"";we=we.trim().replace(/^<([\s\S]*)>$/,"$1");var ot=le(X,{href:we&&we.replace(this.rules.inline._escapes,"$1"),title:Me&&Me.replace(this.rules.inline._escapes,"$1")},X[0]);return ot}},se.reflink=function(G,X){var Z;if((Z=this.rules.inline.reflink.exec(G))||(Z=this.rules.inline.nolink.exec(G))){var te=(Z[2]||Z[1]).replace(/\s+/g," ");if(te=X[te.toLowerCase()],!te||!te.href){var ge=Z[0].charAt(0);return{type:"text",raw:ge,text:ge}}var we=le(Z,te,Z[0]);return we}},se.strong=function(G,X,Z){Z===void 0&&(Z="");var te=this.rules.inline.strong.start.exec(G);if(te&&(!te[1]||te[1]&&(Z===""||this.rules.inline.punctuation.exec(Z)))){X=X.slice(-1*G.length);var ge=te[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ge.lastIndex=0;for(var we;(te=ge.exec(X))!=null;)if(we=this.rules.inline.strong.middle.exec(X.slice(0,te.index+3)),we)return{type:"strong",raw:G.slice(0,we[0].length),text:G.slice(2,we[0].length-2)}}},se.em=function(G,X,Z){Z===void 0&&(Z="");var te=this.rules.inline.em.start.exec(G);if(te&&(!te[1]||te[1]&&(Z===""||this.rules.inline.punctuation.exec(Z)))){X=X.slice(-1*G.length);var ge=te[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ge.lastIndex=0;for(var we;(te=ge.exec(X))!=null;)if(we=this.rules.inline.em.middle.exec(X.slice(0,te.index+2)),we)return{type:"em",raw:G.slice(0,we[0].length),text:G.slice(1,we[0].length-1)}}},se.codespan=function(G){var X=this.rules.inline.code.exec(G);if(X){var Z=X[2].replace(/\n/g," "),te=/[^ ]/.test(Z),ge=Z.startsWith(" ")&&Z.endsWith(" ");return te&&ge&&(Z=Z.substring(1,Z.length-1)),Z=Y(Z,!0),{type:"codespan",raw:X[0],text:Z}}},se.br=function(G){var X=this.rules.inline.br.exec(G);if(X)return{type:"br",raw:X[0]}},se.del=function(G){var X=this.rules.inline.del.exec(G);if(X)return{type:"del",raw:X[0],text:X[1]}},se.autolink=function(G,X){var Z=this.rules.inline.autolink.exec(G);if(Z){var te,ge;return Z[2]==="@"?(te=Y(this.options.mangle?X(Z[1]):Z[1]),ge="mailto:"+te):(te=Y(Z[1]),ge=te),{type:"link",raw:Z[0],text:te,href:ge,tokens:[{type:"text",raw:te,text:te}]}}},se.url=function(G,X){var Z;if(Z=this.rules.inline.url.exec(G)){var te,ge;if(Z[2]==="@")te=Y(this.options.mangle?X(Z[0]):Z[0]),ge="mailto:"+te;else{var we;do we=Z[0],Z[0]=this.rules.inline._backpedal.exec(Z[0])[0];while(we!==Z[0]);te=Y(Z[0]),Z[1]==="www."?ge="http://"+te:ge=te}return{type:"link",raw:Z[0],text:te,href:ge,tokens:[{type:"text",raw:te,text:te}]}}},se.inlineText=function(G,X,Z){var te=this.rules.inline.text.exec(G);if(te){var ge;return X?ge=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(te[0]):Y(te[0]):te[0]:ge=Y(this.options.smartypants?Z(te[0]):te[0]),{type:"text",raw:te[0],text:ge}}},he}(),ae=A.noopTest,Ce=A.edit,Le=A.merge,de={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ae,table:ae,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};de._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,de._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,de.def=Ce(de.def).replace("label",de._label).replace("title",de._title).getRegex(),de.bullet=/(?:[*+-]|\d{1,9}[.)])/,de.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,de.item=Ce(de.item,"gm").replace(/bull/g,de.bullet).getRegex(),de.list=Ce(de.list).replace(/bull/g,de.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+de.def.source+")").getRegex(),de._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",de._comment=//,de.html=Ce(de.html,"i").replace("comment",de._comment).replace("tag",de._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),de.paragraph=Ce(de._paragraph).replace("hr",de.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",de._tag).getRegex(),de.blockquote=Ce(de.blockquote).replace("paragraph",de.paragraph).getRegex(),de.normal=Le({},de),de.gfm=Le({},de.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*|$)"}),de.gfm.nptable=Ce(de.gfm.nptable).replace("hr",de.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",de._tag).getRegex(),de.gfm.table=Ce(de.gfm.table).replace("hr",de.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",de._tag).getRegex(),de.pedantic=Le({},de.normal,{html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",de._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:ae,paragraph:Ce(de.normal._paragraph).replace("hr",de.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",de.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ae,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ae,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",$.punctuation=Ce($.punctuation).replace(/punctuation/g,$._punctuation).getRegex(),$._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",$._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",$.em.start=Ce($.em.start).replace(/punctuation/g,$._punctuation).getRegex(),$.em.middle=Ce($.em.middle).replace(/punctuation/g,$._punctuation).replace(/overlapSkip/g,$._overlapSkip).getRegex(),$.em.endAst=Ce($.em.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.em.endUnd=Ce($.em.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.start=Ce($.strong.start).replace(/punctuation/g,$._punctuation).getRegex(),$.strong.middle=Ce($.strong.middle).replace(/punctuation/g,$._punctuation).replace(/blockSkip/g,$._blockSkip).getRegex(),$.strong.endAst=Ce($.strong.endAst,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.strong.endUnd=Ce($.strong.endUnd,"g").replace(/punctuation/g,$._punctuation).getRegex(),$.blockSkip=Ce($._blockSkip,"g").getRegex(),$.overlapSkip=Ce($._overlapSkip,"g").getRegex(),$._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,$.autolink=Ce($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex(),$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$.tag=Ce($.tag).replace("comment",de._comment).replace("attribute",$._attribute).getRegex(),$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$.link=Ce($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex(),$.reflink=Ce($.reflink).replace("label",$._label).getRegex(),$.reflinkSearch=Ce($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex(),$.normal=Le({},$),$.pedantic=Le({},$.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:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",$._label).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()}),$.gfm=Le({},$.normal,{escape:Ce($.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(G="x"+G.toString(16)),se+=""+G+";";return se}var Ge=function(){function he(re){this.tokens=[],this.tokens.links=Object.create(null),this.options=re||at,this.options.tokenizer=this.options.tokenizer||new Ee,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var G={block:it.normal,inline:Je.normal};this.options.pedantic?(G.block=it.pedantic,G.inline=Je.pedantic):this.options.gfm&&(G.block=it.gfm,this.options.breaks?G.inline=Je.breaks:G.inline=Je.gfm),this.tokenizer.rules=G}he.lex=function(G,X){var Z=new he(X);return Z.lex(G)};var se=he.prototype;return se.lex=function(G){return G=G.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(G,this.tokens,!0),this.inline(this.tokens),this.tokens},se.blockTokens=function(G,X,Z){X===void 0&&(X=[]),Z===void 0&&(Z=!0),G=G.replace(/^ +$/gm,"");for(var te,ge,we,Me;G;){if(te=this.tokenizer.space(G)){G=G.substring(te.raw.length),te.type&&X.push(te);continue}if(te=this.tokenizer.code(G,X)){G=G.substring(te.raw.length),te.type?X.push(te):(Me=X[X.length-1],Me.raw+=`
`+te.raw,Me.text+=`
`+te.text);continue}if(te=this.tokenizer.fences(G)){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.heading(G)){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.nptable(G)){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.hr(G)){G=G.substring(te.raw.length),X.push(te);continue}if(te=this.tokenizer.blockquote(G)){G=G.substring(te.raw.length),te.tokens=this.blockTokens(te.text,[],Z),X.push(te);continue}if(te=this.tokenizer.list(G)){for(G=G.substring(te.raw.length),we=te.items.length,ge=0;ge0)for(;(qe=this.tokenizer.rules.inline.reflinkSearch.exec(Me))!=null;)ot.includes(qe[0].slice(qe[0].lastIndexOf("[")+1,-1))&&(Me=Me.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+Me.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qe=this.tokenizer.rules.inline.blockSkip.exec(Me))!=null;)Me=Me.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+Me.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;G;){if(we=this.tokenizer.escape(G)){G=G.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.tag(G,Z,te)){G=G.substring(we.raw.length),Z=we.inLink,te=we.inRawBlock,X.push(we);continue}if(we=this.tokenizer.link(G)){G=G.substring(we.raw.length),we.type==="link"&&(we.tokens=this.inlineTokens(we.text,[],!0,te)),X.push(we);continue}if(we=this.tokenizer.reflink(G,this.tokens.links)){G=G.substring(we.raw.length),we.type==="link"&&(we.tokens=this.inlineTokens(we.text,[],!0,te)),X.push(we);continue}if(we=this.tokenizer.strong(G,Me,ge)){G=G.substring(we.raw.length),we.tokens=this.inlineTokens(we.text,[],Z,te),X.push(we);continue}if(we=this.tokenizer.em(G,Me,ge)){G=G.substring(we.raw.length),we.tokens=this.inlineTokens(we.text,[],Z,te),X.push(we);continue}if(we=this.tokenizer.codespan(G)){G=G.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.br(G)){G=G.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.del(G)){G=G.substring(we.raw.length),we.tokens=this.inlineTokens(we.text,[],Z,te),X.push(we);continue}if(we=this.tokenizer.autolink(G,ke)){G=G.substring(we.raw.length),X.push(we);continue}if(!Z&&(we=this.tokenizer.url(G,ke))){G=G.substring(we.raw.length),X.push(we);continue}if(we=this.tokenizer.inlineText(G,te,st)){G=G.substring(we.raw.length),ge=we.raw.slice(-1),X.push(we);continue}if(G){var ze="Infinite loop on byte: "+G.charCodeAt(0);if(this.options.silent){console.error(ze);break}else throw new Error(ze)}}return X},N(he,null,[{key:"rules",get:function(){return{block:it,inline:Je}}}]),he}(),$e=H.defaults,ee=A.cleanUrl,ve=A.escape,Te=function(){function he(re){this.options=re||$e}var se=he.prototype;return se.code=function(G,X,Z){var te=(X||"").match(/\S*/)[0];if(this.options.highlight){var ge=this.options.highlight(G,te);ge!=null&&ge!==G&&(Z=!0,G=ge)}return te?''+(Z?G:ve(G,!0))+`
`:""+(Z?G:ve(G,!0))+`
`},se.blockquote=function(G){return`
`+G+`
`},se.html=function(G){return G},se.heading=function(G,X,Z,te){return this.options.headerIds?"
`:""+G+"
`},se.hr=function(){return this.options.xhtml?`
`:`
`},se.list=function(G,X,Z){var te=X?"ol":"ul",ge=X&&Z!==1?' start="'+Z+'"':"";return"<"+te+ge+`>
`+G+""+te+`>
`},se.listitem=function(G){return""+G+`
`},se.checkbox=function(G){return" "},se.paragraph=function(G){return""+G+`
`},se.table=function(G,X){return X&&(X=""+X+""),`
`},se.tablerow=function(G){return`
`+G+`
`},se.tablecell=function(G,X){var Z=X.header?"th":"td",te=X.align?"<"+Z+' align="'+X.align+'">':"<"+Z+">";return te+G+""+Z+`>
`},se.strong=function(G){return""+G+""},se.em=function(G){return""+G+""},se.codespan=function(G){return""+G+""},se.br=function(){return this.options.xhtml?"
":"
"},se.del=function(G){return""+G+""},se.link=function(G,X,Z){if(G=ee(this.options.sanitize,this.options.baseUrl,G),G===null)return Z;var te='"+Z+"",te},se.image=function(G,X,Z){if(G=ee(this.options.sanitize,this.options.baseUrl,G),G===null)return Z;var te='
":">",te},se.text=function(G){return G},he}(),Ae=function(){function he(){}var se=he.prototype;return se.strong=function(G){return G},se.em=function(G){return G},se.codespan=function(G){return G},se.del=function(G){return G},se.html=function(G){return G},se.text=function(G){return G},se.link=function(G,X,Z){return""+Z},se.image=function(G,X,Z){return""+Z},se.br=function(){return""},he}(),Ve=function(){function he(){this.seen={}}var se=he.prototype;return se.slug=function(G){var X=G.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(X)){var Z=X;do this.seen[Z]++,X=Z+"-"+this.seen[Z];while(this.seen.hasOwnProperty(X))}return this.seen[X]=0,X},he}(),Ze=H.defaults,rt=A.unescape,et=function(){function he(re){this.options=re||Ze,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Ve}he.parse=function(G,X){var Z=new he(X);return Z.parse(G)};var se=he.prototype;return se.parse=function(G,X){X===void 0&&(X=!0);var Z="",te,ge,we,Me,qe,ot,ze,vt,bt,lt,Ot,Rt,xt,gt,_t,St,Nt,Qe,Lt=G.length;for(te=0;te0&&_t.tokens[0].type==="text"?(_t.tokens[0].text=Qe+" "+_t.tokens[0].text,_t.tokens[0].tokens&&_t.tokens[0].tokens.length>0&&_t.tokens[0].tokens[0].type==="text"&&(_t.tokens[0].tokens[0].text=Qe+" "+_t.tokens[0].tokens[0].text)):_t.tokens.unshift({type:"text",text:Qe}):gt+=Qe),gt+=this.parse(_t.tokens,xt),bt+=this.renderer.listitem(gt,Nt,St);Z+=this.renderer.list(bt,Ot,Rt);continue}case"html":{Z+=this.renderer.html(lt.text);continue}case"paragraph":{Z+=this.renderer.paragraph(this.parseInline(lt.tokens));continue}case"text":{for(bt=lt.tokens?this.parseInline(lt.tokens):lt.text;te+1An error occurred:
"+ye(we.message+"",!0)+"
";throw we}}Re.options=Re.setOptions=function(he){return dt(Re.defaults,he),Ne(Re.defaults),Re},Re.getDefaults=Oe,Re.defaults=We,Re.use=function(he){var se=dt({},he);if(he.renderer&&function(){var G=Re.defaults.renderer||new Te,X=function(ge){var we=G[ge];G[ge]=function(){for(var Me=arguments.length,qe=new Array(Me),ot=0;ott.length&&(v=t.length);bm===x){const m=t[Symbol.iterator](),x=b[Symbol.iterator]();for(;;){const _=m.next(),h=x.next();if(_.done!==h.done)return!1;if(_.done)return!0;if(!v(_.value,h.value))return!1}}N.equals=n})(Q||(Q={}))},KOXS:function(Be,ie,M){Be.exports={flex_box_center:"flex_box_center___4BHX-",flex_space_between:"flex_space_between___fH2oM",flex_box_vertical_center:"flex_box_vertical_center___TgSS9",flex_box_center_end:"flex_box_center_end___1vKaD",flex_box_column:"flex_box_column___1kCgI",input:"input___2mV-b",dropdown:"dropdown___1QKW2",menu:"menu___37CBn",text:"text___159fF",b1:"b1___2uGyF",b2:"b2___2DXw1"}},LdHM:function(Be,ie,M){"use strict";M.d(ie,"b",function(){return t}),M.d(ie,"a",function(){return v});var Q=M("1OyB"),N=M("vuIU"),I=M("Ji7U"),j=M("LK+K"),C=M("q1tI"),R=M("rePB"),H=M("Ff2n"),k=M("ODXe"),e=M("4IlW"),O=M("bX4T"),g=M("YrtM"),p=M("TSYQ"),u=M.n(p),a=M("+nKL"),r=M("8OUc"),o=function(K,Y){var oe=K.prefixCls,le=K.id,Se=K.flattenOptions,Ee=K.childrenAsData,ae=K.values,Ce=K.searchValue,Le=K.multiple,de=K.defaultActiveFirstOption,$=K.height,Fe=K.itemHeight,at=K.notFoundContent,it=K.open,Je=K.menuItemSelectedIcon,st=K.virtual,ke=K.onSelect,Ge=K.onToggleOpen,$e=K.onActiveValue,ee=K.onScroll,ve=K.onMouseEnter,Te="".concat(oe,"-item"),Ae=Object(g.a)(function(){return Se},[it,Se],function(De,he){return he[0]&&De[1]!==he[1]}),Ve=C.useRef(null),Ze=function(he){he.preventDefault()},rt=function(he){Ve.current&&Ve.current.scrollTo({index:he})},et=function(he){for(var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=Ae.length,G=0;G1&&arguments[1]!==void 0?arguments[1]:!1;return Object(x.a)(D).map(function(Y,oe){if(!C.isValidElement(Y)||!Y.type)return null;var le=Y.type.isSelectOptGroup,Se=Y.key,Ee=Y.props,ae=Ee.children,Ce=Object(H.a)(Ee,["children"]);return K||!le?_(Y):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(Se===null?oe:Se,"__"),label:Se},Ce),{},{options:h(ae)})}).filter(function(Y){return Y})}var d=M("2Qr1"),l=M("qNPg"),c=M("U8pU"),y=M("Kwbf"),f=M("WKfj");function T(D){var K=D.mode,Y=D.options,oe=D.children,le=D.backfill,Se=D.allowClear,Ee=D.placeholder,ae=D.getInputElement,Ce=D.showSearch,Le=D.onSearch,de=D.defaultOpen,$=D.autoFocus,Fe=D.labelInValue,at=D.value,it=D.inputValue,Je=D.optionLabelProp,st=K==="multiple"||K==="tags",ke=Ce!==void 0?Ce:st||K==="combobox",Ge=Y||h(oe);if(Object(y.a)(K!=="tags"||Ge.every(function(Te){return!Te.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var $e=Ge.some(function(Te){return Te.options?Te.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in Te?Te.value:Te.key)=="number"});Object(y.a)(!$e,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(y.a)(K!=="combobox"||!Je,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(y.a)(K==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(y.a)(K==="combobox"||!ae,"`getInputElement` only work with `combobox` mode."),Object(y.b)(K!=="combobox"||!ae||!Se||!Ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Le&&!ke&&K!=="combobox"&&K!=="tags"&&Object(y.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(y.b)(!de||$,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),at!=null){var ee=Object(f.d)(at);Object(y.a)(!Fe||ee.every(function(Te){return Object(c.a)(Te)==="object"&&("key"in Te||"value"in Te)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(y.a)(!st||Array.isArray(at),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var ve=null;Object(x.a)(oe).some(function(Te){if(!C.isValidElement(Te)||!Te.type)return!1;var Ae=Te.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Ve=Object(x.a)(Te.props.children).every(function(Ze){return!C.isValidElement(Ze)||!Te.type||Ze.type.isSelectOption?!0:(ve=Ze.type,!1)});return!Ve}return ve=Ae,!0}),ve&&Object(y.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(y.a)(it===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=T,P=Object(l.a)({prefixCls:"rc-select",components:{optionList:i},convertChildrenToData:h,flattenOptions:d.d,getLabeledValue:d.e,filterOptions:d.b,isValueDisabled:d.g,findValueOption:d.c,warningProps:L,fillOptionsWithMissingValue:d.a}),S=function(D){Object(I.a)(Y,D);var K=Object(j.a)(Y);function Y(){var oe;return Object(Q.a)(this,Y),oe=K.apply(this,arguments),oe.selectRef=C.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(N.a)(Y,[{key:"render",value:function(){return C.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),Y}(C.Component);S.Option=t,S.OptGroup=v;var A=S,W=ie.c=A},LicW:function(Be,ie,M){"use strict";var Q=M("T2oS"),N=M("W9HT"),I=M("5Dmo"),j=M("3S7+"),C=M("q1tI"),R=M.n(C),H=M("ZJlW"),k=M.n(H),e=M("m3rI"),O=M("TSYQ"),g=M.n(O),p=M("1vsH"),u=M("z4EP"),a=M.n(u),r=M("+GGh"),o=M.n(r),s=M("cFMs"),i=M.n(s),n=M("BdwD"),t=function(v){var m=v.className,x=v.dataSource,_=x===void 0?[]:x,h=v.col,d=h===void 0?4:h,l=v.right,c=v.bottom,y=c===void 0?23:c,f=v.precision,T=f===void 0?0:f,L=v.wrapWidth,P=L===void 0?1200:L,S=v.trackEventItems,A=v.loading,W=Math.floor((P-(d-1)*l)/d);return R.a.createElement(N.a,{spinning:A},R.a.createElement("div",{className:g()(k.a.list,m)},!!_.length&&_.map(function(D,K){var Y=D.name,oe=D.id,le=D.identifier,Se=D.featured,Ee=D.school_name,ae=D.image_url,Ce=D.excellent;return R.a.createElement("div",{key:oe,className:k.a.wrap,style:{width:W,marginRight:(1+K)%d===0?0:l+T,marginBottom:y}},R.a.createElement("a",{target:"_blank",href:"/paths/".concat(le),className:k.a.li,onClick:function(de){de.preventDefault(),S&&Object(p.cb)([S]),Object(p.S)("/paths/".concat(le))}},R.a.createElement("div",{className:k.a.img},R.a.createElement("img",{className:k.a.cover,src:"".concat(e.a.IMG_SERVER,"/").concat(ae)}),Se===1&&R.a.createElement("img",{className:k.a.sign,src:a.a}),Se===2&&R.a.createElement("img",{className:k.a.sign,src:""}),Se===3&&R.a.createElement("img",{className:k.a.sign,src:o.a}),Se===4&&R.a.createElement("img",{className:k.a.sign,src:""}),Se===5&&R.a.createElement("img",{className:k.a.sign,src:i.a})),R.a.createElement("div",{className:k.a.name},R.a.createElement(j.a,{title:Y},R.a.createElement("span",{className:k.a.e},Y))),R.a.createElement(j.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Ee)},R.a.createElement("div",{className:k.a.unit},R.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ee)),R.a.createElement("div",{className:k.a.tags},R.a.createElement(j.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},R.a.createElement("span",null,R.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),R.a.createElement("span",null,D.stages_count))),R.a.createElement(j.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},R.a.createElement("span",null,R.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),R.a.createElement("span",null,D.members_count))),Ce&&R.a.createElement("div",{className:k.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!_.length&&R.a.createElement(n.a,null)))};ie.a=t},MEgm:function(Be,ie){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJ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xbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},MI8n:function(Be,ie,M){"use strict";M.d(ie,"c",function(){return C}),M.d(ie,"b",function(){return e}),M.d(ie,"e",function(){return O}),M.d(ie,"a",function(){return g}),M.d(ie,"d",function(){return p}),M.d(ie,"f",function(){return u});var Q=M("/cxE"),N=M("pmY6"),I=M("24hK"),j=M("5Y4S"),C;(function(a){a.None=()=>N.a.None;function r(T){return(L,P=null,S)=>{let A=!1,W;return W=T(D=>A?void 0:(W?W.dispose():A=!0,L.call(P,D)),null,S),A&&W.dispose(),W}}a.once=r;function o(T,L){return v((P,S=null,A)=>T(W=>P.call(S,L(W)),null,A))}a.map=o;function s(T,L){return v((P,S=null,A)=>T(W=>{L(W),P.call(S,W)},null,A))}a.forEach=s;function i(T,L){return v((P,S=null,A)=>T(W=>L(W)&&P.call(S,W),null,A))}a.filter=i;function n(T){return T}a.signal=n;function t(...T){return(L,P=null,S)=>Object(N.e)(...T.map(A=>A(W=>L.call(P,W),null,S)))}a.any=t;function b(T,L,P){let S=P;return o(T,A=>(S=L(S,A),S))}a.reduce=b;function v(T){let L;const P=new e({onFirstListenerAdd(){L=T(P.fire,P)},onLastListenerRemove(){L.dispose()}});return P.event}function m(T,L,P=100,S=!1,A){let W,D,K,Y=0;const oe=new e({leakWarningThreshold:A,onFirstListenerAdd(){W=T(le=>{Y++,D=L(D,le),S&&!K&&(oe.fire(D),D=void 0),clearTimeout(K),K=setTimeout(()=>{const Se=D;D=void 0,K=void 0,(!S||Y>1)&&oe.fire(Se),Y=0},P)})},onLastListenerRemove(){W.dispose()}});return oe.event}a.debounce=m;function x(T,L=(P,S)=>P===S){let P=!0,S;return i(T,A=>{const W=P||!L(A,S);return P=!1,S=A,W})}a.latch=x;function _(T,L){return[a.filter(T,L),a.filter(T,P=>!L(P))]}a.split=_;function h(T,L=!1,P=[]){let S=P.slice(),A=T(K=>{S?S.push(K):D.fire(K)});const W=()=>{S&&S.forEach(K=>D.fire(K)),S=null},D=new e({onFirstListenerAdd(){A||(A=T(K=>D.fire(K)))},onFirstListenerDidAdd(){S&&(L?setTimeout(W):W())},onLastListenerRemove(){A&&A.dispose(),A=null}});return D.event}a.buffer=h;class d{constructor(T){this.event=T}map(T){return new d(o(this.event,T))}forEach(T){return new d(s(this.event,T))}filter(T){return new d(i(this.event,T))}reduce(T,L){return new d(b(this.event,T,L))}latch(){return new d(x(this.event))}debounce(T,L=100,P=!1,S){return new d(m(this.event,T,L,P,S))}on(T,L,P){return this.event(T,L,P)}once(T,L,P){return r(this.event)(T,L,P)}}function l(T){return new d(T)}a.chain=l;function c(T,L,P=S=>S){const S=(...K)=>D.fire(P(...K)),A=()=>T.on(L,S),W=()=>T.removeListener(L,S),D=new e({onFirstListenerAdd:A,onLastListenerRemove:W});return D.event}a.fromNodeEventEmitter=c;function y(T,L,P=S=>S){const S=(...K)=>D.fire(P(...K)),A=()=>T.addEventListener(L,S),W=()=>T.removeEventListener(L,S),D=new e({onFirstListenerAdd:A,onLastListenerRemove:W});return D.event}a.fromDOMEventEmitter=y;function f(T){return new Promise(L=>r(T)(L))}a.toPromise=f})(C||(C={}));class R{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${R._idPool++}`}start(a){this._stopWatch=new j.a(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;let H=-1;class k{constructor(a,r=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=r,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let r=H;if(typeof this.customThreshold=="number"&&(r=this.customThreshold),r<=0||a{const i=this._stacks.get(o)||0;this._stacks.set(o,i-1)}}}class e{constructor(a){var r;this._disposed=!1,this._options=a,this._leakageMon=H>0?new k(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((r=this._options)===null||r===void 0?void 0:r._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(a,r,o)=>{var s;this._listeners||(this._listeners=new I.a);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const n=this._listeners.push(r?[a,r]:a);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,r);const t=(s=this._leakageMon)===null||s===void 0?void 0:s.check(this._listeners.size),b=Object(N.i)(()=>{if(t&&t(),!this._disposed&&(n(),this._options&&this._options.onLastListenerRemove)){const v=this._listeners&&!this._listeners.isEmpty();v||this._options.onLastListenerRemove(this)}});return o instanceof N.b?o.add(b):Array.isArray(o)&&o.push(b),b}),this._event}fire(a){var r,o;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(let s of this._listeners)this._deliveryQueue.push([s,a]);for((r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[s,i]=this._deliveryQueue.shift();try{typeof s=="function"?s.call(void 0,i):s[0].call(s[1],i)}catch(n){Object(Q.f)(n)}}(o=this._perfMon)===null||o===void 0||o.stop()}}dispose(){var a,r,o,s,i;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(r=this._deliveryQueue)===null||r===void 0||r.clear(),(s=(o=this._options)===null||o===void 0?void 0:o.onLastListenerRemove)===null||s===void 0||s.call(o),(i=this._leakageMon)===null||i===void 0||i.dispose())}}class O extends e{constructor(a){super(a);this._isPaused=0,this._eventQueue=new I.a,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}class g extends O{constructor(a){var r;super(a);this._delay=(r=a.delay)!==null&&r!==void 0?r:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}class p{constructor(){this.buffers=[]}wrapEvent(a){return(r,o,s)=>a(i=>{const n=this.buffers[this.buffers.length-1];n?n.push(()=>r.call(o,i)):r.call(o,i)},void 0,s)}bufferEvents(a){const r=[];this.buffers.push(r);const o=a();return this.buffers.pop(),r.forEach(s=>s()),o}}class u{constructor(){this.listening=!1,this.inputEvent=C.None,this.inputEventListener=N.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(Be,ie,M){"use strict";(function(Q,N){M.d(ie,"b",function(){return o}),M.d(ie,"i",function(){return t}),M.d(ie,"f",function(){return b}),M.d(ie,"d",function(){return v}),M.d(ie,"g",function(){return m}),M.d(ie,"h",function(){return x}),M.d(ie,"c",function(){return _}),M.d(ie,"k",function(){return h}),M.d(ie,"j",function(){return d}),M.d(ie,"a",function(){return l}),M.d(ie,"e",function(){return f});var I;const j="en";let C=!1,R=!1,H=!1,k=!1,e=!1,O=!1,g=!1,p,u=j,a,r;const o=typeof self=="object"?self:typeof Q=="object"?Q:{};let s;typeof o.vscode!="undefined"&&typeof o.vscode.process!="undefined"?s=o.vscode.process:typeof N!="undefined"&&(s=N);const i=typeof((I=s==null?void 0:s.versions)===null||I===void 0?void 0:I.electron)=="string"&&s.type==="renderer";if(typeof navigator=="object"&&!i)r=navigator.userAgent,C=r.indexOf("Windows")>=0,R=r.indexOf("Macintosh")>=0,g=(r.indexOf("Macintosh")>=0||r.indexOf("iPad")>=0||r.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,H=r.indexOf("Linux")>=0,O=!0,p=navigator.language,u=p;else if(typeof s=="object"){C=s.platform==="win32",R=s.platform==="darwin",H=s.platform==="linux",k=H&&!!s.env.SNAP&&!!s.env.SNAP_REVISION,p=j,u=j;const T=s.env.VSCODE_NLS_CONFIG;if(T)try{const L=JSON.parse(T),P=L.availableLanguages["*"];p=L.locale,u=P||j,a=L._translationsConfigFile}catch(L){}e=!0}else console.error("Unable to resolve platform.");let n=0;R?n=1:C?n=3:H&&(n=2);const t=C,b=R,v=H,m=e,x=O,_=g,h=r,d=function(){if(o.setImmediate)return o.setImmediate.bind(o);if(typeof o.postMessage=="function"&&!o.importScripts){let P=[];o.addEventListener("message",A=>{if(A.data&&A.data.vscodeSetImmediateId)for(let W=0,D=P.length;W{const W=++S;P.push({id:W,callback:A}),o.postMessage({vscodeSetImmediateId:W},"*")}}if(typeof(s==null?void 0:s.nextTick)=="function")return s.nextTick.bind(s);const L=Promise.resolve();return P=>L.then(P)}(),l=R||g?2:C?1:3;let c=!0,y=!1;function f(){if(!y){y=!0;const T=new Uint8Array(2);T[0]=1,T[1]=2;const L=new Uint16Array(T.buffer);c=L[0]===(2<<8)+1}return c}}).call(this,M("IyRk"),M("Q2Ig"))},N0LK:function(Be,ie,M){"use strict";M.d(ie,"C",function(){return Q}),M.d(ie,"v",function(){return I}),M.d(ie,"s",function(){return j}),M.d(ie,"t",function(){return C}),M.d(ie,"U",function(){return R}),M.d(ie,"J",function(){return H}),M.d(ie,"O",function(){return k}),M.d(ie,"p",function(){return e}),M.d(ie,"T",function(){return O}),M.d(ie,"q",function(){return g}),M.d(ie,"N",function(){return p}),M.d(ie,"M",function(){return u}),M.d(ie,"Q",function(){return a}),M.d(ie,"u",function(){return r}),M.d(ie,"x",function(){return o}),M.d(ie,"I",function(){return s}),M.d(ie,"f",function(){return i}),M.d(ie,"h",function(){return n}),M.d(ie,"g",function(){return t}),M.d(ie,"i",function(){return b}),M.d(ie,"G",function(){return v}),M.d(ie,"H",function(){return m}),M.d(ie,"r",function(){return x}),M.d(ie,"R",function(){return _}),M.d(ie,"d",function(){return h}),M.d(ie,"e",function(){return d}),M.d(ie,"E",function(){return l}),M.d(ie,"F",function(){return c}),M.d(ie,"j",function(){return y}),M.d(ie,"z",function(){return f}),M.d(ie,"K",function(){return L}),M.d(ie,"L",function(){return P}),M.d(ie,"m",function(){return A}),M.d(ie,"k",function(){return D}),M.d(ie,"A",function(){return Y}),M.d(ie,"a",function(){return oe}),M.d(ie,"n",function(){return le}),M.d(ie,"l",function(){return Se}),M.d(ie,"D",function(){return Ee}),M.d(ie,"B",function(){return ae}),M.d(ie,"b",function(){return Ce}),M.d(ie,"S",function(){return Le}),M.d(ie,"o",function(){return de}),M.d(ie,"P",function(){return $}),M.d(ie,"w",function(){return Fe}),M.d(ie,"c",function(){return at}),M.d(ie,"y",function(){return st});function Q(ee){return!ee||typeof ee!="string"?!0:ee.trim().length===0}const N=/{(\d+)}/g;function I(ee,...ve){return ve.length===0?ee:ee.replace(N,function(Te,Ae){const Ve=parseInt(Ae,10);return isNaN(Ve)||Ve<0||Ve>=ve.length?Te:ve[Ve]})}function j(ee){return ee.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function C(ee){return ee.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(ee,ve=" "){const Te=H(ee,ve);return k(Te,ve)}function H(ee,ve){if(!ee||!ve)return ee;const Te=ve.length;if(Te===0||ee.length===0)return ee;let Ae=0;for(;ee.indexOf(ve,Ae)===Ae;)Ae=Ae+Te;return ee.substring(Ae)}function k(ee,ve){if(!ee||!ve)return ee;const Te=ve.length,Ae=ee.length;if(Te===0||Ae===0)return ee;let Ve=Ae,Ze=-1;for(;!(Ze=ee.lastIndexOf(ve,Ve-1),Ze===-1||Ze+Te!==Ve);){if(Ze===0)return"";Ve=Ze}return ee.substring(0,Ve)}function e(ee){return ee.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function O(ee){return ee.replace(/\*/g,"")}function g(ee,ve,Te={}){if(!ee)throw new Error("Cannot create regex from empty string");ve||(ee=C(ee)),Te.wholeWord&&(/\B/.test(ee.charAt(0))||(ee="\\b"+ee),/\B/.test(ee.charAt(ee.length-1))||(ee=ee+"\\b"));let Ae="";return Te.global&&(Ae+="g"),Te.matchCase||(Ae+="i"),Te.multiline&&(Ae+="m"),Te.unicode&&(Ae+="u"),new RegExp(ee,Ae)}function p(ee){if(ee.source==="^"||ee.source==="^$"||ee.source==="$"||ee.source==="^\\s*$")return!1;const ve=ee.exec("");return!!(ve&&ee.lastIndex===0)}function u(ee){return(ee.global?"g":"")+(ee.ignoreCase?"i":"")+(ee.multiline?"m":"")+(ee.unicode?"u":"")}function a(ee){return ee.split(/\r\n|\r|\n/)}function r(ee){for(let ve=0,Te=ee.length;ve=0;Te--){const Ae=ee.charCodeAt(Te);if(Ae!==32&&Ae!==9)return Te}return-1}function i(ee,ve){return eeve?1:0}function n(ee,ve,Te=0,Ae=ee.length,Ve=0,Ze=ve.length){for(;Teht)return 1}const rt=Ae-Te,et=Ze-Ve;return rtet?1:0}function t(ee,ve){return b(ee,ve,0,ee.length,0,ve.length)}function b(ee,ve,Te=0,Ae=ee.length,Ve=0,Ze=ve.length){for(;Te=128||ht>=128)return n(ee.toLowerCase(),ve.toLowerCase(),Te,Ae,Ve,Ze);v(dt)&&(dt-=32),v(ht)&&(ht-=32);const ye=dt-ht;if(ye===0)continue;return ye}const rt=Ae-Te,et=Ze-Ve;return rtet?1:0}function v(ee){return ee>=97&&ee<=122}function m(ee){return ee>=65&&ee<=90}function x(ee,ve){return ee.length===ve.length&&b(ee,ve)===0}function _(ee,ve){const Te=ve.length;return ve.length>ee.length?!1:b(ee,ve,0,Te)===0}function h(ee,ve){let Te,Ae=Math.min(ee.length,ve.length);for(Te=0;Te1){const Ae=ee.charCodeAt(ve-2);if(l(Ae))return y(Ae,Te)}return Te}function L(ee,ve){const Te=it.getInstance(),Ae=ve,Ve=ee.length,Ze=f(ee,Ve,ve);ve+=Ze>=65536?2:1;let rt=Te.getGraphemeBreakType(Ze);for(;ve=65536?2:1,rt=dt}return ve-Ae}function P(ee,ve){const Te=it.getInstance(),Ae=ve,Ve=T(ee,ve);ve-=Ve>=65536?2:1;let Ze=Te.getGraphemeBreakType(Ve);for(;ve>0;){const rt=T(ee,ve),et=Te.getGraphemeBreakType(rt);if(at(et,Ze))break;ve-=rt>=65536?2:1,Ze=et}return Ae-ve}const S=/(?:[\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 A(ee){return S.test(ee)}const W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function D(ee){return W.test(ee)}const K=/^[\t\n\r\x20-\x7E]*$/;function Y(ee){return K.test(ee)}const oe=/[\u2028\u2029]/;function le(ee){return oe.test(ee)}function Se(ee){for(let ve=0,Te=ee.length;ve=11904&&ee<=55215||ee>=63744&&ee<=64255||ee>=65281&&ee<=65374}function ae(ee){return ee>=127462&&ee<=127487||ee===8986||ee===8987||ee===9200||ee===9203||ee>=9728&&ee<=10175||ee===11088||ee===11093||ee>=127744&&ee<=128591||ee>=128640&&ee<=128764||ee>=128992&&ee<=129003||ee>=129280&&ee<=129535||ee>=129648&&ee<=129750}const Ce=String.fromCharCode(65279);function Le(ee){return!!(ee&&ee.length>0&&ee.charCodeAt(0)===65279)}function de(ee,ve=!1){return ee?(ve&&(ee=ee.replace(/\\./g,"")),ee.toLowerCase()!==ee):!1}function $(ee){const ve=90-65+1;return ee=ee%(2*ve),eeve[3*Ae+1])Ae=2*Ae+1;else return ve[3*Ae+2];return 0}}it._INSTANCE=null;function Je(){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]")}function st(ee,ve){if(ee===0)return 0;const Te=ke(ee,ve);if(Te!==void 0)return Te;const Ae=T(ve,ee);return ee-=Ge(Ae),ee}function ke(ee,ve){let Te=T(ve,ee);for(ee-=Ge(Te);$e(Te)||Te===65039||Te===8419;){if(ee===0)return;Te=T(ve,ee),ee-=Ge(Te)}if(!ae(Te))return;if(ee>=0){const Ae=T(ve,ee);Ae===8205&&(ee-=Ge(Ae))}return ee}function Ge(ee){return ee>=65536?2:1}function $e(ee){return 127995<=ee&&ee<=127999}},NQs2:function(Be,ie,M){Be.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB"}},Nf5h:function(Be,ie,M){"use strict";M.d(ie,"a",function(){return k}),M.d(ie,"h",function(){return r}),M.d(ie,"l",function(){return n}),M.d(ie,"e",function(){return _}),M.d(ie,"i",function(){return c}),M.d(ie,"j",function(){return de}),M.d(ie,"c",function(){return $.a}),M.d(ie,"b",function(){return st}),M.d(ie,"g",function(){return ee}),M.d(ie,"f",function(){return Ve}),M.d(ie,"k",function(){return We}),M.d(ie,"d",function(){return se});var Q=M("q1tI"),N=M.n(Q),I=M("NQs2"),j=M.n(I),C=M("ygoZ"),R=M.n(C),H=function(G){var X=G.dataSource,Z=X===void 0?[]:X,te=G.img,ge=G.imgWidth,we=ge===void 0?346:ge,Me=G.title,qe=G.sunTitle,ot=G.bannerExtraContent;return N.a.createElement("div",{className:j.a.banner},N.a.createElement("div",{className:j.a.content},N.a.createElement("aside",null,N.a.createElement("p",null,N.a.createElement("b",null,Me),N.a.createElement("span",null,qe)),Z.length>0&&N.a.createElement("div",{className:j.a.btns},Z.map(function(ze,vt){return N.a.createElement("div",{key:vt,onClick:ze.click},ze.name,ze.sign?N.a.createElement("img",{src:R.a,width:39}):null)})),ot),N.a.createElement("img",{style:{marginTop:33,marginRight:38},src:te,width:we})))},k=H,e=M("tJVT"),O=M("6nfa"),g=M.n(O),p=M("TSYQ"),u=M.n(p),a=function(G){var X=G.dataSource,Z=X===void 0?[]:X,te=G.value,ge=G.onChange,we=G.className,Me=G.title,qe=G.titleWidth,ot=qe===void 0?41:qe,ze=G.style,vt=ze===void 0?{}:ze,bt=G.fontColor,lt=bt===void 0?"#6A7283":bt,Ot=Object(Q.useState)(0),Rt=Object(e.a)(Ot,2),xt=Rt[0],gt=Rt[1],_t=Object(Q.useState)(!1),St=Object(e.a)(_t,2),Nt=St[0],Qe=St[1],Lt=Object(Q.useRef)(null);return Object(Q.useEffect)(function(){if(Z.length!==0){var ut;(Lt==null||((ut=Lt.current)===null||ut===void 0)?void 0:ut.clientHeight)>92?gt(1):gt(0)}Z.length===0&>(0)},[Z]),N.a.createElement("div",{className:u()(g.a.row,we),style:vt},N.a.createElement("div",{style:{width:ot,marginTop:Nt?12:4},className:g.a.title},Me),N.a.createElement("div",{className:Nt?"".concat(g.a.tagsWrap," ").concat(g.a.tagsBorderWrap):g.a.tagsWrap},N.a.createElement("div",{className:g.a.bar,style:xt>0?{height:xt===1?92:"auto",overflow:xt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},N.a.createElement("div",{className:g.a.name,ref:Lt},Z==null?void 0:Z.map(function(ut){return N.a.createElement("span",{onClick:function(){return ge(ut.id)},key:ut.id,title:ut.name,style:{color:lt},className:te===ut.id?g.a.active:""},ut.name)}))),!!xt&&N.a.createElement(Q.Fragment,null,xt===1?N.a.createElement("div",{onClick:function(){var mt;gt(2),(Lt==null||((mt=Lt.current)===null||mt===void 0)?void 0:mt.clientHeight)>205?Qe(!0):Qe(!1)},className:g.a.action},"\u5C55\u5F00",N.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):N.a.createElement("div",{onClick:function(){gt(1),Qe(!1)},className:g.a.action},"\u6536\u8D77",N.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},r=a,o=M("cz0n"),s=M.n(o),i=function(G){var X=G.dataSource,Z=X===void 0?[]:X,te=G.value,ge=G.onChange,we=G.className;return N.a.createElement("div",{className:u()(s.a.tabs,we)},Z.map(function(Me){return N.a.createElement("span",{onClick:function(){return ge(Me.id)},className:te===Me.id?s.a.active:"",key:Me.id},Me.name)}))},n=i,t=M("5NDa"),b=M("5rEg"),v=M("KOXS"),m=M.n(v),x=function(G){var X,Z=G.dataSource,te=Z===void 0?[]:Z,ge=G.value,we=G.onChange,Me=G.className,qe=G.style,ot=qe===void 0?{}:qe,ze=G.placeholder,vt=Object(Q.useState)(""),bt=Object(e.a)(vt,2),lt=bt[0],Ot=bt[1],Rt=Object(Q.useState)(""),xt=Object(e.a)(Rt,2),gt=xt[0],_t=xt[1];Object(Q.useEffect)(function(){var Qe;(Qe=JSON.stringify(ge))!==null&&Qe!==void 0&&Qe.includes("{")?(Ot(ge.id),_t(ge.value)):_t(ge)},[ge]);var St=function(){we(gt||null,lt||"")},Nt=function(Lt){if(Lt===lt)return;Ot(Lt),we(gt,Lt)};return N.a.createElement("div",{className:u()(m.a.input,Me),style:ot},!!te.length&&N.a.createElement("div",{className:m.a.dropdown},N.a.createElement("div",{className:m.a.text},(X=te.find(function(Qe){return Qe.id===lt}))===null||X===void 0?void 0:X.name,N.a.createElement("i",{className:"iconfont icon-zhankai4"}),N.a.createElement("b",{className:m.a.b1}),N.a.createElement("b",{className:m.a.b2})),N.a.createElement("div",{className:m.a.menu},te.map(function(Qe,Lt){return N.a.createElement("div",{key:Lt,onClick:function(){return Nt(Qe.id)}},Qe.name)}))),N.a.createElement(b.a,{onPressEnter:St,value:gt,onChange:function(Lt){return _t(Lt.target.value||"")},bordered:!1,placeholder:ze}),N.a.createElement("i",{onClick:St,className:"iconfont icon-sousuo9 font14 pl10 current"}))},_=x,h=M("f9pc"),d=M.n(h),l=function(G){var X=G.value,Z=G.onChange,te=G.className,ge=G.total,we=G.pageSize,Me=G.style,qe=Me===void 0?{}:Me,ot=X<2,ze=X>=Math.ceil(ge/we);return ge<=we?N.a.createElement(N.a.Fragment,null):N.a.createElement("div",{className:u()(d.a.quickPager,te),style:qe},N.a.createElement("div",{onClick:function(){ot||Z(X-1,"prev")},className:ot?d.a.disabled:""},"\u4E0A\u4E00\u9875"),N.a.createElement("div",{onClick:function(){ze||Z(X+1,"next")},className:ze?d.a.disabled:""},"\u4E0B\u4E00\u9875"))},c=l,y=M("T2oS"),f=M("W9HT"),T=M("pC0b"),L=M("GzdX"),P=M("5Dmo"),S=M("3S7+"),A=M("Oe0F"),W=M.n(A),D=M("m3rI"),K=M("1vsH"),Y=M("JAbv"),oe=M.n(Y),le=M("Bq7L"),Se=M.n(le),Ee=M("MEgm"),ae=M.n(Ee),Ce=M("BdwD"),Le=function(G){var X=G.className,Z=G.dataSource,te=Z===void 0?[]:Z,ge=G.col,we=ge===void 0?4:ge,Me=G.right,qe=G.bottom,ot=qe===void 0?23:qe,ze=G.precision,vt=ze===void 0?0:ze,bt=G.wrapWidth,lt=bt===void 0?1200:bt,Ot=G.trackEventItems,Rt=G.loading,xt=Math.floor((lt-(we-1)*Me)/we);return N.a.createElement(f.a,{spinning:Rt},N.a.createElement("div",{className:u()(W.a.list,X)},!!te.length&&te.map(function(gt,_t){var St=gt.name,Nt=gt.id,Qe=gt.identifier,Lt=gt.power,ut=gt.cover_image_id,mt=gt.pic;return N.a.createElement("div",{className:W.a.wrap,key:Nt,style:{width:xt,marginRight:(1+_t)%we===0?0:Me+vt,marginBottom:ot}},N.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Qe,"/challenges"),className:W.a.li,onClick:function(rn){rn.preventDefault(),Ot&&Object(K.cb)([Ot]),Lt&&Object(K.S)("/shixuns/".concat(Qe,"/challenges"))}},N.a.createElement("div",{className:W.a.img},N.a.createElement("img",{className:W.a.cover,src:ut?"".concat(D.a.API_SERVER,"/api/attachments/").concat(ut):"".concat(D.a.IMG_SERVER,"/").concat(mt)}),gt.is_jupyter&&N.a.createElement("img",{className:W.a.sign,src:oe.a}),gt.is_jupyter_lab&&N.a.createElement("img",{className:W.a.sign,src:Se.a}),gt.is_unity_3d&&N.a.createElement("img",{className:W.a.sign,src:ae.a})),N.a.createElement("div",{className:W.a.name},N.a.createElement(S.a,{title:St||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},N.a.createElement("span",{className:W.a.e},St||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),N.a.createElement("div",{className:W.a.tags},N.a.createElement(S.a,{placement:"bottom",title:"\u5173\u5361\u6570"},N.a.createElement("span",null,N.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),N.a.createElement("span",null,gt.challenges_count))),!!gt.myshixuns_count&&N.a.createElement(S.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},N.a.createElement("span",null,N.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),N.a.createElement("span",null,gt.myshixuns_count))),N.a.createElement(S.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},N.a.createElement("span",null,N.a.createElement("span",null,gt.level))),N.a.createElement("div",{className:W.a.rate},N.a.createElement(L.a,{allowHalf:!0,disabled:!0,defaultValue:gt.score_info}),N.a.createElement("span",null,"\xA0",gt.score_info?"".concat(gt.score_info,"\u5206"):"5\u5206")))),!Lt&&N.a.createElement("div",{className:W.a.lockWrap},N.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),N.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!te.length&&N.a.createElement(Ce.a,null)))},de=Le,$=M("LicW"),Fe=M("iL++"),at=M.n(Fe),it=M("xiVL"),Je=function(G){var X=G.className,Z=G.dataSource,te=Z===void 0?[]:Z,ge=G.col,we=ge===void 0?4:ge,Me=G.right,qe=G.bottom,ot=qe===void 0?23:qe,ze=G.precision,vt=ze===void 0?0:ze,bt=G.wrapWidth,lt=bt===void 0?1200:bt,Ot=G.trackEventItems,Rt=G.loading,xt=Math.floor((lt-(we-1)*Me)/we);return N.a.createElement(f.a,{spinning:Rt},N.a.createElement("div",{className:u()(at.a.list,X)},!!te.length&&te.map(function(gt,_t){var St=gt.subject_identifier,Nt=gt.id,Qe=gt.identifier,Lt=gt.power,ut=gt.is_public!=0&>.is_public;return N.a.createElement("div",{className:at.a.wrap,key:Nt,style:{width:xt,marginRight:(1+_t)%we===0?0:Me+vt,marginBottom:ot}},N.a.createElement("a",{className:at.a.li,onClick:function(wt){wt.preventDefault()}},N.a.createElement("div",{className:at.a.top},N.a.createElement(S.a,{title:gt.name},N.a.createElement("div",{className:at.a.name},gt.name)),N.a.createElement("img",{className:at.a.img,src:D.a.IMG_SERVER+"/images/"+gt.avatar_url}),N.a.createElement("div",{className:at.a.text},gt.creator),St&&N.a.createElement("div",{className:at.a.btns},N.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),N.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ut&&N.a.createElement("div",{className:at.a.sign},"\u516C\u5F00")),N.a.createElement("div",{className:at.a.bottom},gt.visits>0&&N.a.createElement(S.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},N.a.createElement("span",null,N.a.createElement("i",{className:"iconfont icon-liulanyan"}),N.a.createElement("span",null,gt.visits))),gt.course_members_count>0&&N.a.createElement(S.a,{title:"\u6210\u5458",placement:"bottom"},N.a.createElement("span",null,N.a.createElement("i",{className:"iconfont icon-chengyuan"}),gt.course_members_count)),gt.tasks_count>0&&N.a.createElement(S.a,{title:"\u4F5C\u4E1A",placement:"bottom"},N.a.createElement("span",null,N.a.createElement("i",{className:"iconfont icon-zuoye"}),gt.tasks_count)),gt.is_end?N.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):N.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),N.a.createElement("div",{className:at.a.lockWrap},gt.is_accessible?N.a.createElement(N.a.Fragment,null,St&&N.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(St))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),N.a.createElement("div",{onClick:function(wt){Ot&&Object(K.cb)([Ot]),Object(K.S)(gt.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):N.a.createElement(N.a.Fragment,null,N.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),N.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!te.length&&N.a.createElement(Ce.a,null)))},st=Je,ke=M("f0W+"),Ge=M.n(ke),$e=function(G){var X=G.dataSource,Z=X===void 0?[]:X,te=G.value,ge=G.onChange,we=G.className,Me=G.style,qe=Me===void 0?{}:Me,ot=G.tabBarExtraContent;return N.a.createElement("div",{className:u()(Ge.a.tabs,we),style:qe},N.a.createElement("div",{className:Ge.a.tabsWrap},Z.map(function(ze,vt){return N.a.createElement("div",{onClick:function(){return ge(ze.id)},className:te===ze.id?Ge.a.active:"",key:vt},ze.name)})),N.a.createElement("div",{className:Ge.a.tabBar},ot))},ee=$e,ve=M("9JIy"),Te=M.n(ve),Ae=function(G){var X=G.className,Z=G.style,te=Z===void 0?{}:Z,ge=G.children;return N.a.createElement("div",{className:u()(Te.a.table,X),style:te},ge)},Ve=Ae,Ze=M("qVdP"),rt=M("jsC+"),et=M("lUTK"),dt=M("BvKs"),ht=M("8WcF"),ye=M.n(ht),Oe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],Ne=function(G){var X,Z=G.sortValue,te=G.dropValue,ge=G.className,we=G.onSort,Me=G.onDrop,qe=G.dataSource,ot=qe===void 0?Oe:qe;return N.a.createElement("div",{className:u()(ye.a.orderWrap,ge)},N.a.createElement(rt.a,{overlay:N.a.createElement(dt.a,null,ot.map(function(ze,vt){return N.a.createElement(dt.a.Item,{key:vt,onClick:function(){return Me(ze.id)}},ze.name)}))},N.a.createElement("span",{className:ye.a.orderTextWrap},(X=ot.find(function(ze){return te===ze.id}))===null||X===void 0?void 0:X.name)),N.a.createElement("span",{className:ye.a.orderIconWrap},N.a.createElement("span",{className:ye.a.orderAsc},N.a.createElement("i",{className:Z==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(ye.a.cursorPointer," ").concat(ye.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(ye.a.cursorPointer),onClick:function(){return we(Z==="asc"?"desc":"asc")}})),N.a.createElement("span",{className:ye.a.orderDesc},N.a.createElement("i",{className:Z==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(ye.a.cursorPointer," ").concat(ye.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(ye.a.cursorPointer),onClick:function(){return we(Z==="asc"?"desc":"asc")}}))))},We=Ne,Re=M("siWv"),De=M.n(Re),he=function(G){var X=G.className,Z=G.style,te=G.children,ge=G.onClick;return N.a.createElement("div",{onClick:ge,className:u()(De.a.btn,X),style:Z},te)},se=he},NvD2:function(Be,ie,M){"use strict";M.d(ie,"a",function(){return R});var Q=M("Kwbf");function N(H,k){var e=new Set;return H.forEach(function(O){k.has(O)||e.add(O)}),e}function I(H){var k=H||{},e=k.disabled,O=k.disableCheckbox,g=k.checkable;return!!(e||O)||g===!1}function j(H,k,e,O){for(var g=new Set(H),p=new Set,u=0;u<=e;u+=1){var a=k.get(u)||new Set;a.forEach(function(i){var n=i.key,t=i.node,b=i.children,v=b===void 0?[]:b;g.has(n)&&!O(t)&&v.filter(function(m){return!O(m.node)}).forEach(function(m){g.add(m.key)})})}for(var r=new Set,o=e;o>=0;o-=1){var s=k.get(o)||new Set;s.forEach(function(i){var n=i.parent,t=i.node;if(O(t)||!i.parent||r.has(i.parent.key))return;if(O(i.parent.node)){r.add(n.key);return}var b=!0,v=!1;(n.children||[]).filter(function(m){return!O(m.node)}).forEach(function(m){var x=m.key,_=g.has(x);b&&!_&&(b=!1),!v&&(_||p.has(x))&&(v=!0)}),b&&g.add(n.key),v&&p.add(n.key),r.add(n.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(N(p,g))}}function C(H,k,e,O,g){for(var p=new Set(H),u=new Set(k),a=0;a<=O;a+=1){var r=e.get(a)||new Set;r.forEach(function(n){var t=n.key,b=n.node,v=n.children,m=v===void 0?[]:v;!p.has(t)&&!u.has(t)&&!g(b)&&m.filter(function(x){return!g(x.node)}).forEach(function(x){p.delete(x.key)})})}u=new Set;for(var o=new Set,s=O;s>=0;s-=1){var i=e.get(s)||new Set;i.forEach(function(n){var t=n.parent,b=n.node;if(g(b)||!n.parent||o.has(n.parent.key))return;if(g(n.parent.node)){o.add(t.key);return}var v=!0,m=!1;(t.children||[]).filter(function(x){return!g(x.node)}).forEach(function(x){var _=x.key,h=p.has(_);v&&!h&&(v=!1),!m&&(h||u.has(_))&&(m=!0)}),v||p.delete(t.key),m&&u.add(t.key),o.add(t.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(N(u,p))}}function R(H,k,e,O){var g=[],p;O?p=O:p=I;var u=new Set(H.filter(function(s){var i=!!e[s];return i||g.push(s),i})),a=new Map,r=0;Object.keys(e).forEach(function(s){var i=e[s],n=i.level,t=a.get(n);t||(t=new Set,a.set(n,t)),t.add(i),r=Math.max(r,n)}),Object(Q.a)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var o;return k===!0?o=j(u,a,r,p):o=C(u,k.halfCheckedKeys,a,r,p),o}},OZM5:function(Be,ie,M){"use strict";M.d(ie,"b",function(){return O}),M.d(ie,"a",function(){return g}),M.d(ie,"k",function(){return p}),M.d(ie,"h",function(){return u}),M.d(ie,"i",function(){return a}),M.d(ie,"g",function(){return r}),M.d(ie,"c",function(){return o}),M.d(ie,"d",function(){return s}),M.d(ie,"j",function(){return t}),M.d(ie,"e",function(){return b}),M.d(ie,"f",function(){return v});var Q=M("KQm4"),N=M("U8pU"),I=M("Ff2n"),j=M("q1tI"),C=M.n(j),R=M("Kwbf"),H=M("WaYH"),k=.25,e=2;function O(m,x){var _=m.slice(),h=_.indexOf(x);return h>=0&&_.splice(h,1),_}function g(m,x){var _=m.slice();return _.indexOf(x)===-1&&_.push(x),_}function p(m){return m.split("-")}function u(m,x){return"".concat(m,"-").concat(x)}function a(m){return m&&m.type&&m.type.isTreeNode}function r(m,x){var _=[m],h=x[m];function d(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(c){var y=c.key,f=c.children;_.push(y),d(f)})}return d(h.children),_}function o(m,x){var _=m.clientY,h=x.selectHandle.getBoundingClientRect(),d=h.top,l=h.bottom,c=h.height,y=Math.max(c*k,e);return _<=d+y?-1:_>=l-y?1:0}function s(m,x){if(!m)return;var _=x.multiple;return _?m.slice():m.length?[m[0]]:m}var i=function(x){return x};function n(m,x){if(!m)return[];var _=x||{},h=_.processProps,d=h===void 0?i:h,l=Array.isArray(m)?m:[m];return l.map(function(c){var y=c.children,f=Object(I.a)(c,["children"]),T=n(y,x);return C.a.createElement(H.a,Object.assign({},d(f)),T)})}function t(m){if(!m)return null;var x;if(Array.isArray(m))x={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(N.a)(m)==="object")x={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(R.a)(!1,"`checkedKeys` is not an array or an object"),null;return x}function b(m,x){var _=new Set;function h(d){if(_.has(d))return;var l=x[d];if(!l)return;_.add(d);var c=l.parent,y=l.node;if(y.disabled)return;c&&h(c.key)}return(m||[]).forEach(function(d){h(d)}),Object(Q.a)(_)}function v(m){var x={};return Object.keys(m).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(x[_]=m[_])}),x}},Oe0F:function(Be,ie,M){Be.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},"SA+Z":function(Be,ie,M){var Q=M("wTVA"),N=M("EbDI"),I=M("ZhPi"),j=M("wkBT");function C(R){return Q(R)||N(R)||I(R)||j()}Be.exports=C,Be.exports.__esModule=!0,Be.exports.default=Be.exports},SJMd:function(Be,ie){/**
* @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 M,Q,N,I=!1,j,C;window.PR_SHOULD_USE_CONTINUATION=!0;var R,H;(function(){var k=window,e=["break,continue,do,else,for,if,return,while"],O=[e,"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"],g=[O,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],p=[g,"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"],u=[g,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[g,"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"],r="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",o=[g,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="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",i=[e,"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"],n=[e,"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"],t=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[p,a,u,o,s,i,n,t],v=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,m="str",x="kwd",_="com",h="typ",d="lit",l="pun",c="pln",y="tag",f="dec",T="src",L="atn",P="atv",S="nocode",A="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(ke){for(var Ge=0,$e=!1,ee=!1,ve=0,Te=ke.length;ve122||(G<65||re>90||Ne.push([Math.max(65,re)|32,Math.min(G,90)|32]),G<97||re>122||Ne.push([Math.max(97,re)&~32,Math.min(G,122)&~32]))}}Ne.sort(function(ge,we){return ge[0]-we[0]||we[1]-ge[1]});for(var X=[],Z=[],De=0;Dete[0]&&(te[1]+1>te[0]&&Re.push("-"),Re.push(rt(te[1])))}return Re.push("]"),Re.join("")}function dt(ye){for(var Oe=ye.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")),Ne=Oe.length,We=[],Re=0,De=0;Re=2&&re==="["?Oe[Re]=et(he):re!=="\\"&&(Oe[Re]=he.replace(/[a-zA-Z]/g,function(Z){var te=Z.charCodeAt(0);return"["+String.fromCharCode(te&~32,te|32)+"]"}))}return Oe.join("")}for(var ht=[],ve=0,Te=ke.length;ve=0;)$e[ht.charAt(ye)]=dt;var Oe=dt[1],Ne=""+Oe;Ze.hasOwnProperty(Ne)||(Ve.push(Oe),Ze[Ne]=null)}Ve.push(/[\0-\uffff]/),ee=W(Ve)})();var ve=Ge.length,Te=function(Ae){for(var Ve=Ae.sourceCode,Ze=Ae.basePos,rt=Ae.sourceNode,et=[Ze,c],dt=0,ht=Ve.match(ee)||[],ye={},Oe=0,Ne=ht.length;Oe=5&&Re.substring(0,5)==="lang-",he&&!(De&&typeof De[1]=="string")&&(he=!1,Re=T),he||(ye[We]=Re)}var G=dt;if(dt+=We.length,!he)et.push(Ze+G,Re);else{var X=De[1],Z=We.indexOf(X),te=Z+X.length;De[2]&&(te=We.length-De[2].length,Z=te-X.length);var ge=Re.substring(5);K(rt,Ze+G,We.substring(0,Z),Te,et),K(rt,Ze+G+Z,X,$(ge,X),et),K(rt,Ze+G+te,We.substring(te),Te,et)}}Ae.decorations=et};return Te}function Se(ke){var Ge=[],$e=[];ke.tripleQuotedStrings?Ge.push([m,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ke.multiLineStrings?Ge.push([m,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ge.push([m,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ke.verbatimStrings&&$e.push([m,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ee=ke.hashComments;ee&&(ke.cStyleComments?(ee>1?Ge.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ge.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),$e.push([m,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ge.push([_,/^#[^\r\n]*/,null,"#"])),ke.cStyleComments&&($e.push([_,/^\/\/[^\r\n]*/,null]),$e.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=ke.regexLiterals;if(ve){var Te=ve>1?"":`
\r`,Ae=Te?".":"[\\S\\s]",Ve="/(?=[^/*"+Te+"])(?:[^/\\x5B\\x5C"+Te+"]|\\x5C"+Ae+"|\\x5B(?:[^\\x5C\\x5D"+Te+"]|\\x5C"+Ae+")*(?:\\x5D|$))+/";$e.push(["lang-regex",RegExp("^"+A+"("+Ve+")")])}var Ze=ke.types;Ze&&$e.push([h,Ze]);var rt=(""+ke.keywords).replace(/^ | $/g,"");rt.length&&$e.push([x,new RegExp("^(?:"+rt.replace(/[\s,]+/g,"|")+")\\b"),null]),Ge.push([c,/^\s+/,null,` \r
\xA0`]);var et="^.[^\\s\\w.$@'\"`/\\\\]*";return ke.regexLiterals&&(et+="(?!s*/)"),$e.push([d,/^@[a-z_$][a-z_$@0-9]*/i,null],[h,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[d,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[l,new RegExp(et),null]),le(Ge,$e)}var Ee=Se({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ae(ke,Ge,$e){for(var ee=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,Te=ke.ownerDocument,Ae=Te.createElement("li");ke.firstChild;)Ae.appendChild(ke.firstChild);var Ve=[Ae];function Ze(Oe){var Ne=Oe.nodeType;if(Ne==1&&!ee.test(Oe.className))if(Oe.nodeName==="br")rt(Oe),Oe.parentNode&&Oe.parentNode.removeChild(Oe);else for(var We=Oe.firstChild;We;We=We.nextSibling)Ze(We);else if((Ne==3||Ne==4)&&$e){var Re=Oe.nodeValue,De=Re.match(ve);if(De){var he=Re.substring(0,De.index);Oe.nodeValue=he;var se=Re.substring(De.index+De[0].length);if(se){var re=Oe.parentNode;re.insertBefore(Te.createTextNode(se),Oe.nextSibling)}rt(Oe),he||Oe.parentNode.removeChild(Oe)}}}function rt(Oe){for(;!Oe.nextSibling;)if(Oe=Oe.parentNode,!Oe)return;function Ne(De,he){var se=he?De.cloneNode(!1):De,re=De.parentNode;if(re){var G=Ne(re,1),X=De.nextSibling;G.appendChild(se);for(var Z=X;Z;Z=X)X=Z.nextSibling,G.appendChild(Z)}return se}for(var We=Ne(Oe.nextSibling,0),Re;(Re=We.parentNode)&&Re.nodeType===1;)We=Re;Ve.push(We)}for(var et=0;et=re&&(Ze+=2),Te>=G&&(dt+=2)}}finally{Re&&(Re.style.display=De)}}var Le={};function de(ke,Ge){for(var $e=Ge.length;--$e>=0;){var ee=Ge[$e];Le.hasOwnProperty(ee)?k.console&&console.warn("cannot override language handler %s",ee):Le[ee]=ke}}function $(ke,Ge){return ke&&Le.hasOwnProperty(ke)||(ke=/^\s*]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[l,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^