(window.webpackJsonp=window.webpackJsonp||[]).push([[214,5,7,8,10,14],{"+92d":function(je,ne,N){je.exports=N.p+"static/b1.2ca4a493.svg"},"+GGh":function(je,ne){je.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+ugmeamD1jINn9EbtE4GiWcdm5hGHa7LOMMQtA4myjgMNkgLmHolDpmMO8Xgh9jOk8Y9kwrMFTZCweBl1YJEC60OrBpc8tlislSNtkgDU0Z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rA3YWza8V+anyzz5HIJuZMX4xGQ7IUOrA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"+ua5":function(je,ne,N){},"/cxE":function(je,ne,N){"use strict";N.d(ne,"f",function(){return I}),N.d(ne,"g",function(){return j}),N.d(ne,"h",function(){return C}),N.d(ne,"e",function(){return W}),N.d(ne,"b",function(){return k}),N.d(ne,"c",function(){return e}),N.d(ne,"d",function(){return O}),N.d(ne,"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 M=new Q;function I(p){W(p)||M.onUnexpectedError(p);return}function j(p){W(p)||M.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 W(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(je,ne,N){"use strict";N.d(ne,"a",function(){return M});class Q{constructor(I){this.element=I,this.next=Q.Undefined,this.prev=Q.Undefined}}Q.Undefined=new Q(void 0);class M{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 W=this._last;this._last=C,C.prev=W,W.next=C}else{const W=this._first;this._first=C,C.next=W,W.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(je,ne,N){"use strict";N.d(ne,"a",function(){return M});function Q(I,j){let C;return j.length===0?C=I:C=I.replace(/\{(\d+)\}/g,function(R,W){const k=W[0];return typeof j[k]!="undefined"?j[k]:R}),C}function M(I,j,...C){return Q(j,C)}},"5A5F":function(je,ne,N){je.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(je,ne,N){"use strict";var Q,M;function I(j,C,R){var W=function(k,e){return j.js_beautify(k,e)};return W.js=j.js_beautify,W.css=C.css_beautify,W.html=R.html_beautify,W.js_beautify=j.js_beautify,W.css_beautify=C.css_beautify,W.html_beautify=R.html_beautify,W}!(Q=[N("6UM0"),N("TXwP"),N("psGv")],M=function(j,C,R){return I(j,C,R)}.apply(ne,Q),M!==void 0&&(je.exports=M))},"5Y4S":function(je,ne,N){"use strict";N.d(ne,"a",function(){return I});var Q=N("MNsG");const M=Q.b.performance&&typeof Q.b.performance.now=="function";class I{constructor(j){this._highResolution=M&&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(je,ne,N){"use strict";N.d(ne,"a",function(){return m});var Q=N("wx14"),M=N("rePB"),I=N("VTBJ"),j=N("1OyB"),C=N("vuIU"),R=N("Ji7U"),W=N("LK+K"),k=N("q1tI"),e=N.n(k),O=N("TSYQ"),g=N.n(O),p=function(_){var h,d="".concat(_.rootPrefixCls,"-item"),l=g()(d,"".concat(d,"-").concat(_.page),(h={},Object(M.a)(h,"".concat(d,"-active"),_.active),Object(M.a)(h,_.className,!!_.className),Object(M.a)(h,"".concat(d,"-disabled"),!_.page),h)),c=function(){_.onClick(_.page)},v=function(T){_.onKeyPress(T,_.onClick,_.page)};return e.a.createElement("li",{title:_.showTitle?_.page:null,className:l,onClick:c,onKeyPress:v,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(W.a)(h);function h(){var d;Object(j.a)(this,h);for(var l=arguments.length,c=new Array(l),v=0;v=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,v=l.current;return!c||isNaN(c)?v:Number(c)}},{key:"getPageSizeOptions",value:function(){var l=this.props,c=l.pageSize,v=l.pageSizeOptions;return v.some(function(f){return f.toString()===c.toString()})?v:v.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,v=c.pageSize,f=c.locale,T=c.rootPrefixCls,L=c.changeSize,P=c.quickGo,S=c.goButton,A=c.selectComponentClass,H=c.buildOptionText,D=c.selectPrefixCls,K=c.disabled,V=this.state.goInputText,oe="".concat(T,"-options"),le=A,Ce=null,xe=null,ie=null;if(!L&&!P)return null;var Se=this.getPageSizeOptions();if(L&&le){var Pe=Se.map(function(de,$){return e.a.createElement(le.Option,{key:$,value:de.toString()},(H||l.buildOptionText)(de))});Ce=e.a.createElement(le,{disabled:K,prefixCls:D,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(v||Se[0]).toString(),onChange:this.changeSize,getPopupContainer:function($){return $.parentNode}},Pe)}return P&&(S&&(ie=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)),xe=e.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},f.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:V,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),f.page,ie)),e.a.createElement("li",{className:"".concat(oe)},Ce,xe)}}]),h}(e.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var o=r,s=N("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 y=function(x){Object(R.a)(h,x);var _=Object(W.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 H=l.state.pageSize;return l.props.onChange(S,H),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),H=2;H=v?T=v:T=Number(c),T}},{key:"getShowSizeChanger",value:function(){var l=this.props,c=l.showSizeChanger,v=l.total,f=l.totalBoundaryShowSizeChanger;return typeof c!="undefined"?c:v>f}},{key:"renderPrev",value:function(l){var c=this.props,v=c.prevIcon,f=c.itemRender,T=f(l,"prev",this.getItemIcon(v,"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,v=c.nextIcon,f=c.itemRender,T=f(l,"next",this.getItemIcon(v,"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,v=c.prefixCls,f=c.className,T=c.style,L=c.disabled,P=c.hideOnSinglePage,S=c.total,A=c.locale,H=c.showQuickJumper,D=c.showLessItems,K=c.showTitle,V=c.showTotal,oe=c.simple,le=c.itemRender,Ce=c.showPrevNextJumpers,xe=c.jumpPrevIcon,ie=c.jumpNextIcon,Se=c.selectComponentClass,Pe=c.selectPrefixCls,de=c.pageSizeOptions,$=this.state,Ne=$.current,lt=$.pageSize,it=$.currentInputValue;if(P===!0&&S<=lt)return null;var Je=b(void 0,this.state,this.props),at=[],Ue=null,ze=null,et=null,ee=null,ge=null,_e=H&&H.goButton,we=D?1:2,Ve=Ne-1>0?Ne-1:0,Ze=Ne+1=we*2&&Ne!==1+2&&(at[0]=Object(k.cloneElement)(at[0],{className:"".concat(v,"-item-after-jump-prev")}),at.unshift(Ue)),Je-Ne>=we*2&&Ne!==Je-2&&(at[at.length-1]=Object(k.cloneElement)(at[at.length-1],{className:"".concat(v,"-item-before-jump-next")}),at.push(ze)),ke!==1&&at.unshift(et),He!==Je&&at.push(ee)}var fe=null;V&&(fe=e.a.createElement("li",{className:"".concat(v,"-total-text")},V(S,[S===0?0:(Ne-1)*lt+1,Ne*lt>S?S:Ne*lt])));var re=!this.hasPrev()||!Je,ae=!this.hasNext()||!Je;return e.a.createElement("ul",Object(Q.a)({className:g()(v,f,Object(M.a)({},"".concat(v,"-disabled"),L)),style:T,unselectable:"unselectable",ref:this.savePaginationNode},rt),fe,e.a.createElement("li",{title:K?A.prev_page:null,onClick:this.prev,tabIndex:re?null:0,onKeyPress:this.runIfEnterPrev,className:g()("".concat(v,"-prev"),Object(M.a)({},"".concat(v,"-disabled"),re)),"aria-disabled":re},this.renderPrev(Ve)),at,e.a.createElement("li",{title:K?A.next_page:null,onClick:this.next,tabIndex:ae?null:0,onKeyPress:this.runIfEnterNext,className:g()("".concat(v,"-next"),Object(M.a)({},"".concat(v,"-disabled"),ae)),"aria-disabled":ae},this.renderNext(Ze)),e.a.createElement(o,{disabled:L,locale:A,rootPrefixCls:v,selectComponentClass:Se,selectPrefixCls:Pe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ne,pageSize:lt,pageSizeOptions:de,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var v={};if("current"in l&&(v.current=l.current,l.current!==c.current&&(v.currentInputValue=v.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||(v.current=f,v.currentInputValue=f),v.pageSize=l.pageSize}return v}}]),h}(e.a.Component);y.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=y},"6RRn":function(je,ne,N){"use strict";var Q=N("wCXF"),M=N("n6Qo");N.d(ne,"b",function(){return M.a});var I=N("IBYe"),j=N("6eGT"),C=N("hW8S");N.d(ne,"a",function(){return C.a}),ne.c=Q.b},"6UM0":function(je,ne,N){var Q,M;(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 y(D){for(var K={},V=0;VV&&(V=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:V,alignment:0,line_indent_level:D?D.line_indent_level:V,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 V=new o(D,this._options);return this._tokens=V.tokenize(),D},A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D,K=this._reset(this._source_text),V=this._options.eol;this._options.eol==="auto"&&(V=`
`,K&&a.lineBreak.test(K||"")&&(V=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(V),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 V=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 Ce=0;Ce0,K);else if(this._options.max_preserve_newlines&&V>this._options.max_preserve_newlines&&(V=this._options.max_preserve_newlines),this._options.preserve_newlines&&V>1){this.print_newline(!1,K);for(var xe=1;xe0&&(!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&&v(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,H)&&!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 V=this._tokens.peek(-3);if(this._options.space_after_named_function&&V){var oe=this._tokens.peek(-4);x(V,["async","function"])||V.text==="*"&&x(oe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===c.ObjectLiteral?(V.text==="{"||V.text===","||V.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(),v(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(),V=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):V&&(t(V.text,[":",","])&&t(K.type,[n.STRING,n.WORD,n.RESERVED])||t(K.text,["get","set","..."])&&t(V.type,[n.WORD,n.RESERVED]))?t(this._last_last_text,["class","interface"])&&!t(V.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 Ce=0,xe=null;this._flags.inline_frame=!0;do if(Ce+=1,xe=this._tokens.peek(Ce-1),xe.newlines){this._flags.inline_frame=!1;break}while(xe.type!==n.EOF&&!(xe.type===n.END_BLOCK&&xe.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,H)?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 V="NONE";if(this._flags.last_token.type===n.END_BLOCK?this._previous_flags.inline_frame?V="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?V="NEWLINE":(V="SPACE",this._output.space_before_token=!0):V="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&this._flags.mode===c.BlockStatement?V="NEWLINE":this._flags.last_token.type===n.SEMICOLON&&L(this._flags.mode)?V="SPACE":this._flags.last_token.type===n.STRING?V="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,["{",","]))?V="SPACE":this._flags.last_token.type===n.START_BLOCK?this._flags.inline_frame?V="SPACE":V="NEWLINE":this._flags.last_token.type===n.END_EXPR&&(this._output.space_before_token=!0,V="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"?V="SPACE":V="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 V==="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():V==="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])),V=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,Ce=!0,xe=!1;if(D.text===":"?this._flags.ternary_depth===0?le=!1:(this._flags.ternary_depth-=1,xe=!0):D.text==="?"&&(this._flags.ternary_depth+=1),!V&&!K&&this._options.preserve_newlines&&t(D.text,i)){var ie=D.text===":",Se=ie&&xe,Pe=ie&&!xe;switch(this._options.operator_position){case d.before_newline:this._output.space_before_token=!Pe,this.print_token(D),(!ie||Se)&&this.allow_wrap_or_preserved_newline(D),this._output.space_before_token=!0;return;case d.after_newline:this._output.space_before_token=!0,!ie||Se?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:Pe||this.allow_wrap_or_preserved_newline(D),le=!(this._output.just_added_newline()||Pe),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();Ce=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,Ce=!1;else if(t(D.text,["--","++","!","~"])||V){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,Ce=!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,["--","++"])&&(Ce=!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=Ce},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 V=f(D.text),oe,le=!1,Ce=!1,xe=D.whitespace_before,ie=xe.length;if(this.print_newline(!1,K),this.print_token_line_indentation(D),this._output.add_token(V[0]),this.print_newline(!1,K),V.length>1){for(V=V.slice(1),le=P(V,"*"),Ce=S(V,xe),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"]),v=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),H=new i(this._input).read_options(this._options);this.__patterns={template:H,identifier:H.starting_with(o.identifier).matching(o.identifierMatch),number:A.matching(y),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:H.until(/['\\\n\r\u2028\u2029]/),double_quote:H.until(/["\\\n\r\u2028\u2029]/),template_text:H.until(/[`\\$]/),template_expression:H.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 H=this._input.peek();return H===null?this._create_token(t.EOF,""):(A=A||this._read_non_javascript(H),A=A||this._read_string(H),A=A||this._read_word(P),A=A||this._read_singles(H),A=A||this._read_comment(H),A=A||this._read_regexp(H,P),A=A||this._read_xml(H,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"))&&v.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 H=b.get_directives(A);H&&H.ignore==="start"&&(A+=b.readIgnored(this._input)),A=A.replace(o.allLineBreaks,`
`),S=this._create_token(t.BLOCK_COMMENT,A),S.directives=H}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(),H=!1,D=!1;this._input.hasNext()&&(H||D||this._input.peek()!==P)&&!this._input.testChar(o.newline);)A+=this._input.peek(),H?H=!1:(H=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="",H=this.__patterns.xml.read_match();if(H){for(var D=H[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=D.indexOf("{")===0,V=0;H;){var oe=!!H[1],le=H[2],Ce=!!H[H.length-1]||le.slice(0,8)==="![CDATA[";if(!Ce&&(le===D||K&&le.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(oe?--V:++V),A+=H[0],V<=0)break;H=this.__patterns.xml.read_match()}return H||(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,H=new p(P),D=null;H.hasNext();)if(D=H.match(/([\s]|[^\\]|\\\\)+/g),D&&(S+=D[0]),H.peek()==="\\"){if(H.next(),H.peek()==="x")D=H.match(/x([0-9A-Fa-f]{2})/g);else if(H.peek()==="u")D=H.match(/u([0-9A-Fa-f]{4})/g);else{S+="\\",H.hasNext()&&(S+=H.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 H,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(),V="";this._input.hasNext();){if(V=this._input.next(),V===P||!S&&o.newline.test(V)){this._input.back();break}else V==="\\"&&this._input.hasNext()?(H=this._input.peek(),H==="x"||H==="u"?this.has_char_escapes=!0:H==="\r"&&this._input.peek(1)===`
`&&this._input.next(),V+=this._input.next()):A&&(A==="${"&&V==="$"&&this._input.peek()==="{"&&(V+=this._input.next()),A===V&&(P==="`"?V+=this._read_string_recursive("}",S,"`"):V+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(V+=this._input.next())));V+=D.read(),K+=V}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=[],y=new a;n.type!==o.EOF;){for(i=this._get_next_token(n,t);this._is_comment(i);)y.add(i),i=this._get_next_token(n,t);y.isEmpty()||(i.comments_before=y,y=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 W(e){var O=R[e];if(O!==void 0)return O.exports;var g=R[e]={exports:{}};return C[e](g,g.exports,W),g.exports}var k=W(0);I=k})();var j=I;!(Q=[],M=function(){return{js_beautify:j}}.apply(ne,Q),M!==void 0&&(je.exports=M))})()},"6eGT":function(je,ne,N){"use strict";function Q(M){return null}ne.a=Q},"6nfa":function(je,ne,N){je.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(je,ne,N){"use strict";N.d(ne,"f",function(){return Q}),N.d(ne,"l",function(){return M}),N.d(ne,"k",function(){return I}),N.d(ne,"j",function(){return j}),N.d(ne,"g",function(){return C}),N.d(ne,"m",function(){return R}),N.d(ne,"h",function(){return W}),N.d(ne,"n",function(){return k}),N.d(ne,"c",function(){return e}),N.d(ne,"a",function(){return O}),N.d(ne,"i",function(){return g}),N.d(ne,"o",function(){return p}),N.d(ne,"e",function(){return r}),N.d(ne,"d",function(){return o}),N.d(ne,"p",function(){return s}),N.d(ne,"b",function(){return i});function Q(n){return Array.isArray(n)}function M(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 W(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 y=0;yfunction(){const x=Array.prototype.slice.call(arguments,0);return t(m,x)};let y={};for(const m of n)y[m]=b(m);return y}function s(n){return n===null?void 0:n}function i(n,t="Unreachable"){throw new Error(t)}},"815F":function(je,ne,N){"use strict";N.d(ne,"e",function(){return W}),N.d(ne,"c",function(){return e}),N.d(ne,"d",function(){return O}),N.d(ne,"a",function(){return p}),N.d(ne,"f",function(){return u}),N.d(ne,"b",function(){return a});var Q=N("KQm4"),M=N("VTBJ"),I=N("Ff2n"),j=N("Zm9Q"),C=N("Kwbf"),R=N("OZM5");function W(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,y=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(y,"".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,y=b.children,m=Object(I.a)(b,["children"]),x=Object(M.a)({key:t},m),_=o(y);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(y,m){var x=Object(R.h)(b?b.pos:"0",m),_=W(y.key,x),h=Object(M.a)(Object(M.a)({},y),{},{parent:b,pos:x,children:null,data:y,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(y.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,y){return W(b.key,y)};function n(t,b,y){var m=t?t.children:r,x=t?Object(R.h)(y.pos,b):"0";if(t){var _=i(t,x),h={node:t,index:b,pos:x,key:_,parentPos:y.node?y.pos:null,level:y.level+1};o(h)}m&&m.forEach(function(d,l){n(d,l,{node:t,pos:x,level:y?y.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={},y={},m={posEntities:b,keyEntities:y};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,v=x.level,f={node:_,index:h,key:l,pos:d,level:v},T=W(l,d);b[d]=f,y[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,y=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:y.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,y=r.halfChecked,m=r.dragOver,x=r.dragOverGapTop,_=r.dragOverGapBottom,h=r.pos,d=r.active,l=Object(M.a)(Object(M.a)({},o),{},{expanded:s,selected:i,checked:n,loaded:t,loading:b,halfChecked:y,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(je,ne,N){"use strict";N.d(ne,"a",function(){return C}),N.d(ne,"b",function(){return R}),N.d(ne,"d",function(){return W}),N.d(ne,"e",function(){return k}),N.d(ne,"c",function(){return e});var Q=N("MI8n"),M=N("pmY6"),I=N("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 M.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 M.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 W extends C{constructor(O){super(W.ID,O,O?"separator text":"separator");this.checked=!1,this.enabled=!1}}W.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(je,ne,N){je.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(je,ne,N){je.exports={button:"button___1wy9m"}},"8mKB":function(je,ne,N){"use strict";var Q=N("rePB"),M=N("1OyB"),I=N("vuIU"),j=N("Ji7U"),C=N("md7G"),R=N("foSv"),W=N("q1tI"),k=N.n(W),e=N("m+aA"),O=N("TSYQ"),g=N.n(O),p=N("4IlW");function u(d){var l=d.pageXOffset,c="scrollLeft";if(typeof l!="number"){var v=d.document;l=v.documentElement[c],typeof l!="number"&&(l=v.body[c])}return l}function a(d){var l,c,v=d.ownerDocument,f=v.body,T=v&&v.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,v=c.defaultView||c.parentWindow;return l.left+=u(v),l.left}function o(d){var l=s();return function(){var v=Object(R.a)(d),f;if(l){var T=Object(R.a)(this).constructor;f=Reflect.construct(v,arguments,T)}else f=v.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 v;return Object(M.a)(this,c),v=l.apply(this,arguments),v.onHover=function(f){var T=v.props,L=T.onHover,P=T.index;L(f,P)},v.onClick=function(f){var T=v.props,L=T.onClick,P=T.index;L(f,P)},v.onKeyDown=function(f){var T=v.props,L=T.onClick,P=T.index;f.keyCode===13&&L(f,P)},v}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,H=L+1,D=T;return P===0&&L===0&&A?D+=" ".concat(T,"-focused"):S&&P+.5>=H&&PK?"true":"false","aria-posinset":K+1,"aria-setsize":V,tabIndex:S?-1:0},k.a.createElement("div",{className:"".concat(A,"-first")},le),k.a.createElement("div",{className:"".concat(A,"-second")},le)));return D&&(Ce=D(Ce,this.props)),Ce}}]),c}(k.a.Component);function n(d,l){var c=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);l&&(v=v.filter(function(f){return Object.getOwnPropertyDescriptor(d,f).enumerable})),c.push.apply(c,v)}return c}function t(d){for(var l=1;l0&&!V||P===p.a.RIGHT&&oe>0&&V?(H?oe-=.5:oe-=1,f.changeValue(oe),L.preventDefault()):P===p.a.LEFT&&oeV/2||!A&&T-K=U.length?G.slice(U.length):G}).join(`
`)}var s=[],i=[""],n=new a.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){s.length=0,i=[""]}var y={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 G=B[E];U.push("- "+G.text+""),E++;var F=[];return E=m(B,E,G.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],G=o(U,w[3]||""),F=w[2]?w[2].trim():w[2];if(["latex","katex","math"].indexOf(F)>=0){var me=l(),Ge=G;G=me,c[me]={type:"block",expression:Ge}}return{type:"code",raw:U,lang:F,text:G}}}},h=/(?:\${2})([^\n`]+?)(?:\${2})/gi,d=0,l=function(){return"__special_katext_id_".concat(d++,"__")},c={};function v(){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,H=N("SJMd"),D=N("ulZh"),K=N.n(D),V=N("m3rI"),oe=N("Oy/b"),le=N("p5ED"),Ce=N("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 xe=function(B,E){return(xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,U){w.__proto__=U}||function(w,U){for(var G in U)Object.prototype.hasOwnProperty.call(U,G)&&(w[G]=U[G])})(B,E)};function ie(B,E){function w(){this.constructor=B}xe(B,E),B.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}function Se(B,E,w,U){return new(w||(w=Promise))(function(G,F){function me(St){try{dt(U.next(St))}catch(Ye){F(Ye)}}function Ge(St){try{dt(U.throw(St))}catch(Ye){F(Ye)}}function dt(St){var Ye;St.done?G(St.value):(Ye=St.value,Ye instanceof w?Ye:new w(function(Dt){Dt(Ye)})).then(me,Ge)}dt((U=U.apply(B,E||[])).next())})}function Pe(B,E){var w,U,G,F,me={label:0,sent:function(){if(1&G[0])throw G[1];return G[1]},trys:[],ops:[]};return F={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Ge(dt){return function(St){return function(Ye){if(w)throw new TypeError("Generator is already executing.");for(;me;)try{if(w=1,U&&(G=2&Ye[0]?U.return:Ye[0]?U.throw||((G=U.return)&&G.call(U),0):U.next)&&!(G=G.call(U,Ye[1])).done)return G;switch(U=0,G&&(Ye=[2&Ye[0],G.value]),Ye[0]){case 0:case 1:G=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(!(G=me.trys,(G=G.length>0&&G[G.length-1])||Ye[0]!==6&&Ye[0]!==2)){me=0;continue}if(Ye[0]===3&&(!G||Ye[1]>G[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 G=document.createElement("div");G.className=this.toolbarBlockStyleClass.name,G.style.whiteSpace="nowrap",G.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(G),this.addActionButton(G,'',"render"),this.addActionButton(G,'',"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}(),et=function(){function B(E,w,U,G){this.panels=[],this.panelButtons=[],this.markerjsContainer=E,this.displayMode=w,this.uiStyleSettings=U,this.styles=G,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return B.prototype.addStyles=function(){var E;this.toolboxStyleClass=this.styles.addClass(new Ue("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 Ue("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var w=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ue("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ue("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ue("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 Ue("toolbox-panel-row_colors",`
background-color: `+((E=this.uiStyleSettings.toolboxBackgroundColor)!==null&&E!==void 0?E:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ue("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 Ue("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ue("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new at("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new at("."+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,G=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=G.uiStyleSettings;var Ge=document.createElement("div");Ge.className=G.toolboxButtonStyleClass.name+" "+((me=G.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:G.toolboxButtonStyleColorsClass.name),Ge.innerHTML=F.icon,Ge.title=F.title,Ge.addEventListener("click",function(){G.panelButtonClick(F)}),G.panelButtons.push(Ge),G.buttonRow.appendChild(Ge)}),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 G=E.getUi();G.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(G),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 Ge,dt;F.className=w.toolboxButtonStyleClass.name+" "+(me===U?""+((Ge=w.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:w.toolboxActiveButtonStyleColorsClass.name):""+((dt=w.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&dt!==void 0?dt:w.toolboxButtonStyleColorsClass.name))})},B}(),ee=function(B,E){this.title=B,this.icon=E},ge=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'')||this;return me.colors=[],me.addTransparent=!1,me.colorBoxes=[],me.colors=U,me.currentColor=G,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}return ie(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(G){var F=w.getColorBox(G);U.appendChild(F),w.colorBoxes.push(F)}),U},E.prototype.getColorBox=function(w){var U=this,G=this.uiStyleSettings.toolbarHeight/4,F=this.uiStyleSettings.toolbarHeight-G,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 Ge=document.createElement("div");return Ge.style.display="inline-block",Ge.style.width=F-2+"px",Ge.style.height=F-2+"px",Ge.style.backgroundColor=w,Ge.style.borderRadius=F/2+"px",w==="transparent"&&(Ge.style.fill=this.uiStyleSettings.toolboxAccentColor,Ge.innerHTML=``),me.appendChild(Ge),me},E.prototype.setCurrentColor=function(w,U){var G=this;this.currentColor=w,this.colorBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(w)},E}(ee),_e=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}(),we=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,G){var F=B.call(this,w,U,G)||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 ie(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 G=this.unrotatePoint(w);if(this.manipulationStartX=G.x,this.manipulationStartY=G.y,this.offsetX=G.x-this.left,this.offsetY=G.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,G=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,G=this.manipulationStartWidth+this.manipulationStartLeft-U;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:G=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}G>=0?(this.left=U,this.width=G):(this.left=U+G,this.width=-G),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(),G=$.createPoint(w.x,w.y);return{x:(G=G.matrixTransform(U)).x,y:G.y}},E.prototype.unrotatePoint=function(w){if(this.rotationAngle===0)return w;var U=this.container.getCTM();U=U.inverse();var G=$.createPoint(w.x,w.y);return{x:(G=G.matrixTransform(U)).x,y:G.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 we,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,G=U,F=(this.width+this.CB_DISTANCE)/2-w/2,me=(this.height+this.CB_DISTANCE)/2-w/2,Ge=this.height+this.CB_DISTANCE-w/2,dt=this.width+this.CB_DISTANCE-w/2;this.positionGrip(this.controlGrips.topLeft.visual,U,G),this.positionGrip(this.controlGrips.topCenter.visual,F,G),this.positionGrip(this.controlGrips.topRight.visual,dt,G),this.positionGrip(this.controlGrips.centerLeft.visual,U,me),this.positionGrip(this.controlGrips.centerRight.visual,dt,me),this.positionGrip(this.controlGrips.bottomLeft.visual,U,Ge),this.positionGrip(this.controlGrips.bottomCenter.visual,F,Ge),this.positionGrip(this.controlGrips.bottomRight.visual,dt,Ge),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,F,G-3*this.CB_DISTANCE)},E.prototype.positionGrip=function(w,U,G){var F=w.transform.baseVal.getItem(0);F.setTranslate(U,G),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 G=this.rotatePoint({x:this.left,y:this.top}),F=this.unrotatePoint({x:G.x*w,y:G.y*U});this.left=F.x,this.top=F.y,this.width=this.width*w,this.height=this.height*U,this.adjustControlBox()},E}(_e),$e=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||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 ie(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),ft=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'')||this;return me.widths=[],me.widthBoxes=[],me.widths=U,me.currentWidth=G,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}return ie(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(G){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=G===w.currentWidth?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentWidth(G,F)}),U.appendChild(F);var me=document.createElement("div");me.innerText=G.toString(),me.style.marginRight="5px",F.appendChild(me);var Ge=document.createElement("div");Ge.style.minHeight="20px",Ge.style.flexGrow="2",Ge.style.display="flex",Ge.style.alignItems="center";var dt=document.createElement("hr");dt.style.minWidth="20px",dt.style.border="0px",dt.style.borderTop=G+"px solid "+w.uiStyleSettings.toolboxColor,dt.style.flexGrow="2",Ge.appendChild(dt),F.appendChild(Ge),w.widthBoxes.push(F)}),U},E.prototype.setCurrentWidth=function(w,U){var G=this;this.currentWidth=w,this.widthBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},E}(ee),ht=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'')||this;return me.styles=[],me.styleBoxes=[],me.styles=U,me.currentStyle=G,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}return ie(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(G){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=G===w.currentStyle?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentStyle(G,F)}),U.appendChild(F);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var Ge=``;me.innerHTML=Ge,F.appendChild(me),w.styleBoxes.push(F)}),U},E.prototype.setCurrentStyle=function(w,U){var G=this;this.currentStyle=w,this.styleBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},E}(ee),ye=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.strokeColor=G.defaultColor,F.strokeWidth=G.defaultStrokeWidth,F.strokeDasharray=G.defaultStrokeDasharray,F.strokePanel=new ge("Line color",G.defaultColorSet,G.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ie(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}($e),Ae=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},ke=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||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 ie(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,G){var F=w.transform.baseVal.getItem(0);F.setTranslate(U,G),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}(_e),He=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||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=G.defaultColor,F.strokeWidth=G.defaultStrokeWidth,F.strokeDasharray=G.defaultStrokeDasharray,F.strokePanel=new ge("Line color",G.defaultColorSet,G.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ie(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}(ke),Ie=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'')||this;return me.fonts=[],me.fontBoxes=[],me.fonts=U,me.currentFont=G,me.setCurrentFont=me.setCurrentFont.bind(me),me}return ie(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(G){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=G===w.currentFont?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentFont(G,F)}),U.appendChild(F);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=G,me.style.overflow="hidden";var Ge=document.createElement("div");Ge.style.whiteSpace="nowrap",Ge.style.overflow="hidden",Ge.style.textOverflow="ellipsis",Ge.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(Ge),F.appendChild(me),w.fontBoxes.push(F)}),U},E.prototype.setCurrentFont=function(w,U){var G=this;this.currentFont=w,this.fontBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},E}(ee),Le=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.color="transparent",F.padding=5,F.DEFAULT_TEXT="your text here",F.text=F.DEFAULT_TEXT,F.isMoved=!1,F.color=G.defaultColor,F.fontFamily=G.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 ge("Color",G.defaultColorSet,G.defaultColor),F.colorPanel.onColorChanged=F.setColor,F.fontFamilyPanel=new Ie("Font",G.defaultFontFamilies,G.defaultFontFamily),F.fontFamilyPanel.onFontChanged=F.setFont,F}return ie(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(G){G===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 G=(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(G,F)}return U},E.prototype.getTextPosition=function(w){var U=this.textElement.getBBox(),G=0,F=0;return U.width>0&&U.height>0&&(G=(this.width-U.width*w)/2,F=this.height/2-U.height*w/2),{x:G,y:F}},E.prototype.sizeText=function(){var w=this.textElement.getBBox(),U=this.getTextScale(),G=this.getTextPosition(U);G.y-=w.y*U,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+G.x+"px, "+G.y+"px) scale("+U+", "+U+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(G.x,G.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 G=U.clipboardData.getData("text"),F=window.getSelection();if(!F.rangeCount)return!1;F.deleteFromDocument(),F.getRangeAt(0).insertNode(document.createTextNode(G)),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}),G=this.textElement.getBBox(),F={x:G.width*w,y:G.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),fe=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.color="transparent",F.lineWidth=3,F.drawing=!1,F.pixelRatio=1,F.color=G.defaultColor,F.lineWidth=G.defaultStrokeWidth,F.pixelRatio=G.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 ge("Color",G.defaultColorSet,G.defaultColor),F.colorPanel.onColorChanged=F.setColor,F.lineWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.lineWidthPanel.onWidthChanged=F.setLineWidth,F}return ie(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],G=U[0],F=U[1],me=U[2],Ge=U[3],dt=!1,St=0;St0&&(dt=!0,StGe&&(Ge=St),Ye>me&&(me=Ye));if(dt){this.left=G/this.pixelRatio,this.top=F/this.pixelRatio,this.width=(me-G)/this.pixelRatio,this.height=(Ge-F)/this.pixelRatio;var Dt=document.createElement("canvas");Dt.width=me-G,Dt.height=Ge-F,Dt.getContext("2d").putImageData(this.canvasContext.getImageData(G,F,me-G,Ge-F),0,0),this.drawingImgUrl=Dt.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),re=function(B){function E(w,U,G){var F=B.call(this,w,G||'')||this;return F.typeBoxes=[],F.currentType=U,F.setCurrentType=F.setCurrentType.bind(F),F}return ie(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 G=function(Ge){var dt="both";switch(Ge){case 0:dt="both";break;case 1:dt="start";break;case 2:dt="end";break;case 3:dt="none"}var St=document.createElement("div");if(St.style.display="flex",St.style.flexGrow="2",St.style.alignItems="center",St.style.justifyContent="space-between",St.style.padding="5px",St.style.borderWidth="2px",St.style.borderStyle="solid",St.style.borderColor=dt===F.currentType?F.uiStyleSettings.toolboxAccentColor:"transparent",St.addEventListener("click",function(){w.setCurrentType(dt,St)}),U.appendChild(St),dt==="both"||dt==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=``,Ye.style.marginLeft="5px",St.appendChild(Ye)}var Dt=document.createElement("div");Dt.style.display="flex",Dt.style.alignItems="center",Dt.style.minHeight="20px",Dt.style.flexGrow="2";var Nt=document.createElement("hr");if(Nt.style.minWidth="20px",Nt.style.border="0px",Nt.style.borderTop="3px solid "+(F.uiStyleSettings!==void 0?F.uiStyleSettings.toolboxColor:"#eeeeee"),Nt.style.flexGrow="2",Dt.appendChild(Nt),St.appendChild(Dt),dt==="both"||dt==="end"){var on=document.createElement("div");on.style.display="flex",on.style.alignItems="center",on.style.minHeight="20px",on.innerHTML=``,on.style.marginRight="5px",St.appendChild(on)}F.typeBoxes.push(St)},F=this,me=0;me<4;me++)G(me);return U},E.prototype.setCurrentType=function(w,U){var G=this;this.currentType=w,this.typeBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings!==void 0?G.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},E}(ee),ae=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||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 re("Arrow type","end"),F.arrowTypePanel.onArrowTypeChanged=F.setArrowType,F}return ie(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 G=this.arrowBaseWidth+2*this.strokeWidth,F=this.arrowBaseHeight+2*this.strokeWidth;return w-G/2+","+(U+F/2)+" "+w+","+(U-F/2)+" "+(w+G/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 G=this.arrow2.transform.baseVal.getItem(0);G.setRotate(w+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(G,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}(He),Y=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.fillColor=G.defaultFillColor,F.strokeWidth=0,F.fillPanel=new ge("Color",G.defaultColorSet,G.defaultFillColor),F.fillPanel.onColorChanged=F.setFillColor,F}return ie(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}($e),J=function(B){function E(w,U,G,F){var me=B.call(this,w,F||'')||this;return me.opacities=[],me.opacityBoxes=[],me.opacities=U,me.currentOpacity=G,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}return ie(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(G){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=G===w.currentOpacity?w.uiStyleSettings.toolboxAccentColor:"transparent",F.addEventListener("click",function(){w.setCurrentOpacity(G,F)}),U.appendChild(F);var me=document.createElement("div");me.innerText=100*G+"%",F.appendChild(me),w.opacityBoxes.push(F)}),U},E.prototype.setCurrentOpacity=function(w,U){var G=this;this.currentOpacity=w,this.opacityBoxes.forEach(function(F){F.style.borderColor=F===U?G.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},E}(ee),Z=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.setOpacity=F.setOpacity.bind(F),F.fillColor=G.defaultHighlightColor,F.strokeWidth=0,F.opacity=G.defaultHighlightOpacity,F.fillPanel=new ge("Color",G.defaultColorSet,F.fillColor),F.fillPanel.onColorChanged=F.setFillColor,F.opacityPanel=new J("Opacity",G.defaultOpacitySteps,F.opacity),F.opacityPanel.onOpacityChanged=F.setOpacity,F}return ie(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}(Y),se='',Ee=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||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=G.defaultStrokeColor,F.bgColor=G.defaultFillColor,F.fontFamily=G.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 ge("Text color",G.defaultColorSet,F.color,''),F.colorPanel.onColorChanged=F.setColor,F.bgColorPanel=new ge("Fill color",G.defaultColorSet,F.bgColor,se),F.bgColorPanel.onColorChanged=F.setBgColor,F.fontFamilyPanel=new Ie("Font",G.defaultFontFamilies,G.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 ie(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),G=this.height/5;w&&(this.tipPosition={x:U+G/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}(Le),De=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.fillColor="transparent",F.strokeColor="transparent",F.strokeWidth=0,F.strokeDasharray="",F.opacity=1,F.strokeColor=G.defaultColor,F.strokeWidth=G.defaultStrokeWidth,F.strokeDasharray=G.defaultStrokeDasharray,F.fillColor=G.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 ge("Line color",de(G.defaultColorSet,["transparent"]),G.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.fillPanel=new ge("Fill color",de(G.defaultColorSet,["transparent"]),F.fillColor,se),F.fillPanel.onColorChanged=F.setFillColor,F.strokeWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F.opacityPanel=new J("Opacity",G.defaultOpacitySteps,F.opacity),F.opacityPanel.onOpacityChanged=F.setOpacity,F}return ie(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),Ke=function(B){function E(w,U,G){return B.call(this,w,U,G)||this}return ie(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 G=this.tip2.transform.baseVal.getItem(0);G.setRotate(w+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(G,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}(He),ut=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||this;return F.strokePanel.colors=G.defaultColorSet,F.fillColor="transparent",F}return ie(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}(De),ct=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}(),Oe=function(B){function E(w,U,G){var F=B.call(this,w,U,G)||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=G.defaultColor,F.strokeWidth=G.defaultStrokeWidth,F.strokeDasharray=G.defaultStrokeDasharray,F.strokePanel=new ge("Line color",G.defaultColorSet,G.defaultColor),F.strokePanel.onColorChanged=F.setStrokeColor,F.strokeWidthPanel=new ft("Line width",G.defaultStrokeWidths,G.defaultStrokeWidth),F.strokeWidthPanel.onWidthChanged=F.setStrokeWidth,F.strokeStylePanel=new ht("Line style",G.defaultStrokeDasharrays,G.defaultStrokeDasharray),F.strokeStylePanel.onStyleChanged=F.setStrokeDasharray,F}return ie(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}(ke),ot=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}(),st=function(B){function E(w,U,G){var F=B.call(this,w,!1)||this;return F.dataUrl=U,F.state=G,F}return ie(E,B),E}(ot),Qe=function(B){function E(w,U,G){G===void 0&&(G=!1);var F=B.call(this,w,G)||this;return F.marker=U,F}return ie(E,B),E}(ot),_t=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}(),Tt=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 Ae,this._isOpen=!1,this.undoRedoManager=new ct,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 _t,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,fe,ae,Le,ut,De,Z,Ee,Ke,Y,He,Oe]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ye,fe,ae,Le,De,Z,Ee]},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ye,fe,ae,Le,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 G=w.ALL_MARKER_TYPES.find(function(F){return F.typeName===U});G!==void 0&&w._availableMarkerTypes.push(G)}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(),Ne.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 ot(E))})},B.prototype.render=function(){return Se(this,void 0,void 0,function(){var E;return Pe(this,function(w){switch(w.label){case 0:return this.setCurrentMarker(),(E=new lt).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(G){var F=new ot(w,!0);G(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(G){return G(new ot(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 ze(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(G){var F=new Qe(E,E._currentMarker,!0);G(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(G){return G(new Qe(E,U))})}}},B.prototype.clear=function(){var E=this,w=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var Ge=new Qe(E,void 0,!0);me(Ge),Ge.defaultPrevented&&(w=!0)}),!w)){this.setCurrentMarker();for(var U=function(me){var Ge=G.markers[me];G.setCurrentMarker(G.markers[me]),G._currentMarker.dispose(),G.markerImage.removeChild(G._currentMarker.container),G.markers.splice(G.markers.indexOf(G._currentMarker),1),G.eventListeners.markerdelete.forEach(function(dt){return dt(new Qe(E,Ge))})},G=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 G=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(w),G1&&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){Ne.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 ot(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 ot(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 Et=function(B,E){return(Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,U){w.__proto__=U}||function(w,U){for(var G in U)Object.prototype.hasOwnProperty.call(U,G)&&(w[G]=U[G])})(B,E)};function Rt(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}Et(B,E),B.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}function bt(B,E,w,U){return new(w||(w=Promise))(function(G,F){function me(St){try{dt(U.next(St))}catch(Ye){F(Ye)}}function Ge(St){try{dt(U.throw(St))}catch(Ye){F(Ye)}}function dt(St){var Ye;St.done?G(St.value):(Ye=St.value,Ye instanceof w?Ye:new w(function(Dt){Dt(Ye)})).then(me,Ge)}dt((U=U.apply(B,E||[])).next())})}function xt(B,E){var w,U,G,F,me={label:0,sent:function(){if(1&G[0])throw G[1];return G[1]},trys:[],ops:[]};return F={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Ge(dt){return function(St){return function(Ye){if(w)throw new TypeError("Generator is already executing.");for(;me;)try{if(w=1,U&&(G=2&Ye[0]?U.return:Ye[0]?U.throw||((G=U.return)&&G.call(U),0):U.next)&&!(G=G.call(U,Ye[1])).done)return G;switch(U=0,G&&(Ye=[2&Ye[0],G.value]),Ye[0]){case 0:case 1:G=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(!(G=me.trys,(G=G.length>0&&G[G.length-1])||Ye[0]!==6&&Ye[0]!==2)){me=0;continue}if(Ye[0]===3&&(!G||Ye[1]>G[0]&&Ye[1]0&&w>0){var U=new Ht(E,w),G=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 Ge=qe.createDefs();me.appendChild(Ge);var dt=qe.createElement("clipPath",[["id","text-bg-clip"]]);Ge.appendChild(dt);var St=qe.createPath(qe.getHollowRectanglePath((24-G)/2,(24-F)/2,G,F,(24-G)/2+2,(24-F)/2+2,G-4,F-4));me.appendChild(St);var Ye=qe.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Ye.appendChild(qe.createTSpan(E+":"+w)),me.appendChild(Ye);var Dt=Ye.getBBox();qe.setAttributes(Ye,[["x",((24-Dt.width)/2).toString()],["y",((24-Dt.height)/2-Dt.y).toString()]]);var Nt=qe.createPath(qe.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Dt.width))/2,(24-Math.ceil(Dt.height))/2,Math.ceil(Dt.width),Math.ceil(Dt.height)));return dt.appendChild(Nt),qe.setAttributes(St,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(me),me.outerHTML}return''},B}(),Ft=function(B){function E(w,U,G){var F=B.call(this,w,U)||this;return F.isDropdownOpen=!1,F.onClick=F.dropdownButtonClicked,F.dropdownButtons=G,F}return Rt(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}(Yt),fn=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}(),ln=function(){function B(E,w,U,G){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=G,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 Ge=w.y+U*(me+1);qe.setAttributes(F,[["x1",""+w.x],["y1",""+Ge],["x2",""+(w.x+w.width)],["y2",""+Ge]])});var G=w.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(F,me){var Ge=w.x+G*(me+1);qe.setAttributes(F,[["x1",""+Ge],["y1",""+w.y],["x2",""+Ge],["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,G=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+=G,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+=G}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),G=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,G,F,me){var Ge=U/E,dt=G/w;return{x:(F.x-me)*Ge+me,y:(F.y-me)*dt+me,width:F.width*Ge,height:F.height*dt}},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}(),Tn=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 G=U%5==0?this.height/3:this.height/6;w+="h4v"+-G+"h1v"+G}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}(),Mn=function(){function B(){this.naturalSize=!1,this.imageType="image/png"}return B.prototype.rasterize=function(E,w,U,G,F,me,Ge){var dt=this;return new Promise(function(St){var Ye=document.createElement("canvas");Ye.width=E.width.baseVal.value-2*G,Ye.height=E.height.baseVal.value-2*G;var Dt=1,Nt=1;dt.naturalSize===!0?(Dt=w.naturalWidth/(E.width.baseVal.value-2*G)/me,Nt=w.naturalHeight/(E.height.baseVal.value-2*G)/Ge,Ye.width=w.naturalWidth/me,Ye.height=w.naturalHeight/Ge):dt.width!==void 0&&dt.height!==void 0&&(Dt=dt.width/U.width,Nt=dt.height/U.height,Ye.width*=Dt,Ye.height*=Nt);var on=Ye.getContext("2d");on.translate(Ye.width/2,Ye.height/2),on.rotate(F*Math.PI/180),on.scale(me,Ge),on.translate(-Ye.width/2,-Ye.height/2),on.drawImage(w,0,0,Ye.width,Ye.height);var kn=document.createElement("canvas");kn.width=U.width*Dt,kn.height=U.height*Nt,kn.getContext("2d").putImageData(on.getImageData((U.x-G)*Dt,(U.y-G)*Nt,U.width*Dt,U.height*Nt),0,0),St(kn.toDataURL(dt.imageType,dt.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 Bt(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 tn;w.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(w);var U=[];this.aspectRatios.forEach(function(Nt){var on=new Yt(At.getIcon(Nt.horizontal,Nt.vertical),Nt.horizontal===0&&Nt.vertical===0?"FREE":Nt.horizontal+":"+Nt.vertical);on.onClick=function(){return E.ratioButtonClicked(Nt)},U.push(on)}),this.aspectRatioButton=new Ft(At.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 G=new Yt('',"Toggle grid");G.isActive=this.isGridVisible,G.onClick=function(){E.isGridVisible=!E.isGridVisible,G.isActive=E.isGridVisible},w.addButton(G);var F=new Yt('',"Zoom to selection");if(F.isActive=this.zoomToCropEnabled,F.onClick=function(){E.zoomToCropEnabled=!E.zoomToCropEnabled,F.isActive=E.zoomToCropEnabled},w.addButton(F),!Ot.isLicensed){var me=new cn;this.topToolbar.addElementBlock(me);var Ge=document.createElement("div");Ge.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var dt=document.createElement("a");dt.style.color="currentColor",dt.href="https://markerjs.com/products/cropro",dt.target="_blank",dt.innerHTML='',Ge.appendChild(dt),me.addElement(Ge)}var St=new tn;St.minWidth=3*this.toolbarHeight+"px",St.contentAlign="end",this.topToolbar.addButtonBlock(St);var Ye=new Yt('',"OK");Ye.onClick=this.startRenderAndClose,St.addButton(Ye),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Ye.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Dt=new Yt('',"Close");Dt.onClick=this.close,St.addButton(Dt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Dt.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 tn;w.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(w);var U=new Yt('',"Rotate left");U.onClick=this.rotateLeftButtonClicked,w.addButton(U);var G=new Yt('',"Rotate right");G.onClick=this.rotateRightButtonClicked,w.addButton(G);var F=new cn;F.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(F),this.straightener=new Tn("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(St){E.rotateBy(St),E.straightener.angle=E.rotationAngle},F.addElement(this.straightener.getUI());var me=new tn;me.minWidth=2*this.toolbarHeight+"px",me.contentAlign="end",this.bottomToolbar.addButtonBlock(me);var Ge=new Yt('',"Flip horizontal");Ge.onClick=this.flipHorizontallyButtonClicked,me.addButton(Ge);var dt=new Yt('',"Flip vertical");dt.onClick=this.flipVerticallyButtonClicked,me.addButton(dt)},B.prototype.ratioButtonClicked=function(E){this.aspectRatio=E,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},B.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=At.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 Ht(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 bt(this,void 0,void 0,function(){var E,w;return xt(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(G){return G(E,w)}),this.close(!0),[2]}})})},B.prototype.render=function(){return bt(this,void 0,void 0,function(){var E;return xt(this,function(w){switch(w.label){case 0:return(E=new Mn).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 vt("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 vt("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new vt("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var E=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new vt("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 vt("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new vt("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new gt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new gt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new vt("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 vt("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new vt("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 vt("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 vt("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},B.instanceCounter=0,B}(),Yn=N("8hTe"),Ut=N.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=ne.a=function(B){var E=B.value,w=E===void 0?"":E,U=B.edit,G=U===void 0?!1:U,F=B.className,me=B.showTextOnly,Ge=B.showLines,dt=B.replaces,St=B.zoomImg,Ye=B.hasMask,Dt=B.style,Nt=Dt===void 0?{}:Dt,on=B.stylesPrev,kn=on===void 0?{}:on,Xn=String(w),Me=Object(O.useRef)(),Dn=Object(O.useRef)(),oi=Object(O.useState)(""),Jn=Object(W.a)(oi,2),pi=Jn[0],ei=Jn[1],wn=Object(O.useState)("office"),Kn=Object(W.a)(wn,2),li=Kn[0],mi=Kn[1],xi=function(){var Wt=new Vn(Dn.current);Wt.displayMode="popup",Wt.addRenderEventListener(function(){var yn=Object(R.a)(e.a.mark(function Zt(On){var un;return e.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:return Me.current.style.display="none",Rn.next=3,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:On}});case 3:un=Rn.sent,un!=null&&un.id&&dt(Dn.current.getAttribute("src").replace(V.a.API_SERVER,""),"/api/attachments/".concat(un==null?void 0:un.id,"?type=").concat(un.content_type));case 5:case"end":return Rn.stop()}},Zt)}));return function(Zt){return yn.apply(this,arguments)}}()),Wt.show()},Ni=function(){var Wt=new Tt(Dn.current);Wt.settings.displayMode="popup",Wt.addEventListener("render",function(){var yn=Object(R.a)(e.a.mark(function Zt(On){var un;return e.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:if(Me.current.style.display="none",!Dn.current){Rn.next=6;break}return Rn.next=4,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:On.dataUrl}});case 4:un=Rn.sent,un!=null&&un.id&&dt(Dn.current.getAttribute("src").replace(V.a.API_SERVER,""),"/api/attachments/".concat(un==null?void 0:un.id,"?type=").concat(un.content_type));case 6:case"end":return Rn.stop()}},Zt)}));return function(Zt){return yn.apply(this,arguments)}}()),Wt.show(),window.markerArea=Wt},ui=Object(O.useMemo)(function(){Me.current&&(Me.current.style.zIndex=-1);try{var dn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Wt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Xn=Xn.replace(dn,"("+V.a.API_SERVER+"/api/attachments/").replace(Wt,'"'+V.a.API_SERVER+"/api/attachments/").replace(yn,'"'+V.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 Zt=A(Xn),On=v();if(Xn.match(/\[TOC\]/)&&(Zt=Zt.replace("[TOC]
",x()),b()),Zt=Zt.replace(/(__special_katext_id_\d+__)/g,function(vi,Rn){var Ti=On[Rn],yi=Ti.type,bi=Ti.expression;return Object(oe.renderToString)(fi(bi)||"",{displayMode:yi==="block",throwOnError:!1,output:"html"})}),Zt=Zt.replace(/▁/g,"\u2581\u2581\u2581"),f(),me){var un=document.createElement("div");return un.innerHTML=Zt,un.innerText}return setTimeout(function(){return Ri()},500),Zt},[Xn]),Ln=Object(O.useRef)();y.WebkitLineClamp=Ge,Ge&&(Nt=Object(C.a)(Object(C.a)({},Nt),y));function ti(dn){var Wt=dn.target;if(Wt.tagName.toUpperCase()==="IMG"){if(St){var yn=Wt.getAttribute("src");ei(yn),mi("image")}}else if(Wt.tagName.toUpperCase()==="A"){var Zt=Wt.getAttribute("href");if(Zt.indexOf("office")>-1)dn.preventDefault(),ei(Zt),mi("office");else if(Zt.indexOf("application/pdf")>-1)dn.preventDefault(),ei(Zt),mi("pdf");else if(Zt.indexOf("text/html")>-1)dn.preventDefault(),ei(Zt),mi("html");else if(Zt.startsWith("#")){dn.preventDefault();var On=document.getElementById(Zt.replace("#",""));On&&On.scrollIntoView(!0)}}}var Ri=function(){var Wt,yn=(Wt=Ln.current)===null||Wt===void 0?void 0:Wt.querySelectorAll("video");yn==null||yn.forEach(function(Zt){if(Zt.oncontextmenu=function(){return!1},Zt.src.indexOf(".m3u8")>-1&&!Zt.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var On=new K.a;On.loadSource(Zt.src),On.attachMedia(Zt)}}})};Object(O.useEffect)(function(){if(Ln.current&&ui&&(ui.match(qn)&&window.PR.prettyPrint()),Ln.current)return Ln.current.addEventListener("click",ti),function(){Ln.current.removeEventListener("click",ti),f(),b()}},[ui,Ln.current,ti]);var gi=function(Wt){if(!G)return;Wt.target.nodeName==="IMG"?(Me.current.style.zIndex=1,Me.current.style.display="flex",Me.current.style.width=Wt.target.clientWidth+"px",Me.current.style.height=Wt.target.clientHeight+"px",Me.current.style.top=Wt.target.offsetTop+"px",Me.current.style.left=Wt.target.offsetLeft+"px",Dn.current.src=Wt.target.getAttribute("src")):Me.current.style.display="none"};return g.a.createElement("div",{style:{position:"relative"}},g.a.createElement("div",{ref:Ln,style:Object(C.a)({},Nt),className:"".concat(F||""," markdown-body ").concat(Ut.a.mdBody),onMouseOver:gi,dangerouslySetInnerHTML:{__html:ui}}),g.a.createElement("div",{ref:Me,className:Ut.a.button},g.a.createElement(M.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:Dn,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(je,ne,N){je.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(je,ne){var N=function(Q){return Q.replace(/[A-Z]/g,function(M){return"-"+M.toLowerCase()}).toLowerCase()};je.exports=N},BU3w:function(je,ne,N){"use strict";N.d(ne,"a",function(){return R});var Q=N("MNnm"),M="rc-util-key";function I(W){if(W.attachTo)return W.attachTo;var k=document.querySelector("head");return k||document.body}function j(W){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=W;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(W,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[M]===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!==W&&(u.innerHTML=W),u}var s=j(W,e);return s[M]=k,s}},BdwD:function(je,ne,N){"use strict";var Q=N("+L6B"),M=N("2/Rp"),I=N("0Owb"),j=N("k1fw"),C=N("q1tI"),R=N.n(C),W=N("FOrL"),k=N.n(W),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(M.a,Object(I.a)({className:n,onClick:i},u),s),t&&t)};ne.a=e},Bq7L:function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSU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9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},"C/vA":function(je,ne,N){"use strict";N.d(ne,"a",function(){return Q});function Q(M){const I=this;let j=!1,C;return function(){return j||(j=!0,C=M.apply(I,arguments)),C}}},"Cg/j":function(je,ne,N){"use strict";N.d(ne,"b",function(){return Q}),N.d(ne,"a",function(){return M}),N.d(ne,"c",function(){return j}),N.d(ne,"d",function(){return C});var Q;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function W(k){return k[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=W})(Q||(Q={}));const M=j("instantiationService");function I(R,W,k,e){W[Q.DI_TARGET]===W?W[Q.DI_DEPENDENCIES].push({id:R,index:k,optional:e}):(W[Q.DI_DEPENDENCIES]=[{id:R,index:k,optional:e}],W[Q.DI_TARGET]=W)}function j(R){if(Q.serviceIds.has(R))return Q.serviceIds.get(R);const W=function(k,e,O){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(W,k,O,!1)};return W.toString=()=>R,Q.serviceIds.set(R,W),W}function C(R){return function(W,k,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");I(R,W,e,!0)}}},DlQD:function(je,ne,N){(function(Q,M){je.exports=M()})(this,function(){"use strict";function Q(fe,re){for(var ae=0;aefe.length)&&(re=fe.length);for(var ae=0,Y=new Array(re);ae=fe.length?{done:!0}:{done:!1,value:fe[Y++]}}}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 ae=fe[Symbol.iterator](),ae.next.bind(ae)}function R(fe,re){return re={exports:{}},fe(re,re.exports),re.exports}var W=R(function(fe){function re(){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 ae(Y){fe.exports.defaults=Y}fe.exports={defaults:re(),getDefaults:re,changeDefaults:ae}}),k=W.defaults,e=W.getDefaults,O=W.changeDefaults,g=/[&<>"']/,p=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},o=function(re){return r[re]};function s(fe,re){if(re){if(g.test(fe))return fe.replace(p,o)}else if(u.test(fe))return fe.replace(a,o);return fe}var i=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function n(fe){return fe.replace(i,function(re,ae){return ae=ae.toLowerCase(),ae==="colon"?":":ae.charAt(0)==="#"?ae.charAt(1)==="x"?String.fromCharCode(parseInt(ae.substring(2),16)):String.fromCharCode(+ae.substring(1)):""})}var t=/(^|[^\[])\^/g;function b(fe,re){fe=fe.source||fe,re=re||"";var ae={replace:function(J,Z){return Z=Z.source||Z,Z=Z.replace(t,"$1"),fe=fe.replace(J,Z),ae},getRegex:function(){return new RegExp(fe,re)}};return ae}var y=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(fe,re,ae){if(fe){var Y;try{Y=decodeURIComponent(n(ae)).replace(y,"").toLowerCase()}catch(J){return null}if(Y.indexOf("javascript:")===0||Y.indexOf("vbscript:")===0||Y.indexOf("data:")===0)return null}re&&!m.test(ae)&&(ae=c(re,ae));try{ae=encodeURI(ae).replace(/%25/g,"%")}catch(J){return null}return ae}var _={},h=/^[^:]+:\/*[^/]*$/,d=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(fe,re){_[" "+fe]||(h.test(fe)?_[" "+fe]=fe+"/":_[" "+fe]=L(fe,"/",!0)),fe=_[" "+fe];var ae=fe.indexOf(":")===-1;return re.substring(0,2)==="//"?ae?re:fe.replace(d,"$1")+re:re.charAt(0)==="/"?ae?re:fe.replace(l,"$1")+re:fe+re}var v={exec:function(){}};function f(fe){for(var re=1,ae,Y;re=0&&Ee[Ke]==="\\";)De=!De;return De?"|":" |"}),Y=ae.split(/ \|/),J=0;if(Y.length>re)Y.splice(re);else for(;Y.length=Y.length?J.slice(Y.length):J}).join(`
`)}var xe=function(){function fe(ae){this.options=ae||H}var re=fe.prototype;return re.space=function(Y){var J=this.rules.block.newline.exec(Y);if(J)return J[0].length>1?{type:"space",raw:J[0]}:{raw:`
`}},re.code=function(Y,J){var Z=this.rules.block.code.exec(Y);if(Z){var se=J[J.length-1];if(se&&se.type==="paragraph")return{raw:Z[0],text:Z[0].trimRight()};var Ee=Z[0].replace(/^ {4}/gm,"");return{type:"code",raw:Z[0],codeBlockStyle:"indented",text:this.options.pedantic?Ee:D(Ee,`
`)}}},re.fences=function(Y){var J=this.rules.block.fences.exec(Y);if(J){var Z=J[0],se=Ce(Z,J[3]||"");return{type:"code",raw:Z,lang:J[2]?J[2].trim():J[2],text:se}}},re.heading=function(Y){var J=this.rules.block.heading.exec(Y);if(J)return{type:"heading",raw:J[0],depth:J[1].length,text:J[2]}},re.nptable=function(Y){var J=this.rules.block.nptable.exec(Y);if(J){var Z={type:"table",header:K(J[1].replace(/^ *| *\| *$/g,"")),align:J[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:J[3]?J[3].replace(/\n$/,"").split(`
`):[],raw:J[0]};if(Z.header.length===Z.align.length){var se=Z.align.length,Ee;for(Ee=0;Ee ?/gm,"");return{type:"blockquote",raw:J[0],text:Z}}},re.list=function(Y){var J=this.rules.block.list.exec(Y);if(J){for(var Z=J[0],se=J[2],Ee=se.length>1,De=se[se.length-1]===")",Ke={type:"list",raw:Z,ordered:Ee,start:Ee?+se.slice(0,-1):"",loose:!1,items:[]},ut=J[0].match(this.rules.block.item),ct=!1,Oe,ot,st,Qe,_t,Tt,Et,Rt=ut.length,bt=0;bt
"+ye(De.message+"",!0)+"
";throw De}}Ie.options=Ie.setOptions=function(fe){return ft(Ie.defaults,fe),ke(Ie.defaults),Ie},Ie.getDefaults=Ae,Ie.defaults=He,Ie.use=function(fe){var re=ft({},fe);if(fe.renderer&&function(){var Y=Ie.defaults.renderer||new _e,J=function(Ee){var De=Y[Ee];Y[Ee]=function(){for(var Ke=arguments.length,ut=new Array(Ke),ct=0;ctt.length&&(y=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(!y(_.value,h.value))return!1}}M.equals=n})(Q||(Q={}))},KOXS:function(je,ne,N){je.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(je,ne,N){"use strict";N.d(ne,"b",function(){return t}),N.d(ne,"a",function(){return y});var Q=N("1OyB"),M=N("vuIU"),I=N("Ji7U"),j=N("LK+K"),C=N("q1tI"),R=N("rePB"),W=N("Ff2n"),k=N("ODXe"),e=N("4IlW"),O=N("bX4T"),g=N("YrtM"),p=N("TSYQ"),u=N.n(p),a=N("+nKL"),r=N("8OUc"),o=function(K,V){var oe=K.prefixCls,le=K.id,Ce=K.flattenOptions,xe=K.childrenAsData,ie=K.values,Se=K.searchValue,Pe=K.multiple,de=K.defaultActiveFirstOption,$=K.height,Ne=K.itemHeight,lt=K.notFoundContent,it=K.open,Je=K.menuItemSelectedIcon,at=K.virtual,Ue=K.onSelect,ze=K.onToggleOpen,et=K.onActiveValue,ee=K.onScroll,ge=K.onMouseEnter,_e="".concat(oe,"-item"),we=Object(g.a)(function(){return Ce},[it,Ce],function(Le,fe){return fe[0]&&Le[1]!==fe[1]}),Ve=C.useRef(null),Ze=function(fe){fe.preventDefault()},rt=function(fe){Ve.current&&Ve.current.scrollTo({index:fe})},$e=function(fe){for(var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ae=we.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;return Object(x.a)(D).map(function(V,oe){if(!C.isValidElement(V)||!V.type)return null;var le=V.type.isSelectOptGroup,Ce=V.key,xe=V.props,ie=xe.children,Se=Object(W.a)(xe,["children"]);return K||!le?_(V):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(Ce===null?oe:Ce,"__"),label:Ce},Se),{},{options:h(ie)})}).filter(function(V){return V})}var d=N("2Qr1"),l=N("qNPg"),c=N("U8pU"),v=N("Kwbf"),f=N("WKfj");function T(D){var K=D.mode,V=D.options,oe=D.children,le=D.backfill,Ce=D.allowClear,xe=D.placeholder,ie=D.getInputElement,Se=D.showSearch,Pe=D.onSearch,de=D.defaultOpen,$=D.autoFocus,Ne=D.labelInValue,lt=D.value,it=D.inputValue,Je=D.optionLabelProp,at=K==="multiple"||K==="tags",Ue=Se!==void 0?Se:at||K==="combobox",ze=V||h(oe);if(Object(v.a)(K!=="tags"||ze.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var et=ze.some(function(_e){return _e.options?_e.options.some(function(we){return typeof("value"in we?we.value:we.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(v.a)(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(v.a)(K!=="combobox"||!Je,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(v.a)(K==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(v.a)(K==="combobox"||!ie,"`getInputElement` only work with `combobox` mode."),Object(v.b)(K!=="combobox"||!ie||!Ce||!xe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Pe&&!Ue&&K!=="combobox"&&K!=="tags"&&Object(v.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(v.b)(!de||$,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),lt!=null){var ee=Object(f.d)(lt);Object(v.a)(!Ne||ee.every(function(_e){return Object(c.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(v.a)(!at||Array.isArray(lt),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var ge=null;Object(x.a)(oe).some(function(_e){if(!C.isValidElement(_e)||!_e.type)return!1;var we=_e.type;if(we.isSelectOption)return!1;if(we.isSelectOptGroup){var Ve=Object(x.a)(_e.props.children).every(function(Ze){return!C.isValidElement(Ze)||!_e.type||Ze.type.isSelectOption?!0:(ge=Ze.type,!1)});return!Ve}return ge=we,!0}),ge&&Object(v.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ge.displayName||ge.name||ge,"`.")),Object(v.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)(V,D);var K=Object(j.a)(V);function V(){var oe;return Object(Q.a)(this,V),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(M.a)(V,[{key:"render",value:function(){return C.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),V}(C.Component);S.Option=t,S.OptGroup=y;var A=S,H=ne.c=A},MEgm:function(je,ne){je.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbb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N){"use strict";N.d(ne,"c",function(){return C}),N.d(ne,"b",function(){return e}),N.d(ne,"e",function(){return O}),N.d(ne,"a",function(){return g}),N.d(ne,"d",function(){return p}),N.d(ne,"f",function(){return u});var Q=N("/cxE"),M=N("pmY6"),I=N("24hK"),j=N("5Y4S"),C;(function(a){a.None=()=>M.a.None;function r(T){return(L,P=null,S)=>{let A=!1,H;return H=T(D=>A?void 0:(H?H.dispose():A=!0,L.call(P,D)),null,S),A&&H.dispose(),H}}a.once=r;function o(T,L){return y((P,S=null,A)=>T(H=>P.call(S,L(H)),null,A))}a.map=o;function s(T,L){return y((P,S=null,A)=>T(H=>{L(H),P.call(S,H)},null,A))}a.forEach=s;function i(T,L){return y((P,S=null,A)=>T(H=>L(H)&&P.call(S,H),null,A))}a.filter=i;function n(T){return T}a.signal=n;function t(...T){return(L,P=null,S)=>Object(M.e)(...T.map(A=>A(H=>L.call(P,H),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 y(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 H,D,K,V=0;const oe=new e({leakWarningThreshold:A,onFirstListenerAdd(){H=T(le=>{V++,D=L(D,le),S&&!K&&(oe.fire(D),D=void 0),clearTimeout(K),K=setTimeout(()=>{const Ce=D;D=void 0,K=void 0,(!S||V>1)&&oe.fire(Ce),V=0},P)})},onLastListenerRemove(){H.dispose()}});return oe.event}a.debounce=m;function x(T,L=(P,S)=>P===S){let P=!0,S;return i(T,A=>{const H=P||!L(A,S);return P=!1,S=A,H})}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 H=()=>{S&&S.forEach(K=>D.fire(K)),S=null},D=new e({onFirstListenerAdd(){A||(A=T(K=>D.fire(K)))},onFirstListenerDidAdd(){S&&(L?setTimeout(H):H())},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),H=()=>T.removeListener(L,S),D=new e({onFirstListenerAdd:A,onLastListenerRemove:H});return D.event}a.fromNodeEventEmitter=c;function v(T,L,P=S=>S){const S=(...K)=>D.fire(P(...K)),A=()=>T.addEventListener(L,S),H=()=>T.removeEventListener(L,S),D=new e({onFirstListenerAdd:A,onLastListenerRemove:H});return D.event}a.fromDOMEventEmitter=v;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 W=-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=W;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=W>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(M.i)(()=>{if(t&&t(),!this._disposed&&(n(),this._options&&this._options.onLastListenerRemove)){const y=this._listeners&&!this._listeners.isEmpty();y||this._options.onLastListenerRemove(this)}});return o instanceof M.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=M.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(je,ne,N){"use strict";(function(Q,M){N.d(ne,"b",function(){return o}),N.d(ne,"i",function(){return t}),N.d(ne,"f",function(){return b}),N.d(ne,"d",function(){return y}),N.d(ne,"g",function(){return m}),N.d(ne,"h",function(){return x}),N.d(ne,"c",function(){return _}),N.d(ne,"k",function(){return h}),N.d(ne,"j",function(){return d}),N.d(ne,"a",function(){return l}),N.d(ne,"e",function(){return f});var I;const j="en";let C=!1,R=!1,W=!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 M!="undefined"&&(s=M);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,W=r.indexOf("Linux")>=0,O=!0,p=navigator.language,u=p;else if(typeof s=="object"){C=s.platform==="win32",R=s.platform==="darwin",W=s.platform==="linux",k=W&&!!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:W&&(n=2);const t=C,b=R,y=W,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 H=0,D=P.length;H{const H=++S;P.push({id:H,callback:A}),o.postMessage({vscodeSetImmediateId:H},"*")}}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,v=!1;function f(){if(!v){v=!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,N("IyRk"),N("Q2Ig"))},N0LK:function(je,ne,N){"use strict";N.d(ne,"C",function(){return Q}),N.d(ne,"v",function(){return I}),N.d(ne,"s",function(){return j}),N.d(ne,"t",function(){return C}),N.d(ne,"U",function(){return R}),N.d(ne,"J",function(){return W}),N.d(ne,"O",function(){return k}),N.d(ne,"p",function(){return e}),N.d(ne,"T",function(){return O}),N.d(ne,"q",function(){return g}),N.d(ne,"N",function(){return p}),N.d(ne,"M",function(){return u}),N.d(ne,"Q",function(){return a}),N.d(ne,"u",function(){return r}),N.d(ne,"x",function(){return o}),N.d(ne,"I",function(){return s}),N.d(ne,"f",function(){return i}),N.d(ne,"h",function(){return n}),N.d(ne,"g",function(){return t}),N.d(ne,"i",function(){return b}),N.d(ne,"G",function(){return y}),N.d(ne,"H",function(){return m}),N.d(ne,"r",function(){return x}),N.d(ne,"R",function(){return _}),N.d(ne,"d",function(){return h}),N.d(ne,"e",function(){return d}),N.d(ne,"E",function(){return l}),N.d(ne,"F",function(){return c}),N.d(ne,"j",function(){return v}),N.d(ne,"z",function(){return f}),N.d(ne,"K",function(){return L}),N.d(ne,"L",function(){return P}),N.d(ne,"m",function(){return A}),N.d(ne,"k",function(){return D}),N.d(ne,"A",function(){return V}),N.d(ne,"a",function(){return oe}),N.d(ne,"n",function(){return le}),N.d(ne,"l",function(){return Ce}),N.d(ne,"D",function(){return xe}),N.d(ne,"B",function(){return ie}),N.d(ne,"b",function(){return Se}),N.d(ne,"S",function(){return Pe}),N.d(ne,"o",function(){return de}),N.d(ne,"P",function(){return $}),N.d(ne,"w",function(){return Ne}),N.d(ne,"c",function(){return lt}),N.d(ne,"y",function(){return at});function Q(ee){return!ee||typeof ee!="string"?!0:ee.trim().length===0}const M=/{(\d+)}/g;function I(ee,...ge){return ge.length===0?ee:ee.replace(M,function(_e,we){const Ve=parseInt(we,10);return isNaN(Ve)||Ve<0||Ve>=ge.length?_e:ge[Ve]})}function j(ee){return ee.replace(/[<>&]/g,function(ge){switch(ge){case"<":return"<";case">":return">";case"&":return"&";default:return ge}})}function C(ee){return ee.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(ee,ge=" "){const _e=W(ee,ge);return k(_e,ge)}function W(ee,ge){if(!ee||!ge)return ee;const _e=ge.length;if(_e===0||ee.length===0)return ee;let we=0;for(;ee.indexOf(ge,we)===we;)we=we+_e;return ee.substring(we)}function k(ee,ge){if(!ee||!ge)return ee;const _e=ge.length,we=ee.length;if(_e===0||we===0)return ee;let Ve=we,Ze=-1;for(;!(Ze=ee.lastIndexOf(ge,Ve-1),Ze===-1||Ze+_e!==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,ge,_e={}){if(!ee)throw new Error("Cannot create regex from empty string");ge||(ee=C(ee)),_e.wholeWord&&(/\B/.test(ee.charAt(0))||(ee="\\b"+ee),/\B/.test(ee.charAt(ee.length-1))||(ee=ee+"\\b"));let we="";return _e.global&&(we+="g"),_e.matchCase||(we+="i"),_e.multiline&&(we+="m"),_e.unicode&&(we+="u"),new RegExp(ee,we)}function p(ee){if(ee.source==="^"||ee.source==="^$"||ee.source==="$"||ee.source==="^\\s*$")return!1;const ge=ee.exec("");return!!(ge&&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 ge=0,_e=ee.length;ge<_e;ge++){const we=ee.charCodeAt(ge);if(we!==32&&we!==9)return ge}return-1}function o(ee,ge=0,_e=ee.length){for(let we=ge;we<_e;we++){const Ve=ee.charCodeAt(we);if(Ve!==32&&Ve!==9)return ee.substring(ge,we)}return ee.substring(ge,_e)}function s(ee,ge=ee.length-1){for(let _e=ge;_e>=0;_e--){const we=ee.charCodeAt(_e);if(we!==32&&we!==9)return _e}return-1}function i(ee,ge){return eege?1:0}function n(ee,ge,_e=0,we=ee.length,Ve=0,Ze=ge.length){for(;_eht)return 1}const rt=we-_e,$e=Ze-Ve;return rt<$e?-1:rt>$e?1:0}function t(ee,ge){return b(ee,ge,0,ee.length,0,ge.length)}function b(ee,ge,_e=0,we=ee.length,Ve=0,Ze=ge.length){for(;_e=128||ht>=128)return n(ee.toLowerCase(),ge.toLowerCase(),_e,we,Ve,Ze);y(ft)&&(ft-=32),y(ht)&&(ht-=32);const ye=ft-ht;if(ye===0)continue;return ye}const rt=we-_e,$e=Ze-Ve;return rt<$e?-1:rt>$e?1:0}function y(ee){return ee>=97&&ee<=122}function m(ee){return ee>=65&&ee<=90}function x(ee,ge){return ee.length===ge.length&&b(ee,ge)===0}function _(ee,ge){const _e=ge.length;return ge.length>ee.length?!1:b(ee,ge,0,_e)===0}function h(ee,ge){let _e,we=Math.min(ee.length,ge.length);for(_e=0;_e1){const we=ee.charCodeAt(ge-2);if(l(we))return v(we,_e)}return _e}function L(ee,ge){const _e=it.getInstance(),we=ge,Ve=ee.length,Ze=f(ee,Ve,ge);ge+=Ze>=65536?2:1;let rt=_e.getGraphemeBreakType(Ze);for(;ge=65536?2:1,rt=ft}return ge-we}function P(ee,ge){const _e=it.getInstance(),we=ge,Ve=T(ee,ge);ge-=Ve>=65536?2:1;let Ze=_e.getGraphemeBreakType(Ve);for(;ge>0;){const rt=T(ee,ge),$e=_e.getGraphemeBreakType(rt);if(lt($e,Ze))break;ge-=rt>=65536?2:1,Ze=$e}return we-ge}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 H=/(?:[\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 H.test(ee)}const K=/^[\t\n\r\x20-\x7E]*$/;function V(ee){return K.test(ee)}const oe=/[\u2028\u2029]/;function le(ee){return oe.test(ee)}function Ce(ee){for(let ge=0,_e=ee.length;ge<_e;ge++)if(xe(ee.charCodeAt(ge)))return!0;return!1}function xe(ee){return ee=+ee,ee>=11904&&ee<=55215||ee>=63744&&ee<=64255||ee>=65281&&ee<=65374}function ie(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 Se=String.fromCharCode(65279);function Pe(ee){return!!(ee&&ee.length>0&&ee.charCodeAt(0)===65279)}function de(ee,ge=!1){return ee?(ge&&(ee=ee.replace(/\\./g,"")),ee.toLowerCase()!==ee):!1}function $(ee){const ge=90-65+1;return ee=ee%(2*ge),eege[3*we+1])we=2*we+1;else return ge[3*we+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 at(ee,ge){if(ee===0)return 0;const _e=Ue(ee,ge);if(_e!==void 0)return _e;const we=T(ge,ee);return ee-=ze(we),ee}function Ue(ee,ge){let _e=T(ge,ee);for(ee-=ze(_e);et(_e)||_e===65039||_e===8419;){if(ee===0)return;_e=T(ge,ee),ee-=ze(_e)}if(!ie(_e))return;if(ee>=0){const we=T(ge,ee);we===8205&&(ee-=ze(we))}return ee}function ze(ee){return ee>=65536?2:1}function et(ee){return 127995<=ee&&ee<=127999}},NQs2:function(je,ne,N){je.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(je,ne,N){"use strict";N.d(ne,"a",function(){return k}),N.d(ne,"h",function(){return r}),N.d(ne,"l",function(){return n}),N.d(ne,"e",function(){return _}),N.d(ne,"i",function(){return c}),N.d(ne,"j",function(){return de}),N.d(ne,"c",function(){return ee}),N.d(ne,"b",function(){return Ze}),N.d(ne,"g",function(){return ht}),N.d(ne,"f",function(){return He}),N.d(ne,"k",function(){return se}),N.d(ne,"d",function(){return ut});var Q=N("q1tI"),M=N.n(Q),I=N("NQs2"),j=N.n(I),C=N("ygoZ"),R=N.n(C),W=function(Oe){var ot=Oe.dataSource,st=ot===void 0?[]:ot,Qe=Oe.img,_t=Oe.imgWidth,Tt=_t===void 0?346:_t,Et=Oe.title,Rt=Oe.sunTitle,bt=Oe.bannerExtraContent;return M.a.createElement("div",{className:j.a.banner},M.a.createElement("div",{className:j.a.content},M.a.createElement("aside",null,M.a.createElement("p",null,M.a.createElement("b",null,Et),M.a.createElement("span",null,Rt)),st.length>0&&M.a.createElement("div",{className:j.a.btns},st.map(function(xt,Ot){return M.a.createElement("div",{key:Ot,onClick:xt.click},xt.name,xt.sign?M.a.createElement("img",{src:R.a,width:39}):null)})),bt),M.a.createElement("img",{style:{marginTop:33,marginRight:38},src:Qe,width:Tt})))},k=W,e=N("tJVT"),O=N("6nfa"),g=N.n(O),p=N("TSYQ"),u=N.n(p),a=function(Oe){var ot=Oe.dataSource,st=ot===void 0?[]:ot,Qe=Oe.value,_t=Oe.onChange,Tt=Oe.className,Et=Oe.title,Rt=Oe.titleWidth,bt=Rt===void 0?41:Rt,xt=Oe.style,Ot=xt===void 0?{}:xt,qe=Oe.fontColor,Bt=qe===void 0?"#6A7283":qe,gt=Object(Q.useState)(0),vt=Object(e.a)(gt,2),wt=vt[0],pt=vt[1],tn=Object(Q.useState)(!1),Yt=Object(e.a)(tn,2),cn=Yt[0],Ht=Yt[1],At=Object(Q.useRef)(null);return Object(Q.useEffect)(function(){if(st.length!==0){var Ft;(At==null||((Ft=At.current)===null||Ft===void 0)?void 0:Ft.clientHeight)>92?pt(1):pt(0)}st.length===0&&pt(0)},[st]),M.a.createElement("div",{className:u()(g.a.row,Tt),style:Ot},M.a.createElement("div",{style:{width:bt,marginTop:cn?12:4},className:g.a.title},Et),M.a.createElement("div",{className:cn?"".concat(g.a.tagsWrap," ").concat(g.a.tagsBorderWrap):g.a.tagsWrap},M.a.createElement("div",{className:g.a.bar,style:wt>0?{height:wt===1?92:"auto",overflow:wt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},M.a.createElement("div",{className:g.a.name,ref:At},st==null?void 0:st.map(function(Ft){return M.a.createElement("span",{onClick:function(){return _t(Ft.id)},key:Ft.id,title:Ft.name,style:{color:Bt},className:Qe===Ft.id?g.a.active:""},Ft.name)}))),!!wt&&M.a.createElement(Q.Fragment,null,wt===1?M.a.createElement("div",{onClick:function(){var fn;pt(2),(At==null||((fn=At.current)===null||fn===void 0)?void 0:fn.clientHeight)>205?Ht(!0):Ht(!1)},className:g.a.action},"\u5C55\u5F00",M.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):M.a.createElement("div",{onClick:function(){pt(1),Ht(!1)},className:g.a.action},"\u6536\u8D77",M.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},r=a,o=N("cz0n"),s=N.n(o),i=function(Oe){var ot=Oe.dataSource,st=ot===void 0?[]:ot,Qe=Oe.value,_t=Oe.onChange,Tt=Oe.className;return M.a.createElement("div",{className:u()(s.a.tabs,Tt)},st.map(function(Et){return M.a.createElement("span",{onClick:function(){return _t(Et.id)},className:Qe===Et.id?s.a.active:"",key:Et.id},Et.name)}))},n=i,t=N("5NDa"),b=N("5rEg"),y=N("KOXS"),m=N.n(y),x=function(Oe){var ot,st=Oe.dataSource,Qe=st===void 0?[]:st,_t=Oe.value,Tt=Oe.onChange,Et=Oe.className,Rt=Oe.style,bt=Rt===void 0?{}:Rt,xt=Oe.placeholder,Ot=Object(Q.useState)(""),qe=Object(e.a)(Ot,2),Bt=qe[0],gt=qe[1],vt=Object(Q.useState)(""),wt=Object(e.a)(vt,2),pt=wt[0],tn=wt[1];Object(Q.useEffect)(function(){var Ht;(Ht=JSON.stringify(_t))!==null&&Ht!==void 0&&Ht.includes("{")?(gt(_t.id),tn(_t.value)):tn(_t)},[_t]);var Yt=function(){Tt(pt||null,Bt||"")},cn=function(At){if(At===Bt)return;gt(At),Tt(pt,At)};return M.a.createElement("div",{className:u()(m.a.input,Et),style:bt},!!Qe.length&&M.a.createElement("div",{className:m.a.dropdown},M.a.createElement("div",{className:m.a.text},(ot=Qe.find(function(Ht){return Ht.id===Bt}))===null||ot===void 0?void 0:ot.name,M.a.createElement("i",{className:"iconfont icon-zhankai4"}),M.a.createElement("b",{className:m.a.b1}),M.a.createElement("b",{className:m.a.b2})),M.a.createElement("div",{className:m.a.menu},Qe.map(function(Ht,At){return M.a.createElement("div",{key:At,onClick:function(){return cn(Ht.id)}},Ht.name)}))),M.a.createElement(b.a,{onPressEnter:Yt,value:pt,onChange:function(At){return tn(At.target.value||"")},bordered:!1,placeholder:xt}),M.a.createElement("i",{onClick:Yt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},_=x,h=N("f9pc"),d=N.n(h),l=function(Oe){var ot=Oe.value,st=Oe.onChange,Qe=Oe.className,_t=Oe.total,Tt=Oe.pageSize,Et=Oe.style,Rt=Et===void 0?{}:Et,bt=ot<2,xt=ot>=Math.ceil(_t/Tt);return _t<=Tt?M.a.createElement(M.a.Fragment,null):M.a.createElement("div",{className:u()(d.a.quickPager,Qe),style:Rt},M.a.createElement("div",{onClick:function(){bt||st(ot-1,"prev")},className:bt?d.a.disabled:""},"\u4E0A\u4E00\u9875"),M.a.createElement("div",{onClick:function(){xt||st(ot+1,"next")},className:xt?d.a.disabled:""},"\u4E0B\u4E00\u9875"))},c=l,v=N("T2oS"),f=N("W9HT"),T=N("pC0b"),L=N("GzdX"),P=N("5Dmo"),S=N("3S7+"),A=N("Oe0F"),H=N.n(A),D=N("m3rI"),K=N("1vsH"),V=N("JAbv"),oe=N.n(V),le=N("Bq7L"),Ce=N.n(le),xe=N("MEgm"),ie=N.n(xe),Se=N("BdwD"),Pe=function(Oe){var ot=Oe.className,st=Oe.dataSource,Qe=st===void 0?[]:st,_t=Oe.col,Tt=_t===void 0?4:_t,Et=Oe.right,Rt=Oe.bottom,bt=Rt===void 0?23:Rt,xt=Oe.precision,Ot=xt===void 0?0:xt,qe=Oe.wrapWidth,Bt=qe===void 0?1200:qe,gt=Oe.trackEventItems,vt=Oe.loading,wt=Math.floor((Bt-(Tt-1)*Et)/Tt);return M.a.createElement(f.a,{spinning:vt},M.a.createElement("div",{className:u()(H.a.list,ot)},!!Qe.length&&Qe.map(function(pt,tn){var Yt=pt.name,cn=pt.id,Ht=pt.identifier,At=pt.power,Ft=pt.cover_image_id,fn=pt.pic;return M.a.createElement("div",{className:H.a.wrap,key:cn,style:{width:wt,marginRight:(1+tn)%Tt===0?0:Et+Ot,marginBottom:bt}},M.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Ht,"/challenges"),className:H.a.li,onClick:function(Tn){Tn.preventDefault(),gt&&Object(K.cb)([gt]),At&&Object(K.S)("/shixuns/".concat(Ht,"/challenges"))}},M.a.createElement("div",{className:H.a.img},M.a.createElement("img",{className:H.a.cover,src:Ft?"".concat(D.a.API_SERVER,"/api/attachments/").concat(Ft):"".concat(D.a.IMG_SERVER,"/").concat(fn)}),pt.is_jupyter&&M.a.createElement("img",{className:H.a.sign,src:oe.a}),pt.is_jupyter_lab&&M.a.createElement("img",{className:H.a.sign,src:Ce.a}),pt.is_unity_3d&&M.a.createElement("img",{className:H.a.sign,src:ie.a})),M.a.createElement("div",{className:H.a.name},M.a.createElement(S.a,{title:Yt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},M.a.createElement("span",{className:H.a.e},Yt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),M.a.createElement("div",{className:H.a.tags},M.a.createElement(S.a,{placement:"bottom",title:"\u5173\u5361\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),M.a.createElement("span",null,pt.challenges_count))),!!pt.myshixuns_count&&M.a.createElement(S.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),M.a.createElement("span",null,pt.myshixuns_count))),M.a.createElement(S.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},M.a.createElement("span",null,M.a.createElement("span",null,pt.level))),M.a.createElement("div",{className:H.a.rate},M.a.createElement(L.a,{allowHalf:!0,disabled:!0,defaultValue:pt.score_info}),M.a.createElement("span",null,"\xA0",pt.score_info?"".concat(pt.score_info,"\u5206"):"5\u5206")))),!At&&M.a.createElement("div",{className:H.a.lockWrap},M.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),M.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Qe.length&&M.a.createElement(Se.a,null)))},de=Pe,$=N("ZJlW"),Ne=N.n($),lt=N("z4EP"),it=N.n(lt),Je=N("+GGh"),at=N.n(Je),Ue=N("cFMs"),ze=N.n(Ue),et=function(Oe){var ot=Oe.className,st=Oe.dataSource,Qe=st===void 0?[]:st,_t=Oe.col,Tt=_t===void 0?4:_t,Et=Oe.right,Rt=Oe.bottom,bt=Rt===void 0?23:Rt,xt=Oe.precision,Ot=xt===void 0?0:xt,qe=Oe.wrapWidth,Bt=qe===void 0?1200:qe,gt=Oe.trackEventItems,vt=Oe.loading,wt=Math.floor((Bt-(Tt-1)*Et)/Tt);return M.a.createElement(f.a,{spinning:vt},M.a.createElement("div",{className:u()(Ne.a.list,ot)},!!Qe.length&&Qe.map(function(pt,tn){var Yt=pt.name,cn=pt.id,Ht=pt.identifier,At=pt.featured,Ft=pt.school_name,fn=pt.image_url,ln=pt.excellent;return M.a.createElement("div",{key:cn,className:Ne.a.wrap,style:{width:wt,marginRight:(1+tn)%Tt===0?0:Et+Ot,marginBottom:bt}},M.a.createElement("a",{target:"_blank",href:"/paths/".concat(Ht),className:Ne.a.li,onClick:function(Mn){Mn.preventDefault(),gt&&Object(K.cb)([gt]),Object(K.S)("/paths/".concat(Ht))}},M.a.createElement("div",{className:Ne.a.img},M.a.createElement("img",{className:Ne.a.cover,src:"".concat(D.a.IMG_SERVER,"/").concat(fn)}),At===1&&M.a.createElement("img",{className:Ne.a.sign,src:it.a}),At===2&&M.a.createElement("img",{className:Ne.a.sign,src:""}),At===3&&M.a.createElement("img",{className:Ne.a.sign,src:at.a}),At===4&&M.a.createElement("img",{className:Ne.a.sign,src:""}),At===5&&M.a.createElement("img",{className:Ne.a.sign,src:ze.a})),M.a.createElement("div",{className:Ne.a.name},M.a.createElement(S.a,{title:Yt},M.a.createElement("span",{className:Ne.a.e},Yt))),M.a.createElement(S.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Ft)},M.a.createElement("div",{className:Ne.a.unit},M.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ft)),M.a.createElement("div",{className:Ne.a.tags},M.a.createElement(S.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),M.a.createElement("span",null,pt.stages_count))),M.a.createElement(S.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),M.a.createElement("span",null,pt.members_count))),ln&&M.a.createElement("div",{className:Ne.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!Qe.length&&M.a.createElement(Se.a,null)))},ee=et,ge=N("iL++"),_e=N.n(ge),we=N("xiVL"),Ve=function(Oe){var ot=Oe.className,st=Oe.dataSource,Qe=st===void 0?[]:st,_t=Oe.col,Tt=_t===void 0?4:_t,Et=Oe.right,Rt=Oe.bottom,bt=Rt===void 0?23:Rt,xt=Oe.precision,Ot=xt===void 0?0:xt,qe=Oe.wrapWidth,Bt=qe===void 0?1200:qe,gt=Oe.trackEventItems,vt=Oe.loading,wt=Math.floor((Bt-(Tt-1)*Et)/Tt);return M.a.createElement(f.a,{spinning:vt},M.a.createElement("div",{className:u()(_e.a.list,ot)},!!Qe.length&&Qe.map(function(pt,tn){var Yt=pt.subject_identifier,cn=pt.id,Ht=pt.identifier,At=pt.power,Ft=pt.is_public!=0&&pt.is_public;return M.a.createElement("div",{className:_e.a.wrap,key:cn,style:{width:wt,marginRight:(1+tn)%Tt===0?0:Et+Ot,marginBottom:bt}},M.a.createElement("a",{className:_e.a.li,onClick:function(ln){ln.preventDefault()}},M.a.createElement("div",{className:_e.a.top},M.a.createElement(S.a,{title:pt.name},M.a.createElement("div",{className:_e.a.name},pt.name)),M.a.createElement("img",{className:_e.a.img,src:D.a.IMG_SERVER+"/images/"+pt.avatar_url}),M.a.createElement("div",{className:_e.a.text},pt.creator),Yt&&M.a.createElement("div",{className:_e.a.btns},M.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),M.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ft&&M.a.createElement("div",{className:_e.a.sign},"\u516C\u5F00")),M.a.createElement("div",{className:_e.a.bottom},pt.visits>0&&M.a.createElement(S.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-liulanyan"}),M.a.createElement("span",null,pt.visits))),pt.course_members_count>0&&M.a.createElement(S.a,{title:"\u6210\u5458",placement:"bottom"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-chengyuan"}),pt.course_members_count)),pt.tasks_count>0&&M.a.createElement(S.a,{title:"\u4F5C\u4E1A",placement:"bottom"},M.a.createElement("span",null,M.a.createElement("i",{className:"iconfont icon-zuoye"}),pt.tasks_count)),pt.is_end?M.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):M.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),M.a.createElement("div",{className:_e.a.lockWrap},pt.is_accessible?M.a.createElement(M.a.Fragment,null,Yt&&M.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(Yt))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),M.a.createElement("div",{onClick:function(ln){gt&&Object(K.cb)([gt]),Object(K.S)(pt.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):M.a.createElement(M.a.Fragment,null,M.a.createElement("img",{src:"".concat(D.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),M.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!Qe.length&&M.a.createElement(Se.a,null)))},Ze=Ve,rt=N("f0W+"),$e=N.n(rt),ft=function(Oe){var ot=Oe.dataSource,st=ot===void 0?[]:ot,Qe=Oe.value,_t=Oe.onChange,Tt=Oe.className,Et=Oe.style,Rt=Et===void 0?{}:Et,bt=Oe.tabBarExtraContent;return M.a.createElement("div",{className:u()($e.a.tabs,Tt),style:Rt},M.a.createElement("div",{className:$e.a.tabsWrap},st.map(function(xt,Ot){return M.a.createElement("div",{onClick:function(){return _t(xt.id)},className:Qe===xt.id?$e.a.active:"",key:Ot},xt.name)})),M.a.createElement("div",{className:$e.a.tabBar},bt))},ht=ft,ye=N("9JIy"),Ae=N.n(ye),ke=function(Oe){var ot=Oe.className,st=Oe.style,Qe=st===void 0?{}:st,_t=Oe.children;return M.a.createElement("div",{className:u()(Ae.a.table,ot),style:Qe},_t)},He=ke,Ie=N("qVdP"),Le=N("jsC+"),fe=N("lUTK"),re=N("BvKs"),ae=N("8WcF"),Y=N.n(ae),J=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],Z=function(Oe){var ot,st=Oe.sortValue,Qe=Oe.dropValue,_t=Oe.className,Tt=Oe.onSort,Et=Oe.onDrop,Rt=Oe.dataSource,bt=Rt===void 0?J:Rt;return M.a.createElement("div",{className:u()(Y.a.orderWrap,_t)},M.a.createElement(Le.a,{overlay:M.a.createElement(re.a,null,bt.map(function(xt,Ot){return M.a.createElement(re.a.Item,{key:Ot,onClick:function(){return Et(xt.id)}},xt.name)}))},M.a.createElement("span",{className:Y.a.orderTextWrap},(ot=bt.find(function(xt){return Qe===xt.id}))===null||ot===void 0?void 0:ot.name)),M.a.createElement("span",{className:Y.a.orderIconWrap},M.a.createElement("span",{className:Y.a.orderAsc},M.a.createElement("i",{className:st==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Y.a.cursorPointer," ").concat(Y.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Y.a.cursorPointer),onClick:function(){return Tt(st==="asc"?"desc":"asc")}})),M.a.createElement("span",{className:Y.a.orderDesc},M.a.createElement("i",{className:st==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Y.a.cursorPointer," ").concat(Y.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Y.a.cursorPointer),onClick:function(){return Tt(st==="asc"?"desc":"asc")}}))))},se=Z,Ee=N("siWv"),De=N.n(Ee),Ke=function(Oe){var ot=Oe.className,st=Oe.style,Qe=Oe.children,_t=Oe.onClick;return M.a.createElement("div",{onClick:_t,className:u()(De.a.btn,ot),style:st},Qe)},ut=Ke},NvD2:function(je,ne,N){"use strict";N.d(ne,"a",function(){return R});var Q=N("Kwbf");function M(W,k){var e=new Set;return W.forEach(function(O){k.has(O)||e.add(O)}),e}function I(W){var k=W||{},e=k.disabled,O=k.disableCheckbox,g=k.checkable;return!!(e||O)||g===!1}function j(W,k,e,O){for(var g=new Set(W),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,y=b===void 0?[]:b;g.has(n)&&!O(t)&&y.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,y=!1;(n.children||[]).filter(function(m){return!O(m.node)}).forEach(function(m){var x=m.key,_=g.has(x);b&&!_&&(b=!1),!y&&(_||p.has(x))&&(y=!0)}),b&&g.add(n.key),y&&p.add(n.key),r.add(n.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(M(p,g))}}function C(W,k,e,O,g){for(var p=new Set(W),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,y=n.children,m=y===void 0?[]:y;!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 y=!0,m=!1;(t.children||[]).filter(function(x){return!g(x.node)}).forEach(function(x){var _=x.key,h=p.has(_);y&&!h&&(y=!1),!m&&(h||u.has(_))&&(m=!0)}),y||p.delete(t.key),m&&u.add(t.key),o.add(t.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(M(u,p))}}function R(W,k,e,O){var g=[],p;O?p=O:p=I;var u=new Set(W.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(je,ne,N){"use strict";N.d(ne,"b",function(){return O}),N.d(ne,"a",function(){return g}),N.d(ne,"k",function(){return p}),N.d(ne,"h",function(){return u}),N.d(ne,"i",function(){return a}),N.d(ne,"g",function(){return r}),N.d(ne,"c",function(){return o}),N.d(ne,"d",function(){return s}),N.d(ne,"j",function(){return t}),N.d(ne,"e",function(){return b}),N.d(ne,"f",function(){return y});var Q=N("KQm4"),M=N("U8pU"),I=N("Ff2n"),j=N("q1tI"),C=N.n(j),R=N("Kwbf"),W=N("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 v=c.key,f=c.children;_.push(v),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,v=Math.max(c*k,e);return _<=d+v?-1:_>=l-v?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 v=c.children,f=Object(I.a)(c,["children"]),T=n(v,x);return C.a.createElement(W.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(M.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,v=l.node;if(v.disabled)return;c&&h(c.key)}return(m||[]).forEach(function(d){h(d)}),Object(Q.a)(_)}function y(m){var x={};return Object.keys(m).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(x[_]=m[_])}),x}},Oe0F:function(je,ne,N){je.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(je,ne,N){var Q=N("wTVA"),M=N("EbDI"),I=N("ZhPi"),j=N("wkBT");function C(R){return Q(R)||M(R)||I(R)||j()}je.exports=C,je.exports.__esModule=!0,je.exports.default=je.exports},SJMd:function(je,ne){/**
* @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 N,Q,M,I=!1,j,C;window.PR_SHOULD_USE_CONTINUATION=!0;var R,W;(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],y=/^(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",v="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 H(Ue){for(var ze=0,et=!1,ee=!1,ge=0,_e=Ue.length;ge<_e;++ge){var we=Ue[ge];if(we.ignoreCase)ee=!0;else if(/[a-z]/i.test(we.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){et=!0,ee=!1;break}}var Ve={b:8,t:9,n:10,v:11,f:12,r:13};function Ze(ye){var Ae=ye.charCodeAt(0);if(Ae!==92)return Ae;var ke=ye.charAt(1);return Ae=Ve[ke],Ae||("0"<=ke&&ke<="7"?parseInt(ye.substring(1),8):ke==="u"||ke==="x"?parseInt(ye.substring(2),16):ye.charCodeAt(1))}function rt(ye){if(ye<32)return(ye<16?"\\x0":"\\x")+ye.toString(16);var Ae=String.fromCharCode(ye);return Ae==="\\"||Ae==="-"||Ae==="]"||Ae==="^"?"\\"+Ae:Ae}function $e(ye){var Ae=ye.substring(1,ye.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ke=[],He=Ae[0]==="^",Ie=["["];He&&Ie.push("^");for(var Le=He?1:0,fe=Ae.length;Le122||(Y<65||ae>90||ke.push([Math.max(65,ae)|32,Math.min(Y,90)|32]),Y<97||ae>122||ke.push([Math.max(97,ae)&~32,Math.min(Y,122)&~32]))}}ke.sort(function(Ee,De){return Ee[0]-De[0]||De[1]-Ee[1]});for(var J=[],Z=[],Le=0;Lese[0]&&(se[1]+1>se[0]&&Ie.push("-"),Ie.push(rt(se[1])))}return Ie.push("]"),Ie.join("")}function ft(ye){for(var Ae=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")),ke=Ae.length,He=[],Ie=0,Le=0;Ie=2&&ae==="["?Ae[Ie]=$e(fe):ae!=="\\"&&(Ae[Ie]=fe.replace(/[a-zA-Z]/g,function(Z){var se=Z.charCodeAt(0);return"["+String.fromCharCode(se&~32,se|32)+"]"}))}return Ae.join("")}for(var ht=[],ge=0,_e=Ue.length;ge<_e;++ge){var we=Ue[ge];if(we.global||we.multiline)throw new Error(""+we);ht.push("(?:"+ft(we)+")")}return new RegExp(ht.join("|"),ee?"gi":"g")}function D(Ue,ze){var et=/(?:^|\s)nocode(?:\s|$)/,ee=[],ge=0,_e=[],we=0;function Ve(Ze){var rt=Ze.nodeType;if(rt==1){if(et.test(Ze.className))return;for(var $e=Ze.firstChild;$e;$e=$e.nextSibling)Ve($e);var ft=Ze.nodeName.toLowerCase();(ft==="br"||ft==="li")&&(ee[we]=`
`,_e[we<<1]=ge++,_e[we++<<1|1]=Ze)}else if(rt==3||rt==4){var ht=Ze.nodeValue;ht.length&&(ze?ht=ht.replace(/\r\n?/g,`
`):ht=ht.replace(/[ \t\r\n]+/g," "),ee[we]=ht,_e[we<<1]=ge,ge+=ht.length,_e[we++<<1|1]=Ze)}}return Ve(Ue),{sourceCode:ee.join("").replace(/\n$/,""),spans:_e}}function K(Ue,ze,et,ee,ge){if(!et)return;var _e={sourceNode:Ue,pre:1,langExtension:null,numberLines:null,sourceCode:et,spans:null,basePos:ze,decorations:null};ee(_e),ge.push.apply(ge,_e.decorations)}var V=/\S/;function oe(Ue){for(var ze=void 0,et=Ue.firstChild;et;et=et.nextSibling){var ee=et.nodeType;ze=ee===1?ze?Ue:et:ee===3&&V.test(et.nodeValue)?Ue:ze}return ze===Ue?void 0:ze}function le(Ue,ze){var et={},ee;(function(){for(var we=Ue.concat(ze),Ve=[],Ze={},rt=0,$e=we.length;rt<$e;++rt){var ft=we[rt],ht=ft[3];if(ht)for(var ye=ht.length;--ye>=0;)et[ht.charAt(ye)]=ft;var Ae=ft[1],ke=""+Ae;Ze.hasOwnProperty(ke)||(Ve.push(Ae),Ze[ke]=null)}Ve.push(/[\0-\uffff]/),ee=H(Ve)})();var ge=ze.length,_e=function(we){for(var Ve=we.sourceCode,Ze=we.basePos,rt=we.sourceNode,$e=[Ze,c],ft=0,ht=Ve.match(ee)||[],ye={},Ae=0,ke=ht.length;Ae=5&&Ie.substring(0,5)==="lang-",fe&&!(Le&&typeof Le[1]=="string")&&(fe=!1,Ie=T),fe||(ye[He]=Ie)}var Y=ft;if(ft+=He.length,!fe)$e.push(Ze+Y,Ie);else{var J=Le[1],Z=He.indexOf(J),se=Z+J.length;Le[2]&&(se=He.length-Le[2].length,Z=se-J.length);var Ee=Ie.substring(5);K(rt,Ze+Y,He.substring(0,Z),_e,$e),K(rt,Ze+Y+Z,J,$(Ee,J),$e),K(rt,Ze+Y+se,He.substring(se),_e,$e)}}we.decorations=$e};return _e}function Ce(Ue){var ze=[],et=[];Ue.tripleQuotedStrings?ze.push([m,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ue.multiLineStrings?ze.push([m,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ze.push([m,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ue.verbatimStrings&&et.push([m,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ee=Ue.hashComments;ee&&(Ue.cStyleComments?(ee>1?ze.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ze.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),et.push([m,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ze.push([_,/^#[^\r\n]*/,null,"#"])),Ue.cStyleComments&&(et.push([_,/^\/\/[^\r\n]*/,null]),et.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ge=Ue.regexLiterals;if(ge){var _e=ge>1?"":`
\r`,we=_e?".":"[\\S\\s]",Ve="/(?=[^/*"+_e+"])(?:[^/\\x5B\\x5C"+_e+"]|\\x5C"+we+"|\\x5B(?:[^\\x5C\\x5D"+_e+"]|\\x5C"+we+")*(?:\\x5D|$))+/";et.push(["lang-regex",RegExp("^"+A+"("+Ve+")")])}var Ze=Ue.types;Ze&&et.push([h,Ze]);var rt=(""+Ue.keywords).replace(/^ | $/g,"");rt.length&&et.push([x,new RegExp("^(?:"+rt.replace(/[\s,]+/g,"|")+")\\b"),null]),ze.push([c,/^\s+/,null,` \r
\xA0`]);var $e="^.[^\\s\\w.$@'\"`/\\\\]*";return Ue.regexLiterals&&($e+="(?!s*/)"),et.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($e),null]),le(ze,et)}var xe=Ce({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ie(Ue,ze,et){for(var ee=/(?:^|\s)nocode(?:\s|$)/,ge=/\r\n?|\n/,_e=Ue.ownerDocument,we=_e.createElement("li");Ue.firstChild;)we.appendChild(Ue.firstChild);var Ve=[we];function Ze(Ae){var ke=Ae.nodeType;if(ke==1&&!ee.test(Ae.className))if(Ae.nodeName==="br")rt(Ae),Ae.parentNode&&Ae.parentNode.removeChild(Ae);else for(var He=Ae.firstChild;He;He=He.nextSibling)Ze(He);else if((ke==3||ke==4)&&et){var Ie=Ae.nodeValue,Le=Ie.match(ge);if(Le){var fe=Ie.substring(0,Le.index);Ae.nodeValue=fe;var re=Ie.substring(Le.index+Le[0].length);if(re){var ae=Ae.parentNode;ae.insertBefore(_e.createTextNode(re),Ae.nextSibling)}rt(Ae),fe||Ae.parentNode.removeChild(Ae)}}}function rt(Ae){for(;!Ae.nextSibling;)if(Ae=Ae.parentNode,!Ae)return;function ke(Le,fe){var re=fe?Le.cloneNode(!1):Le,ae=Le.parentNode;if(ae){var Y=ke(ae,1),J=Le.nextSibling;Y.appendChild(re);for(var Z=J;Z;Z=J)J=Z.nextSibling,Y.appendChild(Z)}return re}for(var He=ke(Ae.nextSibling,0),Ie;(Ie=He.parentNode)&&Ie.nodeType===1;)He=Ie;Ve.push(He)}for(var $e=0;$e=ae&&(Ze+=2),_e>=Y&&(ft+=2)}}finally{Ie&&(Ie.style.display=Le)}}var Pe={};function de(Ue,ze){for(var et=ze.length;--et>=0;){var ee=ze[et];Pe.hasOwnProperty(ee)?k.console&&console.warn("cannot override language handler %s",ee):Pe[ee]=Ue}}function $(Ue,ze){return Ue&&Pe.hasOwnProperty(Ue)||(Ue=/^\s*]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[l,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^