(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+6Fa":function(D,_,e){"use strict";var g=e("wx14"),f=e("Ff2n"),A=e("rePB"),m=e("1OyB"),v=e("vuIU"),h=e("Ji7U"),c=e("md7G"),o=e("foSv"),i=e("q1tI"),n=e.n(i),a=e("TSYQ"),u=e.n(a);function r(p,b){var w=Object.keys(p);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(p);b&&(E=E.filter(function(S){return Object.getOwnPropertyDescriptor(p,S).enumerable})),w.push.apply(w,E)}return w}function l(p){for(var b=1;b-1}D.exports=f},"+BJd":function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),A=e("6MrE"),m=e.n(A)},"+QRC":function(D,_,e){"use strict";var g=e("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},A="Copy to clipboard: #{key}, Enter";function m(h){var c=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return h.replace(/#{\s*key\s*}/g,c)}function v(h,c){var o,i,n,a,u,r,l=!1;c||(c={}),o=c.debug||!1;try{n=g(),a=document.createRange(),u=document.getSelection(),r=document.createElement("span"),r.textContent=h,r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(s){if(s.stopPropagation(),c.format)if(s.preventDefault(),typeof s.clipboardData=="undefined"){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=f[c.format]||f.default;window.clipboardData.setData(d,h)}else s.clipboardData.clearData(),s.clipboardData.setData(c.format,h);c.onCopy&&(s.preventDefault(),c.onCopy(s.clipboardData))}),document.body.appendChild(r),a.selectNodeContents(r),u.addRange(a);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");l=!0}catch(s){o&&console.error("unable to copy using execCommand: ",s),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",h),c.onCopy&&c.onCopy(window.clipboardData),l=!0}catch(d){o&&console.error("unable to copy using clipboardData: ",d),o&&console.error("falling back to prompt"),i=m("message"in c?c.message:A),window.prompt(i,h)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(a):u.removeAllRanges()),r&&document.body.removeChild(r),n()}return l}D.exports=v},"+TT/":function(D,_,e){var g=e("bYtY"),f=e("mFDi"),A=e("OELB"),m=A.parsePercent,v=e("7aKB"),h=g.each,c=["left","right","top","bottom","width","height"],o=[["width","left","right"],["height","top","bottom"]];function i(w,E,S,x,T){var L=0,y=0;x==null&&(x=Infinity),T==null&&(T=Infinity);var C=0;E.eachChild(function(O,N){var k=O.position,F=O.getBoundingRect(),B=E.childAt(N+1),H=B&&B.getBoundingRect(),W,R;if(w==="horizontal"){var U=F.width+(H?-H.x+F.x:0);W=L+U,W>x||O.newline?(L=0,W=U,y+=C+S,C=F.height):C=Math.max(C,F.height)}else{var j=F.height+(H?-H.y+F.y:0);R=y+j,R>T||O.newline?(L+=C+S,y=0,R=j,C=F.width):C=Math.max(C,F.width)}if(O.newline)return;k[0]=L,k[1]=y,w==="horizontal"?L=W+S:y=R+S})}var n=i,a=g.curry(i,"vertical"),u=g.curry(i,"horizontal");function r(w,E,S){var x=E.width,T=E.height,L=m(w.x,x),y=m(w.y,T),C=m(w.x2,x),O=m(w.y2,T);return(isNaN(L)||isNaN(parseFloat(w.x)))&&(L=0),(isNaN(C)||isNaN(parseFloat(w.x2)))&&(C=x),(isNaN(y)||isNaN(parseFloat(w.y)))&&(y=0),(isNaN(O)||isNaN(parseFloat(w.y2)))&&(O=T),S=v.normalizeCssArray(S||0),{width:Math.max(C-L-S[1]-S[3],0),height:Math.max(O-y-S[0]-S[2],0)}}function l(w,E,S){S=v.normalizeCssArray(S||0);var x=E.width,T=E.height,L=m(w.left,x),y=m(w.top,T),C=m(w.right,x),O=m(w.bottom,T),N=m(w.width,x),k=m(w.height,T),F=S[2]+S[0],B=S[1]+S[3],H=w.aspect;isNaN(N)&&(N=x-C-B-L),isNaN(k)&&(k=T-O-F-y),H!=null&&(isNaN(N)&&isNaN(k)&&(H>x/T?N=x*.8:k=T*.8),isNaN(N)&&(N=H*k),isNaN(k)&&(k=N/H)),isNaN(L)&&(L=x-C-N-B),isNaN(y)&&(y=T-O-k-F);switch(w.left||w.right){case"center":L=x/2-N/2-S[3];break;case"right":L=x-N-B;break}switch(w.top||w.bottom){case"middle":case"center":y=T/2-k/2-S[0];break;case"bottom":y=T-k-F;break}L=L||0,y=y||0,isNaN(N)&&(N=x-B-L-(C||0)),isNaN(k)&&(k=T-F-y-(O||0));var W=new f(L+S[3],y+S[0],N,k);return W.margin=S,W}function t(w,E,S,x,T){var L=!T||!T.hv||T.hv[0],y=!T||!T.hv||T.hv[1],C=T&&T.boundingMode||"all";if(!L&&!y)return;var O;if(C==="raw")O=w.type==="group"?new f(0,0,+E.width||0,+E.height||0):w.getBoundingRect();else if(O=w.getBoundingRect(),w.needLocalTransform()){var N=w.getLocalTransform();O=O.clone(),O.applyTransform(N)}E=l(g.defaults({width:O.width,height:O.height},E),S,x);var k=w.position,F=L?E.x-O.x:0,B=y?E.y-O.y:0;w.attr("position",C==="raw"?[F,B]:[k[0]+F,k[1]+B])}function s(w,E){return w[o[E][0]]!=null||w[o[E][1]]!=null&&w[o[E][2]]!=null}function d(w,E,S){!g.isObject(S)&&(S={});var x=S.ignoreSize;!g.isArray(x)&&(x=[x,x]);var T=y(o[0],0),L=y(o[1],1);N(o[0],w,T),N(o[1],w,L);function y(k,F){var B={},H=0,W={},R=0,U=2;if(h(k,function(K){W[K]=w[K]}),h(k,function(K){C(E,K)&&(B[K]=W[K]=E[K]),O(B,K)&&H++,O(W,K)&&R++}),x[F])return O(E,k[1])?W[k[2]]=null:O(E,k[2])&&(W[k[1]]=null),W;if(R===U||!H)return W;if(H>=U)return B;for(var j=0;j2&&arguments[2]!==void 0?arguments[2]:"0",nr=String(tt);nr.length=12,Rn%=12);var Di=o.useMemo(function(){if(!Zr)return[!1,!1];var mi=[!0,!0];return ri.forEach(function(hi){var qi=hi.disabled,va=hi.value;if(qi)return;va>=12?mi[1]=!1:mi[0]=!1}),mi},[Zr,ri]),yi=Object(j.a)(Di,2),xi=yi[0],Li=yi[1],Un=o.useMemo(function(){return Zr?ri.filter(vn?function(mi){return mi.value>=12}:function(mi){return mi.value<12}).map(function(mi){var hi=mi.value%12,qi=hi===0?"12":Ze(hi,2);return Object(U.a)(Object(U.a)({},mi),{},{label:qi,value:hi})}):ri},[Zr,ri]),Ri=rt(0,59,sr,rn&&rn(Rn)),fa=rt(0,59,Mr,fn&&fn(Rn,En));nr.current={onUpDown:function(hi){var qi=Sn[Or];if(qi)for(var va=qi.units.findIndex(function(sa){return sa.value===qi.value}),Ea=qi.units.length,ya=1;ya1&&(Er=jt.addDate(Er,-7)),Er}function Ne(tt,jt,Jt){var nr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(jt){case"year":return Jt.addYear(tt,nr*10);case"quarter":case"month":return Jt.addYear(tt,nr);default:return Jt.addMonth(tt,nr)}}var je=o.createContext({}),Ke=je;function Ye(tt){var jt=tt.cellPrefixCls,Jt=tt.generateConfig,nr=tt.rangedValue,Or=tt.hoverRangedValue,wr=tt.isInView,Er=tt.isSameCell,zr=tt.offsetCell,Jr=tt.today,Zr=tt.value;function an(St){var Vt,sr=zr(St,-1),br=zr(St,1),Mr=Rt(nr,0),Dr=Rt(nr,1),rn=Rt(Or,0),fn=Rt(Or,1),wn=fe(Jt,rn,fn,St);function Hn(En){return Er(Mr,En)}function Sn(En){return Er(Dr,En)}var bn=Er(rn,St),Mn=Er(fn,St),vn=(wn||Mn)&&(!wr(sr)||Sn(sr)),Rn=(wn||bn)&&(!wr(br)||Hn(br));return Vt={},Object(R.a)(Vt,"".concat(jt,"-in-view"),wr(St)),Object(R.a)(Vt,"".concat(jt,"-in-range"),fe(Jt,Mr,Dr,St)),Object(R.a)(Vt,"".concat(jt,"-range-start"),Hn(St)),Object(R.a)(Vt,"".concat(jt,"-range-end"),Sn(St)),Object(R.a)(Vt,"".concat(jt,"-range-start-single"),Hn(St)&&!Dr),Object(R.a)(Vt,"".concat(jt,"-range-end-single"),Sn(St)&&!Mr),Object(R.a)(Vt,"".concat(jt,"-range-start-near-hover"),Hn(St)&&(Er(sr,rn)||fe(Jt,rn,fn,sr))),Object(R.a)(Vt,"".concat(jt,"-range-end-near-hover"),Sn(St)&&(Er(br,fn)||fe(Jt,rn,fn,br))),Object(R.a)(Vt,"".concat(jt,"-range-hover"),wn),Object(R.a)(Vt,"".concat(jt,"-range-hover-start"),bn),Object(R.a)(Vt,"".concat(jt,"-range-hover-end"),Mn),Object(R.a)(Vt,"".concat(jt,"-range-hover-edge-start"),vn),Object(R.a)(Vt,"".concat(jt,"-range-hover-edge-end"),Rn),Object(R.a)(Vt,"".concat(jt,"-range-hover-edge-start-near-range"),vn&&Er(sr,Dr)),Object(R.a)(Vt,"".concat(jt,"-range-hover-edge-end-near-range"),Rn&&Er(br,Mr)),Object(R.a)(Vt,"".concat(jt,"-today"),Er(Jr,St)),Object(R.a)(Vt,"".concat(jt,"-selected"),Er(Zr,St)),Vt}return an}function Pe(tt){for(var jt=tt.prefixCls,Jt=tt.disabledDate,nr=tt.onSelect,Or=tt.rowNum,wr=tt.colNum,Er=tt.prefixColumn,zr=tt.rowClassName,Jr=tt.baseDate,Zr=tt.getCellClassName,an=tt.getCellText,St=tt.getCellNode,Vt=tt.getCellDate,sr=tt.titleCell,br=tt.headerCells,Mr=o.useContext(X),Dr=Mr.onDateMouseEnter,rn=Mr.onDateMouseLeave,fn="".concat(jt,"-cell"),wn=[],Hn=0;Hn2&&arguments[2]!==void 0?arguments[2]:!1;(ba===Mr||oo)&&(la(pi),Mn&&Mn(pi),Ea&&Ea(pi,Gi),vn&&!ve(zr,pi,ca)&&vn(pi))},So=function(pi){return Vi.current&&Vi.current.onKeyDown?([V.a.LEFT,V.a.RIGHT,V.a.UP,V.a.DOWN,V.a.PAGE_UP,V.a.PAGE_DOWN,V.a.ENTER].includes(pi.which)&&pi.preventDefault(),Vi.current.onKeyDown(pi)):(Object(A.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},za=function(pi){Vi.current&&Vi.current.onBlur&&Vi.current.onBlur(pi)};qi&&$n!=="right"&&(qi.current={onKeyDown:So,onClose:function(){Vi.current&&Vi.current.onClose&&Vi.current.onClose()}}),o.useEffect(function(){Jr&&!Xi.current&&ra(Jr)},[Jr]),o.useEffect(function(){Xi.current=!1},[]);var ja,qa=Object(U.a)(Object(U.a)({},tt),{},{operationRef:Vi,prefixCls:nr,viewDate:Ma,value:ca,onViewDateChange:Yi,sourceMode:Ya,onPanelChange:pa,disabledDate:ba!=="decade"?Vt:void 0});delete qa.onChange,delete qa.onSelect;switch(ba){case"decade":ja=o.createElement(un,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"year":ja=o.createElement(qr,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"month":ja=o.createElement(er,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"quarter":ja=o.createElement(Ht,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"week":ja=o.createElement(Wt,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;case"time":delete qa.showTime,ja=o.createElement(it,Object.assign({},qa,Object(K.a)(wn)==="object"?wn:null,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}));break;default:wn?ja=o.createElement($e,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}})):ja=o.createElement(te,Object.assign({},qa,{onSelect:function(pi,Gi){Yi(pi),Oi(pi,Gi)}}))}var ho,Ca,to=function(){var pi=zr.getNow(),Gi=Ge(zr.getHour(pi),zr.getMinute(pi),zr.getSecond(pi),Ui?yi:1,Mi?Li:1,mi?Ri:1),oo=wt(zr,pi,Gi[0],Gi[1],Gi[2]);Oi(oo,"submit")};ya||(ho=Nn(nr,ba,Sn),Ca=jr({prefixCls:nr,components:ai,needConfirmButton:fa,okDisabled:!ca||Vt&&Vt(ca),locale:Er,showNow:fn,onNow:fa&&to,onOk:function(){ca&&(Oi(ca,"submit",!0),Xn&&Xn(ca))}}));var Lo;if(Hn&&ba==="date"&&Mr==="date"&&!wn){var _a=zr.getNow(),ki="".concat(nr,"-today-btn"),Ja=Vt&&Vt(_a);Lo=o.createElement("a",{className:T()(ki,Ja&&"".concat(ki,"-disabled")),"aria-disabled":Ja,onClick:function(){Ja||Oi(_a,"mouse",!0)}},Er.today)}return o.createElement(X.Provider,{value:Object(U.a)(Object(U.a)({},hi),{},{hideHeader:"hideHeader"in tt?bn:hi.hideHeader,hidePrevBtn:Ni&&$n==="right",hideNextBtn:Ni&&$n==="left"})},o.createElement("div",{tabIndex:rn,className:T()("".concat(nr,"-panel"),Or,(jt={},Object(R.a)(jt,"".concat(nr,"-panel-has-range"),Ai&&Ai[0]&&Ai[1]),Object(R.a)(jt,"".concat(nr,"-panel-has-range-hover"),_i&&_i[0]&&_i[1]),Object(R.a)(jt,"".concat(nr,"-panel-rtl"),ri==="rtl"),jt)),style:wr,onKeyDown:So,onBlur:za,onMouseDown:En,ref:va},ja,ho||Ca||Lo?o.createElement("div",{className:"".concat(nr,"-footer")},ho,Ca,Lo):null))}var gn=Tn,Pn=e("uciX"),zn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function qn(tt){var jt,Jt=tt.prefixCls,nr=tt.popupElement,Or=tt.popupStyle,wr=tt.visible,Er=tt.dropdownClassName,zr=tt.dropdownAlign,Jr=tt.transitionName,Zr=tt.getPopupContainer,an=tt.children,St=tt.range,Vt=tt.popupPlacement,sr=tt.direction,br="".concat(Jt,"-dropdown"),Mr=function(){return Vt!==void 0?Vt:sr==="rtl"?"bottomRight":"bottomLeft"};return o.createElement(Pn.a,{showAction:[],hideAction:[],popupPlacement:Mr(),builtinPlacements:zn,prefixCls:br,popupTransitionName:Jr,popup:nr,popupAlign:zr,popupVisible:wr,popupClassName:T()(Er,(jt={},Object(R.a)(jt,"".concat(br,"-range"),St),Object(R.a)(jt,"".concat(br,"-rtl"),sr==="rtl"),jt)),popupStyle:Or,getPopupContainer:Zr},an)}var Yn=qn;function Vn(tt){var jt=tt.open,Jt=tt.value,nr=tt.isClickOutside,Or=tt.triggerOpen,wr=tt.forwardKeyDown,Er=tt.blurToCancel,zr=tt.onSubmit,Jr=tt.onCancel,Zr=tt.onFocus,an=tt.onBlur,St=Object(o.useState)(!1),Vt=Object(j.a)(St,2),sr=Vt[0],br=Vt[1],Mr=Object(o.useState)(!1),Dr=Object(j.a)(Mr,2),rn=Dr[0],fn=Dr[1],wn=Object(o.useRef)(!1),Hn=Object(o.useRef)(!1),Sn={onMouseDown:function(){br(!0),Or(!0)},onKeyDown:function(Mn){switch(Mn.which){case V.a.ENTER:{jt?zr()!==!1&&br(!0):Or(!0),Mn.preventDefault();return}case V.a.TAB:{sr&&jt&&!Mn.shiftKey?(br(!1),Mn.preventDefault()):!sr&&jt&&(!wr(Mn)&&Mn.shiftKey&&(br(!0),Mn.preventDefault()));return}case V.a.ESC:{br(!0),Jr();return}}!jt&&![V.a.SHIFT].includes(Mn.which)?Or(!0):sr||wr(Mn)},onFocus:function(Mn){br(!0),fn(!0),Zr&&Zr(Mn)},onBlur:function(Mn){if(wn.current||!nr(document.activeElement)){wn.current=!1;return}Er?setTimeout(function(){nr(document.activeElement)&&Jr()},0):jt&&(Or(!1),Hn.current&&zr()),fn(!1),an&&an(Mn)}};return Object(o.useEffect)(function(){Hn.current=!1},[jt]),Object(o.useEffect)(function(){Hn.current=!0},[Jt]),Object(o.useEffect)(function(){return ee(function(bn){var Mn=bn.target;jt&&(nr(Mn)?rn||Or(!1):(wn.current=!0,requestAnimationFrame(function(){wn.current=!1})))})}),[Sn,{focused:rn,typing:sr}]}function An(tt){var jt=tt.valueTexts,Jt=tt.onTextChange,nr=o.useState(""),Or=Object(j.a)(nr,2),wr=Or[0],Er=Or[1],zr=o.useRef([]);zr.current=jt;function Jr(an){Er(an),Jt(an)}function Zr(){Er(zr.current[0])}return o.useEffect(function(){jt.every(function(an){return an!==wr})&&Zr()},[jt.join("||")]),[wr,Jr,Zr]}var on=e("Gytx"),ia=e.n(on);function xa(tt,jt){var Jt=jt.formatList,nr=jt.generateConfig,Or=jt.locale;return Object(pe.a)(function(){if(!tt)return[[""],""];for(var wr="",Er=[],zr=0;zrsr(an);case"month":return Vt(Dr)>Vt(an);case"week":return St(Dr)>St(an);default:return!or(Jr,Dr,an)&&Jr.isAfter(Dr,an)}return!1},[Er,zr[1],an,jt]),Mr=o.useCallback(function(Dr){if(Er&&Er(Dr))return!0;if(zr[0]&&Zr)return!or(Jr,Dr,an)&&Jr.isAfter(Zr,Dr);if(Jt&&Zr)switch(nr){case"quarter":return sr(Dr)0&&arguments[0]!==void 0?arguments[0]:!1,ui=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=null;vo&&xe&&xe[0]&&xe[1]&&br.isAfter(xe[1],xe[0])&&(Bi=xe);var Wn=bn;if(bn&&Object(K.a)(bn)==="object"&&bn.defaultValue){var io=bn.defaultValue;Wn=Object(U.a)(Object(U.a)({},bn),{},{defaultValue:Rt(io,vi)||void 0})}var qo=null;return xi&&(qo=function(os,Zo){return xi(os,Zo,{range:vi?"end":"start"})}),o.createElement(Ke.Provider,{value:{inRange:!0,panelPosition:ua,rangedValue:Vs||ki,hoverRangedValue:Bi}},o.createElement(gn,Object.assign({},tt,ui,{dateRender:qo,showTime:Wn,mode:Gi[vi],generateConfig:br,style:void 0,direction:Xi,disabledDate:vi===0?Fi:Ra,disabledTime:function(os){return yi?yi(os,vi===0?"start":"end"):!1},className:T()(Object(R.a)({},"".concat(wr,"-panel-focused"),vi===0?!yo:!jo)),value:Rt(ki,vi),locale:Mr,tabIndex:-1,onPanelChange:function(os,Zo){go(He(Gi,Zo,vi),He(ki,os,vi));var $o=os;ua==="right"&&Gi[vi]===Zo&&($o=Ne($o,Zo,br,-1)),to($o,vi)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Yo=0,Eo=0;vi&&ra.current&&Xa.current&&Ma.current&&(Yo=ra.current.offsetWidth+Xa.current.offsetWidth,Ma.current.offsetWidth&&Yo>Ma.current.offsetWidth&&(Eo=Yo));var ds=Xi==="rtl"?{right:Yo}:{left:Yo};function hs(){var ua,ui=Nn(wr,Gi[vi],va),Bi=jr({prefixCls:wr,components:_i,needConfirmButton:la,okDisabled:!Rt(ki,vi)||Di&&Di(ki[vi]),locale:Mr,rangeList:Xs,onOk:function(){Rt(ki,vi)&&(Za(ki,vi),Ai&&Ai(ki))}});if(Sn!=="time"&&!bn){var Wn=Ca(vi),io=Ne(Wn,Sn,br),qo=Gi[vi],gs=qo===Sn,os=Ys(gs?"left":!1,{pickerValue:Wn,onPickerValueChange:function(Ho){to(Ho,vi)}}),Zo=Ys("right",{pickerValue:io,onPickerValueChange:function(Ho){to(Ne(Ho,Sn,br,-1),vi)}});Xi==="rtl"?ua=o.createElement(o.Fragment,null,Zo,gs&&os):ua=o.createElement(o.Fragment,null,os,gs&&Zo)}else ua=Ys();var $o=o.createElement(o.Fragment,null,o.createElement("div",{className:"".concat(wr,"-panels")},ua),(ui||Bi)&&o.createElement("div",{className:"".concat(wr,"-footer")},ui,Bi));return Li&&($o=Li($o)),o.createElement("div",{className:"".concat(wr,"-panel-container"),style:{marginLeft:Eo},ref:Ma,onMouseDown:function(Ho){Ho.preventDefault()}},$o)}var Rs=o.createElement("div",{className:T()("".concat(wr,"-range-wrapper"),"".concat(wr,"-").concat(Sn,"-range-wrapper")),style:{minWidth:Is}},o.createElement("div",{className:"".concat(wr,"-range-arrow"),style:ds}),hs()),Do;Ui&&(Do=o.createElement("span",{className:"".concat(wr,"-suffix")},Ui));var ys;fa&&(Rt(za,0)&&!pa[0]||Rt(za,1)&&!pa[1])&&(ys=o.createElement("span",{onMouseDown:function(ui){ui.preventDefault(),ui.stopPropagation()},onMouseUp:function(ui){ui.preventDefault(),ui.stopPropagation();var Bi=za;pa[0]||(Bi=He(Bi,null,0)),pa[1]||(Bi=He(Bi,null,1)),Za(Bi,null),Go(!1,vi)},className:"".concat(wr,"-clear")},Mi||o.createElement("span",{className:"".concat(wr,"-clear-btn")})));var Ms={size:at(Sn,ba[0])},As=0,ks=0;ra.current&&Yi.current&&Xa.current&&(vi===0?ks=ra.current.offsetWidth:(As=Yo,ks=Yi.current.offsetWidth));var Hs=Xi==="rtl"?{right:As}:{left:As},bs=function(ui,Bi){var Wn=He(ki,ui,vi);Bi==="submit"||Bi!=="key"&&!la?Za(Wn,vi):Ja(Wn)};return o.createElement(X.Provider,{value:{operationRef:Ka,hideHeader:Sn==="time",onDateMouseEnter:Qn,onDateMouseLeave:ti,hideRanges:!0,onSelect:bs,open:vo}},o.createElement(Yn,{visible:vo,popupElement:Rs,popupStyle:Zr,prefixCls:wr,dropdownClassName:an,dropdownAlign:Vt,getPopupContainer:sr,transitionName:St,range:!0,direction:Xi},o.createElement("div",Object.assign({ref:Pa,className:T()(wr,"".concat(wr,"-range"),Jr,(jt={},Object(R.a)(jt,"".concat(wr,"-disabled"),pa[0]&&pa[1]),Object(R.a)(jt,"".concat(wr,"-focused"),vi===0?Wa:Ha),Object(R.a)(jt,"".concat(wr,"-rtl"),Xi==="rtl"),jt)),style:zr,onClick:Fo,onMouseDown:Qo},Be(tt)),o.createElement("div",{className:T()("".concat(wr,"-input"),(Jt={},Object(R.a)(Jt,"".concat(wr,"-input-active"),vi===0),Object(R.a)(Jt,"".concat(wr,"-input-placeholder"),!!Ut),Jt)),ref:ra},o.createElement("input",Object.assign({id:Er,disabled:pa[0],readOnly:hi||!yo,value:Ut||rs,onChange:function(ui){ms(ui.target.value)},autoFocus:rn,placeholder:Rt(Dr,0)||"",ref:Ki},Sa,Ms,{autoComplete:ca}))),o.createElement("div",{className:"".concat(wr,"-range-separator"),ref:Xa},Rn),o.createElement("div",{className:T()("".concat(wr,"-input"),(nr={},Object(R.a)(nr,"".concat(wr,"-input-active"),vi===1),Object(R.a)(nr,"".concat(wr,"-input-placeholder"),!!ln),nr)),ref:Yi},o.createElement("input",Object.assign({disabled:pa[1],readOnly:hi||!jo,value:ln||as,onChange:function(ui){$s(ui.target.value)},placeholder:Rt(Dr,1)||"",ref:zi},ko,Ms,{autoComplete:ca}))),o.createElement("div",{className:"".concat(wr,"-active-bar"),style:Object(U.a)(Object(U.a)({},Hs),{},{width:ks,position:"absolute"})}),Do,ys)))}var di=function(tt){Object(H.a)(Jt,tt);var jt=Object(W.a)(Jt);function Jt(){var nr;return Object(F.a)(this,Jt),nr=jt.apply(this,arguments),nr.pickerRef=o.createRef(),nr.focus=function(){nr.pickerRef.current&&nr.pickerRef.current.focus()},nr.blur=function(){nr.pickerRef.current&&nr.pickerRef.current.blur()},nr}return Object(B.a)(Jt,[{key:"render",value:function(){return o.createElement(ni,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Jt}(o.Component),Na=di,Qi=Gn,ma=e("61s2");function Ba(tt,jt,Jt){return Jt!==void 0?Jt:tt==="year"&&jt.lang.yearPlaceholder?jt.lang.yearPlaceholder:tt==="quarter"&&jt.lang.quarterPlaceholder?jt.lang.quarterPlaceholder:tt==="month"&&jt.lang.monthPlaceholder?jt.lang.monthPlaceholder:tt==="week"&&jt.lang.weekPlaceholder?jt.lang.weekPlaceholder:tt==="time"&&jt.timePickerLocale.placeholder?jt.timePickerLocale.placeholder:jt.lang.placeholder}function Qa(tt,jt,Jt){return Jt!==void 0?Jt:tt==="year"&&jt.lang.yearPlaceholder?jt.lang.rangeYearPlaceholder:tt==="month"&&jt.lang.monthPlaceholder?jt.lang.rangeMonthPlaceholder:tt==="week"&&jt.lang.weekPlaceholder?jt.lang.rangeWeekPlaceholder:tt==="time"&&jt.timePickerLocale.placeholder?jt.timePickerLocale.rangePlaceholder:jt.lang.rangePlaceholder}var Wi=e("uaoM"),Co=e("H84U"),aa=e("YMnH"),Hi=e("3Nzz"),ga=function(tt,jt){var Jt={};for(var nr in tt)Object.prototype.hasOwnProperty.call(tt,nr)&&jt.indexOf(nr)<0&&(Jt[nr]=tt[nr]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Or=0,nr=Object.getOwnPropertySymbols(tt);OrGe.length)&&(et=Ge.length);for(var rt=0,lt=new Array(et);rtAt&&(Ae="bottom")}}Pe!==null&&Pe!==Ge.current.scrollTop&&$(Pe)}it.current=Object(n.a)(function(){Bt&&ie(),ct(yt-1,Ae)})};ht(3)}}}function G(Ge,et,rt,lt){var Ve=rt-Ge,ie=et-rt,$=Math.min(Ve,ie)*2;if(lt<=$){var it=Math.floor(lt/2);return lt%2?rt+it+1:rt-it}return Ve>ie?rt-(lt-ie):rt+(lt-Ve)}function le(Ge,et,rt){var lt=Ge.length,Ve=et.length,ie,$;if(lt===0&&Ve===0)return null;ltGe.length)&&(et=Ge.length);for(var rt=0,lt=new Array(et);rtGe.length)&&(et=Ge.length);for(var rt=0,lt=new Array(et);rt=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Ge,lt))continue;rt[lt]=Ge[lt]}}return rt}function Ze(Ge,et){if(Ge==null)return{};var rt={},lt=Object.keys(Ge),Ve,ie;for(ie=0;ie=0)continue;rt[Ve]=Ge[Ve]}return rt}var vt=[],Ct={overflowY:"auto",overflowAnchor:"none"};function Be(Ge,et){var rt=Ge.prefixCls,lt=rt===void 0?"rc-virtual-list":rt,Ve=Ge.className,ie=Ge.height,$=Ge.itemHeight,it=Ge.fullHeight,Qe=it===void 0?!0:it,ye=Ge.style,Zt=Ge.data,ht=Ge.children,ct=Ge.itemKey,yt=Ge.virtual,It=Ge.component,or=It===void 0?"div":It,Bt=Ge.onScroll,Ae=Le(Ge,["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll"]),ve=yt!==!1&&ie&&$&&Zt&&$*Zt.length>ie,fe=g.useState(0),ue=ke(fe,2),Ne=ue[0],je=ue[1],Ke=g.useState(!1),Ye=ke(Ke,2),Pe=Ye[0],nt=Ye[1],At=A()(lt,Ve),Ot=Zt||vt,ne=Object(g.useRef)(),he=g.useCallback(function(Ar){return typeof ct=="function"?ct(Ar):Ar[ct]},[ct]),Q={getKey:he};function te(Ar){je(function(Nr){var kr;return typeof Ar=="function"?kr=Ar(Nr):kr=Ar,ne.current.scrollTop=kr,kr})}var be=Object(g.useRef)({start:0,end:Ot.length}),Ie=Object(g.useRef)(),Re=dt(Ot,he),$e=ke(Re,1),gt=$e[0];Ie.current=gt;var Wt=K(he,null,null),$t=ke(Wt,4),Dt=$t[0],Kt=$t[1],Gt=$t[2],Qt=$t[3],Mt=g.useMemo(function(){if(!ve)return{scrollHeight:void 0,start:0,end:Ot.length-1,offset:void 0};for(var Ar=0,Nr,kr,tn,qr=Ot.length,Lr=0;Lr=Ne&&Nr===void 0&&(Nr=Lr,kr=Ar),pr>Ne+ie&&tn===void 0&&(tn=Lr),Ar=pr}return Nr===void 0&&(Nr=0,kr=0),tn===void 0&&(tn=Ot.length-1),tn=Math.min(tn+1,Ot.length),{scrollHeight:Ar,start:Nr,end:tn,offset:kr}},[ve,Ne,Ot,Qt,ie]),dr=Mt.scrollHeight,er=Mt.start,st=Mt.end,xt=Mt.offset;be.current.start=er,be.current.end=st;var ut=V(dr,ie);function pt(Ar){var Nr=ut(Ar);Nr!==Ne&&te(Nr)}function _t(Ar){var Nr=Ar.currentTarget.scrollTop;Nr!==Ne&&te(Nr),Bt==null||Bt(Ar)}var Tt=_e(ve,function(Ar){te(function(Nr){var kr=ut(Nr+Ar);return kr})}),ft=ke(Tt,2),Ht=ft[0],kt=ft[1];g.useEffect(function(){return ne.current.addEventListener("wheel",Ht),ne.current.addEventListener("DOMMouseScroll",kt),function(){ne.current.removeEventListener("wheel",Ht),ne.current.removeEventListener("DOMMouseScroll",kt)}},[ve]);var ir=X(ne,Ot,Gt,$,he,Kt,te);g.useImperativeHandle(et,function(){return{scrollTo:ir}});var Xt=y(Ot,er,st,Dt,ht,Q),mr=null;return ie&&(mr=ee(se({},Qe?"height":"maxHeight",ie),Ct),ve&&(mr.overflowY="hidden",Pe&&(mr.pointerEvents="none"))),g.createElement("div",Object.assign({style:ee(ee({},ye),{},{position:"relative"}),className:At},Ae),g.createElement(or,{className:"".concat(lt,"-holder"),style:mr,ref:ne,onScroll:_t},g.createElement(i,{prefixCls:lt,height:dr,offset:xt,onInnerResize:Kt},Xt)),ve&&g.createElement(T,{prefixCls:lt,scrollTop:Ne,height:ie,scrollHeight:dr,count:Ot.length,onScroll:pt,onStartMove:function(){nt(!0)},onStopMove:function(){nt(!1)}}))}var Rt=g.forwardRef(Be);Rt.displayName="List";var He=Rt,wt=_.a=He},"+rIm":function(D,_,e){var g=e("bYtY"),f=g.retrieve,A=g.defaults,m=g.extend,v=g.each,h=e("7aKB"),c=e("IwbS"),o=e("Qxkt"),i=e("OELB"),n=i.isRadianAroundZero,a=i.remRadian,u=e("oVpE"),r=u.createSymbol,l=e("Fofx"),t=e("QBsz"),s=t.applyTransform,d=e("aX7z"),p=d.shouldShowAllLabels,b=Math.PI,w=function(R,U){this.opt=U,this.axisModel=R,A(U,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var j=new c.Group({position:U.position.slice(),rotation:U.rotation});j.updateTransform(),this._transform=j.transform,this._dumbGroup=j};w.prototype={constructor:w,hasBuilder:function(R){return!!E[R]},add:function(R){E[R].call(this)},getGroup:function(){return this.group}};var E={axisLine:function(){var R=this.opt,U=this.axisModel;if(!U.get("axisLine.show"))return;var j=this.axisModel.axis.getExtent(),P=this._transform,K=[j[0],0],V=[j[1],0];P&&(s(K,K,P),s(V,V,P));var z=m({lineCap:"round"},U.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new c.Line({anid:"line",subPixelOptimize:!0,shape:{x1:K[0],y1:K[1],x2:V[0],y2:V[1]},style:z,strokeContainThreshold:R.strokeContainThreshold||5,silent:!0,z2:1}));var X=U.get("axisLine.symbol"),G=U.get("axisLine.symbolSize"),le=U.get("axisLine.symbolOffset")||0;if(typeof le=="number"&&(le=[le,le]),X!=null){typeof X=="string"&&(X=[X,X]),(typeof G=="string"||typeof G=="number")&&(G=[G,G]);var Y=G[0],me=G[1];v([{rotate:R.rotation+Math.PI/2,offset:le[0],r:0},{rotate:R.rotation-Math.PI/2,offset:le[1],r:Math.sqrt((K[0]-V[0])*(K[0]-V[0])+(K[1]-V[1])*(K[1]-V[1]))}],function(we,pe){if(X[pe]!=="none"&&X[pe]!=null){var Fe=r(X[pe],-Y/2,-me/2,Y,me,z.stroke,!0),Xe=we.r+we.offset,dt=[K[0]+Xe*Math.cos(R.rotation),K[1]-Xe*Math.sin(R.rotation)];Fe.attr({rotation:we.rotate,position:dt,silent:!0,z2:11}),this.group.add(Fe)}},this)}},axisTickLabel:function(){var R=this.axisModel,U=this.opt,j=F(this,R,U),P=H(this,R,U);y(R,P,j),B(this,R,U)},axisName:function(){var R=this.opt,U=this.axisModel,j=f(R.axisName,U.get("name"));if(!j)return;var P=U.get("nameLocation"),K=R.nameDirection,V=U.getModel("nameTextStyle"),z=U.get("nameGap")||0,X=this.axisModel.axis.getExtent(),G=X[0]>X[1]?-1:1,le=[P==="start"?X[0]-G*z:P==="end"?X[1]+G*z:(X[0]+X[1])/2,N(P)?R.labelOffset+K*z:0],Y,me=U.get("nameRotate");me!=null&&(me=me*b/180);var we;N(P)?Y=x(R.rotation,me!=null?me:R.rotation,K):(Y=T(R,P,me||0,X),we=R.axisNameAvailableWidth,we!=null&&(we=Math.abs(we/Math.sin(Y.rotation)),!isFinite(we)&&(we=null)));var pe=V.getFont(),Fe=U.get("nameTruncate",!0)||{},Xe=Fe.ellipsis,dt=f(R.nameTruncateMaxWidth,Fe.maxWidth,we),Ee=Xe!=null&&dt!=null?h.truncateText(j,dt,pe,Xe,{minChar:2,placeholder:Fe.placeholder}):j,Se=U.get("tooltip",!0),at=U.mainType,_e={componentType:at,name:j,$vars:["name"]};_e[at+"Index"]=U.componentIndex;var ce=new c.Text({anid:"name",__fullText:j,__truncatedText:Ee,position:le,rotation:Y.rotation,silent:L(U),z2:1,tooltip:Se&&Se.show?m({content:j,formatter:function(){return j},formatterParams:_e},Se):null});c.setTextStyle(ce.style,V,{text:Ee,textFont:pe,textFill:V.getTextColor()||U.get("axisLine.lineStyle.color"),textAlign:V.get("align")||Y.textAlign,textVerticalAlign:V.get("verticalAlign")||Y.textVerticalAlign}),U.get("triggerEvent")&&(ce.eventData=S(U),ce.eventData.targetType="axisName",ce.eventData.name=j),this._dumbGroup.add(ce),ce.updateTransform(),this.group.add(ce),ce.decomposeTransform()}},S=w.makeAxisEventDataBase=function(R){var U={componentType:R.mainType,componentIndex:R.componentIndex};return U[R.mainType+"Index"]=R.componentIndex,U},x=w.innerTextLayout=function(R,U,j){var P=a(U-R),K,V;return n(P)?(V=j>0?"top":"bottom",K="center"):n(P-b)?(V=j>0?"bottom":"top",K="center"):(V="middle",P>0&&P0?"right":"left":K=j>0?"left":"right"),{rotation:P,textAlign:K,textVerticalAlign:V}};function T(R,U,j,P){var K=a(j-R.rotation),V,z,X=P[0]>P[1],G=U==="start"&&!X||U!=="start"&&X;return n(K-b/2)?(z=G?"bottom":"top",V="center"):n(K-b*1.5)?(z=G?"top":"bottom",V="center"):(z="middle",Kb/2?V=G?"left":"right":V=G?"right":"left"),{rotation:K,textAlign:V,textVerticalAlign:z}}var L=w.isLabelSilent=function(R){var U=R.get("tooltip");return R.get("silent")||!(R.get("triggerEvent")||U&&U.show)};function y(R,U,j){if(p(R.axis))return;var P=R.get("axisLabel.showMinLabel"),K=R.get("axisLabel.showMaxLabel");U=U||[],j=j||[];var V=U[0],z=U[1],X=U[U.length-1],G=U[U.length-2],le=j[0],Y=j[1],me=j[j.length-1],we=j[j.length-2];P===!1?(C(V),C(le)):O(V,z)&&(P?(C(z),C(Y)):(C(V),C(le))),K===!1?(C(X),C(me)):O(G,X)&&(K?(C(G),C(we)):(C(X),C(me)))}function C(R){R&&(R.ignore=!0)}function O(R,U,j){var P=R&&R.getBoundingRect().clone(),K=U&&U.getBoundingRect().clone();if(!P||!K)return;var V=l.identity([]);return l.rotate(V,V,-R.rotation),P.applyTransform(l.mul([],V,R.getLocalTransform())),K.applyTransform(l.mul([],V,U.getLocalTransform())),P.intersect(K)}function N(R){return R==="middle"||R==="center"}function k(R,U,j,P,K){for(var V=[],z=[],X=[],G=0;G=b.slideCount,b.centerMode?(x=Math.floor(b.slidesToShow/2),E=(T-b.currentSlide)%b.slideCount===0,T>b.currentSlide-x-1&&T<=b.currentSlide+x&&(w=!0)):w=b.currentSlide<=T&&T=b.slideCount?L=b.targetSlide-b.slideCount:L=b.targetSlide;var y=T===L;return{"slick-slide":!0,"slick-active":w,"slick-center":E,"slick-cloned":S,"slick-current":y}},l=function(b){var w={};return(b.variableWidth===void 0||b.variableWidth===!1)&&(w.width=b.slideWidth),b.fade&&(w.position="relative",b.vertical?w.top=-b.index*parseInt(b.slideHeight):w.left=-b.index*parseInt(b.slideWidth),w.opacity=b.currentSlide===b.index?1:0,b.useCSS&&(w.transition="opacity "+b.speed+"ms "+b.cssEase+", visibility "+b.speed+"ms "+b.cssEase)),w},t=function(b,w){return b.key+"-"+w},s=function(b){var w,E=[],S=[],x=[],T=n.default.Children.count(b.children),L=(0,u.lazyStartIndex)(b),y=(0,u.lazyEndIndex)(b);return n.default.Children.forEach(b.children,function(C,O){var N,k={message:"children",index:O,slidesToScroll:b.slidesToScroll,currentSlide:b.currentSlide};!b.lazyLoad||b.lazyLoad&&b.lazyLoadedList.indexOf(O)>=0?N=C:N=n.default.createElement("div",null);var F=l((0,i.default)((0,i.default)({},b),{},{index:O})),B=N.props.className||"",H=r((0,i.default)((0,i.default)({},b),{},{index:O}));if(E.push(n.default.cloneElement(N,{key:"original"+t(N,O),"data-index":O,className:(0,a.default)(H,B),tabIndex:"-1","aria-hidden":!H["slick-active"],style:(0,i.default)((0,i.default)({outline:"none"},N.props.style||{}),F),onClick:function(U){N.props&&N.props.onClick&&N.props.onClick(U),b.focusOnSelect&&b.focusOnSelect(k)}})),b.infinite&&b.fade===!1){var W=T-O;W<=(0,u.getPreClones)(b)&&T!==b.slidesToShow&&(w=-W,w>=L&&(N=C),H=r((0,i.default)((0,i.default)({},b),{},{index:w})),S.push(n.default.cloneElement(N,{key:"precloned"+t(N,w),"data-index":w,tabIndex:"-1",className:(0,a.default)(H,B),"aria-hidden":!H["slick-active"],style:(0,i.default)((0,i.default)({},N.props.style||{}),F),onClick:function(U){N.props&&N.props.onClick&&N.props.onClick(U),b.focusOnSelect&&b.focusOnSelect(k)}}))),T!==b.slidesToShow&&(w=T+O,wt}function P(ae){var ge=ae.length-1;return ge<0&&(ge=0),[ae[0],ae[ge]]}function K(ae,ge,Le,Ze){var vt=new v.Group;return vt.add(new v.Rect({name:"main",style:G(Le),silent:!0,draggable:!0,cursor:"move",drift:o(ae,ge,vt,"nswe"),ondragend:o(U,ge,{isEnd:!0})})),i(Ze,function(Ct){vt.add(new v.Rect({name:Ct,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:o(ae,ge,vt,Ct),ondragend:o(U,ge,{isEnd:!0})}))}),vt}function V(ae,ge,Le,Ze){var vt=Ze.brushStyle.lineWidth||0,Ct=u(vt,s),Be=Le[0][0],Rt=Le[1][0],He=Be-vt/2,wt=Rt-vt/2,Ge=Le[0][1],et=Le[1][1],rt=Ge-Ct+vt/2,lt=et-Ct+vt/2,Ve=Ge-Be,ie=et-Rt,$=Ve+vt,it=ie+vt;X(ae,ge,"main",Be,Rt,Ve,ie),Ze.transformable&&(X(ae,ge,"w",He,wt,Ct,it),X(ae,ge,"e",rt,wt,Ct,it),X(ae,ge,"n",He,wt,$,Ct),X(ae,ge,"s",He,lt,$,Ct),X(ae,ge,"nw",He,wt,Ct,Ct),X(ae,ge,"ne",rt,wt,Ct,Ct),X(ae,ge,"sw",He,lt,Ct,Ct),X(ae,ge,"se",rt,lt,Ct,Ct))}function z(ae,ge){var Le=ge.__brushOption,Ze=Le.transformable,vt=ge.childAt(0);vt.useStyle(G(Le)),vt.attr({silent:!Ze,cursor:Ze?"move":"default"}),i(["w","e","n","s","se","sw","ne","nw"],function(Ct){var Be=ge.childOfName(Ct),Rt=me(ae,Ct);Be&&Be.attr({silent:!Ze,invisible:!Ze,cursor:Ze?b[Rt]+"-resize":null})})}function X(ae,ge,Le,Ze,vt,Ct,Be){var Rt=ge.childOfName(Le);Rt&&Rt.setShape(dt(Xe(ae,ge,[[Ze,vt],[Ze+Ct,vt+Be]])))}function G(ae){return A.defaults({strokeNoScale:!0},ae.brushStyle)}function le(ae,ge,Le,Ze){var vt=[a(ae,Le),a(ge,Ze)],Ct=[u(ae,Le),u(ge,Ze)];return[[vt[0],Ct[0]],[vt[1],Ct[1]]]}function Y(ae){return v.getTransform(ae.group)}function me(ae,ge){if(ge.length>1){ge=ge.split("");var Le=[me(ae,ge[0]),me(ae,ge[1])];return(Le[0]==="e"||Le[0]==="w")&&Le.reverse(),Le.join("")}else{var Ze={w:"left",e:"right",n:"top",s:"bottom"},vt={left:"w",right:"e",top:"n",bottom:"s"},Le=v.transformDirection(Ze[ge],Y(ae));return vt[Le]}}function we(ae,ge,Le,Ze,vt,Ct,Be,Rt){var He=Ze.__brushOption,wt=ae(He.range),Ge=Fe(Le,Ct,Be);i(vt.split(""),function(et){var rt=p[et];wt[rt[0]][rt[1]]+=Ge[rt[0]]}),He.range=ge(le(wt[0][0],wt[1][0],wt[0][1],wt[1][1])),F(Le,Ze),U(Le,{isEnd:!1})}function pe(ae,ge,Le,Ze,vt){var Ct=ge.__brushOption.range,Be=Fe(ae,Le,Ze);i(Ct,function(Rt){Rt[0]+=Be[0],Rt[1]+=Be[1]}),F(ae,ge),U(ae,{isEnd:!1})}function Fe(ae,ge,Le){var Ze=ae.group,vt=Ze.transformCoordToLocal(ge,Le),Ct=Ze.transformCoordToLocal(0,0);return[vt[0]-Ct[0],vt[1]-Ct[1]]}function Xe(ae,ge,Le){var Ze=W(ae,ge);return Ze&&Ze!==!0?Ze.clipPath(Le,ae._transform):A.clone(Le)}function dt(ae){var ge=a(ae[0][0],ae[1][0]),Le=a(ae[0][1],ae[1][1]),Ze=u(ae[0][0],ae[1][0]),vt=u(ae[0][1],ae[1][1]);return{x:ge,y:Le,width:Ze-ge,height:vt-Le}}function Ee(ae,ge,Le){if(!ae._brushType||ke(ae,ge))return;var Ze=ae._zr,vt=ae._covers,Ct=H(ae,ge,Le);if(!ae._dragging)for(var Be=0;BeZe.getWidth()||Le<0||Le>Ze.getHeight()}var Ce={lineX:ze(0),lineY:ze(1),rect:{createCover:function(ae,ge){return K(o(we,function(Le){return Le},function(Le){return Le}),ae,ge,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(ae){var ge=P(ae);return le(ge[1][0],ge[1][1],ge[0][0],ge[0][1])},updateCoverShape:function(ae,ge,Le,Ze){V(ae,ge,Le,Ze)},updateCommon:z,contain:at},polygon:{createCover:function(ae,ge){var Le=new v.Group;return Le.add(new v.Polyline({name:"main",style:G(ge),silent:!0})),Le},getCreatingRange:function(ae){return ae},endCreating:function(ae,ge){ge.remove(ge.childAt(0)),ge.add(new v.Polygon({name:"main",draggable:!0,drift:o(pe,ae,ge),ondragend:o(U,ae,{isEnd:!0})}))},updateCoverShape:function(ae,ge,Le,Ze){ge.childAt(0).setShape({points:Xe(ae,ge,Le)})},updateCommon:z,contain:at}};function ze(ae){return{createCover:function(ge,Le){return K(o(we,function(Ze){var vt=[Ze,[0,100]];return ae&&vt.reverse(),vt},function(Ze){return Ze[ae]}),ge,Le,[["w","e"],["n","s"]][ae])},getCreatingRange:function(ge){var Le=P(ge),Ze=a(Le[0][ae],Le[1][ae]),vt=u(Le[0][ae],Le[1][ae]);return[Ze,vt]},updateCoverShape:function(ge,Le,Ze,vt){var Ct,Be=W(ge,Le);if(Be!==!0&&Be.getLinearBrushOtherExtent)Ct=Be.getLinearBrushOtherExtent(ae,ge._transform);else{var Rt=ge._zr;Ct=[0,[Rt.getWidth(),Rt.getHeight()][1-ae]]}var He=[Ze,Ct];ae&&He.reverse(),V(ge,Le,He,vt)},updateCommon:z,contain:at}}var Oe=S;D.exports=Oe},"/MfK":function(D,_,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},A=f,m=e("6VBw"),v=function(o,i){return g.createElement(m.a,Object.assign({},o,{ref:i,icon:A}))};v.displayName="DeleteOutlined";var h=_.a=g.forwardRef(v)},"/POA":function(D,_,e){!function(g,f){if(!0)D.exports=f();else var A,m}(window,function(){return function(g){var f={};function A(m){if(f[m])return f[m].exports;var v=f[m]={i:m,l:!1,exports:{}};return g[m].call(v.exports,v,v.exports,A),v.l=!0,v.exports}return A.m=g,A.c=f,A.d=function(m,v,h){A.o(m,v)||Object.defineProperty(m,v,{enumerable:!0,get:h})},A.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},A.t=function(m,v){if(1&v&&(m=A(m)),8&v)return m;if(4&v&&typeof m=="object"&&m&&m.__esModule)return m;var h=Object.create(null);if(A.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:m}),2&v&&typeof m!="string")for(var c in m)A.d(h,c,function(o){return m[o]}.bind(null,c));return h},A.n=function(m){var v=m&&m.__esModule?function(){return m.default}:function(){return m};return A.d(v,"a",v),v},A.o=function(m,v){return Object.prototype.hasOwnProperty.call(m,v)},A.p="",A(A.s=34)}([function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.forwardEvent=f.EventEmitter=void 0;var m=function(){function v(){this._listeners=[],this._disposed=!1}return Object.defineProperty(v.prototype,"event",{get:function(){var c=this;return this._event||(this._event=function(o){return c._listeners.push(o),{dispose:function(){if(!c._disposed){for(var n=0;n>22},a.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?h.stringFromCodePoint(2097151&this.content):""},a.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},a.prototype.setFromCharData=function(u){this.fg=u[c.CHAR_DATA_ATTR_INDEX],this.bg=0;var r=!1;if(u[c.CHAR_DATA_CHAR_INDEX].length>2)r=!0;else if(u[c.CHAR_DATA_CHAR_INDEX].length===2){var l=u[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var t=u[c.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(l-55296)+t-56320+65536|u[c.CHAR_DATA_WIDTH_INDEX]<<22:r=!0}else r=!0}else this.content=u[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|u[c.CHAR_DATA_WIDTH_INDEX]<<22;r&&(this.combinedData=u[c.CHAR_DATA_CHAR_INDEX],this.content=2097152|u[c.CHAR_DATA_WIDTH_INDEX]<<22)},a.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},a}(o.AttributeData);f.CellData=i},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ISoundService=f.ISelectionService=f.IRenderService=f.IMouseService=f.ICoreBrowserService=f.ICharSizeService=void 0;var m=A(14);f.ICharSizeService=m.createDecorator("CharSizeService"),f.ICoreBrowserService=m.createDecorator("CoreBrowserService"),f.IMouseService=m.createDecorator("MouseService"),f.IRenderService=m.createDecorator("RenderService"),f.ISelectionService=m.createDecorator("SelectionService"),f.ISoundService=m.createDecorator("SoundService")},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ExtendedAttrs=f.AttributeData=void 0;var m=function(){function h(){this.fg=0,this.bg=0,this.extended=new v}return h.toColorRGB=function(c){return[c>>>16&255,c>>>8&255,255&c]},h.fromColorRGB=function(c){return(255&c[0])<<16|(255&c[1])<<8|255&c[2]},h.prototype.clone=function(){var c=new h;return c.fg=this.fg,c.bg=this.bg,c.extended=this.extended.clone(),c},h.prototype.isInverse=function(){return 67108864&this.fg},h.prototype.isBold=function(){return 134217728&this.fg},h.prototype.isUnderline=function(){return 268435456&this.fg},h.prototype.isBlink=function(){return 536870912&this.fg},h.prototype.isInvisible=function(){return 1073741824&this.fg},h.prototype.isItalic=function(){return 67108864&this.bg},h.prototype.isDim=function(){return 134217728&this.bg},h.prototype.getFgColorMode=function(){return 50331648&this.fg},h.prototype.getBgColorMode=function(){return 50331648&this.bg},h.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},h.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},h.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},h.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},h.prototype.isFgDefault=function(){return(50331648&this.fg)==0},h.prototype.isBgDefault=function(){return(50331648&this.bg)==0},h.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},h.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},h.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},h.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},h.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},h.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},h.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},h.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},h.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},h.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},h.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},h}();f.AttributeData=m;var v=function(){function h(c,o){c===void 0&&(c=0),o===void 0&&(o=-1),this.underlineStyle=c,this.underlineColor=o}return h.prototype.clone=function(){return new h(this.underlineStyle,this.underlineColor)},h.prototype.isEmpty=function(){return this.underlineStyle===0},h}();f.ExtendedAttrs=v},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.addDisposableDomListener=void 0,f.addDisposableDomListener=function(m,v,h,c){m.addEventListener(v,h,c);var o=!1;return{dispose:function(){o||(o=!0,m.removeEventListener(v,h,c))}}}},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Utf8ToUtf32=f.StringToUtf32=f.utf32ToString=f.stringFromCodePoint=void 0,f.stringFromCodePoint=function(h){return h>65535?(h-=65536,String.fromCharCode(55296+(h>>10))+String.fromCharCode(h%1024+56320)):String.fromCharCode(h)},f.utf32ToString=function(h,c,o){c===void 0&&(c=0),o===void 0&&(o=h.length);for(var i="",n=c;n65535?(a-=65536,i+=String.fromCharCode(55296+(a>>10))+String.fromCharCode(a%1024+56320)):i+=String.fromCharCode(a)}return i};var m=function(){function h(){this._interim=0}return h.prototype.clear=function(){this._interim=0},h.prototype.decode=function(c,o){var i=c.length;if(!i)return 0;var n=0,a=0;this._interim&&(56320<=(l=c.charCodeAt(a++))&&l<=57343?o[n++]=1024*(this._interim-55296)+l-56320+65536:(o[n++]=this._interim,o[n++]=l),this._interim=0);for(var u=a;u=i)return this._interim=r,n;var l;56320<=(l=c.charCodeAt(u))&&l<=57343?o[n++]=1024*(r-55296)+l-56320+65536:(o[n++]=r,o[n++]=l)}else o[n++]=r}return n},h}();f.StringToUtf32=m;var v=function(){function h(){this.interim=new Uint8Array(3)}return h.prototype.clear=function(){this.interim.fill(0)},h.prototype.decode=function(c,o){var i=c.length;if(!i)return 0;var n,a,u,r,l=0,t=0,s=0;if(this.interim[0]){var d=!1,p=this.interim[0];p&=(224&p)==192?31:(240&p)==224?15:7;for(var b=0,w=void 0;(w=63&this.interim[++b])&&b<4;)p<<=6,p|=w;for(var E=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,S=E-b;s=i)return 0;if((192&(w=c[s++]))!=128){s--,d=!0;break}this.interim[b++]=w,p<<=6,p|=63&w}d||(E===2?p<128?s--:o[l++]=p:E===3?p<2048||p>=55296&&p<=57343||(o[l++]=p):p<65536||p>1114111||(o[l++]=p)),this.interim.fill(0)}for(var x=i-4,T=s;T=i)return this.interim[0]=n,l;if((192&(a=c[T++]))!=128){T--;continue}if((t=(31&n)<<6|63&a)<128){T--;continue}o[l++]=t}else if((240&n)==224){if(T>=i)return this.interim[0]=n,l;if((192&(a=c[T++]))!=128){T--;continue}if(T>=i)return this.interim[0]=n,this.interim[1]=a,l;if((192&(u=c[T++]))!=128){T--;continue}if((t=(15&n)<<12|(63&a)<<6|63&u)<2048||t>=55296&&t<=57343)continue;o[l++]=t}else if((248&n)==240){if(T>=i)return this.interim[0]=n,l;if((192&(a=c[T++]))!=128){T--;continue}if(T>=i)return this.interim[0]=n,this.interim[1]=a,l;if((192&(u=c[T++]))!=128){T--;continue}if(T>=i)return this.interim[0]=n,this.interim[1]=a,this.interim[2]=u,l;if((192&(r=c[T++]))!=128){T--;continue}if((t=(7&n)<<18|(63&a)<<12|(63&u)<<6|63&r)<65536||t>1114111)continue;o[l++]=t}}return l},h}();f.Utf8ToUtf32=v},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CHAR_ATLAS_CELL_SPACING=f.DIM_OPACITY=f.INVERTED_DEFAULT_COLOR=void 0,f.INVERTED_DEFAULT_COLOR=257,f.DIM_OPACITY=.5,f.CHAR_ATLAS_CELL_SPACING=1},function(g,f,A){"use strict";var m,v,h,c;function o(n){var a=n.toString(16);return a.length<2?"0"+a:a}function i(n,a){return n>>0}}(m=f.channels||(f.channels={})),(v=f.color||(f.color={})).blend=function(n,a){var u=(255&a.rgba)/255;if(u===1)return{css:a.css,rgba:a.rgba};var r=a.rgba>>24&255,l=a.rgba>>16&255,t=a.rgba>>8&255,s=n.rgba>>24&255,d=n.rgba>>16&255,p=n.rgba>>8&255,b=s+Math.round((r-s)*u),w=d+Math.round((l-d)*u),E=p+Math.round((t-p)*u);return{css:m.toCss(b,w,E),rgba:m.toRgba(b,w,E)}},v.isOpaque=function(n){return(255&n.rgba)==255},v.ensureContrastRatio=function(n,a,u){var r=c.ensureContrastRatio(n.rgba,a.rgba,u);if(r)return c.toColor(r>>24&255,r>>16&255,r>>8&255)},v.opaque=function(n){var a=(255|n.rgba)>>>0,u=c.toChannels(a),r=u[0],l=u[1],t=u[2];return{css:m.toCss(r,l,t),rgba:a}},v.opacity=function(n,a){var u=Math.round(255*a),r=c.toChannels(n.rgba),l=r[0],t=r[1],s=r[2];return{css:m.toCss(l,t,s,u),rgba:m.toRgba(l,t,s,u)}},(f.css||(f.css={})).toColor=function(n){switch(n.length){case 7:return{css:n,rgba:(parseInt(n.slice(1),16)<<8|255)>>>0};case 9:return{css:n,rgba:parseInt(n.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(n){function a(u,r,l){var t=u/255,s=r/255,d=l/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4))}n.relativeLuminance=function(u){return a(u>>16&255,u>>8&255,255&u)},n.relativeLuminance2=a}(h=f.rgb||(f.rgb={})),function(n){function a(r,l,t){for(var s=r>>24&255,d=r>>16&255,p=r>>8&255,b=l>>24&255,w=l>>16&255,E=l>>8&255,S=i(h.relativeLuminance2(b,E,w),h.relativeLuminance2(s,d,p));S0||w>0||E>0);)b-=Math.max(0,Math.ceil(.1*b)),w-=Math.max(0,Math.ceil(.1*w)),E-=Math.max(0,Math.ceil(.1*E)),S=i(h.relativeLuminance2(b,E,w),h.relativeLuminance2(s,d,p));return(b<<24|w<<16|E<<8|255)>>>0}function u(r,l,t){for(var s=r>>24&255,d=r>>16&255,p=r>>8&255,b=l>>24&255,w=l>>16&255,E=l>>8&255,S=i(h.relativeLuminance2(b,E,w),h.relativeLuminance2(s,d,p));S>>0}n.ensureContrastRatio=function(r,l,t){var s=h.relativeLuminance(r>>8),d=h.relativeLuminance(l>>8);if(i(s,d)>24&255,r>>16&255,r>>8&255,255&r]},n.toColor=function(r,l,t){return{css:m.toCss(r,l,t),rgba:m.toRgba(r,l,t)}}}(c=f.rgba||(f.rgba={})),f.toPaddedHex=o,f.contrastRatio=i},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isLinux=f.isWindows=f.isIphone=f.isIpad=f.isMac=f.isSafari=f.isFirefox=void 0;var m=typeof navigator=="undefined",v=m?"node":navigator.userAgent,h=m?"node":navigator.platform;function c(o,i){return o.indexOf(i)>=0}f.isFirefox=!!~v.indexOf("Firefox"),f.isSafari=/^((?!chrome|android).)*safari/i.test(v),f.isMac=c(["Macintosh","MacIntel","MacPPC","Mac68K"],h),f.isIpad=h==="iPad",f.isIphone=h==="iPhone",f.isWindows=c(["Windows","Win16","Win32","WinCE"],h),f.isLinux=h.indexOf("Linux")>=0},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.C1=f.C0=void 0,function(m){m.NUL="\0",m.SOH="",m.STX="",m.ETX="",m.EOT="",m.ENQ="",m.ACK="",m.BEL="\x07",m.BS="\b",m.HT=" ",m.LF=` `,m.VT="\v",m.FF="\f",m.CR="\r",m.SO="",m.SI="",m.DLE="",m.DC1="",m.DC2="",m.DC3="",m.DC4="",m.NAK="",m.SYN="",m.ETB="",m.CAN="",m.EM="",m.SUB="",m.ESC="",m.FS="",m.GS="",m.RS="",m.US="",m.SP=" ",m.DEL="\x7F"}(f.C0||(f.C0={})),function(m){m.PAD="\x80",m.HOP="\x81",m.BPH="\x82",m.NBH="\x83",m.IND="\x84",m.NEL="\x85",m.SSA="\x86",m.ESA="\x87",m.HTS="\x88",m.HTJ="\x89",m.VTS="\x8A",m.PLD="\x8B",m.PLU="\x8C",m.RI="\x8D",m.SS2="\x8E",m.SS3="\x8F",m.DCS="\x90",m.PU1="\x91",m.PU2="\x92",m.STS="\x93",m.CCH="\x94",m.MW="\x95",m.SPA="\x96",m.EPA="\x97",m.SOS="\x98",m.SGCI="\x99",m.SCI="\x9A",m.CSI="\x9B",m.ST="\x9C",m.OSC="\x9D",m.PM="\x9E",m.APC="\x9F"}(f.C1||(f.C1={}))},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BaseRenderLayer=void 0;var m=A(3),v=A(9),h=A(25),c=A(6),o=A(28),i=A(10),n=A(17),a=function(){function u(r,l,t,s,d,p,b,w){this._container=r,this._alpha=s,this._colors=d,this._rendererId=p,this._bufferService=b,this._optionsService=w,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+l+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return u.prototype.dispose=function(){var r;n.removeElementFromParent(this._canvas),(r=this._charAtlas)===null||r===void 0||r.dispose()},u.prototype._initCanvas=function(){this._ctx=o.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},u.prototype.onOptionsChanged=function(){},u.prototype.onBlur=function(){},u.prototype.onFocus=function(){},u.prototype.onCursorMove=function(){},u.prototype.onGridChanged=function(r,l){},u.prototype.onSelectionChanged=function(r,l,t){t===void 0&&(t=!1)},u.prototype.setColors=function(r){this._refreshCharAtlas(r)},u.prototype._setTransparency=function(r){if(r!==this._alpha){var l=this._canvas;this._alpha=r,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,l),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},u.prototype._refreshCharAtlas=function(r){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=h.acquireCharAtlas(this._optionsService.options,this._rendererId,r,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},u.prototype.resize=function(r){this._scaledCellWidth=r.scaledCellWidth,this._scaledCellHeight=r.scaledCellHeight,this._scaledCharWidth=r.scaledCharWidth,this._scaledCharHeight=r.scaledCharHeight,this._scaledCharLeft=r.scaledCharLeft,this._scaledCharTop=r.scaledCharTop,this._canvas.width=r.scaledCanvasWidth,this._canvas.height=r.scaledCanvasHeight,this._canvas.style.width=r.canvasWidth+"px",this._canvas.style.height=r.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},u.prototype._fillCells=function(r,l,t,s){this._ctx.fillRect(r*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,s*this._scaledCellHeight)},u.prototype._fillBottomLineAtCells=function(r,l,t){t===void 0&&(t=1),this._ctx.fillRect(r*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},u.prototype._fillLeftLineAtCell=function(r,l,t){this._ctx.fillRect(r*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},u.prototype._strokeRectAtCell=function(r,l,t,s){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(r*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,s*this._scaledCellHeight-window.devicePixelRatio)},u.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},u.prototype._clearCells=function(r,l,t,s){this._alpha?this._ctx.clearRect(r*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,s*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(r*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,s*this._scaledCellHeight))},u.prototype._fillCharTrueColor=function(r,l,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(r.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},u.prototype._drawChars=function(r,l,t){var s,d,p=this._getContrastColor(r);p||r.isFgRGB()||r.isBgRGB()?this._drawUncachedChars(r,l,t,p):(r.isInverse()?(s=r.isBgDefault()?v.INVERTED_DEFAULT_COLOR:r.getBgColor(),d=r.isFgDefault()?v.INVERTED_DEFAULT_COLOR:r.getFgColor()):(d=r.isBgDefault()?m.DEFAULT_COLOR:r.getBgColor(),s=r.isFgDefault()?m.DEFAULT_COLOR:r.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=r.getChars()||m.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=r.getCode()||m.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=d,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=!!r.isBold(),this._currentGlyphIdentifier.dim=!!r.isDim(),this._currentGlyphIdentifier.italic=!!r.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(r,l,t))},u.prototype._drawUncachedChars=function(r,l,t,s){if(this._ctx.save(),this._ctx.font=this._getFont(!!r.isBold(),!!r.isItalic()),this._ctx.textBaseline="middle",r.isInverse())if(s)this._ctx.fillStyle=s.css;else if(r.isBgDefault())this._ctx.fillStyle=i.color.opaque(this._colors.background).css;else if(r.isBgRGB())this._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(r.getBgColor()).join(",")+")";else{var d=r.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&d<8&&(d+=8),this._ctx.fillStyle=this._colors.ansi[d].css}else if(s)this._ctx.fillStyle=s.css;else if(r.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(r.isFgRGB())this._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(r.getFgColor()).join(",")+")";else{var p=r.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&p<8&&(p+=8),this._ctx.fillStyle=this._colors.ansi[p].css}this._clipRow(t),r.isDim()&&(this._ctx.globalAlpha=v.DIM_OPACITY),this._ctx.fillText(r.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},u.prototype._clipRow=function(r){this._ctx.beginPath(),this._ctx.rect(0,r*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},u.prototype._getFont=function(r,l){return(l?"italic":"")+" "+(r?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},u.prototype._getContrastColor=function(r){if(this._optionsService.options.minimumContrastRatio!==1){var l=this._colors.contrastCache.getColor(r.bg,r.fg);if(l!==void 0)return l||void 0;var t=r.getFgColor(),s=r.getFgColorMode(),d=r.getBgColor(),p=r.getBgColorMode(),b=!!r.isInverse(),w=!!r.isInverse();if(b){var E=t;t=d,d=E;var S=s;s=p,p=S}var x=this._resolveBackgroundRgba(p,d,b),T=this._resolveForegroundRgba(s,t,b,w),L=i.rgba.ensureContrastRatio(x,T,this._optionsService.options.minimumContrastRatio);if(L){var y={css:i.channels.toCss(L>>24&255,L>>16&255,L>>8&255),rgba:L};return this._colors.contrastCache.setColor(r.bg,r.fg,y),y}this._colors.contrastCache.setColor(r.bg,r.fg,null)}},u.prototype._resolveBackgroundRgba=function(r,l,t){switch(r){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},u.prototype._resolveForegroundRgba=function(r,l,t,s){switch(r){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&s&&l<8&&(l+=8),this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},u}();f.BaseRenderLayer=a},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.createDecorator=f.getServiceDependencies=f.serviceRegistry=void 0;function m(v,h,c){h.di$target===h?h.di$dependencies.push({id:v,index:c}):(h.di$dependencies=[{id:v,index:c}],h.di$target=h)}f.serviceRegistry=new Map,f.getServiceDependencies=function(v){return v.di$dependencies||[]},f.createDecorator=function(v){if(f.serviceRegistry.has(v))return f.serviceRegistry.get(v);var h=function c(o,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");m(c,o,n)};return h.toString=function(){return v},f.serviceRegistry.set(v,h),h}},function(g,f,A){"use strict";function m(v,h,c,o){if(c===void 0&&(c=0),o===void 0&&(o=v.length),c>=v.length)return v;c=(v.length+c)%v.length,o=o>=v.length?v.length:(v.length+o)%v.length;for(var i=c;i>22,2097152&a?this._combined[n].charCodeAt(this._combined[n].length-1):u]},i.prototype.set=function(n,a){this._data[3*n+1]=a[v.CHAR_DATA_ATTR_INDEX],a[v.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[n]=a[1],this._data[3*n+0]=2097152|n|a[v.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*n+0]=a[v.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|a[v.CHAR_DATA_WIDTH_INDEX]<<22},i.prototype.getWidth=function(n){return this._data[3*n+0]>>22},i.prototype.hasWidth=function(n){return 12582912&this._data[3*n+0]},i.prototype.getFg=function(n){return this._data[3*n+1]},i.prototype.getBg=function(n){return this._data[3*n+2]},i.prototype.hasContent=function(n){return 4194303&this._data[3*n+0]},i.prototype.getCodePoint=function(n){var a=this._data[3*n+0];return 2097152&a?this._combined[n].charCodeAt(this._combined[n].length-1):2097151&a},i.prototype.isCombined=function(n){return 2097152&this._data[3*n+0]},i.prototype.getString=function(n){var a=this._data[3*n+0];return 2097152&a?this._combined[n]:2097151&a?m.stringFromCodePoint(2097151&a):""},i.prototype.loadCell=function(n,a){var u=3*n;return a.content=this._data[u+0],a.fg=this._data[u+1],a.bg=this._data[u+2],2097152&a.content&&(a.combinedData=this._combined[n]),268435456&a.bg&&(a.extended=this._extendedAttrs[n]),a},i.prototype.setCell=function(n,a){2097152&a.content&&(this._combined[n]=a.combinedData),268435456&a.bg&&(this._extendedAttrs[n]=a.extended),this._data[3*n+0]=a.content,this._data[3*n+1]=a.fg,this._data[3*n+2]=a.bg},i.prototype.setCellFromCodePoint=function(n,a,u,r,l,t){268435456&l&&(this._extendedAttrs[n]=t),this._data[3*n+0]=a|u<<22,this._data[3*n+1]=r,this._data[3*n+2]=l},i.prototype.addCodepointToCell=function(n,a){var u=this._data[3*n+0];2097152&u?this._combined[n]+=m.stringFromCodePoint(a):(2097151&u?(this._combined[n]=m.stringFromCodePoint(2097151&u)+m.stringFromCodePoint(a),u&=-2097152,u|=2097152):u=a|1<<22,this._data[3*n+0]=u)},i.prototype.insertCells=function(n,a,u,r){if((n%=this.length)&&this.getWidth(n-1)===2&&this.setCellFromCodePoint(n-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new c.ExtendedAttrs),a=0;--t)this.setCell(n+a+t,this.loadCell(n+t,l));for(t=0;tthis.length){var u=new Uint32Array(3*n);this.length&&(3*n=n&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=n}},i.prototype.fill=function(n){this._combined={},this._extendedAttrs={};for(var a=0;a=0;--n)if(4194303&this._data[3*n+0])return n+(this._data[3*n+0]>>22);return 0},i.prototype.copyCellsFrom=function(n,a,u,r,l){var t=n._data;if(l)for(var s=r-1;s>=0;s--)for(var d=0;d<3;d++)this._data[3*(u+s)+d]=t[3*(a+s)+d];else for(s=0;s=a&&(this._combined[b-a+u]=n._combined[b])}},i.prototype.translateToString=function(n,a,u){n===void 0&&(n=!1),a===void 0&&(a=0),u===void 0&&(u=this.length),n&&(u=Math.min(u,this.getTrimmedLength()));for(var r="";a>22||1}return r},i}();f.BufferLine=o},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeElementFromParent=void 0,f.removeElementFromParent=function(){for(var m,v=[],h=0;h24)return L.setWinLines||!1;switch(T){case 1:return!!L.restoreWin;case 2:return!!L.minimizeWin;case 3:return!!L.setWinPosition;case 4:return!!L.setWinSizePixels;case 5:return!!L.raiseWin;case 6:return!!L.lowerWin;case 7:return!!L.refreshWin;case 8:return!!L.setWinSizeChars;case 9:return!!L.maximizeWin;case 10:return!!L.fullscreenWin;case 11:return!!L.getWinState;case 13:return!!L.getWinPosition;case 14:return!!L.getWinSizePixels;case 15:return!!L.getScreenSizePixels;case 16:return!!L.getCellSizePixels;case 18:return!!L.getWinSizeChars;case 19:return!!L.getScreenSizeChars;case 20:return!!L.getIconTitle;case 21:return!!L.getWinTitle;case 22:return!!L.pushTitle;case 23:return!!L.popTitle;case 24:return!!L.setWinLines}return!1}!function(T){T[T.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",T[T.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(h=f.WindowsOptionsReportType||(f.WindowsOptionsReportType={}));var S=function(){function T(L,y,C,O){this._bufferService=L,this._coreService=y,this._logService=C,this._optionsService=O,this._data=new Uint32Array(0)}return T.prototype.hook=function(L){this._data=new Uint32Array(0)},T.prototype.put=function(L,y,C){this._data=a.concat(this._data,L.subarray(y,C))},T.prototype.unhook=function(L){if(L){var y=u.utf32ToString(this._data);switch(this._data=new Uint32Array(0),y){case'"q':return this._coreService.triggerDataEvent(c.C0.ESC+'P1$r0"q'+c.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(c.C0.ESC+'P1$r61;1"p'+c.C0.ESC+"\\");case"r":var C=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(c.C0.ESC+"P1$r"+C+c.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(c.C0.ESC+"P1$r0m"+c.C0.ESC+"\\");case" q":var O={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return O-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(c.C0.ESC+"P1$r"+O+" q"+c.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",y),this._coreService.triggerDataEvent(c.C0.ESC+"P0$r"+c.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},T}(),x=function(T){function L(y,C,O,N,k,F,B,H,W){W===void 0&&(W=new i.EscapeSequenceParser);var R=T.call(this)||this;R._bufferService=y,R._charsetService=C,R._coreService=O,R._dirtyRowService=N,R._logService=k,R._optionsService=F,R._coreMouseService=B,R._unicodeService=H,R._parser=W,R._parseBuffer=new Uint32Array(4096),R._stringDecoder=new u.StringToUtf32,R._utf8Decoder=new u.Utf8ToUtf32,R._workCell=new s.CellData,R._windowTitle="",R._iconName="",R._windowTitleStack=[],R._iconNameStack=[],R._curAttrData=r.DEFAULT_ATTR_DATA.clone(),R._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone(),R._onRequestBell=new l.EventEmitter,R._onRequestRefreshRows=new l.EventEmitter,R._onRequestReset=new l.EventEmitter,R._onRequestScroll=new l.EventEmitter,R._onRequestSyncScrollBar=new l.EventEmitter,R._onRequestWindowsOptionsReport=new l.EventEmitter,R._onA11yChar=new l.EventEmitter,R._onA11yTab=new l.EventEmitter,R._onCursorMove=new l.EventEmitter,R._onLineFeed=new l.EventEmitter,R._onScroll=new l.EventEmitter,R._onTitleChange=new l.EventEmitter,R.register(R._parser),R._parser.setCsiHandlerFallback(function(K,V){R._logService.debug("Unknown CSI code: ",{identifier:R._parser.identToString(K),params:V.toArray()})}),R._parser.setEscHandlerFallback(function(K){R._logService.debug("Unknown ESC code: ",{identifier:R._parser.identToString(K)})}),R._parser.setExecuteHandlerFallback(function(K){R._logService.debug("Unknown EXECUTE code: ",{code:K})}),R._parser.setOscHandlerFallback(function(K,V,z){R._logService.debug("Unknown OSC code: ",{identifier:K,action:V,data:z})}),R._parser.setDcsHandlerFallback(function(K,V,z){V==="HOOK"&&(z=z.toArray()),R._logService.debug("Unknown DCS code: ",{identifier:R._parser.identToString(K),action:V,payload:z})}),R._parser.setPrintHandler(function(K,V,z){return R.print(K,V,z)}),R._parser.setCsiHandler({final:"@"},function(K){return R.insertChars(K)}),R._parser.setCsiHandler({intermediates:" ",final:"@"},function(K){return R.scrollLeft(K)}),R._parser.setCsiHandler({final:"A"},function(K){return R.cursorUp(K)}),R._parser.setCsiHandler({intermediates:" ",final:"A"},function(K){return R.scrollRight(K)}),R._parser.setCsiHandler({final:"B"},function(K){return R.cursorDown(K)}),R._parser.setCsiHandler({final:"C"},function(K){return R.cursorForward(K)}),R._parser.setCsiHandler({final:"D"},function(K){return R.cursorBackward(K)}),R._parser.setCsiHandler({final:"E"},function(K){return R.cursorNextLine(K)}),R._parser.setCsiHandler({final:"F"},function(K){return R.cursorPrecedingLine(K)}),R._parser.setCsiHandler({final:"G"},function(K){return R.cursorCharAbsolute(K)}),R._parser.setCsiHandler({final:"H"},function(K){return R.cursorPosition(K)}),R._parser.setCsiHandler({final:"I"},function(K){return R.cursorForwardTab(K)}),R._parser.setCsiHandler({final:"J"},function(K){return R.eraseInDisplay(K)}),R._parser.setCsiHandler({prefix:"?",final:"J"},function(K){return R.eraseInDisplay(K)}),R._parser.setCsiHandler({final:"K"},function(K){return R.eraseInLine(K)}),R._parser.setCsiHandler({prefix:"?",final:"K"},function(K){return R.eraseInLine(K)}),R._parser.setCsiHandler({final:"L"},function(K){return R.insertLines(K)}),R._parser.setCsiHandler({final:"M"},function(K){return R.deleteLines(K)}),R._parser.setCsiHandler({final:"P"},function(K){return R.deleteChars(K)}),R._parser.setCsiHandler({final:"S"},function(K){return R.scrollUp(K)}),R._parser.setCsiHandler({final:"T"},function(K){return R.scrollDown(K)}),R._parser.setCsiHandler({final:"X"},function(K){return R.eraseChars(K)}),R._parser.setCsiHandler({final:"Z"},function(K){return R.cursorBackwardTab(K)}),R._parser.setCsiHandler({final:"`"},function(K){return R.charPosAbsolute(K)}),R._parser.setCsiHandler({final:"a"},function(K){return R.hPositionRelative(K)}),R._parser.setCsiHandler({final:"b"},function(K){return R.repeatPrecedingCharacter(K)}),R._parser.setCsiHandler({final:"c"},function(K){return R.sendDeviceAttributesPrimary(K)}),R._parser.setCsiHandler({prefix:">",final:"c"},function(K){return R.sendDeviceAttributesSecondary(K)}),R._parser.setCsiHandler({final:"d"},function(K){return R.linePosAbsolute(K)}),R._parser.setCsiHandler({final:"e"},function(K){return R.vPositionRelative(K)}),R._parser.setCsiHandler({final:"f"},function(K){return R.hVPosition(K)}),R._parser.setCsiHandler({final:"g"},function(K){return R.tabClear(K)}),R._parser.setCsiHandler({final:"h"},function(K){return R.setMode(K)}),R._parser.setCsiHandler({prefix:"?",final:"h"},function(K){return R.setModePrivate(K)}),R._parser.setCsiHandler({final:"l"},function(K){return R.resetMode(K)}),R._parser.setCsiHandler({prefix:"?",final:"l"},function(K){return R.resetModePrivate(K)}),R._parser.setCsiHandler({final:"m"},function(K){return R.charAttributes(K)}),R._parser.setCsiHandler({final:"n"},function(K){return R.deviceStatus(K)}),R._parser.setCsiHandler({prefix:"?",final:"n"},function(K){return R.deviceStatusPrivate(K)}),R._parser.setCsiHandler({intermediates:"!",final:"p"},function(K){return R.softReset(K)}),R._parser.setCsiHandler({intermediates:" ",final:"q"},function(K){return R.setCursorStyle(K)}),R._parser.setCsiHandler({final:"r"},function(K){return R.setScrollRegion(K)}),R._parser.setCsiHandler({final:"s"},function(K){return R.saveCursor(K)}),R._parser.setCsiHandler({final:"t"},function(K){return R.windowOptions(K)}),R._parser.setCsiHandler({final:"u"},function(K){return R.restoreCursor(K)}),R._parser.setCsiHandler({intermediates:"'",final:"}"},function(K){return R.insertColumns(K)}),R._parser.setCsiHandler({intermediates:"'",final:"~"},function(K){return R.deleteColumns(K)}),R._parser.setExecuteHandler(c.C0.BEL,function(){return R.bell()}),R._parser.setExecuteHandler(c.C0.LF,function(){return R.lineFeed()}),R._parser.setExecuteHandler(c.C0.VT,function(){return R.lineFeed()}),R._parser.setExecuteHandler(c.C0.FF,function(){return R.lineFeed()}),R._parser.setExecuteHandler(c.C0.CR,function(){return R.carriageReturn()}),R._parser.setExecuteHandler(c.C0.BS,function(){return R.backspace()}),R._parser.setExecuteHandler(c.C0.HT,function(){return R.tab()}),R._parser.setExecuteHandler(c.C0.SO,function(){return R.shiftOut()}),R._parser.setExecuteHandler(c.C0.SI,function(){return R.shiftIn()}),R._parser.setExecuteHandler(c.C1.IND,function(){return R.index()}),R._parser.setExecuteHandler(c.C1.NEL,function(){return R.nextLine()}),R._parser.setExecuteHandler(c.C1.HTS,function(){return R.tabSet()}),R._parser.setOscHandler(0,new p.OscHandler(function(K){R.setTitle(K),R.setIconName(K)})),R._parser.setOscHandler(1,new p.OscHandler(function(K){return R.setIconName(K)})),R._parser.setOscHandler(2,new p.OscHandler(function(K){return R.setTitle(K)})),R._parser.setEscHandler({final:"7"},function(){return R.saveCursor()}),R._parser.setEscHandler({final:"8"},function(){return R.restoreCursor()}),R._parser.setEscHandler({final:"D"},function(){return R.index()}),R._parser.setEscHandler({final:"E"},function(){return R.nextLine()}),R._parser.setEscHandler({final:"H"},function(){return R.tabSet()}),R._parser.setEscHandler({final:"M"},function(){return R.reverseIndex()}),R._parser.setEscHandler({final:"="},function(){return R.keypadApplicationMode()}),R._parser.setEscHandler({final:">"},function(){return R.keypadNumericMode()}),R._parser.setEscHandler({final:"c"},function(){return R.fullReset()}),R._parser.setEscHandler({final:"n"},function(){return R.setgLevel(2)}),R._parser.setEscHandler({final:"o"},function(){return R.setgLevel(3)}),R._parser.setEscHandler({final:"|"},function(){return R.setgLevel(3)}),R._parser.setEscHandler({final:"}"},function(){return R.setgLevel(2)}),R._parser.setEscHandler({final:"~"},function(){return R.setgLevel(1)}),R._parser.setEscHandler({intermediates:"%",final:"@"},function(){return R.selectDefaultCharset()}),R._parser.setEscHandler({intermediates:"%",final:"G"},function(){return R.selectDefaultCharset()});var U=function(V){j._parser.setEscHandler({intermediates:"(",final:V},function(){return R.selectCharset("("+V)}),j._parser.setEscHandler({intermediates:")",final:V},function(){return R.selectCharset(")"+V)}),j._parser.setEscHandler({intermediates:"*",final:V},function(){return R.selectCharset("*"+V)}),j._parser.setEscHandler({intermediates:"+",final:V},function(){return R.selectCharset("+"+V)}),j._parser.setEscHandler({intermediates:"-",final:V},function(){return R.selectCharset("-"+V)}),j._parser.setEscHandler({intermediates:".",final:V},function(){return R.selectCharset("."+V)}),j._parser.setEscHandler({intermediates:"/",final:V},function(){return R.selectCharset("/"+V)})},j=this;for(var P in o.CHARSETS)U(P);return R._parser.setEscHandler({intermediates:"#",final:"8"},function(){return R.screenAlignmentPattern()}),R._parser.setErrorHandler(function(K){return R._logService.error("Parsing error: ",K),K}),R._parser.setDcsHandler({intermediates:"$",final:"q"},new S(R._bufferService,R._coreService,R._logService,R._optionsService)),R}return v(L,T),Object.defineProperty(L.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),L.prototype.dispose=function(){T.prototype.dispose.call(this)},L.prototype.parse=function(y){var C=this._bufferService.buffer,O=C.x,N=C.y;if(this._logService.debug("parsing data",y),this._parseBuffer.length131072)for(var k=0;k0&&P.getWidth(F.x-1)===2&&P.setCellFromCodePoint(F.x-1,0,1,j.fg,j.bg,j.extended);for(var K=C;K=W){if(R){for(;F.x=this._bufferService.rows&&(F.y=this._bufferService.rows-1),F.lines.get(F.ybase+F.y).isWrapped=!0),P=F.lines.get(F.ybase+F.y)}else if(F.x=W-1,k===2)continue}if(U&&(P.insertCells(F.x,k,F.getNullCell(j),j),P.getWidth(W-1)===2&&P.setCellFromCodePoint(W-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,j.fg,j.bg,j.extended)),P.setCellFromCodePoint(F.x++,N,k,j.fg,j.bg,j.extended),k>0)for(;--k;)P.setCellFromCodePoint(F.x++,0,0,j.fg,j.bg,j.extended)}else P.getWidth(F.x-1)?P.addCodepointToCell(F.x-1,N):P.addCodepointToCell(F.x-2,N)}O-C>0&&(P.loadCell(F.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),F.x0&&P.getWidth(F.x)===0&&!P.hasContent(F.x)&&P.setCellFromCodePoint(F.x,0,1,j.fg,j.bg,j.extended),this._dirtyRowService.markDirty(F.y)},L.prototype.addCsiHandler=function(y,C){var O=this;return y.final!=="t"||y.prefix||y.intermediates?this._parser.addCsiHandler(y,C):this._parser.addCsiHandler(y,function(N){return!E(N.params[0],O._optionsService.options.windowOptions)||C(N)})},L.prototype.addDcsHandler=function(y,C){return this._parser.addDcsHandler(y,new b.DcsHandler(C))},L.prototype.addEscHandler=function(y,C){return this._parser.addEscHandler(y,C)},L.prototype.addOscHandler=function(y,C){return this._parser.addOscHandler(y,new p.OscHandler(C))},L.prototype.bell=function(){this._onRequestBell.fire()},L.prototype.lineFeed=function(){var y=this._bufferService.buffer;this._dirtyRowService.markDirty(y.y),this._optionsService.options.convertEol&&(y.x=0),y.y++,y.y===y.scrollBottom+1?(y.y--,this._onRequestScroll.fire(this._eraseAttrData())):y.y>=this._bufferService.rows&&(y.y=this._bufferService.rows-1),y.x>=this._bufferService.cols&&y.x--,this._dirtyRowService.markDirty(y.y),this._onLineFeed.fire()},L.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},L.prototype.backspace=function(){var y,C=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(C.x>0&&C.x--);if(this._restrictCursor(this._bufferService.cols),C.x>0)C.x--;else if(C.x===0&&C.y>C.scrollTop&&C.y<=C.scrollBottom&&((y=C.lines.get(C.ybase+C.y))===null||y===void 0?void 0:y.isWrapped)){C.lines.get(C.ybase+C.y).isWrapped=!1,C.y--,C.x=this._bufferService.cols-1;var O=C.lines.get(C.ybase+C.y);O.hasWidth(C.x)&&!O.hasContent(C.x)&&C.x--}this._restrictCursor()},L.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var y=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-y)}},L.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},L.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},L.prototype._restrictCursor=function(y){y===void 0&&(y=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(y,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},L.prototype._setCursor=function(y,C){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=y,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+C):(this._bufferService.buffer.x=y,this._bufferService.buffer.y=C),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},L.prototype._moveCursor=function(y,C){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+y,this._bufferService.buffer.y+C)},L.prototype.cursorUp=function(y){var C=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;C>=0?this._moveCursor(0,-Math.min(C,y.params[0]||1)):this._moveCursor(0,-(y.params[0]||1))},L.prototype.cursorDown=function(y){var C=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;C>=0?this._moveCursor(0,Math.min(C,y.params[0]||1)):this._moveCursor(0,y.params[0]||1)},L.prototype.cursorForward=function(y){this._moveCursor(y.params[0]||1,0)},L.prototype.cursorBackward=function(y){this._moveCursor(-(y.params[0]||1),0)},L.prototype.cursorNextLine=function(y){this.cursorDown(y),this._bufferService.buffer.x=0},L.prototype.cursorPrecedingLine=function(y){this.cursorUp(y),this._bufferService.buffer.x=0},L.prototype.cursorCharAbsolute=function(y){this._setCursor((y.params[0]||1)-1,this._bufferService.buffer.y)},L.prototype.cursorPosition=function(y){this._setCursor(y.length>=2?(y.params[1]||1)-1:0,(y.params[0]||1)-1)},L.prototype.charPosAbsolute=function(y){this._setCursor((y.params[0]||1)-1,this._bufferService.buffer.y)},L.prototype.hPositionRelative=function(y){this._moveCursor(y.params[0]||1,0)},L.prototype.linePosAbsolute=function(y){this._setCursor(this._bufferService.buffer.x,(y.params[0]||1)-1)},L.prototype.vPositionRelative=function(y){this._moveCursor(0,y.params[0]||1)},L.prototype.hVPosition=function(y){this.cursorPosition(y)},L.prototype.tabClear=function(y){var C=y.params[0];C===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:C===3&&(this._bufferService.buffer.tabs={})},L.prototype.cursorForwardTab=function(y){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var C=y.params[0]||1;C--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},L.prototype.cursorBackwardTab=function(y){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var C=y.params[0]||1,O=this._bufferService.buffer;C--;)O.x=O.prevStop()},L.prototype._eraseInBufferLine=function(y,C,O,N){N===void 0&&(N=!1);var k=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+y);k.replaceCells(C,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),N&&(k.isWrapped=!1)},L.prototype._resetBufferLine=function(y){var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+y);C.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),C.isWrapped=!1},L.prototype.eraseInDisplay=function(y){var C;switch(this._restrictCursor(),y.params[0]){case 0:for(C=this._bufferService.buffer.y,this._dirtyRowService.markDirty(C),this._eraseInBufferLine(C++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);C=this._bufferService.cols&&(this._bufferService.buffer.lines.get(C+1).isWrapped=!1);C--;)this._resetBufferLine(C);this._dirtyRowService.markDirty(0);break;case 2:for(C=this._bufferService.rows,this._dirtyRowService.markDirty(C-1);C--;)this._resetBufferLine(C);this._dirtyRowService.markDirty(0);break;case 3:var O=this._bufferService.buffer.lines.length-this._bufferService.rows;O>0&&(this._bufferService.buffer.lines.trimStart(O),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-O,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-O,0),this._onScroll.fire(0))}},L.prototype.eraseInLine=function(y){switch(this._restrictCursor(),y.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},L.prototype.insertLines=function(y){this._restrictCursor();var C=y.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.yO.scrollBottom||O.yC.scrollBottom||C.yC.scrollBottom||C.yC.scrollBottom||C.yC.scrollBottom||C.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(c.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(c.C0.ESC+"[?6c"))},L.prototype.sendDeviceAttributesSecondary=function(y){y.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(c.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(c.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(y.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(c.C0.ESC+"[>83;40003;0c"))},L.prototype._is=function(y){return(this._optionsService.options.termName+"").indexOf(y)===0},L.prototype.setMode=function(y){for(var C=0;C=2||N[1]===2&&F+k>=5)break;N[1]&&(k=1)}while(++F+C5)&&(y=1),C.extended.underlineStyle=y,C.fg|=268435456,y===0&&(C.fg&=-268435457),C.updateExtended()},L.prototype.charAttributes=function(y){if(y.length===1&&y.params[0]===0)return this._curAttrData.fg=r.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=r.DEFAULT_ATTR_DATA.bg);for(var C,O=y.length,N=this._curAttrData,k=0;k=30&&C<=37?(N.fg&=-50331904,N.fg|=16777216|C-30):C>=40&&C<=47?(N.bg&=-50331904,N.bg|=16777216|C-40):C>=90&&C<=97?(N.fg&=-50331904,N.fg|=16777224|C-90):C>=100&&C<=107?(N.bg&=-50331904,N.bg|=16777224|C-100):C===0?(N.fg=r.DEFAULT_ATTR_DATA.fg,N.bg=r.DEFAULT_ATTR_DATA.bg):C===1?N.fg|=134217728:C===3?N.bg|=67108864:C===4?(N.fg|=268435456,this._processUnderline(y.hasSubParams(k)?y.getSubParams(k)[0]:1,N)):C===5?N.fg|=536870912:C===7?N.fg|=67108864:C===8?N.fg|=1073741824:C===2?N.bg|=134217728:C===21?this._processUnderline(2,N):C===22?(N.fg&=-134217729,N.bg&=-134217729):C===23?N.bg&=-67108865:C===24?N.fg&=-268435457:C===25?N.fg&=-536870913:C===27?N.fg&=-67108865:C===28?N.fg&=-1073741825:C===39?(N.fg&=-67108864,N.fg|=16777215&r.DEFAULT_ATTR_DATA.fg):C===49?(N.bg&=-67108864,N.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):C===38||C===48||C===58?k+=this._extractColor(y,k,N):C===59?(N.extended=N.extended.clone(),N.extended.underlineColor=-1,N.updateExtended()):C===100?(N.fg&=-67108864,N.fg|=16777215&r.DEFAULT_ATTR_DATA.fg,N.bg&=-67108864,N.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",C)},L.prototype.deviceStatus=function(y){switch(y.params[0]){case 5:this._coreService.triggerDataEvent(c.C0.ESC+"[0n");break;case 6:var C=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(c.C0.ESC+"["+C+";"+O+"R")}},L.prototype.deviceStatusPrivate=function(y){switch(y.params[0]){case 6:var C=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(c.C0.ESC+"[?"+C+";"+O+"R")}},L.prototype.softReset=function(y){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=r.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},L.prototype.setCursorStyle=function(y){var C=y.params[0]||1;switch(C){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var O=C%2==1;this._optionsService.options.cursorBlink=O},L.prototype.setScrollRegion=function(y){var C,O=y.params[0]||1;(y.length<2||(C=y.params[1])>this._bufferService.rows||C===0)&&(C=this._bufferService.rows),C>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=C-1,this._setCursor(0,0))},L.prototype.windowOptions=function(y){if(E(y.params[0],this._optionsService.options.windowOptions)){var C=y.length>1?y.params[1]:0;switch(y.params[0]){case 14:C!==2&&this._onRequestWindowsOptionsReport.fire(h.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(h.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(c.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:C!==0&&C!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),C!==0&&C!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:C!==0&&C!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),C!==0&&C!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},L.prototype.saveCursor=function(y){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},L.prototype.restoreCursor=function(y){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},L.prototype.setTitle=function(y){this._windowTitle=y,this._onTitleChange.fire(y)},L.prototype.setIconName=function(y){this._iconName=y},L.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},L.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},L.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},L.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,o.DEFAULT_CHARSET)},L.prototype.selectCharset=function(y){y.length===2?y[0]!=="/"&&this._charsetService.setgCharset(w[y[0]],o.CHARSETS[y[1]]||o.DEFAULT_CHARSET):this.selectDefaultCharset()},L.prototype.index=function(){this._restrictCursor();var y=this._bufferService.buffer;this._bufferService.buffer.y++,y.y===y.scrollBottom+1?(y.y--,this._onRequestScroll.fire(this._eraseAttrData())):y.y>=this._bufferService.rows&&(y.y=this._bufferService.rows-1),this._restrictCursor()},L.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},L.prototype.reverseIndex=function(){this._restrictCursor();var y=this._bufferService.buffer;if(y.y===y.scrollTop){var C=y.scrollBottom-y.scrollTop;y.lines.shiftElements(y.ybase+y.y,C,1),y.lines.set(y.ybase+y.y,y.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(y.scrollTop,y.scrollBottom)}else y.y--,this._restrictCursor()},L.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},L.prototype.reset=function(){this._curAttrData=r.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone()},L.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},L.prototype.setgLevel=function(y){this._charsetService.setgLevel(y)},L.prototype.screenAlignmentPattern=function(){var y=new s.CellData;y.content=1<<22|"E".charCodeAt(0),y.fg=this._curAttrData.fg,y.bg=this._curAttrData.bg;var C=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(h),this.length=0,this._subParams=new Int32Array(c),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(h),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return v.fromArray=function(h){var c=new v;if(!h.length)return c;for(var o=h[0]instanceof Array?1:0;o>8,i=255&this._subParamsIdx[c];i-o>0&&h.push(Array.prototype.slice.call(this._subParams,o,i))}return h},v.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},v.prototype.addParam=function(h){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=h>2147483647?2147483647:h}},v.prototype.addSubParam=function(h){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=h>2147483647?2147483647:h,this._subParamsIdx[this.length-1]++}},v.prototype.hasSubParams=function(h){return(255&this._subParamsIdx[h])-(this._subParamsIdx[h]>>8)>0},v.prototype.getSubParams=function(h){var c=this._subParamsIdx[h]>>8,o=255&this._subParamsIdx[h];return o-c>0?this._subParams.subarray(c,o):null},v.prototype.getSubParamsAll=function(){for(var h={},c=0;c>8,i=255&this._subParamsIdx[c];i-o>0&&(h[c]=this._subParams.slice(o,i))}return h},v.prototype.addDigit=function(h){var c;if(!(this._rejectDigits||!(c=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var o=this._digitIsSub?this._subParams:this.params,i=o[c-1];o[c-1]=~i?Math.min(10*i+h,2147483647):h}},v}();f.Params=m},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OscHandler=f.OscParser=void 0;var m=A(23),v=A(8),h=function(){function o(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return o.prototype.addHandler=function(i,n){this._handlers[i]===void 0&&(this._handlers[i]=[]);var a=this._handlers[i];return a.push(n),{dispose:function(){var r=a.indexOf(n);r!==-1&&a.splice(r,1)}}},o.prototype.setHandler=function(i,n){this._handlers[i]=[n]},o.prototype.clearHandler=function(i){this._handlers[i]&&delete this._handlers[i]},o.prototype.setHandlerFallback=function(i){this._handlerFb=i},o.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},o.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},o.prototype._start=function(){var i=this._handlers[this._id];if(i)for(var n=i.length-1;n>=0;n--)i[n].start();else this._handlerFb(this._id,"START")},o.prototype._put=function(i,n,a){var u=this._handlers[this._id];if(u)for(var r=u.length-1;r>=0;r--)u[r].put(i,n,a);else this._handlerFb(this._id,"PUT",v.utf32ToString(i,n,a))},o.prototype._end=function(i){var n=this._handlers[this._id];if(n){for(var a=n.length-1;a>=0&&n[a].end(i)===!1;a--);for(a--;a>=0;a--)n[a].end(!1)}else this._handlerFb(this._id,"END",i)},o.prototype.start=function(){this.reset(),this._id=-1,this._state=1},o.prototype.put=function(i,n,a){if(this._state!==3){if(this._state===1)for(;n0&&this._put(i,n,a)}},o.prototype.end=function(i){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(i)),this._id=-1,this._state=0)},o}();f.OscParser=h;var c=function(){function o(i){this._handler=i,this._data="",this._hitLimit=!1}return o.prototype.start=function(){this._data="",this._hitLimit=!1},o.prototype.put=function(i,n,a){this._hitLimit||(this._data+=v.utf32ToString(i,n,a),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},o.prototype.end=function(i){var n;return this._hitLimit?n=!1:i&&(n=this._handler(this._data)),this._data="",this._hitLimit=!1,n},o}();f.OscHandler=c},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.PAYLOAD_LIMIT=void 0,f.PAYLOAD_LIMIT=1e7},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DcsHandler=f.DcsParser=void 0;var m=A(8),v=A(21),h=A(23),c=[],o=function(){function n(){this._handlers=Object.create(null),this._active=c,this._ident=0,this._handlerFb=function(){}}return n.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},n.prototype.addHandler=function(a,u){this._handlers[a]===void 0&&(this._handlers[a]=[]);var r=this._handlers[a];return r.push(u),{dispose:function(){var t=r.indexOf(u);t!==-1&&r.splice(t,1)}}},n.prototype.setHandler=function(a,u){this._handlers[a]=[u]},n.prototype.clearHandler=function(a){this._handlers[a]&&delete this._handlers[a]},n.prototype.setHandlerFallback=function(a){this._handlerFb=a},n.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=c,this._ident=0},n.prototype.hook=function(a,u){if(this.reset(),this._ident=a,this._active=this._handlers[a]||c,this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].hook(u);else this._handlerFb(this._ident,"HOOK",u)},n.prototype.put=function(a,u,r){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(a,u,r);else this._handlerFb(this._ident,"PUT",m.utf32ToString(a,u,r))},n.prototype.unhook=function(a){if(this._active.length){for(var u=this._active.length-1;u>=0&&this._active[u].unhook(a)===!1;u--);for(u--;u>=0;u--)this._active[u].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",a);this._active=c,this._ident=0},n}();f.DcsParser=o;var i=function(){function n(a){this._handler=a,this._data="",this._hitLimit=!1}return n.prototype.hook=function(a){this._params=a.clone(),this._data="",this._hitLimit=!1},n.prototype.put=function(a,u,r){this._hitLimit||(this._data+=m.utf32ToString(a,u,r),this._data.length>h.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},n.prototype.unhook=function(a){var u;return this._hitLimit?u=!1:a&&(u=this._handler(this._data,this._params||new v.Params)),this._params=void 0,this._data="",this._hitLimit=!1,u},n}();f.DcsHandler=i},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeTerminalFromCache=f.acquireCharAtlas=void 0;var m=A(26),v=A(43),h=[];f.acquireCharAtlas=function(c,o,i,n,a){for(var u=m.generateConfig(n,a,c,i),r=0;r=0){if(m.configEquals(t.config,u))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),h.splice(r,1)):t.ownedBy.splice(l,1);break}}for(r=0;r1)for(var S=this._getJoinedRanges(t,p,d,r,s),x=0;x1)for(S=this._getJoinedRanges(t,p,d,r,s),x=0;x=this._line.length))return d?(this._line.loadCell(s,d),d):this._line.loadCell(s,new m.CellData)},t.prototype.translateToString=function(s,d,p){return this._line.translateToString(s,d,p)},t}(),r=function(){function t(s){this._core=s}return t.prototype.registerCsiHandler=function(s,d){return this._core.addCsiHandler(s,function(p){return d(p.toArray())})},t.prototype.addCsiHandler=function(s,d){return this.registerCsiHandler(s,d)},t.prototype.registerDcsHandler=function(s,d){return this._core.addDcsHandler(s,function(p,b){return d(p,b.toArray())})},t.prototype.addDcsHandler=function(s,d){return this.registerDcsHandler(s,d)},t.prototype.registerEscHandler=function(s,d){return this._core.addEscHandler(s,d)},t.prototype.addEscHandler=function(s,d){return this.registerEscHandler(s,d)},t.prototype.registerOscHandler=function(s,d){return this._core.addOscHandler(s,d)},t.prototype.addOscHandler=function(s,d){return this.registerOscHandler(s,d)},t}(),l=function(){function t(s){this._core=s}return t.prototype.register=function(s){this._core.unicodeService.register(s)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(d){this._core.unicodeService.activeVersion=d},enumerable:!1,configurable:!0}),t}()},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(R,U){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,P){j.__proto__=P}||function(j,P){for(var K in P)P.hasOwnProperty(K)&&(j[K]=P[K])})(R,U)},function(W,R){function U(){this.constructor=W}m(W,R),W.prototype=R===null?Object.create(R):(U.prototype=R.prototype,new U)});Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;var h=A(36),c=A(37),o=A(38),i=A(12),n=A(19),a=A(40),u=A(50),r=A(51),l=A(11),t=A(7),s=A(18),d=A(54),p=A(55),b=A(56),w=A(57),E=A(59),S=A(0),x=A(16),T=A(27),L=A(60),y=A(5),C=A(61),O=A(62),N=A(63),k=A(64),F=A(65),B=typeof window!="undefined"?window.document:null,H=function(W){function R(U){U===void 0&&(U={});var j=W.call(this,U)||this;return j.browser=l,j._keyDownHandled=!1,j._onCursorMove=new S.EventEmitter,j._onKey=new S.EventEmitter,j._onRender=new S.EventEmitter,j._onSelectionChange=new S.EventEmitter,j._onTitleChange=new S.EventEmitter,j._onFocus=new S.EventEmitter,j._onBlur=new S.EventEmitter,j._onA11yCharEmitter=new S.EventEmitter,j._onA11yTabEmitter=new S.EventEmitter,j._setup(),j.linkifier=j._instantiationService.createInstance(u.Linkifier),j.linkifier2=j.register(j._instantiationService.createInstance(N.Linkifier2)),j.register(j._inputHandler.onRequestBell(function(){return j.bell()})),j.register(j._inputHandler.onRequestRefreshRows(function(P,K){return j.refresh(P,K)})),j.register(j._inputHandler.onRequestReset(function(){return j.reset()})),j.register(j._inputHandler.onRequestScroll(function(P,K){return j.scroll(P,K||void 0)})),j.register(j._inputHandler.onRequestWindowsOptionsReport(function(P){return j._reportWindowsOptions(P)})),j.register(S.forwardEvent(j._inputHandler.onCursorMove,j._onCursorMove)),j.register(S.forwardEvent(j._inputHandler.onTitleChange,j._onTitleChange)),j.register(S.forwardEvent(j._inputHandler.onA11yChar,j._onA11yCharEmitter)),j.register(S.forwardEvent(j._inputHandler.onA11yTab,j._onA11yTabEmitter)),j.register(j._bufferService.onResize(function(P){return j._afterResize(P.cols,P.rows)})),j}return v(R,W),Object.defineProperty(R.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),R.prototype.dispose=function(){var U,j,P;this._isDisposed||(W.prototype.dispose.call(this),(U=this._renderService)===null||U===void 0||U.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(P=(j=this.element)===null||j===void 0?void 0:j.parentNode)===null||P===void 0||P.removeChild(this.element))},R.prototype._setup=function(){W.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(R.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),R.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},R.prototype._updateOptions=function(U){var j,P,K,V;switch(W.prototype._updateOptions.call(this,U),U){case"fontFamily":case"fontSize":(j=this._renderService)===null||j===void 0||j.clear(),(P=this._charSizeService)===null||P===void 0||P.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(K=this.viewport)===null||K===void 0||K.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new b.AccessibilityManager(this,this._renderService)):((V=this._accessibilityManager)===null||V===void 0||V.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},R.prototype._onTextAreaFocus=function(U){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(i.C0.ESC+"[I"),this.updateCursorStyle(U),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},R.prototype.blur=function(){var U;return(U=this.textarea)===null||U===void 0?void 0:U.blur()},R.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(i.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},R.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var U=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),j=this._bufferService.buffer.y*U,P=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=P+"px",this.textarea.style.top=j+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=U+"px",this.textarea.style.lineHeight=U+"px",this.textarea.style.zIndex="-5"}},R.prototype._initGlobal=function(){var U=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(P){U.hasSelection()&&o.copyHandler(P,U._selectionService)}));var j=function(K){return o.handlePasteEvent(K,U.textarea,U._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",j)),this.register(t.addDisposableDomListener(this.element,"paste",j)),l.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(P){P.button===2&&o.rightClickHandler(P,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(P){o.rightClickHandler(P,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})),l.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(P){P.button===1&&o.moveTextAreaUnderMouseCursor(P,U.textarea,U.screenElement)}))},R.prototype._bindKeys=function(){var U=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(j){return U._keyUp(j)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(j){return U._keyDown(j)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(j){return U._keyPress(j)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return U._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(j){return U._compositionHelper.compositionupdate(j)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return U._compositionHelper.compositionend()})),this.register(this.onRender(function(){return U._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(j){return U._queueLinkification(j.start,j.end)}))},R.prototype.open=function(U){var j=this;if(!U)throw new Error("Terminal requires a parent element.");B.body.contains(U)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=U.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),U.appendChild(this.element);var P=B.createDocumentFragment();this._viewportElement=B.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),P.appendChild(this._viewportElement),this._viewportScrollArea=B.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=B.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=B.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),P.appendChild(this.screenElement),this.textarea=B.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",s.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(t.addDisposableDomListener(this.textarea,"focus",function(z){return j._onTextAreaFocus(z)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return j._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var K=this._instantiationService.createInstance(k.CoreBrowserService,this.textarea);this._instantiationService.setService(y.ICoreBrowserService,K),this._charSizeService=this._instantiationService.createInstance(C.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(y.ICharSizeService,this._charSizeService),this._compositionView=B.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(h.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(P),this._theme=this.options.theme||this._theme,this._colorManager=new T.ColorManager(B,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(z){return j._colorManager.onOptionsChange(z)})),this._colorManager.setTheme(this._theme);var V=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(L.RenderService,V,this.rows,this.screenElement)),this._instantiationService.setService(y.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(z){return j._onRender.fire(z)})),this.onResize(function(z){return j._renderService.resize(z.cols,z.rows)}),this._soundService=this._instantiationService.createInstance(d.SoundService),this._instantiationService.setService(y.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(y.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(c.Viewport,function(z,X){return j.scrollLines(z,X)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return j.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){j._renderService.onCursorMove(),j._syncTextArea()})),this.register(this.onResize(function(){return j._renderService.onResize(j.cols,j.rows)})),this.register(this.onBlur(function(){return j._renderService.onBlur()})),this.register(this.onFocus(function(){return j._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return j.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(r.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(y.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(z){return j.scrollLines(z.amount,z.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return j._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(z){return j._renderService.onSelectionChanged(z.start,z.end,z.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(z){j.textarea.value=z,j.textarea.focus(),j.textarea.select()})),this.register(this.onScroll(function(){j.viewport.syncScrollArea(),j._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return j._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(p.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return j._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(z){return j._selectionService.onMouseDown(z)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new b.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},R.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(a.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(w.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},R.prototype._setTheme=function(U){var j,P,K;this._theme=U,(j=this._colorManager)===null||j===void 0||j.setTheme(U),(P=this._renderService)===null||P===void 0||P.setColors(this._colorManager.colors),(K=this.viewport)===null||K===void 0||K.onThemeChange(this._colorManager.colors)},R.prototype.bindMouse=function(){var U=this,j=this,P=this.element;function K(Y){var me,we,pe=j._mouseService.getRawByteCoords(Y,j.screenElement,j.cols,j.rows);if(!pe)return!1;switch(Y.overrideType||Y.type){case"mousemove":we=32,Y.buttons===void 0?(me=3,Y.button!==void 0&&(me=Y.button<3?Y.button:3)):me=1&Y.buttons?0:4&Y.buttons?1:2&Y.buttons?2:3;break;case"mouseup":we=0,me=Y.button<3?Y.button:3;break;case"mousedown":we=1,me=Y.button<3?Y.button:3;break;case"wheel":Y.deltaY!==0&&(we=Y.deltaY<0?0:1),me=4;break;default:return!1}return!(we===void 0||me===void 0||me>4)&&j._coreMouseService.triggerMouseEvent({col:pe.x-33,row:pe.y-33,button:me,action:we,ctrl:Y.ctrlKey,alt:Y.altKey,shift:Y.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},z=function(me){return K(me),me.buttons||(U._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&U._document.removeEventListener("mousemove",V.mousedrag)),U.cancel(me)},X=function(me){return K(me),me.preventDefault(),U.cancel(me)},G=function(me){me.buttons&&K(me)},le=function(me){me.buttons||K(me)};this.register(this._coreMouseService.onProtocolChange(function(Y){Y?(U.optionsService.options.logLevel==="debug"&&U._logService.debug("Binding to mouse events:",U._coreMouseService.explainEvents(Y)),U.element.classList.add("enable-mouse-events"),U._selectionService.disable()):(U._logService.debug("Unbinding from mouse events."),U.element.classList.remove("enable-mouse-events"),U._selectionService.enable()),8&Y?V.mousemove||(P.addEventListener("mousemove",le),V.mousemove=le):(P.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&Y?V.wheel||(P.addEventListener("wheel",X,{passive:!1}),V.wheel=X):(P.removeEventListener("wheel",V.wheel),V.wheel=null),2&Y?V.mouseup||(V.mouseup=z):(U._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&Y?V.mousedrag||(V.mousedrag=G):(U._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(P,"mousedown",function(Y){if(Y.preventDefault(),U.focus(),U._coreMouseService.areMouseEventsActive&&!U._selectionService.shouldForceSelection(Y))return K(Y),V.mouseup&&U._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&U._document.addEventListener("mousemove",V.mousedrag),U.cancel(Y)})),this.register(t.addDisposableDomListener(P,"wheel",function(Y){if(!V.wheel){if(!U.buffer.hasScrollback){var me=U.viewport.getLinesScrolled(Y);if(me===0)return;for(var we=i.C0.ESC+(U._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Y.deltaY<0?"A":"B"),pe="",Fe=0;Fe47)},R.prototype._keyUp=function(U){this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1||(function(j){return j.keyCode===16||j.keyCode===17||j.keyCode===18}(U)||this.focus(),this.updateCursorStyle(U))},R.prototype._keyPress=function(U){var j;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;if(this.cancel(U),U.charCode)j=U.charCode;else if(U.which===null||U.which===void 0)j=U.keyCode;else{if(U.which===0||U.charCode===0)return!1;j=U.which}return!(!j||(U.altKey||U.ctrlKey||U.metaKey)&&!this._isThirdLevelShift(this.browser,U))&&(j=String.fromCharCode(j),this._onKey.fire({key:j,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(j,!0),!0)},R.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},R.prototype.resize=function(U,j){U!==this.cols||j!==this.rows?W.prototype.resize.call(this,U,j):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},R.prototype._afterResize=function(U,j){var P,K;(P=this._charSizeService)===null||P===void 0||P.measure(),(K=this.viewport)===null||K===void 0||K.syncScrollArea(!0)},R.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var U=1;U=0;s--)(r=i[s])&&(t=(l<3?r(t):l>3?r(n,a,t):r(n,a))||t);return l>3&&t&&Object.defineProperty(n,a,t),t},v=this&&this.__param||function(i,n){return function(a,u){n(a,u,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CompositionHelper=void 0;var h=A(5),c=A(1),o=function(){function i(n,a,u,r,l,t){this._textarea=n,this._compositionView=a,this._bufferService=u,this._optionsService=r,this._charSizeService=l,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(i.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),i.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},i.prototype.compositionupdate=function(n){var a=this;this._compositionView.textContent=n.data,this.updateCompositionElements(),setTimeout(function(){a._compositionPosition.end=a._textarea.value.length},0)},i.prototype.compositionend=function(){this._finalizeComposition(!0)},i.prototype.keydown=function(n){if(this._isComposing||this._isSendingComposition){if(n.keyCode===229)return!1;if(n.keyCode===16||n.keyCode===17||n.keyCode===18)return!1;this._finalizeComposition(!1)}return n.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},i.prototype._finalizeComposition=function(n){var a=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,n){var u={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(a._isSendingComposition){a._isSendingComposition=!1;var l=void 0;l=a._isComposing?a._textarea.value.substring(u.start,u.end):a._textarea.value.substring(u.start),a._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var r=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(r,!0)}},i.prototype._handleAnyTextareaChanges=function(){var n=this,a=this._textarea.value;setTimeout(function(){if(!n._isComposing){var u=n._textarea.value.replace(a,"");u.length>0&&n._coreService.triggerDataEvent(u,!0)}},0)},i.prototype.updateCompositionElements=function(n){var a=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var u=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),r=this._bufferService.buffer.y*u,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=u+"px",this._compositionView.style.lineHeight=u+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=l+"px",this._textarea.style.top=r+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}n||setTimeout(function(){return a.updateCompositionElements(!0)},0)}},i=m([v(2,c.IBufferService),v(3,c.IOptionsService),v(4,h.ICharSizeService),v(5,c.ICoreService)],i)}();f.CompositionHelper=o},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(l,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p])})(l,t)},function(r,l){function t(){this.constructor=r}m(r,l),r.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),h=this&&this.__decorate||function(r,l,t,s){var d,p=arguments.length,b=p<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,l,t,s);else for(var w=r.length-1;w>=0;w--)(d=r[w])&&(b=(p<3?d(b):p>3?d(l,t,b):d(l,t))||b);return p>3&&b&&Object.defineProperty(l,t,b),b},c=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Viewport=void 0;var o=A(2),i=A(7),n=A(5),a=A(1),u=function(r){function l(t,s,d,p,b,w,E){var S=r.call(this)||this;return S._scrollLines=t,S._viewportElement=s,S._scrollArea=d,S._bufferService=p,S._optionsService=b,S._charSizeService=w,S._renderService=E,S.scrollBarWidth=0,S._currentRowHeight=0,S._lastRecordedBufferLength=0,S._lastRecordedViewportHeight=0,S._lastRecordedBufferHeight=0,S._lastTouchY=0,S._lastScrollTop=0,S._wheelPartialScroll=0,S._refreshAnimationFrame=null,S._ignoreNextScrollEvent=!1,S.scrollBarWidth=S._viewportElement.offsetWidth-S._scrollArea.offsetWidth||15,S.register(i.addDisposableDomListener(S._viewportElement,"scroll",S._onScroll.bind(S))),setTimeout(function(){return S.syncScrollArea()},0),S}return v(l,r),l.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},l.prototype._refresh=function(t){var s=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return s._innerRefresh()}))},l.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==s&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=s),this._refreshAnimationFrame=null},l.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===s&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},l.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var s=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(s,!0)}},l.prototype._bubbleScroll=function(t,s){var d=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(s<0&&this._viewportElement.scrollTop!==0||s>0&&d0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s},l.prototype._applyScrollModifier=function(t,s){var d=this._optionsService.options.fastScrollModifier;return d==="alt"&&s.altKey||d==="ctrl"&&s.ctrlKey||d==="shift"&&s.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},l.prototype.onTouchMove=function(t){var s=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(t,s))},l=h([c(3,a.IBufferService),c(4,a.IOptionsService),c(5,n.ICharSizeService),c(6,n.IRenderService)],l)}(o.Disposable);f.Viewport=u},function(g,f,A){"use strict";function m(o){return o.replace(/\r?\n/g,"\r")}function v(o,i){return i?"[200~"+o+"[201~":o}function h(o,i,n){o=v(o=m(o),n.decPrivateModes.bracketedPasteMode),n.triggerDataEvent(o,!0),i.value=""}function c(o,i,n){var a=n.getBoundingClientRect(),u=o.clientX-a.left-10,r=o.clientY-a.top-10;i.style.width="20px",i.style.height="20px",i.style.left=u+"px",i.style.top=r+"px",i.style.zIndex="1000",i.focus()}Object.defineProperty(f,"__esModule",{value:!0}),f.rightClickHandler=f.moveTextAreaUnderMouseCursor=f.paste=f.handlePasteEvent=f.copyHandler=f.bracketTextForPaste=f.prepareTextForTerminal=void 0,f.prepareTextForTerminal=m,f.bracketTextForPaste=v,f.copyHandler=function(o,i){o.clipboardData&&o.clipboardData.setData("text/plain",i.selectionText),o.preventDefault()},f.handlePasteEvent=function(o,i,n){o.stopPropagation(),o.clipboardData&&h(o.clipboardData.getData("text/plain"),i,n)},f.paste=h,f.moveTextAreaUnderMouseCursor=c,f.rightClickHandler=function(o,i,n,a,u){c(o,i,n),u&&!a.isClickInSelection(o)&&a.selectWordAtCursor(o),i.value=a.selectionText,i.select()}},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(l,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p])})(l,t)},function(r,l){function t(){this.constructor=r}m(r,l),r.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)});Object.defineProperty(f,"__esModule",{value:!0}),f.EscapeSequenceParser=f.VT500_TRANSITION_TABLE=f.TransitionTable=void 0;var h=A(2),c=A(15),o=A(21),i=A(22),n=A(24),a=function(){function r(l){this.table=new Uint8Array(l)}return r.prototype.setDefault=function(l,t){c.fill(this.table,l<<4|t)},r.prototype.add=function(l,t,s,d){this.table[t<<8|l]=s<<4|d},r.prototype.addMany=function(l,t,s,d){for(var p=0;p1)throw new Error("only one byte as prefix supported");if((d=t.prefix.charCodeAt(0))&&60>d||d>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var p=0;pb||b>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");d<<=8,d|=b}}if(t.final.length!==1)throw new Error("final must be a single byte");var w=t.final.charCodeAt(0);if(s[0]>w||w>s[1])throw new Error("final must be in range "+s[0]+" .. "+s[1]);return d<<=8,d|=w},l.prototype.identToString=function(t){for(var s=[];t;)s.push(String.fromCharCode(255&t)),t>>=8;return s.reverse().join("")},l.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},l.prototype.setPrintHandler=function(t){this._printHandler=t},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(t,s){var d=this._identifier(t,[48,126]);this._escHandlers[d]===void 0&&(this._escHandlers[d]=[]);var p=this._escHandlers[d];return p.push(s),{dispose:function(){var w=p.indexOf(s);w!==-1&&p.splice(w,1)}}},l.prototype.setEscHandler=function(t,s){this._escHandlers[this._identifier(t,[48,126])]=[s]},l.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},l.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},l.prototype.setExecuteHandler=function(t,s){this._executeHandlers[t.charCodeAt(0)]=s},l.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},l.prototype.addCsiHandler=function(t,s){var d=this._identifier(t);this._csiHandlers[d]===void 0&&(this._csiHandlers[d]=[]);var p=this._csiHandlers[d];return p.push(s),{dispose:function(){var w=p.indexOf(s);w!==-1&&p.splice(w,1)}}},l.prototype.setCsiHandler=function(t,s){this._csiHandlers[this._identifier(t)]=[s]},l.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},l.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},l.prototype.addDcsHandler=function(t,s){return this._dcsParser.addHandler(this._identifier(t),s)},l.prototype.setDcsHandler=function(t,s){this._dcsParser.setHandler(this._identifier(t),s)},l.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},l.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},l.prototype.addOscHandler=function(t,s){return this._oscParser.addHandler(t,s)},l.prototype.setOscHandler=function(t,s){this._oscParser.setHandler(t,s)},l.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},l.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},l.prototype.setErrorHandler=function(t){this._errorHandler=t},l.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},l.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},l.prototype.parse=function(t,s){for(var d=0,p=0,b=this.currentState,w=this._oscParser,E=this._dcsParser,S=this._collect,x=this._params,T=this._transitions.table,L=0;L>4){case 2:for(var y=L+1;;++y){if(y>=s||(d=t[y])<32||d>126&&d<160){this._printHandler(t,L,y),L=y-1;break}if(++y>=s||(d=t[y])<32||d>126&&d<160){this._printHandler(t,L,y),L=y-1;break}if(++y>=s||(d=t[y])<32||d>126&&d<160){this._printHandler(t,L,y),L=y-1;break}if(++y>=s||(d=t[y])<32||d>126&&d<160){this._printHandler(t,L,y),L=y-1;break}}break;case 3:this._executeHandlers[d]?this._executeHandlers[d]():this._executeHandlerFb(d),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:L,code:d,currentState:b,collect:S,params:x,abort:!1}).abort)return;break;case 7:for(var C=this._csiHandlers[S<<8|d],O=C?C.length-1:-1;O>=0&&C[O](x)===!1;O--);O<0&&this._csiHandlerFb(S<<8|d,x),this.precedingCodepoint=0;break;case 8:do switch(d){case 59:x.addParam(0);break;case 58:x.addSubParam(-1);break;default:x.addDigit(d-48)}while(++L47&&d<60);L--;break;case 9:S<<=8,S|=d;break;case 10:for(var N=this._escHandlers[S<<8|d],k=N?N.length-1:-1;k>=0&&N[k]()===!1;k--);k<0&&this._escHandlerFb(S<<8|d),this.precedingCodepoint=0;break;case 11:x.reset(),x.addParam(0),S=0;break;case 12:E.hook(S<<8|d,x);break;case 13:for(var F=L+1;;++F)if(F>=s||(d=t[F])===24||d===26||d===27||d>127&&d<160){E.put(t,L,F),L=F-1;break}break;case 14:E.unhook(d!==24&&d!==26),d===27&&(p|=1),x.reset(),x.addParam(0),S=0,this.precedingCodepoint=0;break;case 4:w.start();break;case 5:for(var B=L+1;;B++)if(B>=s||(d=t[B])<32||d>127&&d<=159){w.put(t,L,B),L=B-1;break}break;case 6:w.end(d!==24&&d!==26),d===27&&(p|=1),x.reset(),x.addParam(0),S=0,this.precedingCodepoint=0}b=15&p}this._collect=S,this.currentState=b},l}(h.Disposable);f.EscapeSequenceParser=u},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(E,S){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var L in T)T.hasOwnProperty(L)&&(x[L]=T[L])})(E,S)},function(w,E){function S(){this.constructor=w}m(w,E),w.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}),h=this&&this.__decorate||function(w,E,S,x){var T,L=arguments.length,y=L<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,S):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(w,E,S,x);else for(var C=w.length-1;C>=0;C--)(T=w[C])&&(y=(L<3?T(y):L>3?T(E,S,y):T(E,S))||y);return L>3&&y&&Object.defineProperty(E,S,y),y},c=this&&this.__param||function(w,E){return function(S,x){E(S,x,w)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Renderer=void 0;var o=A(41),i=A(47),n=A(48),a=A(49),u=A(29),r=A(2),l=A(5),t=A(1),s=A(25),d=A(0),p=1,b=function(w){function E(S,x,T,L,y,C,O,N,k){var F=w.call(this)||this;F._colors=S,F._screenElement=x,F._bufferService=y,F._charSizeService=C,F._optionsService=O,F._id=p++,F._onRequestRedraw=new d.EventEmitter;var B=F._optionsService.options.allowTransparency;return F._characterJoinerRegistry=new u.CharacterJoinerRegistry(F._bufferService),F._renderLayers=[new o.TextRenderLayer(F._screenElement,0,F._colors,F._characterJoinerRegistry,B,F._id,F._bufferService,O),new i.SelectionRenderLayer(F._screenElement,1,F._colors,F._id,F._bufferService,O),new a.LinkRenderLayer(F._screenElement,2,F._colors,F._id,T,L,F._bufferService,O),new n.CursorRenderLayer(F._screenElement,3,F._colors,F._id,F._onRequestRedraw,F._bufferService,O,N,k)],F.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},F._devicePixelRatio=window.devicePixelRatio,F._updateDimensions(),F.onOptionsChanged(),F}return v(E,w),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){for(var S=0,x=this._renderLayers;S0&&x===S[0][0]){L=!0;var C=S.shift();T=new n.JoinedCellData(this._workCell,E.translateToString(!0,C[0],C[1]),C[1]-C[0]),y=C[1]-1}!L&&this._isOverlapping(T)&&ythis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[s]=d,d},l}(c.BaseRenderLayer);f.TextRenderLayer=u},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GridCache=void 0;var m=function(){function v(){this.cache=[]}return v.prototype.resize=function(h,c){for(var o=0;o>>24,H=k.rgba>>>16&255,W=k.rgba>>>8&255,R=0;R=this.capacity)o=this._head,this._unlinkNode(o),delete this._map[o.key],o.key=h,o.value=c,this._map[h]=o;else{var i=this._nodePool;i.length>0?((o=i.pop()).key=h,o.value=c):o={prev:null,next:null,key:h,value:c},this._map[h]=o,this.size++}this._appendNode(o)},v}();f.LRUMap=m},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(o,i){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var u in a)a.hasOwnProperty(u)&&(n[u]=a[u])})(o,i)},function(c,o){function i(){this.constructor=c}m(c,o),c.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)});Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionRenderLayer=void 0;var h=function(c){function o(i,n,a,u,r,l){var t=c.call(this,i,"selection",n,!0,a,u,r,l)||this;return t._clearState(),t}return v(o,c),o.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},o.prototype.resize=function(i){c.prototype.resize.call(this,i),this._clearState()},o.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},o.prototype.onSelectionChanged=function(i,n,a){if(this._didStateChange(i,n,a,this._bufferService.buffer.ydisp))if(this._clearAll(),i&&n){var u=i[1]-this._bufferService.buffer.ydisp,r=n[1]-this._bufferService.buffer.ydisp,l=Math.max(u,0),t=Math.min(r,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,a){var s=i[0],d=n[0]-s,p=t-l+1;this._fillCells(s,l,d,p)}else{s=u===l?i[0]:0;var b=l===t?n[0]:this._bufferService.cols;this._fillCells(s,l,b-s,1);var w=Math.max(t-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,w),l!==t){var E=r===t?n[0]:this._bufferService.cols;this._fillCells(0,t,E,1)}}this._state.start=[i[0],i[1]],this._state.end=[n[0],n[1]],this._state.columnSelectMode=a,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},o.prototype._didStateChange=function(i,n,a,u){return!this._areCoordinatesEqual(i,this._state.start)||!this._areCoordinatesEqual(n,this._state.end)||a!==this._state.columnSelectMode||u!==this._state.ydisp},o.prototype._areCoordinatesEqual=function(i,n){return!(!i||!n)&&i[0]===n[0]&&i[1]===n[1]},o}(A(13).BaseRenderLayer);f.SelectionRenderLayer=h},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(a,u){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var t in l)l.hasOwnProperty(t)&&(r[t]=l[t])})(a,u)},function(n,a){function u(){this.constructor=n}m(n,a),n.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)});Object.defineProperty(f,"__esModule",{value:!0}),f.CursorRenderLayer=void 0;var h=A(13),c=A(4),o=function(n){function a(u,r,l,t,s,d,p,b,w){var E=n.call(this,u,"cursor",r,!0,l,t,d,p)||this;return E._onRequestRedraw=s,E._coreService=b,E._coreBrowserService=w,E._cell=new c.CellData,E._state={x:0,y:0,isFocused:!1,style:"",width:0},E._cursorRenderers={bar:E._renderBarCursor.bind(E),block:E._renderBlockCursor.bind(E),underline:E._renderUnderlineCursor.bind(E)},E}return v(a,n),a.prototype.resize=function(u){n.prototype.resize.call(this,u),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},a.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},a.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},a.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},a.prototype.onOptionsChanged=function(){var u,r=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new i(this._coreBrowserService.isFocused,function(){r._render(!0)})):((u=this._cursorBlinkStateManager)===null||u===void 0||u.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},a.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},a.prototype.onGridChanged=function(u,r){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},a.prototype._render=function(u){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var r=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=r-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(r).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var s=this._optionsService.options.cursorStyle;return s&&s!=="block"?this._cursorRenderers[s](t,l,this._cell):this._renderBlurCursor(t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=s,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},a.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},a.prototype._renderBarCursor=function(u,r,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(u,r,this._optionsService.options.cursorWidth),this._ctx.restore()},a.prototype._renderBlockCursor=function(u,r,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(u,r,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,u,r),this._ctx.restore()},a.prototype._renderUnderlineCursor=function(u,r,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(u,r),this._ctx.restore()},a.prototype._renderBlurCursor=function(u,r,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(u,r,l.getWidth(),1),this._ctx.restore()},a}(h.BaseRenderLayer);f.CursorRenderLayer=o;var i=function(){function n(a,u){this._renderCallback=u,this.isCursorVisible=!0,a&&this._restartInterval()}return Object.defineProperty(n.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},n.prototype.restartBlinkAnimation=function(){var a=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){a._renderCallback(),a._animationFrame=void 0})))},n.prototype._restartInterval=function(a){var u=this;a===void 0&&(a=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(u._animationTimeRestarted){var r=600-(Date.now()-u._animationTimeRestarted);if(u._animationTimeRestarted=void 0,r>0)return void u._restartInterval(r)}u.isCursorVisible=!1,u._animationFrame=window.requestAnimationFrame(function(){u._renderCallback(),u._animationFrame=void 0}),u._blinkInterval=window.setInterval(function(){if(u._animationTimeRestarted){var l=600-(Date.now()-u._animationTimeRestarted);return u._animationTimeRestarted=void 0,void u._restartInterval(l)}u.isCursorVisible=!u.isCursorVisible,u._animationFrame=window.requestAnimationFrame(function(){u._renderCallback(),u._animationFrame=void 0})},600)},a)},n.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},n.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},n}()},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(a,u){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var t in l)l.hasOwnProperty(t)&&(r[t]=l[t])})(a,u)},function(n,a){function u(){this.constructor=n}m(n,a),n.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)});Object.defineProperty(f,"__esModule",{value:!0}),f.LinkRenderLayer=void 0;var h=A(13),c=A(9),o=A(26),i=function(n){function a(u,r,l,t,s,d,p,b){var w=n.call(this,u,"link",r,!0,l,t,p,b)||this;return s.onShowLinkUnderline(function(E){return w._onShowLinkUnderline(E)}),s.onHideLinkUnderline(function(E){return w._onHideLinkUnderline(E)}),d.onShowLinkUnderline(function(E){return w._onShowLinkUnderline(E)}),d.onHideLinkUnderline(function(E){return w._onHideLinkUnderline(E)}),w}return v(a,n),a.prototype.resize=function(u){n.prototype.resize.call(this,u),this._state=void 0},a.prototype.reset=function(){this._clearCurrentLink()},a.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var u=this._state.y2-this._state.y1-1;u>0&&this._clearCells(0,this._state.y1+1,this._state.cols,u),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},a.prototype._onShowLinkUnderline=function(u){if(u.fg===c.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:u.fg&&o.is256Color(u.fg)?this._ctx.fillStyle=this._colors.ansi[u.fg].css:this._ctx.fillStyle=this._colors.foreground.css,u.y1===u.y2)this._fillBottomLineAtCells(u.x1,u.y1,u.x2-u.x1);else{this._fillBottomLineAtCells(u.x1,u.y1,u.cols-u.x1);for(var r=u.y1+1;r=0;d--)(l=n[d])&&(s=(t<3?l(s):t>3?l(a,u,s):l(a,u))||s);return t>3&&s&&Object.defineProperty(a,u,s),s},v=this&&this.__param||function(n,a){return function(u,r){a(u,r,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZone=f.Linkifier=void 0;var h=A(0),c=A(1),o=function(){function n(a,u,r){this._bufferService=a,this._logService=u,this._unicodeService=r,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new h.EventEmitter,this._onHideLinkUnderline=new h.EventEmitter,this._onLinkTooltip=new h.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(n.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),n.prototype.attachToDom=function(a,u){this._element=a,this._mouseZoneManager=u},n.prototype.linkifyRows=function(a,u){var r=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=a,this._rowsToLinkify.end=u):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,a),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,u)),this._mouseZoneManager.clearAll(a,u),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return r._linkifyRows()},n._timeBeforeLatency))},n.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var a=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var u=a.ydisp+this._rowsToLinkify.start;if(!(u>=a.lines.length)){for(var r=a.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,u,r,l,l);t.hasNext();)for(var s=t.next(),d=0;d=0;u--)if(a.priority<=this._linkMatchers[u].priority)return void this._linkMatchers.splice(u+1,0,a);this._linkMatchers.splice(0,0,a)}else this._linkMatchers.push(a)},n.prototype.deregisterLinkMatcher=function(a){for(var u=0;u>9&511:void 0;r.validationCallback?r.validationCallback(E,function(y){t._rowsTimeoutId||y&&t._addLink(S[1],S[0]-t._bufferService.buffer.ydisp,E,r,L)}):b._addLink(S[1],S[0]-b._bufferService.buffer.ydisp,E,r,L)},b=this;(l=s.exec(u))!==null&&!(p()==="break"););},n.prototype._addLink=function(a,u,r,l,t){var s=this;if(this._mouseZoneManager&&this._element){var d=this._unicodeService.getStringCellWidth(r),p=a%this._bufferService.cols,b=u+Math.floor(a/this._bufferService.cols),w=(p+d)%this._bufferService.cols,E=b+Math.floor((p+d)/this._bufferService.cols);w===0&&(w=this._bufferService.cols,E--),this._mouseZoneManager.add(new i(p+1,b+1,w+1,E+1,function(S){if(l.handler)return l.handler(S,r);var x=window.open();x?(x.opener=null,x.location.href=r):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(p,b,w,E,t)),s._element.classList.add("xterm-cursor-pointer")},function(S){s._onLinkTooltip.fire(s._createLinkHoverEvent(p,b,w,E,t)),l.hoverTooltipCallback&&l.hoverTooltipCallback(S,r,{start:{x:p,y:b},end:{x:w,y:E}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(p,b,w,E,t)),s._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(S){return!l.willLinkActivate||l.willLinkActivate(S,r)}))}},n.prototype._createLinkHoverEvent=function(a,u,r,l,t){return{x1:a,y1:u,x2:r,y2:l,cols:this._bufferService.cols,fg:t}},n._timeBeforeLatency=200,n=m([v(0,c.IBufferService),v(1,c.ILogService),v(2,c.IUnicodeService)],n)}();f.Linkifier=o;var i=function(a,u,r,l,t,s,d,p,b){this.x1=a,this.y1=u,this.x2=r,this.y2=l,this.clickCallback=t,this.hoverCallback=s,this.tooltipCallback=d,this.leaveCallback=p,this.willLinkActivate=b};f.MouseZone=i},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(E,S){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var L in T)T.hasOwnProperty(L)&&(x[L]=T[L])})(E,S)},function(w,E){function S(){this.constructor=w}m(w,E),w.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}),h=this&&this.__decorate||function(w,E,S,x){var T,L=arguments.length,y=L<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,S):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(w,E,S,x);else for(var C=w.length-1;C>=0;C--)(T=w[C])&&(y=(L<3?T(y):L>3?T(E,S,y):T(E,S))||y);return L>3&&y&&Object.defineProperty(E,S,y),y},c=this&&this.__param||function(w,E){return function(S,x){E(S,x,w)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionService=void 0;var o=A(11),i=A(52),n=A(4),a=A(0),u=A(5),r=A(1),l=A(30),t=A(53),s=A(2),d=String.fromCharCode(160),p=new RegExp(d,"g"),b=function(w){function E(S,x,T,L,y,C,O){var N=w.call(this)||this;return N._element=S,N._screenElement=x,N._bufferService=T,N._coreService=L,N._mouseService=y,N._optionsService=C,N._renderService=O,N._dragScrollAmount=0,N._enabled=!0,N._workCell=new n.CellData,N._mouseDownTimeStamp=0,N._onLinuxMouseSelection=N.register(new a.EventEmitter),N._onRedrawRequest=N.register(new a.EventEmitter),N._onSelectionChange=N.register(new a.EventEmitter),N._onRequestScrollLines=N.register(new a.EventEmitter),N._mouseMoveListener=function(k){return N._onMouseMove(k)},N._mouseUpListener=function(k){return N._onMouseUp(k)},N._coreService.onUserInput(function(){N.hasSelection&&N.clearSelection()}),N._trimListener=N._bufferService.buffer.lines.onTrim(function(k){return N._onTrim(k)}),N.register(N._bufferService.buffers.onBufferActivate(function(k){return N._onBufferActivate(k)})),N.enable(),N._model=new i.SelectionModel(N._bufferService),N._activeSelectionMode=0,N}return v(E,w),Object.defineProperty(E.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._removeMouseDownListeners()},E.prototype.reset=function(){this.clearSelection()},E.prototype.disable=function(){this.clearSelection(),this._enabled=!1},E.prototype.enable=function(){this._enabled=!0},Object.defineProperty(E.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"hasSelection",{get:function(){var x=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!x||!T)&&(x[0]!==T[0]||x[1]!==T[1])},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"selectionText",{get:function(){var x=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;if(!x||!T)return"";var L=this._bufferService.buffer,y=[];if(this._activeSelectionMode===3){if(x[0]===T[0])return"";for(var C=x[1];C<=T[1];C++){var O=L.translateBufferLineToString(C,!0,x[0],T[0]);y.push(O)}}else{var N=x[1]===T[1]?T[0]:void 0;for(y.push(L.translateBufferLineToString(x[1],!0,x[0],N)),C=x[1]+1;C<=T[1]-1;C++){var k=L.lines.get(C);O=L.translateBufferLineToString(C,!0),k&&k.isWrapped?y[y.length-1]+=O:y.push(O)}x[1]!==T[1]&&(k=L.lines.get(T[1]),O=L.translateBufferLineToString(T[1],!0,0,T[0]),k&&k.isWrapped?y[y.length-1]+=O:y.push(O))}return y.map(function(F){return F.replace(p," ")}).join(o.isWindows?`\r `:` `)},enumerable:!1,configurable:!0}),E.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},E.prototype.refresh=function(S){var x=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return x._refresh()})),o.isLinux&&S)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},E.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},E.prototype.isClickInSelection=function(S){var x=this._getMouseBufferCoords(S),T=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!!(T&&L&&x)&&this._areCoordsInSelection(x,T,L)},E.prototype._areCoordsInSelection=function(S,x,T){return S[1]>x[1]&&S[1]=x[0]&&S[0]=x[0]},E.prototype.selectWordAtCursor=function(S){var x=this._getMouseBufferCoords(S);x&&(this._selectWordAt(x,!1),this._model.selectionEnd=void 0,this.refresh(!0))},E.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},E.prototype.selectLines=function(S,x){this._model.clearSelection(),S=Math.max(S,0),x=Math.min(x,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,S],this._model.selectionEnd=[this._bufferService.cols,x],this.refresh(),this._onSelectionChange.fire()},E.prototype._onTrim=function(S){this._model.onTrim(S)&&this.refresh()},E.prototype._getMouseBufferCoords=function(S){var x=this._mouseService.getCoords(S,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(x)return x[0]--,x[1]--,x[1]+=this._bufferService.buffer.ydisp,x},E.prototype._getMouseEventScrollAmount=function(S){var x=l.getCoordsRelativeToElement(S,this._screenElement)[1],T=this._renderService.dimensions.canvasHeight;return x>=0&&x<=T?0:(x>T&&(x-=T),x=Math.min(Math.max(x,-50),50),(x/=50)/Math.abs(x)+Math.round(14*x))},E.prototype.shouldForceSelection=function(S){return o.isMac?S.altKey&&this._optionsService.options.macOptionClickForcesSelection:S.shiftKey},E.prototype.onMouseDown=function(S){if(this._mouseDownTimeStamp=S.timeStamp,(S.button!==2||!this.hasSelection)&&S.button===0){if(!this._enabled){if(!this.shouldForceSelection(S))return;S.stopPropagation()}S.preventDefault(),this._dragScrollAmount=0,this._enabled&&S.shiftKey?this._onIncrementalClick(S):S.detail===1?this._onSingleClick(S):S.detail===2?this._onDoubleClick(S):S.detail===3&&this._onTripleClick(S),this._addMouseDownListeners(),this.refresh(!0)}},E.prototype._addMouseDownListeners=function(){var S=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return S._dragScroll()},50)},E.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},E.prototype._onIncrementalClick=function(S){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(S))},E.prototype._onSingleClick=function(S){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(S)?3:0,this._model.selectionStart=this._getMouseBufferCoords(S),this._model.selectionStart){this._model.selectionEnd=void 0;var x=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);x&&x.length!==this._model.selectionStart[0]&&x.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},E.prototype._onDoubleClick=function(S){var x=this._getMouseBufferCoords(S);x&&(this._activeSelectionMode=1,this._selectWordAt(x,!0))},E.prototype._onTripleClick=function(S){var x=this._getMouseBufferCoords(S);x&&(this._activeSelectionMode=2,this._selectLineAt(x[1]))},E.prototype.shouldColumnSelect=function(S){return S.altKey&&!(o.isMac&&this._optionsService.options.macOptionClickForcesSelection)},E.prototype._onMouseMove=function(S){if(S.stopImmediatePropagation(),this._model.selectionStart){var x=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(S),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var T=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(S.ydisp+this._bufferService.rows,S.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=S.ydisp),this.refresh()}},E.prototype._onMouseUp=function(S){var x=S.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&x<500&&S.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var T=this._mouseService.getCoords(S,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(T&&T[0]!==void 0&&T[1]!==void 0){var L=t.moveToCellSequence(T[0]-1,T[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(L,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},E.prototype._onBufferActivate=function(S){var x=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=S.activeBuffer.lines.onTrim(function(T){return x._onTrim(T)})},E.prototype._convertViewportColToCharacterIndex=function(S,x){for(var T=x[0],L=0;x[0]>=L;L++){var y=S.loadCell(L,this._workCell).getChars().length;this._workCell.getWidth()===0?T--:y>1&&x[0]!==L&&(T+=y-1)}return T},E.prototype.setSelection=function(S,x,T){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[S,x],this._model.selectionStartLength=T,this.refresh()},E.prototype._getWordAt=function(S,x,T,L){if(T===void 0&&(T=!0),L===void 0&&(L=!0),!(S[0]>=this._bufferService.cols)){var y=this._bufferService.buffer,C=y.lines.get(S[1]);if(C){var O=y.translateBufferLineToString(S[1],!1),N=this._convertViewportColToCharacterIndex(C,S),k=N,F=S[0]-N,B=0,H=0,W=0,R=0;if(O.charAt(N)===" "){for(;N>0&&O.charAt(N-1)===" ";)N--;for(;k1&&(R+=P-1,k+=P-1);U>0&&N>0&&!this._isCharWordSeparator(C.loadCell(U-1,this._workCell));){C.loadCell(U-1,this._workCell);var K=this._workCell.getChars().length;this._workCell.getWidth()===0?(B++,U--):K>1&&(W+=K-1,N-=K-1),N--,U--}for(;j1&&(R+=V-1,k+=V-1),k++,j++}}k++;var z=N+F-B+W,X=Math.min(this._bufferService.cols,k-N+B+H-W-R);if(x||O.slice(N,k).trim()!==""){if(T&&z===0&&C.getCodePoint(0)!==32){var G=y.lines.get(S[1]-1);if(G&&C.isWrapped&&G.getCodePoint(this._bufferService.cols-1)!==32){var le=this._getWordAt([this._bufferService.cols-1,S[1]-1],!1,!0,!1);if(le){var Y=this._bufferService.cols-le.start;z-=Y,X+=Y}}}if(L&&z+X===this._bufferService.cols&&C.getCodePoint(this._bufferService.cols-1)!==32){var me=y.lines.get(S[1]+1);if(me&&me.isWrapped&&me.getCodePoint(0)!==32){var we=this._getWordAt([0,S[1]+1],!1,!1,!0);we&&(X+=we.length)}}return{start:z,length:X}}}}},E.prototype._selectWordAt=function(S,x){var T=this._getWordAt(S,x);if(T){for(;T.start<0;)T.start+=this._bufferService.cols,S[1]--;this._model.selectionStart=[T.start,S[1]],this._model.selectionStartLength=T.length}},E.prototype._selectToWordAt=function(S){var x=this._getWordAt(S,!0);if(x){for(var T=S[1];x.start<0;)x.start+=this._bufferService.cols,T--;if(!this._model.areSelectionValuesReversed())for(;x.start+x.length>this._bufferService.cols;)x.length-=this._bufferService.cols,T++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?x.start:x.start+x.length,T]}},E.prototype._isCharWordSeparator=function(S){return S.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(S.getChars())>=0},E.prototype._selectLineAt=function(S){var x=this._bufferService.buffer.getWrappedRangeForLine(S);this._model.selectionStart=[0,x.first],this._model.selectionEnd=[this._bufferService.cols,x.last],this._model.selectionStartLength=0},E=h([c(2,r.IBufferService),c(3,r.ICoreService),c(4,u.IMouseService),c(5,r.IOptionsService),c(6,u.IRenderService)],E)}(s.Disposable);f.SelectionService=b},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionModel=void 0;var m=function(){function v(h){this._bufferService=h,this.isSelectAllActive=!1,this.selectionStartLength=0}return v.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(v.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var c=this.selectionStart[0]+this.selectionStartLength;return c>this._bufferService.cols?[c%this._bufferService.cols,this.selectionStart[1]+Math.floor(c/this._bufferService.cols)]:[c,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),v.prototype.areSelectionValuesReversed=function(){var h=this.selectionStart,c=this.selectionEnd;return!(!h||!c)&&(h[1]>c[1]||h[1]===c[1]&&h[0]>c[0])},v.prototype.onTrim=function(h){return this.selectionStart&&(this.selectionStart[1]-=h),this.selectionEnd&&(this.selectionEnd[1]-=h),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},v}();f.SelectionModel=m},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.moveToCellSequence=void 0;var m=A(12);function v(a,u,r,l){var t=a-h(r,a),s=u-h(r,u);return n(Math.abs(t-s)-function(d,p,b){for(var w=0,E=d-h(b,d),S=p-h(b,p),x=0;x=0&&uu?"A":"B"}function o(a,u,r,l,t,s){for(var d=a,p=u,b="";d!==r||p!==l;)d+=t?1:-1,t&&d>s.cols-1?(b+=s.buffer.translateBufferLineToString(p,!1,a,d),d=0,a=0,p++):!t&&d<0&&(b+=s.buffer.translateBufferLineToString(p,!1,0,a+1),a=d=s.cols-1,p--);return b+s.buffer.translateBufferLineToString(p,!1,a,d)}function i(a,u){var r=u?"O":"[";return m.C0.ESC+r+a}function n(a,u){a=Math.floor(a);for(var r="",l=0;l0?S-h(x,S):w;var y=S,C=function(O,N,k,F,B,H){var W;return W=v(k,F,B,H).length>0?F-h(B,F):N,O=k&&Wa?"D":"C",n(Math.abs(s-a),i(t,l));t=d>u?"D":"C";var p=Math.abs(d-u);return n(function(b,w){return w.cols-b}(d>u?a:s,r)+(p-1)*r.cols+1+((d>u?s:a)-1),i(t,l))}},function(g,f,A){"use strict";var m=this&&this.__decorate||function(o,i,n,a){var u,r=arguments.length,l=r<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,n):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(o,i,n,a);else for(var t=o.length-1;t>=0;t--)(u=o[t])&&(l=(r<3?u(l):r>3?u(i,n,l):u(i,n))||l);return r>3&&l&&Object.defineProperty(i,n,l),l},v=this&&this.__param||function(o,i){return function(n,a){i(n,a,o)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SoundService=void 0;var h=A(1),c=function(){function o(i){this._optionsService=i}return Object.defineProperty(o,"audioContext",{get:function(){if(!o._audioContext){var n=window.AudioContext||window.webkitAudioContext;if(!n)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;o._audioContext=new n}return o._audioContext},enumerable:!1,configurable:!0}),o.prototype.playBellSound=function(){var i=o.audioContext;if(i){var n=i.createBufferSource();i.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(a){n.buffer=a,n.connect(i.destination),n.start(0)})}},o.prototype._base64ToArrayBuffer=function(i){for(var n=window.atob(i),a=n.length,u=new Uint8Array(a),r=0;r=0;w--)(d=r[w])&&(b=(p<3?d(b):p>3?d(l,t,b):d(l,t))||b);return p>3&&b&&Object.defineProperty(l,t,b),b},c=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZoneManager=void 0;var o=A(2),i=A(7),n=A(5),a=A(1),u=function(r){function l(t,s,d,p,b,w){var E=r.call(this)||this;return E._element=t,E._screenElement=s,E._bufferService=d,E._mouseService=p,E._selectionService=b,E._optionsService=w,E._zones=[],E._areZonesActive=!1,E._lastHoverCoords=[void 0,void 0],E._initialSelectionLength=0,E.register(i.addDisposableDomListener(E._element,"mousedown",function(S){return E._onMouseDown(S)})),E._mouseMoveListener=function(S){return E._onMouseMove(S)},E._mouseLeaveListener=function(S){return E._onMouseLeave(S)},E._clickListener=function(S){return E._onClick(S)},E}return v(l,r),l.prototype.dispose=function(){r.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(t,s){if(this._zones.length!==0){t&&s||(t=0,s=this._bufferService.rows-1);for(var d=0;dt&&p.y1<=s+1||p.y2>t&&p.y2<=s+1||p.y1s+1)&&(this._currentZone&&this._currentZone===p&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(d--,1))}this._zones.length===0&&this._deactivate()}},l.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},l.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},l.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},l.prototype._onHover=function(t){var s=this,d=this._findZoneEventAt(t);d!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),d&&(this._currentZone=d,d.hoverCallback&&d.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return s._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var s=this._findZoneEventAt(t);s&&s.tooltipCallback&&s.tooltipCallback(t)},l.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var s=this._findZoneEventAt(t);(s==null?void 0:s.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},l.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(t){var s=this._findZoneEventAt(t),d=this._getSelectionLength();s&&d===this._initialSelectionLength&&(s.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},l.prototype._findZoneEventAt=function(t){var s=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(s)for(var d=s[0],p=s[1],b=0;b=w.x1&&d=w.x1||p===w.y2&&dw.y1&&ps;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var s=document.createElement("div");return s.setAttribute("role","listitem"),s.tabIndex=-1,this._refreshRowDimensions(s),s},t.prototype._onTab=function(s){for(var d=0;d0?this._charsToConsume.shift()!==s&&(this._charsToAnnounce+=s):this._charsToAnnounce+=s,s===` `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=h.tooMuchOutput)),c.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){d._accessibilityTreeRoot.appendChild(d._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,c.isMac&&u.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(s){this._clearLiveRegion(),this._charsToConsume.push(s)},t.prototype._refreshRows=function(s,d){this._renderRowsDebouncer.refresh(s,d,this._terminal.rows)},t.prototype._renderRows=function(s,d){for(var p=this._terminal.buffer,b=p.lines.length.toString(),w=s;w<=d;w++){var E=p.translateBufferLineToString(p.ydisp+w,!0),S=(p.ydisp+w+1).toString(),x=this._rowElements[w];x&&(E.length===0?x.innerHTML=" ":x.textContent=E,x.setAttribute("aria-posinset",S),x.setAttribute("aria-setsize",b))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var s=0;s=0;L--)(S=p[L])&&(T=(x<3?S(T):x>3?S(b,w,T):S(b,w))||T);return x>3&&T&&Object.defineProperty(b,w,T),T},c=this&&this.__param||function(p,b){return function(w,E){b(w,E,p)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DomRenderer=void 0;var o=A(58),i=A(9),n=A(2),a=A(5),u=A(1),r=A(0),l=A(10),t=A(17),s=1,d=function(p){function b(w,E,S,x,T,L,y,C,O){var N=p.call(this)||this;return N._colors=w,N._element=E,N._screenElement=S,N._viewportElement=x,N._linkifier=T,N._linkifier2=L,N._charSizeService=y,N._optionsService=C,N._bufferService=O,N._terminalClass=s++,N._rowElements=[],N._rowContainer=document.createElement("div"),N._rowContainer.classList.add("xterm-rows"),N._rowContainer.style.lineHeight="normal",N._rowContainer.setAttribute("aria-hidden","true"),N._refreshRowElements(N._bufferService.cols,N._bufferService.rows),N._selectionContainer=document.createElement("div"),N._selectionContainer.classList.add("xterm-selection"),N._selectionContainer.setAttribute("aria-hidden","true"),N.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},N._updateDimensions(),N._injectCss(),N._rowFactory=new o.DomRendererRowFactory(document,N._optionsService,N._colors),N._element.classList.add("xterm-dom-renderer-owner-"+N._terminalClass),N._screenElement.appendChild(N._rowContainer),N._screenElement.appendChild(N._selectionContainer),N._linkifier.onShowLinkUnderline(function(k){return N._onLinkHover(k)}),N._linkifier.onHideLinkUnderline(function(k){return N._onLinkLeave(k)}),N._linkifier2.onShowLinkUnderline(function(k){return N._onLinkHover(k)}),N._linkifier2.onHideLinkUnderline(function(k){return N._onLinkLeave(k)}),N}return v(b,p),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return new r.EventEmitter().event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),t.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),p.prototype.dispose.call(this)},b.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var w=0,E=this._rowElements;wE;)this._rowContainer.removeChild(this._rowElements.pop())},b.prototype.onResize=function(w,E){this._refreshRowElements(w,E),this._updateDimensions()},b.prototype.onCharSizeChanged=function(){this._updateDimensions()},b.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},b.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},b.prototype.onSelectionChanged=function(w,E,S){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(w&&E){var x=w[1]-this._bufferService.buffer.ydisp,T=E[1]-this._bufferService.buffer.ydisp,L=Math.max(x,0),y=Math.min(T,this._bufferService.rows-1);if(!(L>=this._bufferService.rows||y<0)){var C=document.createDocumentFragment();if(S)C.appendChild(this._createSelectionElement(L,w[0],E[0],y-L+1));else{var O=x===L?w[0]:0,N=L===y?E[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(L,O,N));var k=y-L-1;if(C.appendChild(this._createSelectionElement(L+1,0,this._bufferService.cols,k)),L!==y){var F=T===y?E[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(y,0,F))}}this._selectionContainer.appendChild(C)}}},b.prototype._createSelectionElement=function(w,E,S,x){x===void 0&&(x=1);var T=document.createElement("div");return T.style.height=x*this.dimensions.actualCellHeight+"px",T.style.top=w*this.dimensions.actualCellHeight+"px",T.style.left=E*this.dimensions.actualCellWidth+"px",T.style.width=this.dimensions.actualCellWidth*(S-E)+"px",T},b.prototype.onCursorMove=function(){},b.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},b.prototype.clear=function(){for(var w=0,E=this._rowElements;w=T&&(w=0,S++)}},b=h([c(6,a.ICharSizeService),c(7,u.IOptionsService),c(8,u.IBufferService)],b)}(n.Disposable);f.DomRenderer=d},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DomRendererRowFactory=f.CURSOR_STYLE_UNDERLINE_CLASS=f.CURSOR_STYLE_BAR_CLASS=f.CURSOR_STYLE_BLOCK_CLASS=f.CURSOR_BLINK_CLASS=f.CURSOR_CLASS=f.UNDERLINE_CLASS=f.ITALIC_CLASS=f.DIM_CLASS=f.BOLD_CLASS=void 0;var m=A(9),v=A(3),h=A(4),c=A(10);f.BOLD_CLASS="xterm-bold",f.DIM_CLASS="xterm-dim",f.ITALIC_CLASS="xterm-italic",f.UNDERLINE_CLASS="xterm-underline",f.CURSOR_CLASS="xterm-cursor",f.CURSOR_BLINK_CLASS="xterm-cursor-blink",f.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",f.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",f.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var o=function(){function n(a,u,r){this._document=a,this._optionsService=u,this._colors=r,this._workCell=new h.CellData}return n.prototype.setColors=function(a){this._colors=a},n.prototype.createRow=function(a,u,r,l,t,s,d){for(var p=this._document.createDocumentFragment(),b=0,w=Math.min(a.length,d)-1;w>=0;w--)if(a.loadCell(w,this._workCell).getCode()!==v.NULL_CELL_CODE||u&&w===l){b=w+1;break}for(w=0;w1&&(S.style.width=s*E+"px"),u&&w===l)switch(S.classList.add(f.CURSOR_CLASS),t&&S.classList.add(f.CURSOR_BLINK_CLASS),r){case"bar":S.classList.add(f.CURSOR_STYLE_BAR_CLASS);break;case"underline":S.classList.add(f.CURSOR_STYLE_UNDERLINE_CLASS);break;default:S.classList.add(f.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&S.classList.add(f.BOLD_CLASS),this._workCell.isItalic()&&S.classList.add(f.ITALIC_CLASS),this._workCell.isDim()&&S.classList.add(f.DIM_CLASS),this._workCell.isUnderline()&&S.classList.add(f.UNDERLINE_CLASS),this._workCell.isInvisible()?S.textContent=v.WHITESPACE_CELL_CHAR:S.textContent=this._workCell.getChars()||v.WHITESPACE_CELL_CHAR;var x=this._workCell.getFgColor(),T=this._workCell.getFgColorMode(),L=this._workCell.getBgColor(),y=this._workCell.getBgColorMode(),C=!!this._workCell.isInverse();if(C){var O=x;x=L,L=O;var N=T;T=y,y=N}switch(T){case 16777216:case 33554432:this._workCell.isBold()&&x<8&&this._optionsService.options.drawBoldTextInBrightColors&&(x+=8),this._applyMinimumContrast(S,this._colors.background,this._colors.ansi[x])||S.classList.add("xterm-fg-"+x);break;case 50331648:var k=c.rgba.toColor(x>>16&255,x>>8&255,255&x);this._applyMinimumContrast(S,this._colors.background,k)||this._addStyle(S,"color:#"+i(x.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(S,this._colors.background,this._colors.foreground)||C&&S.classList.add("xterm-fg-"+m.INVERTED_DEFAULT_COLOR)}switch(y){case 16777216:case 33554432:S.classList.add("xterm-bg-"+L);break;case 50331648:this._addStyle(S,"background-color:#"+i(L.toString(16),"0",6));break;case 0:default:C&&S.classList.add("xterm-bg-"+m.INVERTED_DEFAULT_COLOR)}p.appendChild(S)}}return p},n.prototype._applyMinimumContrast=function(a,u,r){if(this._optionsService.options.minimumContrastRatio===1)return!1;var l=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return l===void 0&&(l=c.color.ensureContrastRatio(u,r,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(a,"color:"+l.css),!0)},n.prototype._addStyle=function(a,u){a.setAttribute("style",""+(a.getAttribute("style")||"")+u+";")},n}();function i(n,a,u){for(;n.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};f.evaluateKeyboardEvent=function(h,c,o,i){var n={type:0,cancel:!1,key:void 0},a=(h.shiftKey?1:0)|(h.altKey?2:0)|(h.ctrlKey?4:0)|(h.metaKey?8:0);switch(h.keyCode){case 0:h.key==="UIKeyInputUpArrow"?n.key=c?m.C0.ESC+"OA":m.C0.ESC+"[A":h.key==="UIKeyInputLeftArrow"?n.key=c?m.C0.ESC+"OD":m.C0.ESC+"[D":h.key==="UIKeyInputRightArrow"?n.key=c?m.C0.ESC+"OC":m.C0.ESC+"[C":h.key==="UIKeyInputDownArrow"&&(n.key=c?m.C0.ESC+"OB":m.C0.ESC+"[B");break;case 8:if(h.shiftKey){n.key=m.C0.BS;break}if(h.altKey){n.key=m.C0.ESC+m.C0.DEL;break}n.key=m.C0.DEL;break;case 9:if(h.shiftKey){n.key=m.C0.ESC+"[Z";break}n.key=m.C0.HT,n.cancel=!0;break;case 13:n.key=h.altKey?m.C0.ESC+m.C0.CR:m.C0.CR,n.cancel=!0;break;case 27:n.key=m.C0.ESC,h.altKey&&(n.key=m.C0.ESC+m.C0.ESC),n.cancel=!0;break;case 37:if(h.metaKey)break;a?(n.key=m.C0.ESC+"[1;"+(a+1)+"D",n.key===m.C0.ESC+"[1;3D"&&(n.key=m.C0.ESC+(o?"b":"[1;5D"))):n.key=c?m.C0.ESC+"OD":m.C0.ESC+"[D";break;case 39:if(h.metaKey)break;a?(n.key=m.C0.ESC+"[1;"+(a+1)+"C",n.key===m.C0.ESC+"[1;3C"&&(n.key=m.C0.ESC+(o?"f":"[1;5C"))):n.key=c?m.C0.ESC+"OC":m.C0.ESC+"[C";break;case 38:if(h.metaKey)break;a?(n.key=m.C0.ESC+"[1;"+(a+1)+"A",o||n.key!==m.C0.ESC+"[1;3A"||(n.key=m.C0.ESC+"[1;5A")):n.key=c?m.C0.ESC+"OA":m.C0.ESC+"[A";break;case 40:if(h.metaKey)break;a?(n.key=m.C0.ESC+"[1;"+(a+1)+"B",o||n.key!==m.C0.ESC+"[1;3B"||(n.key=m.C0.ESC+"[1;5B")):n.key=c?m.C0.ESC+"OB":m.C0.ESC+"[B";break;case 45:h.shiftKey||h.ctrlKey||(n.key=m.C0.ESC+"[2~");break;case 46:n.key=a?m.C0.ESC+"[3;"+(a+1)+"~":m.C0.ESC+"[3~";break;case 36:n.key=a?m.C0.ESC+"[1;"+(a+1)+"H":c?m.C0.ESC+"OH":m.C0.ESC+"[H";break;case 35:n.key=a?m.C0.ESC+"[1;"+(a+1)+"F":c?m.C0.ESC+"OF":m.C0.ESC+"[F";break;case 33:h.shiftKey?n.type=2:n.key=m.C0.ESC+"[5~";break;case 34:h.shiftKey?n.type=3:n.key=m.C0.ESC+"[6~";break;case 112:n.key=a?m.C0.ESC+"[1;"+(a+1)+"P":m.C0.ESC+"OP";break;case 113:n.key=a?m.C0.ESC+"[1;"+(a+1)+"Q":m.C0.ESC+"OQ";break;case 114:n.key=a?m.C0.ESC+"[1;"+(a+1)+"R":m.C0.ESC+"OR";break;case 115:n.key=a?m.C0.ESC+"[1;"+(a+1)+"S":m.C0.ESC+"OS";break;case 116:n.key=a?m.C0.ESC+"[15;"+(a+1)+"~":m.C0.ESC+"[15~";break;case 117:n.key=a?m.C0.ESC+"[17;"+(a+1)+"~":m.C0.ESC+"[17~";break;case 118:n.key=a?m.C0.ESC+"[18;"+(a+1)+"~":m.C0.ESC+"[18~";break;case 119:n.key=a?m.C0.ESC+"[19;"+(a+1)+"~":m.C0.ESC+"[19~";break;case 120:n.key=a?m.C0.ESC+"[20;"+(a+1)+"~":m.C0.ESC+"[20~";break;case 121:n.key=a?m.C0.ESC+"[21;"+(a+1)+"~":m.C0.ESC+"[21~";break;case 122:n.key=a?m.C0.ESC+"[23;"+(a+1)+"~":m.C0.ESC+"[23~";break;case 123:n.key=a?m.C0.ESC+"[24;"+(a+1)+"~":m.C0.ESC+"[24~";break;default:if(!h.ctrlKey||h.shiftKey||h.altKey||h.metaKey)if(o&&!i||!h.altKey||h.metaKey)o&&!h.altKey&&!h.ctrlKey&&h.metaKey?h.keyCode===65&&(n.type=1):h.key&&!h.ctrlKey&&!h.altKey&&!h.metaKey&&h.keyCode>=48&&h.key.length===1?n.key=h.key:h.key&&h.ctrlKey&&h.key==="_"&&(n.key=m.C0.US);else{var u=v[h.keyCode],r=u&&u[h.shiftKey?1:0];if(r)n.key=m.C0.ESC+r;else if(h.keyCode>=65&&h.keyCode<=90){var l=h.ctrlKey?h.keyCode-64:h.keyCode+32;n.key=m.C0.ESC+String.fromCharCode(l)}}else h.keyCode>=65&&h.keyCode<=90?n.key=String.fromCharCode(h.keyCode-64):h.keyCode===32?n.key=m.C0.NUL:h.keyCode>=51&&h.keyCode<=55?n.key=String.fromCharCode(h.keyCode-51+27):h.keyCode===56?n.key=m.C0.DEL:h.keyCode===219?n.key=m.C0.ESC:h.keyCode===220?n.key=m.C0.FS:h.keyCode===221&&(n.key=m.C0.GS)}return n}},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(d,p){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var E in w)w.hasOwnProperty(E)&&(b[E]=w[E])})(d,p)},function(s,d){function p(){this.constructor=s}m(s,d),s.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}),h=this&&this.__decorate||function(s,d,p,b){var w,E=arguments.length,S=E<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,p):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(s,d,p,b);else for(var x=s.length-1;x>=0;x--)(w=s[x])&&(S=(E<3?w(S):E>3?w(d,p,S):w(d,p))||S);return E>3&&S&&Object.defineProperty(d,p,S),S},c=this&&this.__param||function(s,d){return function(p,b){d(p,b,s)}};Object.defineProperty(f,"__esModule",{value:!0}),f.RenderService=void 0;var o=A(31),i=A(0),n=A(2),a=A(32),u=A(7),r=A(1),l=A(5),t=function(s){function d(p,b,w,E,S,x){var T=s.call(this)||this;if(T._renderer=p,T._rowCount=b,T._isPaused=!1,T._needsFullRefresh=!1,T._isNextRenderRedrawOnly=!0,T._needsSelectionRefresh=!1,T._canvasWidth=0,T._canvasHeight=0,T._selectionState={start:void 0,end:void 0,columnSelectMode:!1},T._onDimensionsChange=new i.EventEmitter,T._onRender=new i.EventEmitter,T._onRefreshRequest=new i.EventEmitter,T.register({dispose:function(){return T._renderer.dispose()}}),T._renderDebouncer=new o.RenderDebouncer(function(y,C){return T._renderRows(y,C)}),T.register(T._renderDebouncer),T._screenDprMonitor=new a.ScreenDprMonitor,T._screenDprMonitor.setListener(function(){return T.onDevicePixelRatioChange()}),T.register(T._screenDprMonitor),T.register(x.onResize(function(y){return T._fullRefresh()})),T.register(E.onOptionChange(function(){return T._renderer.onOptionsChanged()})),T.register(S.onCharSizeChange(function(){return T.onCharSizeChanged()})),T._renderer.onRequestRedraw(function(y){return T.refreshRows(y.start,y.end,!0)}),T.register(u.addDisposableDomListener(window,"resize",function(){return T.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var L=new IntersectionObserver(function(y){return T._onIntersectionChange(y[y.length-1])},{threshold:0});L.observe(w),T.register({dispose:function(){return L.disconnect()}})}return T}return v(d,s),Object.defineProperty(d.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),d.prototype._onIntersectionChange=function(p){this._isPaused=p.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},d.prototype.refreshRows=function(p,b,w){w===void 0&&(w=!1),this._isPaused?this._needsFullRefresh=!0:(w||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(p,b,this._rowCount))},d.prototype._renderRows=function(p,b){this._renderer.renderRows(p,b),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:p,end:b}),this._isNextRenderRedrawOnly=!0},d.prototype.resize=function(p,b){this._rowCount=b,this._fireOnCanvasResize()},d.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},d.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},d.prototype.dispose=function(){s.prototype.dispose.call(this)},d.prototype.setRenderer=function(p){var b=this;this._renderer.dispose(),this._renderer=p,this._renderer.onRequestRedraw(function(w){return b.refreshRows(w.start,w.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},d.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},d.prototype.setColors=function(p){this._renderer.setColors(p),this._fullRefresh()},d.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},d.prototype.onResize=function(p,b){this._renderer.onResize(p,b),this._fullRefresh()},d.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},d.prototype.onBlur=function(){this._renderer.onBlur()},d.prototype.onFocus=function(){this._renderer.onFocus()},d.prototype.onSelectionChanged=function(p,b,w){this._selectionState.start=p,this._selectionState.end=b,this._selectionState.columnSelectMode=w,this._renderer.onSelectionChanged(p,b,w)},d.prototype.onCursorMove=function(){this._renderer.onCursorMove()},d.prototype.clear=function(){this._renderer.clear()},d.prototype.registerCharacterJoiner=function(p){return this._renderer.registerCharacterJoiner(p)},d.prototype.deregisterCharacterJoiner=function(p){return this._renderer.deregisterCharacterJoiner(p)},d=h([c(3,r.IOptionsService),c(4,l.ICharSizeService),c(5,r.IBufferService)],d)}(n.Disposable);f.RenderService=t},function(g,f,A){"use strict";var m=this&&this.__decorate||function(n,a,u,r){var l,t=arguments.length,s=t<3?a:r===null?r=Object.getOwnPropertyDescriptor(a,u):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,a,u,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(s=(t<3?l(s):t>3?l(a,u,s):l(a,u))||s);return t>3&&s&&Object.defineProperty(a,u,s),s},v=this&&this.__param||function(n,a){return function(u,r){a(u,r,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CharSizeService=void 0;var h=A(1),c=A(0),o=function(){function n(a,u,r){this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=new c.EventEmitter,this._measureStrategy=new i(a,u,this._optionsService)}return Object.defineProperty(n.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),n.prototype.measure=function(){var a=this._measureStrategy.measure();a.width===this.width&&a.height===this.height||(this.width=a.width,this.height=a.height,this._onCharSizeChange.fire())},n=m([v(2,h.IOptionsService)],n)}();f.CharSizeService=o;var i=function(){function n(a,u,r){this._document=a,this._parentElement=u,this._optionsService=r,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return n.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var a=this._measureElement.getBoundingClientRect();return a.width!==0&&a.height!==0&&(this._result.width=a.width,this._result.height=Math.ceil(a.height)),this._result},n}()},function(g,f,A){"use strict";var m=this&&this.__decorate||function(i,n,a,u){var r,l=arguments.length,t=l<3?n:u===null?u=Object.getOwnPropertyDescriptor(n,a):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,n,a,u);else for(var s=i.length-1;s>=0;s--)(r=i[s])&&(t=(l<3?r(t):l>3?r(n,a,t):r(n,a))||t);return l>3&&t&&Object.defineProperty(n,a,t),t},v=this&&this.__param||function(i,n){return function(a,u){n(a,u,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseService=void 0;var h=A(5),c=A(30),o=function(){function i(n,a){this._renderService=n,this._charSizeService=a}return i.prototype.getCoords=function(n,a,u,r,l){return c.getCoords(n,a,u,r,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},i.prototype.getRawByteCoords=function(n,a,u,r){var l=this.getCoords(n,a,u,r);return c.getRawByteCoords(l)},i=m([v(0,h.IRenderService),v(1,h.ICharSizeService)],i)}();f.MouseService=o},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(l,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p])})(l,t)},function(r,l){function t(){this.constructor=r}m(r,l),r.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),h=this&&this.__decorate||function(r,l,t,s){var d,p=arguments.length,b=p<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,l,t,s);else for(var w=r.length-1;w>=0;w--)(d=r[w])&&(b=(p<3?d(b):p>3?d(l,t,b):d(l,t))||b);return p>3&&b&&Object.defineProperty(l,t,b),b},c=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Linkifier2=void 0;var o=A(1),i=A(0),n=A(2),a=A(7),u=function(r){function l(t){var s=r.call(this)||this;return s._bufferService=t,s._linkProviders=[],s._linkCacheDisposables=[],s._isMouseOut=!0,s._activeLine=-1,s._onShowLinkUnderline=s.register(new i.EventEmitter),s._onHideLinkUnderline=s.register(new i.EventEmitter),s.register(n.getDisposeArrayDisposable(s._linkCacheDisposables)),s}return v(l,r),Object.defineProperty(l.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),l.prototype.registerLinkProvider=function(t){var s=this;return this._linkProviders.push(t),{dispose:function(){var p=s._linkProviders.indexOf(t);p!==-1&&s._linkProviders.splice(p,1)}}},l.prototype.attachToDom=function(t,s,d){var p=this;this._element=t,this._mouseService=s,this._renderService=d,this.register(a.addDisposableDomListener(this._element,"mouseleave",function(){p._isMouseOut=!0,p._clearCurrentLink()})),this.register(a.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(a.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},l.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var s=this._positionFromMouseEvent(t,this._element,this._mouseService);if(s){this._isMouseOut=!1;for(var d=t.composedPath(),p=0;pt?this._bufferService.cols:E.link.range.end.x,T=S;T<=x;T++){if(d.has(T)){b.splice(w--,1);break}d.add(T)}}},l.prototype._checkLinkProviderResult=function(t,s,d){var p,b=this;if(!this._activeProviderReplies)return d;for(var w=this._activeProviderReplies.get(t),E=!1,S=0;S=t&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,n.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(t){var s=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var d=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);d&&this._linkAtPosition(t.link,d)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:function(){var b,w;return(w=(b=s._currentLink)===null||b===void 0?void 0:b.state)===null||w===void 0?void 0:w.decorations.pointerCursor},set:function(b){var w,E;((w=s._currentLink)===null||w===void 0?void 0:w.state)&&s._currentLink.state.decorations.pointerCursor!==b&&(s._currentLink.state.decorations.pointerCursor=b,s._currentLink.state.isHovered&&((E=s._element)===null||E===void 0||E.classList.toggle("xterm-cursor-pointer",b)))}},underline:{get:function(){var b,w;return(w=(b=s._currentLink)===null||b===void 0?void 0:b.state)===null||w===void 0?void 0:w.decorations.underline},set:function(b){var w,E,S;((w=s._currentLink)===null||w===void 0?void 0:w.state)&&((S=(E=s._currentLink)===null||E===void 0?void 0:E.state)===null||S===void 0?void 0:S.decorations.underline)!==b&&(s._currentLink.state.decorations.underline=b,s._currentLink.state.isHovered&&s._fireUnderlineEvent(t.link,b))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(p){var b=p.start===0?0:p.start+1+s._bufferService.buffer.ydisp;s._clearCurrentLink(b,p.end+1+s._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(t,s,d){var p;((p=this._currentLink)===null||p===void 0?void 0:p.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(d,s.text)},l.prototype._fireUnderlineEvent=function(t,s){var d=t.range,p=this._bufferService.buffer.ydisp,b=this._createLinkUnderlineEvent(d.start.x-1,d.start.y-p-1,d.end.x,d.end.y-p-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(b)},l.prototype._linkLeave=function(t,s,d){var p;((p=this._currentLink)===null||p===void 0?void 0:p.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(d,s.text)},l.prototype._linkAtPosition=function(t,s){var d=t.range.start.y===t.range.end.y,p=t.range.start.ys.y;return(d&&t.range.start.x<=s.x&&t.range.end.x>=s.x||p&&t.range.end.x>=s.x||b&&t.range.start.x<=s.x||p&&b)&&t.range.start.y<=s.y&&t.range.end.y>=s.y},l.prototype._positionFromMouseEvent=function(t,s,d){var p=d.getCoords(t,s,this._bufferService.cols,this._bufferService.rows);if(p)return{x:p[0],y:p[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(t,s,d,p,b){return{x1:t,y1:s,x2:d,y2:p,cols:this._bufferService.cols,fg:b}},l=h([c(0,o.IBufferService)],l)}(n.Disposable);f.Linkifier2=u},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CoreBrowserService=void 0;var m=function(){function v(h){this._textarea=h}return Object.defineProperty(v.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),v}();f.CoreBrowserService=m},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(x,T){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,y){L.__proto__=y}||function(L,y){for(var C in y)y.hasOwnProperty(C)&&(L[C]=y[C])})(x,T)},function(S,x){function T(){this.constructor=S}m(S,x),S.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)});Object.defineProperty(f,"__esModule",{value:!0}),f.CoreTerminal=void 0;var h=A(2),c=A(1),o=A(66),i=A(67),n=A(68),a=A(74),u=A(75),r=A(0),l=A(76),t=A(77),s=A(78),d=A(80),p=A(81),b=A(19),w=A(82),E=function(S){function x(T){var L=S.call(this)||this;return L._onBinary=new r.EventEmitter,L._onData=new r.EventEmitter,L._onLineFeed=new r.EventEmitter,L._onResize=new r.EventEmitter,L._onScroll=new r.EventEmitter,L._instantiationService=new o.InstantiationService,L.optionsService=new a.OptionsService(T),L._instantiationService.setService(c.IOptionsService,L.optionsService),L._bufferService=L.register(L._instantiationService.createInstance(n.BufferService)),L._instantiationService.setService(c.IBufferService,L._bufferService),L._logService=L._instantiationService.createInstance(i.LogService),L._instantiationService.setService(c.ILogService,L._logService),L._coreService=L.register(L._instantiationService.createInstance(u.CoreService,function(){return L.scrollToBottom()})),L._instantiationService.setService(c.ICoreService,L._coreService),L._coreMouseService=L._instantiationService.createInstance(l.CoreMouseService),L._instantiationService.setService(c.ICoreMouseService,L._coreMouseService),L._dirtyRowService=L._instantiationService.createInstance(t.DirtyRowService),L._instantiationService.setService(c.IDirtyRowService,L._dirtyRowService),L.unicodeService=L._instantiationService.createInstance(s.UnicodeService),L._instantiationService.setService(c.IUnicodeService,L.unicodeService),L._charsetService=L._instantiationService.createInstance(d.CharsetService),L._instantiationService.setService(c.ICharsetService,L._charsetService),L._inputHandler=new b.InputHandler(L._bufferService,L._charsetService,L._coreService,L._dirtyRowService,L._logService,L.optionsService,L._coreMouseService,L.unicodeService),L.register(r.forwardEvent(L._inputHandler.onLineFeed,L._onLineFeed)),L.register(L._inputHandler),L.register(r.forwardEvent(L._bufferService.onResize,L._onResize)),L.register(r.forwardEvent(L._coreService.onData,L._onData)),L.register(r.forwardEvent(L._coreService.onBinary,L._onBinary)),L.register(L.optionsService.onOptionChange(function(y){return L._updateOptions(y)})),L._writeBuffer=new w.WriteBuffer(function(y){return L._inputHandler.parse(y)}),L}return v(x,S),Object.defineProperty(x.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){var T;this._isDisposed||(S.prototype.dispose.call(this),(T=this._windowsMode)===null||T===void 0||T.dispose(),this._windowsMode=void 0)},x.prototype.write=function(T,L){this._writeBuffer.write(T,L)},x.prototype.writeSync=function(T){this._writeBuffer.writeSync(T)},x.prototype.resize=function(T,L){isNaN(T)||isNaN(L)||(T=Math.max(T,n.MINIMUM_COLS),L=Math.max(L,n.MINIMUM_ROWS),this._bufferService.resize(T,L))},x.prototype.scroll=function(T,L){L===void 0&&(L=!1);var y,C=this._bufferService.buffer;(y=this._cachedBlankLine)&&y.length===this.cols&&y.getFg(0)===T.fg&&y.getBg(0)===T.bg||(y=C.getBlankLine(T,L),this._cachedBlankLine=y),y.isWrapped=L;var O=C.ybase+C.scrollTop,N=C.ybase+C.scrollBottom;if(C.scrollTop===0){var k=C.lines.isFull;N===C.lines.length-1?k?C.lines.recycle().copyFrom(y):C.lines.push(y.clone()):C.lines.splice(N+1,0,y.clone()),k?this._bufferService.isUserScrolling&&(C.ydisp=Math.max(C.ydisp-1,0)):(C.ybase++,this._bufferService.isUserScrolling||C.ydisp++)}else{var F=N-O+1;C.lines.shiftElements(O+1,F-1,-1),C.lines.set(N,y.clone())}this._bufferService.isUserScrolling||(C.ydisp=C.ybase),this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom),this._onScroll.fire(C.ydisp)},x.prototype.scrollLines=function(T,L){var y=this._bufferService.buffer;if(T<0){if(y.ydisp===0)return;this._bufferService.isUserScrolling=!0}else T+y.ydisp>=y.ybase&&(this._bufferService.isUserScrolling=!1);var C=y.ydisp;y.ydisp=Math.max(Math.min(y.ydisp+T,y.ybase),0),C!==y.ydisp&&(L||this._onScroll.fire(y.ydisp))},x.prototype.scrollPages=function(T){this.scrollLines(T*(this.rows-1))},x.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},x.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},x.prototype.scrollToLine=function(T){var L=T-this._bufferService.buffer.ydisp;L!==0&&this.scrollLines(L)},x.prototype.addEscHandler=function(T,L){return this._inputHandler.addEscHandler(T,L)},x.prototype.addDcsHandler=function(T,L){return this._inputHandler.addDcsHandler(T,L)},x.prototype.addCsiHandler=function(T,L){return this._inputHandler.addCsiHandler(T,L)},x.prototype.addOscHandler=function(T,L){return this._inputHandler.addOscHandler(T,L)},x.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},x.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},x.prototype._updateOptions=function(T){var L;switch(T){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((L=this._windowsMode)===null||L===void 0||L.dispose(),this._windowsMode=void 0)}},x.prototype._enableWindowsMode=function(){var T=this;if(!this._windowsMode){var L=[];L.push(this.onLineFeed(p.updateWindowsModeWrappedState.bind(null,this._bufferService))),L.push(this.addCsiHandler({final:"H"},function(){return p.updateWindowsModeWrappedState(T._bufferService),!1})),this._windowsMode={dispose:function(){for(var C=0,O=L;C0?r[0].index:a.length;if(a.length!==b)throw new Error("[createInstance] First service dependency of "+n.name+" at position "+(b+1)+" conflicts with "+a.length+" static arguments");return new(n.bind.apply(n,m([void 0],m(a,l))))},i}();f.InstantiationService=o},function(g,f,A){"use strict";var m=this&&this.__decorate||function(a,u,r,l){var t,s=arguments.length,d=s<3?u:l===null?l=Object.getOwnPropertyDescriptor(u,r):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(a,u,r,l);else for(var p=a.length-1;p>=0;p--)(t=a[p])&&(d=(s<3?t(d):s>3?t(u,r,d):t(u,r))||d);return s>3&&d&&Object.defineProperty(u,r,d),d},v=this&&this.__param||function(a,u){return function(r,l){u(r,l,a)}},h=this&&this.__spreadArrays||function(){for(var a=0,u=0,r=arguments.length;u=0;w--)(d=r[w])&&(b=(p<3?d(b):p>3?d(l,t,b):d(l,t))||b);return p>3&&b&&Object.defineProperty(l,t,b),b},c=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.BufferService=f.MINIMUM_ROWS=f.MINIMUM_COLS=void 0;var o=A(1),i=A(69),n=A(0),a=A(2);f.MINIMUM_COLS=2,f.MINIMUM_ROWS=1;var u=function(r){function l(t){var s=r.call(this)||this;return s._optionsService=t,s.isUserScrolling=!1,s._onResize=new n.EventEmitter,s.cols=Math.max(t.options.cols,f.MINIMUM_COLS),s.rows=Math.max(t.options.rows,f.MINIMUM_ROWS),s.buffers=new i.BufferSet(t,s),s}return v(l,r),Object.defineProperty(l.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),l.prototype.dispose=function(){r.prototype.dispose.call(this),this.buffers.dispose()},l.prototype.resize=function(t,s){this.cols=t,this.rows=s,this.buffers.resize(t,s),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:s})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new i.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=h([c(0,o.IOptionsService)],l)}(a.Disposable);f.BufferService=u},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(n,a){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,r){u.__proto__=r}||function(u,r){for(var l in r)r.hasOwnProperty(l)&&(u[l]=r[l])})(n,a)},function(i,n){function a(){this.constructor=i}m(i,n),i.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)});Object.defineProperty(f,"__esModule",{value:!0}),f.BufferSet=void 0;var h=A(70),c=A(0),o=function(i){function n(a,u){var r=i.call(this)||this;return r._onBufferActivate=r.register(new c.EventEmitter),r._normal=new h.Buffer(!0,a,u),r._normal.fillViewportRows(),r._alt=new h.Buffer(!1,a,u),r._activeBuffer=r._normal,r.setupTabStops(),r}return v(n,i),Object.defineProperty(n.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),n.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},n.prototype.activateAltBuffer=function(a){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(a),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},n.prototype.resize=function(a,u){this._normal.resize(a,u),this._alt.resize(a,u)},n.prototype.setupTabStops=function(a){this._normal.setupTabStops(a),this._alt.setupTabStops(a)},n}(A(2).Disposable);f.BufferSet=o},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BufferStringIterator=f.Buffer=f.MAX_BUFFER_SIZE=void 0;var m=A(71),v=A(16),h=A(4),c=A(3),o=A(72),i=A(73),n=A(20),a=A(6);f.MAX_BUFFER_SIZE=4294967295;var u=function(){function l(t,s,d){this._hasScrollback=t,this._optionsService=s,this._bufferService=d,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=v.DEFAULT_ATTR_DATA.clone(),this.savedCharset=n.DEFAULT_CHARSET,this.markers=[],this._nullCell=h.CellData.fromCharData([0,c.NULL_CELL_CHAR,c.NULL_CELL_WIDTH,c.NULL_CELL_CODE]),this._whitespaceCell=h.CellData.fromCharData([0,c.WHITESPACE_CELL_CHAR,c.WHITESPACE_CELL_WIDTH,c.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return l.prototype.getNullCell=function(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new a.ExtendedAttrs),this._nullCell},l.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new a.ExtendedAttrs),this._whitespaceCell},l.prototype.getBlankLine=function(t,s){return new v.BufferLine(this._bufferService.cols,this.getNullCell(t),s)},Object.defineProperty(l.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isCursorInViewport",{get:function(){var s=this.ybase+this.y-this.ydisp;return s>=0&&sf.MAX_BUFFER_SIZE?f.MAX_BUFFER_SIZE:s},l.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=v.DEFAULT_ATTR_DATA);for(var s=this._rows;s--;)this.lines.push(this.getBlankLine(t))}},l.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(t,s){var d=this.getNullCell(v.DEFAULT_ATTR_DATA),p=this._getCorrectBufferLength(s);if(p>this.lines.maxLength&&(this.lines.maxLength=p),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+w+1?(this.ybase--,w++,this.ydisp>0&&this.ydisp--):this.lines.push(new v.BufferLine(t,d)));else for(E=this._rows;E>s;E--)this.lines.length>s+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(p0&&(this.lines.trimStart(S),this.ybase=Math.max(this.ybase-S,0),this.ydisp=Math.max(this.ydisp-S,0),this.savedY=Math.max(this.savedY-S,0)),this.lines.maxLength=p}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,s-1),w&&(this.y+=w),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(t,s),this._cols>t))for(b=0;bthis._cols?this._reflowLarger(t,s):this._reflowSmaller(t,s))},l.prototype._reflowLarger=function(t,s){var d=o.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(v.DEFAULT_ATTR_DATA));if(d.length>0){var p=o.reflowLargerCreateNewLayout(this.lines,d);o.reflowLargerApplyNewLayout(this.lines,p.layout),this._reflowLargerAdjustViewport(t,s,p.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(t,s,d){for(var p=this.getNullCell(v.DEFAULT_ATTR_DATA),b=d;b-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;w--){var E=this.lines.get(w);if(!(!E||!E.isWrapped&&E.getTrimmedLength()<=t)){for(var S=[E];E.isWrapped&&w>0;)E=this.lines.get(--w),S.unshift(E);var x=this.ybase+this.y;if(!(x>=w&&x0&&(p.push({start:w+S.length+b,newLines:O}),b+=O.length),S.push.apply(S,O);var F=L.length-1,B=L[F];B===0&&(B=L[--F]);for(var H=S.length-y-1,W=T;H>=0;){var R=Math.min(W,B);if(S[F].copyCellsFrom(S[H],W-R,B-R,R,!0),(B-=R)===0&&(B=L[--F]),(W-=R)===0){H--;var U=Math.max(H,0);W=o.getWrappedLineTrimmedLength(S,U,this._cols)}}for(N=0;N0;)this.ybase===0?this.y0){var P=[],K=[];for(N=0;N=0;N--)if(G&&G.start>z+le){for(var Y=G.newLines.length-1;Y>=0;Y--)this.lines.set(N--,G.newLines[Y]);N++,P.push({index:z+1,amount:G.newLines.length}),le+=G.newLines.length,G=p[++X]}else this.lines.set(N,K[z--]);var me=0;for(N=P.length-1;N>=0;N--)P[N].index+=me,this.lines.onInsertEmitter.fire(P[N]),me+=P[N].amount;var we=Math.max(0,V+b-this.lines.maxLength);we>0&&this.lines.onTrimEmitter.fire(we)}},l.prototype.stringIndexToBufferIndex=function(t,s,d){for(d===void 0&&(d=!1);s;){var p=this.lines.get(t);if(!p)return[-1,-1];for(var b=d?p.getTrimmedLength():p.length,w=0;w0&&this.lines.get(s).isWrapped;)s--;for(;d+10;);return t>=this._cols?this._cols-1:t<0?0:t},l.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t=this._cols?this._cols-1:t<0?0:t},l.prototype.addMarker=function(t){var s=this,d=new i.Marker(t);return this.markers.push(d),d.register(this.lines.onTrim(function(p){d.line-=p,d.line<0&&d.dispose()})),d.register(this.lines.onInsert(function(p){d.line>=p.index&&(d.line+=p.amount)})),d.register(this.lines.onDelete(function(p){d.line>=p.index&&d.linep.index&&(d.line-=p.amount)})),d.register(d.onDispose(function(){return s._removeMarker(d)})),d},l.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},l.prototype.iterator=function(t,s,d,p,b){return new r(this,t,s,d,p,b)},l}();f.Buffer=u;var r=function(){function l(t,s,d,p,b,w){d===void 0&&(d=0),p===void 0&&(p=t.lines.length),b===void 0&&(b=0),w===void 0&&(w=0),this._buffer=t,this._trimRight=s,this._startIndex=d,this._endIndex=p,this._startOverscan=b,this._endOverscan=w,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return l.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var s="",d=t.first;d<=t.last;++d)s+=this._buffer.translateBufferLineToString(d,this._trimRight);return this._current=t.last+1,{range:t,content:s}},l}();f.BufferStringIterator=r},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CircularList=void 0;var m=A(0),v=function(){function h(c){this._maxLength=c,this.onDeleteEmitter=new m.EventEmitter,this.onInsertEmitter=new m.EventEmitter,this.onTrimEmitter=new m.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(h.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"maxLength",{get:function(){return this._maxLength},set:function(o){if(this._maxLength!==o){for(var i=new Array(o),n=0;nthis._length)for(var i=this._length;i=c;a--)this._array[this._getCyclicIndex(a+i.length)]=this._array[this._getCyclicIndex(a)];for(a=0;athis._maxLength){var u=this._length+i.length-this._maxLength;this._startIndex+=u,this._length=this._maxLength,this.onTrimEmitter.fire(u)}else this._length+=i.length},h.prototype.trimStart=function(c){c>this._length&&(c=this._length),this._startIndex+=c,this._length-=c,this.onTrimEmitter.fire(c)},h.prototype.shiftElements=function(c,o,i){if(!(o<=0)){if(c<0||c>=this._length)throw new Error("start argument out of range");if(c+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(var n=o-1;n>=0;n--)this.set(c+n+i,this.get(c+n));var a=c+o+i-this._length;if(a>0)for(this._length+=a;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(n=0;n=a&&o0&&(T>t||l[T].getTrimmedLength()===0);T--)x++;x>0&&(n.push(a+l.length-x),n.push(x)),a+=l.length-1}}}return n},f.reflowLargerCreateNewLayout=function(v,h){for(var c=[],o=0,i=h[o],n=0,a=0;ar&&(n-=r,a++);var l=v[a].getWidth(n-1)===2;l&&n--;var t=l?c-1:c;o.push(t),u+=t}return o},f.getWrappedLineTrimmedLength=m},function(g,f,A){"use strict";var m,v=this&&this.__extends||(m=function(i,n){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var r in u)u.hasOwnProperty(r)&&(a[r]=u[r])})(i,n)},function(o,i){function n(){this.constructor=o}m(o,i),o.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(f,"__esModule",{value:!0}),f.Marker=void 0;var h=A(0),c=function(o){function i(n){var a=o.call(this)||this;return a.line=n,a._id=i._nextId++,a.isDisposed=!1,a._onDispose=new h.EventEmitter,a}return v(i,o),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},i._nextId=1,i}(A(2).Disposable);f.Marker=c},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OptionsService=f.DEFAULT_OPTIONS=f.DEFAULT_BELL_SOUND=void 0;var m=A(0),v=A(11),h=A(33);f.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",f.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:f.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:v.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var c=["cols","rows"],o=function(){function i(n){this._onOptionChange=new m.EventEmitter,this.options=h.clone(f.DEFAULT_OPTIONS);for(var a=0,u=Object.keys(n);a=0;S--)(b=t[S])&&(E=(w<3?b(E):w>3?b(s,d,E):b(s,d))||E);return w>3&&E&&Object.defineProperty(s,d,E),E},c=this&&this.__param||function(t,s){return function(d,p){s(d,p,t)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreService=void 0;var o=A(1),i=A(0),n=A(33),a=A(2),u=Object.freeze({insertMode:!1}),r=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(t){function s(d,p,b,w){var E=t.call(this)||this;return E._bufferService=p,E._logService=b,E._optionsService=w,E.isCursorInitialized=!1,E.isCursorHidden=!1,E._onData=E.register(new i.EventEmitter),E._onUserInput=E.register(new i.EventEmitter),E._onBinary=E.register(new i.EventEmitter),E._scrollToBottom=d,E.register({dispose:function(){return E._scrollToBottom=void 0}}),E.modes=n.clone(u),E.decPrivateModes=n.clone(r),E}return v(s,t),Object.defineProperty(s.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),s.prototype.reset=function(){this.modes=n.clone(u),this.decPrivateModes=n.clone(r)},s.prototype.triggerDataEvent=function(d,p){if(p===void 0&&(p=!1),!this._optionsService.options.disableStdin){var b=this._bufferService.buffer;b.ybase!==b.ydisp&&this._scrollToBottom(),p&&this._onUserInput.fire(),this._logService.debug('sending data "'+d+'"',function(){return d.split("").map(function(w){return w.charCodeAt(0)})}),this._onData.fire(d)}},s.prototype.triggerBinaryEvent=function(d){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+d+'"',function(){return d.split("").map(function(p){return p.charCodeAt(0)})}),this._onBinary.fire(d))},s=h([c(1,o.IBufferService),c(2,o.ILogService),c(3,o.IOptionsService)],s)}(a.Disposable);f.CoreService=l},function(g,f,A){"use strict";var m=this&&this.__decorate||function(r,l,t,s){var d,p=arguments.length,b=p<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,l,t,s);else for(var w=r.length-1;w>=0;w--)(d=r[w])&&(b=(p<3?d(b):p>3?d(l,t,b):d(l,t))||b);return p>3&&b&&Object.defineProperty(l,t,b),b},v=this&&this.__param||function(r,l){return function(t,s){l(t,s,r)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreMouseService=void 0;var h=A(1),c=A(0),o={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(l){return l.button!==4&&l.action===1&&(l.ctrl=!1,l.alt=!1,l.shift=!1,!0)}},VT200:{events:19,restrict:function(l){return l.action!==32}},DRAG:{events:23,restrict:function(l){return l.action!==32||l.button!==3}},ANY:{events:31,restrict:function(l){return!0}}};function i(r,l){var t=(r.ctrl?16:0)|(r.shift?4:0)|(r.alt?8:0);return r.button===4?(t|=64,t|=r.action):(t|=3&r.button,4&r.button&&(t|=64),8&r.button&&(t|=128),r.action===32?t|=32:r.action!==0||l||(t|=3)),t}var n=String.fromCharCode,a={DEFAULT:function(l){var t=[i(l,!1)+32,l.col+32,l.row+32];return t[0]>255||t[1]>255||t[2]>255?"":""+n(t[0])+n(t[1])+n(t[2])},SGR:function(l){var t=l.action===0&&l.button!==4?"m":"M";return"[<"+i(l,!0)+";"+l.col+";"+l.row+t}},u=function(){function r(l,t){this._bufferService=l,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new c.EventEmitter,this._lastEvent=null;for(var s=0,d=Object.keys(o);s=this._bufferService.cols||l.row<0||l.row>=this._bufferService.rows)return!1;if(l.button===4&&l.action===32)return!1;if(l.button===3&&l.action!==32)return!1;if(l.button!==4&&(l.action===2||l.action===3))return!1;if(l.col++,l.row++,l.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,l))return!1;if(!this._protocols[this._activeProtocol].restrict(l))return!1;var t=this._encodings[this._activeEncoding](l);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=l,!0},r.prototype.explainEvents=function(l){return{down:!!(1&l),up:!!(2&l),drag:!!(4&l),move:!!(8&l),wheel:!!(16&l)}},r.prototype._compareEvents=function(l,t){return l.col===t.col&&l.row===t.row&&l.button===t.button&&l.action===t.action&&l.ctrl===t.ctrl&&l.alt===t.alt&&l.shift===t.shift},r=m([v(0,h.IBufferService),v(1,h.ICoreService)],r)}();f.CoreMouseService=u},function(g,f,A){"use strict";var m=this&&this.__decorate||function(o,i,n,a){var u,r=arguments.length,l=r<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,n):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(o,i,n,a);else for(var t=o.length-1;t>=0;t--)(u=o[t])&&(l=(r<3?u(l):r>3?u(i,n,l):u(i,n))||l);return r>3&&l&&Object.defineProperty(i,n,l),l},v=this&&this.__param||function(o,i){return function(n,a){i(n,a,o)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DirtyRowService=void 0;var h=A(1),c=function(){function o(i){this._bufferService=i,this.clearRange()}return Object.defineProperty(o.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),o.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},o.prototype.markDirty=function(i){ithis._end&&(this._end=i)},o.prototype.markRangeDirty=function(i,n){if(i>n){var a=i;i=n,n=a}ithis._end&&(this._end=n)},o.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},o=m([v(0,h.IBufferService)],o)}();f.DirtyRowService=c},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeService=void 0;var m=A(0),v=A(79),h=function(){function c(){this._providers=Object.create(null),this._active="",this._onChange=new m.EventEmitter;var o=new v.UnicodeV6;this.register(o),this._active=o.version,this._activeProvider=o}return Object.defineProperty(c.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"activeVersion",{get:function(){return this._active},set:function(i){if(!this._providers[i])throw new Error('unknown Unicode version "'+i+'"');this._active=i,this._activeProvider=this._providers[i],this._onChange.fire(i)},enumerable:!1,configurable:!0}),c.prototype.register=function(o){this._providers[o.version]=o},c.prototype.wcwidth=function(o){return this._activeProvider.wcwidth(o)},c.prototype.getStringCellWidth=function(o){for(var i=0,n=o.length,a=0;a=n)return i+this.wcwidth(u);var r=o.charCodeAt(a);56320<=r&&r<=57343?u=1024*(u-55296)+r-56320+65536:i+=this.wcwidth(r)}i+=this.wcwidth(u)}return i},c}();f.UnicodeService=h},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeV6=void 0;var m,v=A(15),h=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],c=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],o=function(){function i(){if(this.version="6",!m){m=new Uint8Array(65536),v.fill(m,1),m[0]=0,v.fill(m,0,1,32),v.fill(m,0,127,160),v.fill(m,2,4352,4448),m[9001]=2,m[9002]=2,v.fill(m,2,11904,42192),m[12351]=1,v.fill(m,2,44032,55204),v.fill(m,2,63744,64256),v.fill(m,2,65040,65050),v.fill(m,2,65072,65136),v.fill(m,2,65280,65377),v.fill(m,2,65504,65511);for(var n=0;nu[t][1])return!1;for(;t>=l;)if(a>u[r=l+t>>1][1])l=r+1;else{if(!(a=131072&&n<=196605||n>=196608&&n<=262141?2:1},i}();f.UnicodeV6=o},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CharsetService=void 0;var m=function(){function v(){this.glevel=0,this._charsets=[]}return v.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},v.prototype.setgLevel=function(h){this.glevel=h,this.charset=this._charsets[h]},v.prototype.setgCharset=function(h,c){this._charsets[h]=c,this.glevel===h&&(this.charset=c)},v}();f.CharsetService=m},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.updateWindowsModeWrappedState=void 0;var m=A(3);f.updateWindowsModeWrappedState=function(v){var h=v.buffer.lines.get(v.buffer.ybase+v.buffer.y-1),c=h==null?void 0:h.get(v.cols-1),o=v.buffer.lines.get(v.buffer.ybase+v.buffer.y);o&&c&&(o.isWrapped=c[m.CHAR_DATA_CODE_INDEX]!==m.NULL_CELL_CODE&&c[m.CHAR_DATA_CODE_INDEX]!==m.WHITESPACE_CELL_CODE)}},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WriteBuffer=void 0;var m=function(){function v(h){this._action=h,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return v.prototype.writeSync=function(h){if(this._writeBuffer.length){for(var c=this._bufferOffset;c5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return o._innerWrite()})),this._pendingData+=h.length,this._writeBuffer.push(h),this._callbacks.push(c)},v.prototype._innerWrite=function(){for(var h=this,c=Date.now();this._writeBuffer.length>this._bufferOffset;){var o=this._writeBuffer[this._bufferOffset],i=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(o),this._pendingData-=o.length,i&&i(),Date.now()-c>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return h._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},v}();f.WriteBuffer=m},function(g,f,A){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AddonManager=void 0;var m=function(){function v(){this._addons=[]}return v.prototype.dispose=function(){for(var h=this._addons.length-1;h>=0;h--)this._addons[h].instance.dispose()},v.prototype.loadAddon=function(h,c){var o=this,i={instance:c,dispose:c.dispose,isDisposed:!1};this._addons.push(i),c.dispose=function(){return o._wrappedAddonDispose(i)},c.activate(h)},v.prototype._wrappedAddonDispose=function(h){if(!h.isDisposed){for(var c=-1,o=0;oa;)r+=l*360;return[u,r]},coordToPoint:function(v){var h=v[0],c=v[1]/180*Math.PI,o=Math.cos(c)*h+this.cx,i=-Math.sin(c)*h+this.cy;return[o,i]},getArea:function(){var v=this.getAngleAxis(),h=this.getRadiusAxis(),c=h.getExtent().slice();c[0]>c[1]&&c.reverse();var o=v.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:c[0],r:c[1],startAngle:-o[0]*i,endAngle:-o[1]*i,clockwise:v.inverse,contain:function(n,a){var u=n-this.cx,r=a-this.cy,l=u*u+r*r,t=this.r,s=this.r0;return l<=t*t&&l>=s*s}}}};var m=A;D.exports=m},"/WM3":function(D,_,e){var g=e("QuXc"),f=e("bYtY"),A=f.isFunction,m={createOnAllSeries:!0,performRawSeries:!0,reset:function(v,h){var c=v.getData(),o=(v.visualColorAccessPath||"itemStyle.color").split("."),i=v.get(o),n=A(i)&&!(i instanceof g)?i:null;(!i||n)&&(i=v.getColorFromPalette(v.name,null,h.getSeriesCount())),c.setVisual("color",i);var a=(v.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=v.get(a);if(c.setVisual("borderColor",u),!h.isSeriesFiltered(v)){n&&c.each(function(l){c.setItemVisual(l,"color",n(v.getDataParams(l)))});var r=function(l,t){var s=l.getItemModel(t),d=s.get(o,!0),p=s.get(a,!0);d!=null&&l.setItemVisual(t,"color",d),p!=null&&l.setItemVisual(t,"borderColor",p)};return{dataEach:c.hasItemOption?r:null}}}};D.exports=m},"/d5a":function(D,_){var e={average:function(A){for(var m=0,v=0,h=0;hm&&(m=A[v]);return isFinite(m)?m:NaN},min:function(A){for(var m=Infinity,v=0;v1){var t;typeof o=="string"?t=e[o]:typeof o=="function"&&(t=o),t&&m.setData(c.downSample(c.mapDimension(a.dim),1/l,t,g))}}}}}D.exports=f},"/ezw":function(D,_,e){"use strict";var g=e("lSNA"),f=e.n(g),A=e("pVnL"),m=e.n(A),v=e("cDf5"),h=e.n(v),c=e("q1tI"),o=e("TSYQ"),i=e.n(o),n=function(j){var P=j.prefixCls,K=j.className,V=j.width,z=j.style;return c.createElement("h3",{className:i()(P,K),style:m()({width:V},z)})},a=n,u=e("RIqP"),r=e.n(u),l=function(j){var P=function(Y){var me=j.width,we=j.rows,pe=we===void 0?2:we;return Array.isArray(me)?me[Y]:pe-1===Y?me:void 0},K=j.prefixCls,V=j.className,z=j.style,X=j.rows,G=r()(Array(X)).map(function(le,Y){return c.createElement("li",{key:Y,style:{width:P(Y)}})});return c.createElement("ul",{className:i()(K,V),style:z},G)},t=l,s=e("H84U"),d=function(j){var P,K,V=j.prefixCls,z=j.className,X=j.style,G=j.size,le=j.shape,Y=i()((P={},f()(P,"".concat(V,"-lg"),G==="large"),f()(P,"".concat(V,"-sm"),G==="small"),P)),me=i()((K={},f()(K,"".concat(V,"-circle"),le==="circle"),f()(K,"".concat(V,"-square"),le==="square"),f()(K,"".concat(V,"-round"),le==="round"),K)),we=typeof G=="number"?{width:G,height:G,lineHeight:"".concat(G,"px")}:{};return c.createElement("span",{className:i()(V,z,Y,me),style:m()(m()({},we),X)})},p=d,b=e("BGR+"),w=function(j){var P=function(V){var z=V.getPrefixCls,X=j.prefixCls,G=j.className,le=j.active,Y=z("skeleton",X),me=Object(b.default)(j,["prefixCls"]),we=i()(Y,G,"".concat(Y,"-element"),f()({},"".concat(Y,"-active"),le));return c.createElement("div",{className:we},c.createElement(p,m()({prefixCls:"".concat(Y,"-avatar")},me)))};return c.createElement(s.a,null,P)};w.defaultProps={size:"default",shape:"circle"};var E=w,S=function(j){var P=function(V){var z=V.getPrefixCls,X=j.prefixCls,G=j.className,le=j.active,Y=z("skeleton",X),me=Object(b.default)(j,["prefixCls"]),we=i()(Y,G,"".concat(Y,"-element"),f()({},"".concat(Y,"-active"),le));return c.createElement("div",{className:we},c.createElement(p,m()({prefixCls:"".concat(Y,"-button")},me)))};return c.createElement(s.a,null,P)};S.defaultProps={size:"default"};var x=S,T=function(j){var P=function(V){var z=V.getPrefixCls,X=j.prefixCls,G=j.className,le=j.active,Y=z("skeleton",X),me=Object(b.default)(j,["prefixCls"]),we=i()(Y,G,"".concat(Y,"-element"),f()({},"".concat(Y,"-active"),le));return c.createElement("div",{className:we},c.createElement(p,m()({prefixCls:"".concat(Y,"-input")},me)))};return c.createElement(s.a,null,P)};T.defaultProps={size:"default"};var L=T,y="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",C=function(j){var P=function(V){var z=V.getPrefixCls,X=j.prefixCls,G=j.className,le=j.style,Y=z("skeleton",X),me=i()(Y,G,"".concat(Y,"-element"));return c.createElement("div",{className:me},c.createElement("div",{className:i()("".concat(Y,"-image"),G),style:le},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(Y,"-image-svg")},c.createElement("path",{d:y,className:"".concat(Y,"-image-path")}))))};return c.createElement(s.a,null,P)},O=C;function N(U){return U&&h()(U)==="object"?U:{}}function k(U,j){return U&&!j?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function F(U,j){return!U&&j?{width:"38%"}:U&&j?{width:"50%"}:{}}function B(U,j){var P={};return(!U||!j)&&(P.width="61%"),!U&&j?P.rows=3:P.rows=2,P}var H=function(j){var P=function(V){var z=V.getPrefixCls,X=V.direction,G=j.prefixCls,le=j.loading,Y=j.className,me=j.children,we=j.avatar,pe=j.title,Fe=j.paragraph,Xe=j.active,dt=j.round,Ee=z("skeleton",G);if(le||!("loading"in j)){var Se,at=!!we,_e=!!pe,ce=!!Fe,ee;if(at){var se=m()(m()({prefixCls:"".concat(Ee,"-avatar")},k(_e,ce)),N(we));ee=c.createElement("div",{className:"".concat(Ee,"-header")},c.createElement(p,se))}var ke;if(_e||ce){var Ce;if(_e){var ze=m()(m()({prefixCls:"".concat(Ee,"-title")},F(at,ce)),N(pe));Ce=c.createElement(a,ze)}var Oe;if(ce){var ae=m()(m()({prefixCls:"".concat(Ee,"-paragraph")},B(at,_e)),N(Fe));Oe=c.createElement(t,ae)}ke=c.createElement("div",{className:"".concat(Ee,"-content")},Ce,Oe)}var ge=i()(Ee,Y,(Se={},f()(Se,"".concat(Ee,"-with-avatar"),at),f()(Se,"".concat(Ee,"-active"),Xe),f()(Se,"".concat(Ee,"-rtl"),X==="rtl"),f()(Se,"".concat(Ee,"-round"),dt),Se));return c.createElement("div",{className:ge},ee,ke)}return me};return c.createElement(s.a,null,P)};H.defaultProps={avatar:!1,title:!0,paragraph:!0},H.Button=x,H.Avatar=E,H.Input=L,H.Image=O;var W=H,R=_.a=W},"/iHx":function(D,_,e){var g=e("6GrX"),f=e("IwbS"),A=["textStyle","color"],m={getTextColor:function(v){var h=this.ecModel;return this.getShallow("color")||(!v&&h?h.get(A):null)},getFont:function(){return f.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(v){return g.getBoundingRect(v,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};D.exports=m},"/kpp":function(D,_,e){"use strict";var g=e("lSNA"),f=e.n(g),A=e("pVnL"),m=e.n(A),v=e("cDf5"),h=e.n(v),c=e("q1tI"),o=e.n(c),i=e("TSYQ"),n=e.n(i),a=e("o/2+"),u=e("H84U"),r=function(s,d){var p={};for(var b in s)Object.prototype.hasOwnProperty.call(s,b)&&d.indexOf(b)<0&&(p[b]=s[b]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(s);w0?{paddingLeft:K[0]/2,paddingRight:K[0]/2}:{}),K[1]>0?{paddingTop:K[1]/2,paddingBottom:K[1]/2}:{}),V)),B&&(V.flex=l(B)),c.createElement("div",m()({},W,{style:V,className:j,ref:d}),F)})};return c.createElement(u.a,null,p)});t.displayName="Col",_.a=t},"/ry/":function(D,_,e){var g=e("bYtY"),f=e("T4UG"),A=e("5GhG"),m=A.seriesModelMixin,v=f.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});g.mixin(v,m,!0);var h=v;D.exports=h},"/stD":function(D,_,e){var g=e("bYtY"),f=e("IUWy"),A=e("Kagy"),m=A.toolbox.brush;function v(o,i,n){this.model=o,this.ecModel=i,this.api=n,this._brushType,this._brushMode}v.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:g.clone(m.title)};var h=v.prototype;h.render=h.updateView=function(o,i,n){var a,u,r;i.eachComponent({mainType:"brush"},function(l){a=l.brushType,u=l.brushOption.brushMode||"single",r|=l.areas.length}),this._brushType=a,this._brushMode=u,g.each(o.get("type",!0),function(l){o.setIconStatus(l,(l==="keep"?u==="multiple":l==="clear"?r:l===a)?"emphasis":"normal")})},h.getIcons=function(){var o=this.model,i=o.get("icon",!0),n={};return g.each(o.get("type",!0),function(a){i[a]&&(n[a]=i[a])}),n},h.onclick=function(o,i,n){var a=this._brushType,u=this._brushMode;n==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?a:a===n?!1:n,brushMode:n==="keep"?u==="multiple"?"single":"multiple":u}})},f.register("brush",v);var c=v;D.exports=c},"/wGt":function(D,_,e){"use strict";var g=e("lSNA"),f=e.n(g),A=e("pVnL"),m=e.n(A),v=e("lwsE"),h=e.n(v),c=e("W8MJ"),o=e.n(c),i=e("PJYZ"),n=e.n(i),a=e("7W2i"),u=e.n(a),r=e("LQ03"),l=e.n(r),t=e("q1tI"),s=e("Ff2n"),d=e("1OyB"),p=e("vuIU"),b=e("Ji7U"),w=e("md7G"),E=e("foSv"),S=e("1W/9"),x=e("rePB"),T=e("JX7q"),L=e("TSYQ"),y=e.n(L),C=e("qx4F"),O=e("4IlW");function N(Ce){return Array.isArray(Ce)?Ce:[Ce]}var k={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},F=Object.keys(k).filter(function(Ce){if(typeof document=="undefined")return!1;var ze=document.getElementsByTagName("html")[0];return Ce in(ze?ze.style:{})})[0],B=k[F];function H(Ce,ze,Oe,ae){Ce.addEventListener?Ce.addEventListener(ze,Oe,ae):Ce.attachEvent&&Ce.attachEvent("on".concat(ze),Oe)}function W(Ce,ze,Oe,ae){Ce.removeEventListener?Ce.removeEventListener(ze,Oe,ae):Ce.attachEvent&&Ce.detachEvent("on".concat(ze),Oe)}function R(Ce,ze){var Oe=typeof Ce=="function"?Ce(ze):Ce;return Array.isArray(Oe)?Oe.length===2?Oe:[Oe[0],Oe[1]]:[Oe]}var U=function(ze){return!isNaN(parseFloat(ze))&&isFinite(ze)},j=!(typeof window!="undefined"&&window.document&&window.document.createElement),P=function Ce(ze,Oe,ae,ge){if(!Oe||Oe===document||Oe instanceof Document)return!1;if(Oe===ze.parentNode)return!0;var Le=Math.max(Math.abs(ae),Math.abs(ge))===Math.abs(ge),Ze=Math.max(Math.abs(ae),Math.abs(ge))===Math.abs(ae),vt=Oe.scrollHeight-Oe.clientHeight,Ct=Oe.scrollWidth-Oe.clientWidth,Be=document.defaultView.getComputedStyle(Oe),Rt=Be.overflowY==="auto"||Be.overflowY==="scroll",He=Be.overflowX==="auto"||Be.overflowX==="scroll",wt=vt&&Rt,Ge=Ct&&He;return Le&&(!wt||wt&&(Oe.scrollTop>=vt&&ge<0||Oe.scrollTop<=0&&ge>0))||Ze&&(!Ge||Ge&&(Oe.scrollLeft>=Ct&&ae<0||Oe.scrollLeft<=0&&ae>0))?Ce(ze,Oe.parentNode,ae,ge):!1};function K(Ce){var ze=V();return function(){var ae=Object(E.a)(Ce),ge;if(ze){var Le=Object(E.a)(this).constructor;ge=Reflect.construct(ae,arguments,Le)}else ge=ae.apply(this,arguments);return Object(w.a)(this,ge)}}function V(){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(Ce){return!1}}var z={},X=function(Ce){Object(b.a)(Oe,Ce);var ze=K(Oe);function Oe(ae){var ge;return Object(d.a)(this,Oe),ge=ze.call(this,ae),ge.domFocus=function(){ge.dom&&ge.dom.focus()},ge.removeStartHandler=function(Le){if(Le.touches.length>1)return;ge.startPos={x:Le.touches[0].clientX,y:Le.touches[0].clientY}},ge.removeMoveHandler=function(Le){if(Le.changedTouches.length>1)return;var Ze=Le.currentTarget,vt=Le.changedTouches[0].clientX-ge.startPos.x,Ct=Le.changedTouches[0].clientY-ge.startPos.y;(Ze===ge.maskDom||Ze===ge.handlerDom||Ze===ge.contentDom&&P(Ze,Le.target,vt,Ct))&&Le.cancelable&&Le.preventDefault()},ge.transitionEnd=function(Le){var Ze=Le.target;W(Ze,B,ge.transitionEnd),Ze.style.transition=""},ge.onKeyDown=function(Le){if(Le.keyCode===O.a.ESC){var Ze=ge.props.onClose;Le.stopPropagation(),Ze&&Ze(Le)}},ge.onWrapperTransitionEnd=function(Le){var Ze=ge.props,vt=Ze.open,Ct=Ze.afterVisibleChange;Le.target===ge.contentWrapper&&Le.propertyName.match(/transform$/)&&(ge.dom.style.transition="",!vt&&ge.getCurrentDrawerSome()&&(document.body.style.overflowX="",ge.maskDom&&(ge.maskDom.style.left="",ge.maskDom.style.width="")),Ct&&Ct(!!vt))},ge.openLevelTransition=function(){var Le=ge.props,Ze=Le.open,vt=Le.width,Ct=Le.height,Be=ge.getHorizontalBoolAndPlacementName(),Rt=Be.isHorizontal,He=Be.placementName,wt=ge.contentDom?ge.contentDom.getBoundingClientRect()[Rt?"width":"height"]:0,Ge=(Rt?vt:Ct)||wt;ge.setLevelAndScrolling(Ze,He,Ge)},ge.setLevelTransform=function(Le,Ze,vt,Ct){var Be=ge.props,Rt=Be.placement,He=Be.levelMove,wt=Be.duration,Ge=Be.ease,et=Be.showMask;ge.levelDom.forEach(function(rt){rt.style.transition="transform ".concat(wt," ").concat(Ge),H(rt,B,ge.transitionEnd);var lt=Le?vt:0;if(He){var Ve=R(He,{target:rt,open:Le});lt=Le?Ve[0]:Ve[1]||0}var ie=typeof lt=="number"?"".concat(lt,"px"):lt,$=Rt==="left"||Rt==="top"?ie:"-".concat(ie);$=et&&Rt==="right"&&Ct?"calc(".concat($," + ").concat(Ct,"px)"):$,rt.style.transform=lt?"".concat(Ze,"(").concat($,")"):""})},ge.setLevelAndScrolling=function(Le,Ze,vt){var Ct=ge.props.onChange;if(!j){var Be=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(C.a)(!0):0;ge.setLevelTransform(Le,Ze,vt,Be),ge.toggleScrollingToDrawerAndBody(Be)}Ct&&Ct(Le)},ge.toggleScrollingToDrawerAndBody=function(Le){var Ze=ge.props,vt=Ze.getOpenCount,Ct=Ze.getContainer,Be=Ze.showMask,Rt=Ze.open,He=Ct&&Ct(),wt=vt&&vt();if(He&&He.parentNode===document.body&&Be){var Ge=["touchstart"],et=[document.body,ge.maskDom,ge.handlerDom,ge.contentDom];Rt&&document.body.style.overflow!=="hidden"?(Le&&ge.addScrollingEffect(Le),wt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",et.forEach(function(rt,lt){if(!rt)return;H(rt,Ge[lt]||"touchmove",lt?ge.removeMoveHandler:ge.removeStartHandler,ge.passive)})):ge.getCurrentDrawerSome()&&(wt||(document.body.style.overflow=""),document.body.style.touchAction="",Le&&ge.remScrollingEffect(Le),et.forEach(function(rt,lt){if(!rt)return;W(rt,Ge[lt]||"touchmove",lt?ge.removeMoveHandler:ge.removeStartHandler,ge.passive)}))}},ge.addScrollingEffect=function(Le){var Ze=ge.props,vt=Ze.placement,Ct=Ze.duration,Be=Ze.ease,Rt=Ze.getOpenCount,He=Ze.switchScrollingEffect,wt=Rt&&Rt();wt===1&&He();var Ge="width ".concat(Ct," ").concat(Be),et="transform ".concat(Ct," ").concat(Be);ge.dom.style.transition="none";switch(vt){case"right":ge.dom.style.transform="translateX(-".concat(Le,"px)");break;case"top":case"bottom":ge.dom.style.width="calc(100% - ".concat(Le,"px)"),ge.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(ge.timeout),ge.timeout=setTimeout(function(){ge.dom&&(ge.dom.style.transition="".concat(et,",").concat(Ge),ge.dom.style.width="",ge.dom.style.transform="")})},ge.remScrollingEffect=function(Le){var Ze=ge.props,vt=Ze.placement,Ct=Ze.duration,Be=Ze.ease,Rt=Ze.getOpenCount,He=Ze.switchScrollingEffect,wt=Rt&&Rt();wt||He(!0),F&&(document.body.style.overflowX="hidden"),ge.dom.style.transition="none";var Ge,et="width ".concat(Ct," ").concat(Be),rt="transform ".concat(Ct," ").concat(Be);switch(vt){case"left":{ge.dom.style.width="100%",et="width 0s ".concat(Be," ").concat(Ct);break}case"right":{ge.dom.style.transform="translateX(".concat(Le,"px)"),ge.dom.style.width="100%",et="width 0s ".concat(Be," ").concat(Ct),ge.maskDom&&(ge.maskDom.style.left="-".concat(Le,"px"),ge.maskDom.style.width="calc(100% + ".concat(Le,"px)"));break}case"top":case"bottom":{ge.dom.style.width="calc(100% + ".concat(Le,"px)"),ge.dom.style.height="100%",ge.dom.style.transform="translateZ(0)",Ge="height 0s ".concat(Be," ").concat(Ct);break}default:break}clearTimeout(ge.timeout),ge.timeout=setTimeout(function(){ge.dom&&(ge.dom.style.transition="".concat(rt,",").concat(Ge?"".concat(Ge,","):"").concat(et),ge.dom.style.transform="",ge.dom.style.width="",ge.dom.style.height="")})},ge.getCurrentDrawerSome=function(){return!Object.keys(z).some(function(Le){return z[Le]})},ge.getLevelDom=function(Le){var Ze=Le.level,vt=Le.getContainer;if(j)return;var Ct=vt&&vt(),Be=Ct?Ct.parentNode:null;if(ge.levelDom=[],Ze==="all"){var Rt=Be?Array.prototype.slice.call(Be.children):[];Rt.forEach(function(He){He.nodeName!=="SCRIPT"&&He.nodeName!=="STYLE"&&He.nodeName!=="LINK"&&He!==Ct&&ge.levelDom.push(He)})}else Ze&&N(Ze).forEach(function(He){document.querySelectorAll(He).forEach(function(wt){ge.levelDom.push(wt)})})},ge.getHorizontalBoolAndPlacementName=function(){var Le=ge.props.placement,Ze=Le==="left"||Le==="right",vt="translate".concat(Ze?"X":"Y");return{isHorizontal:Ze,placementName:vt}},ge.state={_self:Object(T.a)(ge)},ge}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){var ge=this;if(!j){var Le=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Le=!0,null}}))}catch(Rt){}this.passive=Le?{passive:!1}:!1}var Ze=this.props,vt=Ze.open,Ct=Ze.getContainer,Be=Ct&&Ct();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),vt&&(Be&&Be.parentNode===document.body&&(z[this.drawerId]=vt),this.openLevelTransition(),this.forceUpdate(function(){ge.domFocus()}))}},{key:"componentDidUpdate",value:function(ge){var Le=this.props,Ze=Le.open,vt=Le.getContainer,Ct=vt&&vt();Ze!==ge.open&&(Ze&&this.domFocus(),Ct&&Ct.parentNode===document.body&&(z[this.drawerId]=!!Ze),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var ge=this.props,Le=ge.getOpenCount,Ze=ge.open,vt=ge.switchScrollingEffect,Ct=typeof Le=="function"&&Le();delete z[this.drawerId],Ze&&(this.setLevelTransform(!1),document.body.style.touchAction=""),Ct||(document.body.style.overflow="",vt(!0))}},{key:"render",value:function(){var ge,Le=this,Ze=this.props,vt=Ze.className,Ct=Ze.children,Be=Ze.style,Rt=Ze.width,He=Ze.height,wt=Ze.defaultOpen,Ge=Ze.open,et=Ze.prefixCls,rt=Ze.placement,lt=Ze.level,Ve=Ze.levelMove,ie=Ze.ease,$=Ze.duration,it=Ze.getContainer,Qe=Ze.handler,ye=Ze.onChange,Zt=Ze.afterVisibleChange,ht=Ze.showMask,ct=Ze.maskClosable,yt=Ze.maskStyle,It=Ze.onClose,or=Ze.onHandleClick,Bt=Ze.keyboard,Ae=Ze.getOpenCount,ve=Ze.switchScrollingEffect,fe=Object(s.a)(Ze,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"]),ue=this.dom?Ge:!1,Ne=y()(et,(ge={},Object(x.a)(ge,"".concat(et,"-").concat(rt),!0),Object(x.a)(ge,"".concat(et,"-open"),ue),Object(x.a)(ge,vt||"",!!vt),Object(x.a)(ge,"no-mask",!ht),ge)),je=this.getHorizontalBoolAndPlacementName(),Ke=je.placementName,Ye=rt==="left"||rt==="top"?"-100%":"100%",Pe=ue?"":"".concat(Ke,"(").concat(Ye,")"),nt=Qe&&t.cloneElement(Qe,{onClick:function(Ot){Qe.props.onClick&&Qe.props.onClick(),or&&or(Ot)},ref:function(Ot){Le.handlerDom=Ot}});return t.createElement("div",Object.assign({},fe,{tabIndex:-1,className:Ne,style:Be,ref:function(Ot){Le.dom=Ot},onKeyDown:ue&&Bt?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),ht&&t.createElement("div",{className:"".concat(et,"-mask"),onClick:ct?It:void 0,style:yt,ref:function(Ot){Le.maskDom=Ot}}),t.createElement("div",{className:"".concat(et,"-content-wrapper"),style:{transform:Pe,msTransform:Pe,width:U(Rt)?"".concat(Rt,"px"):Rt,height:U(He)?"".concat(He,"px"):He},ref:function(Ot){Le.contentWrapper=Ot}},t.createElement("div",{className:"".concat(et,"-content"),ref:function(Ot){Le.contentDom=Ot},onTouchStart:ue&&ht?this.removeStartHandler:void 0,onTouchMove:ue&&ht?this.removeMoveHandler:void 0},Ct),nt))}}],[{key:"getDerivedStateFromProps",value:function(ge,Le){var Ze=Le.prevProps,vt=Le._self,Ct={prevProps:ge};if(Ze!==void 0){var Be=ge.placement,Rt=ge.level;Be!==Ze.placement&&(vt.contentDom=null),Rt!==Ze.level&&vt.getLevelDom(ge)}return Ct}}]),Oe}(t.Component);X.defaultProps={switchScrollingEffect:function(){}};var G=X;function le(Ce){var ze=Y();return function(){var ae=Object(E.a)(Ce),ge;if(ze){var Le=Object(E.a)(this).constructor;ge=Reflect.construct(ae,arguments,Le)}else ge=ae.apply(this,arguments);return Object(w.a)(this,ge)}}function Y(){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(Ce){return!1}}var me=function(Ce){Object(b.a)(Oe,Ce);var ze=le(Oe);function Oe(ae){var ge;Object(d.a)(this,Oe),ge=ze.call(this,ae),ge.onHandleClick=function(Ze){var vt=ge.props,Ct=vt.onHandleClick,Be=vt.open;if(Ct&&Ct(Ze),typeof Be=="undefined"){var Rt=ge.state.open;ge.setState({open:!Rt})}},ge.onClose=function(Ze){var vt=ge.props,Ct=vt.onClose,Be=vt.open;Ct&&Ct(Ze),typeof Be=="undefined"&&ge.setState({open:!1})};var Le=typeof ae.open!="undefined"?ae.open:!!ae.defaultOpen;return ge.state={open:Le},"onMaskClick"in ae&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),ge}return Object(p.a)(Oe,[{key:"render",value:function(){var ge=this,Le=this.props,Ze=Le.defaultOpen,vt=Le.getContainer,Ct=Le.wrapperClassName,Be=Le.forceRender,Rt=Le.handler,He=Object(s.a)(Le,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),wt=this.state.open;if(!vt)return t.createElement("div",{className:Ct,ref:function(rt){ge.dom=rt}},t.createElement(G,Object.assign({},He,{open:wt,handler:Rt,getContainer:function(){return ge.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ge=!!Rt||Be;return t.createElement(S.a,{visible:wt,forceRender:Ge,getContainer:vt,wrapperClassName:Ct},function(et){var rt=et.visible,lt=et.afterClose,Ve=Object(s.a)(et,["visible","afterClose"]);return t.createElement(G,Object.assign({},He,Ve,{open:rt!==void 0?rt:wt,afterVisibleChange:lt!==void 0?lt:He.afterVisibleChange,handler:Rt,onClose:ge.onClose,onHandleClick:ge.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(ge,Le){var Ze=Le.prevProps,vt={prevProps:ge};return typeof Ze!="undefined"&&ge.open!==Ze.open&&(vt.open=ge.open),vt}}]),Oe}(t.Component);me.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:t.createElement("div",{className:"drawer-handle"},t.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var we=me,pe=we,Fe=e("V/uB"),Xe=e.n(Fe),dt=e("BGR+"),Ee=e("H84U"),Se=e("CWQg"),at=function(Ce,ze){var Oe={};for(var ae in Ce)Object.prototype.hasOwnProperty.call(Ce,ae)&&ze.indexOf(ae)<0&&(Oe[ae]=Ce[ae]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,ae=Object.getOwnPropertySymbols(Ce);ge=0&&f.each(E,function(S){t.setIconStatus(S,"normal")})}),t.setIconStatus(l,"emphasis"),u.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},p);var b;if(l==="stack"){var w=d.series&&d.series[0]&&d.series[0].stack===h;b=w?f.merge({stack:v.title.tiled},v.title):f.clone(v.title)}r.dispatchAction({type:"changeMagicType",currentType:l,newOption:d,newTitle:b,featureName:"magicType"})},g.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(u,r){r.mergeOption(u.newOption)}),m.register("magicType",c);var a=c;D.exports=a},"06Qe":function(D,_,e){var g=e("ItGF"),f="urn:schemas-microsoft-com:vml",A=typeof window=="undefined"?null:window,m=!1,v=A&&A.document;function h(i){return c(i)}var c;if(v&&!g.canvasSupported)try{!v.namespaces.zrvml&&v.namespaces.add("zrvml",f),c=function(n){return v.createElement("')}}catch(i){c=function(a){return v.createElement("<"+a+' xmlns="'+f+'" class="zrvml">')}}function o(){if(m||!v)return;m=!0;var i=v.styleSheets;i.length<31?v.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):i[0].addRule(".zrvml","behavior:url(#default#VML)")}_.doc=v,_.createNode=h,_.initVML=o},"09Wf":function(D,_,e){"use strict";e.d(_,"b",function(){return f}),e.d(_,"a",function(){return A});var g=e("CWQg"),f=Object(g.a)("success","processing","error","default","warning"),A=Object(g.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(D,_,e){var g=e("T4UG"),f=e("I3/A"),A=e("7aKB"),m=A.encodeHTML,v=e("Qxkt"),h=e("Tghj"),c=h.__DEV__,o=g.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(n,a){for(var u=n.edges||n.links,r=n.data||n.nodes,l=n.levels,t=this.levelModels={},s=0;s=0&&(t[l[s].depth]=new v(l[s],this,a));if(r&&u){var d=f(r,u,this,!0,p);return d.data}function p(b,w){b.wrapMethod("getItemModel",function(E,S){return E.customizeGetParent(function(x){var T=this.parentModel,L=T.getData().getItemLayout(S).depth,y=T.levelModels[L];return y||this.parentModel}),E}),w.wrapMethod("getItemModel",function(E,S){return E.customizeGetParent(function(x){var T=this.parentModel,L=T.getGraph().getEdgeByIndex(S),y=L.node1.getLayout().depth,C=T.levelModels[y];return C||this.parentModel}),E})}},setNodePosition:function(n,a){var u=this.option.data[n];u.localX=a[0],u.localY=a[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(n,a,u){if(u==="edge"){var r=this.getDataParams(n,u),l=r.data,t=l.source+" -- "+l.target;return r.value&&(t+=" : "+r.value),m(t)}else if(u==="node"){var s=this.getGraph().getNodeByIndex(n),d=s.getLayout().value,p=this.getDataParams(n,u).data.name;if(d)var t=p+" : "+d;return m(t)}return o.superCall(this,"formatTooltip",n,a)},optionUpdated:function(){var n=this.option;n.focusNodeAdjacency===!0&&(n.focusNodeAdjacency="allEdges")},getDataParams:function(n,a){var u=o.superCall(this,"getDataParams",n,a);if(u.value==null&&a==="node"){var r=this.getGraph().getNodeByIndex(n),l=r.getLayout().value;u.value=l}return u},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),i=o;D.exports=i},"0Cz8":function(D,_,e){var g=e("Xi7e"),f=e("ebwN"),A=e("e4Nc"),m=200;function v(h,c){var o=this.__data__;if(o instanceof g){var i=o.__data__;if(!f||i.length=u.start.time&&a.timel.end.time&&i.reverse(),i},_getRangeInfo:function(i){i=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];var n;i[0].time>i[1].time&&(n=!0,i.reverse());var a=Math.floor(i[1].time/v)-Math.floor(i[0].time/v)+1,u=new Date(i[0].time),r=u.getDate(),l=i[1].date.getDate();u.setDate(r+a-1);var t=u.getDate();if(t!==l)for(var s=u.getTime()-i[1].time>0?1:-1;(t=u.getDate())!==l&&(u.getTime()-i[1].time)*s>0;)a-=s,u.setDate(t-s);var d=Math.floor((a+i[0].day+6)/7),p=n?-d+1:d-1;return n&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:a,weeks:d,nthWeek:p,fweek:i[0].day,lweek:i[1].day}},_getDateByWeeksAndDay:function(i,n,a){var u=this._getRangeInfo(a);if(i>u.weeks||i===0&&nu.lweek)return!1;var r=(i-1)*7-u.fweek+n,l=new Date(u.start.time);return l.setDate(u.start.d+r),this.getDateInfo(l)}},h.dimensions=h.prototype.dimensions,h.getDimensionsInfo=h.prototype.getDimensionsInfo,h.create=function(i,n){var a=[];return i.eachComponent("calendar",function(u){var r=new h(u,i,n);a.push(r),u.coordinateSystem=r}),i.eachSeries(function(u){u.get("coordinateSystem")==="calendar"&&(u.coordinateSystem=a[u.get("calendarIndex")||0])}),a};function c(i,n,a,u){var r=a.calendarModel,l=a.seriesModel,t=r?r.coordinateSystem:l?l.coordinateSystem:null;return t===this?t[i](u):null}m.register("calendar",h);var o=h;D.exports=o},"0JQy":function(D,_){var e="\\ud800-\\udfff",g="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",A="\\u20d0-\\u20ff",m=g+f+A,v="\\ufe0e\\ufe0f",h="["+e+"]",c="["+m+"]",o="\\ud83c[\\udffb-\\udfff]",i="(?:"+c+"|"+o+")",n="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",r="\\u200d",l=i+"?",t="["+v+"]?",s="(?:"+r+"(?:"+[n,a,u].join("|")+")"+t+l+")*",d=t+l+s,p="(?:"+[n+c+"?",c,a,u,h].join("|")+")",b=RegExp(o+"(?="+o+")|"+p+d,"g");function w(E){return E.match(b)||[]}D.exports=w},"0NbB":function(D,_,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},A=f,m=e("6VBw"),v=function(o,i){return g.createElement(m.a,Object.assign({},o,{ref:i,icon:A}))};v.displayName="CaretDownOutlined";var h=_.a=g.forwardRef(v)},"0V0F":function(D,_,e){var g=e("bYtY"),f=g.createHashMap,A=g.each;function m(h){var c=f();h.eachSeries(function(o){var i=o.get("stack");if(i){var n=c.get(i)||c.set(i,[]),a=o.getData(),u={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:o};if(!u.stackedDimension||!(u.isStackedByIndex||u.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(u)}}),c.each(v)}function v(h){A(h,function(c,o){var i=[],n=[NaN,NaN],a=[c.stackResultDimension,c.stackedOverDimension],u=c.data,r=c.isStackedByIndex,l=u.map(a,function(t,s,d){var p=u.get(c.stackedDimension,d);if(isNaN(p))return n;var b,w;r?w=u.getRawIndex(d):b=u.get(c.stackedByDimension,d);for(var E=NaN,S=o-1;S>=0;S--){var x=h[S];if(r||(w=x.data.rawIndexOf(x.stackedByDimension,b)),w>=0){var T=x.data.getByRawIndex(x.stackResultDimension,w);if(p>=0&&T>0||p<=0&&T<0){p+=T,E=T;break}}}return i[0]=p,i[1]=E,i});u.hostModel.setData(l),c.data=l})}D.exports=m},"0XgM":function(D,_,e){},"0fbx":function(D,_,e){},"0o9m":function(D,_,e){var g=e("ProS");e("hNWo"),e("RlCK"),e("XpcN");var f=e("kDyi"),A=e("bLfw");g.registerProcessor(g.PRIORITY.PROCESSOR.SERIES_FILTER,f),A.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(D,_,e){var g=e("ProS");g.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),g.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(D,_){var e=arguments[3],g=arguments[4],f=arguments[5],A=JSON.stringify;D.exports=function(m,v){for(var h,c=Object.keys(f),o=0,i=c.length;o=0;S--){var x;if(w[S]!==b&&!w[S].ignore&&(x=r(w[S],d,p))&&(!E.topTarget&&(E.topTarget=w[S]),x!==c)){E.target=w[S];break}}return E},processGesture:function(d,p){this._gestureMgr||(this._gestureMgr=new h);var b=this._gestureMgr;p==="start"&&b.clear();var w=b.recognize(d,this.findHover(d.zrX,d.zrY,null).target,this.proxy.dom);if(p==="end"&&b.clear(),w){var E=w.type;d.gestureEvent=E,this.dispatchToElement({target:w.target},E,w.event)}}},g.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){u.prototype[s]=function(d){var p=d.zrX,b=d.zrY,w=l(this,p,b),E,S;if((s!=="mouseup"||!w)&&(E=this.findHover(p,b),S=E.target),s==="mousedown")this._downEl=S,this._downPoint=[d.zrX,d.zrY],this._upEl=S;else if(s==="mouseup")this._upEl=S;else if(s==="click"){if(this._downEl!==this._upEl||!this._downPoint||f.dist(this._downPoint,[d.zrX,d.zrY])>4)return;this._downPoint=null}this.dispatchToElement(E,s,d)}});function r(s,d,p){if(s[s.rectHover?"rectContain":"contain"](d,p)){for(var b=s,w;b;){if(b.clipPath&&!b.clipPath.contain(d,p))return!1;b.silent&&(w=!0),b=b.parent}return w?c:!0}return!1}function l(s,d,p){var b=s.painter;return d<0||d>b.getWidth()||p<0||p>b.getHeight()}g.mixin(u,m),g.mixin(u,A);var t=u;D.exports=t},"0ycA":function(D,_){function e(){return[]}D.exports=e},"10cm":function(D,_,e){var g=e("ProS"),f=e("2B6p"),A=f.updateCenterAndZoom;e("0qV/");var m={type:"graphRoam",event:"graphRoam",update:"none"};g.registerAction(m,function(v,h){h.eachComponent({mainType:"series",query:v},function(c){var o=c.coordinateSystem,i=A(o,v);c.setCenter&&c.setCenter(i.center),c.setZoom&&c.setZoom(i.zoom)})})},"14J3":function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),A=e("1GLa")},"15/o":function(D,_,e){},"19Vz":function(D,_,e){(function(g){g(e("VrN/"))})(function(g){g.defineOption("placeholder","",function(o,i,n){var a=n&&n!=g.Init;if(i&&!a)o.on("blur",v),o.on("change",h),o.on("swapDoc",h),g.on(o.getInputField(),"compositionupdate",o.state.placeholderCompose=function(){m(o)}),h(o);else if(!i&&a){o.off("blur",v),o.off("change",h),o.off("swapDoc",h),g.off(o.getInputField(),"compositionupdate",o.state.placeholderCompose),f(o);var u=o.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}i&&!o.hasFocus()&&v(o)});function f(o){o.state.placeholder&&(o.state.placeholder.parentNode.removeChild(o.state.placeholder),o.state.placeholder=null)}function A(o){f(o);var i=o.state.placeholder=document.createElement("pre");i.style.cssText="height: 0; overflow: visible",i.style.direction=o.getOption("direction"),i.className="CodeMirror-placeholder CodeMirror-line-like";var n=o.getOption("placeholder");typeof n=="string"&&(n=document.createTextNode(n)),i.appendChild(n),o.display.lineSpace.insertBefore(i,o.display.lineSpace.firstChild)}function m(o){setTimeout(function(){var i=!1,n=o.getInputField();n.nodeName=="TEXTAREA"?i=!n.value:o.lineCount()==1&&(i=!/[^\u200b]/.test(n.querySelector(".CodeMirror-line").textContent)),i?A(o):f(o)},20)}function v(o){c(o)&&A(o)}function h(o){var i=o.getWrapperElement(),n=c(o);i.className=i.className.replace(" CodeMirror-empty","")+(n?" CodeMirror-empty":""),n?A(o):f(o)}function c(o){return o.lineCount()===1&&o.getLine(0)===""}})},"1GLa":function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),A=e("FIfw"),m=e.n(A)},"1Jh7":function(D,_,e){var g=e("y+Vt"),f=e("T6xi"),A=g.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(v,h){f.buildPath(v,h,!1)}});D.exports=A},"1LEl":function(D,_,e){var g=e("ProS"),f=e("F9bG"),A=g.extendComponentView({type:"axisPointer",render:function(v,h,c){var o=h.getComponent("tooltip"),i=v.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";f.register("axisPointer",c,function(n,a,u){i!=="none"&&(n==="leave"||i.indexOf(n)>=0)&&u({type:"updateAxisPointer",currTrigger:n,x:a&&a.offsetX,y:a&&a.offsetY})})},remove:function(v,h){f.unregister(h.getZr(),"axisPointer"),A.superApply(this._model,"remove",arguments)},dispose:function(v,h){f.unregister("axisPointer",h),A.superApply(this._model,"dispose",arguments)}}),m=A;D.exports=m},"1MYJ":function(D,_,e){var g=e("y+Vt"),f=g.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var m=this.__dirtyPath,v=this.shape.paths,h=0;h=S||k<0)break;if(a(B)){if(O){k+=x;continue}break}if(k===w)p[x>0?"moveTo":"lineTo"](B[0],B[1]);else if(y>0){var H=b[N],W=C==="y"?1:0,R=(B[W]-H[W])*y;c(i,H),i[W]=H[W]+R,c(n,B),n[W]=B[W]-R,p.bezierCurveTo(i[0],i[1],n[0],n[1],B[0],B[1])}else p.lineTo(B[0],B[1]);N=k,k+=x}return F}function l(p,b,w,E,S,x,T,L,y,C,O){for(var N=0,k=w,F=0;F=S||k<0)break;if(a(B)){if(O){k+=x;continue}break}if(k===w)p[x>0?"moveTo":"lineTo"](B[0],B[1]),c(i,B);else if(y>0){var H=k+x,W=b[H];if(O)for(;W&&a(b[H]);)H+=x,W=b[H];var R=.5,U=b[N],W=b[H];if(!W||a(W))c(n,B);else{a(W)&&!O&&(W=B),f.sub(o,W,U);var j,P;if(C==="x"||C==="y"){var K=C==="x"?0:1;j=Math.abs(B[K]-U[K]),P=Math.abs(B[K]-W[K])}else j=f.dist(B,U),P=f.dist(B,W);R=P/(P+j),h(n,B,o,-y*(1-R))}m(i,i,L),v(i,i,T),m(n,n,L),v(n,n,T),p.bezierCurveTo(i[0],i[1],n[0],n[1],B[0],B[1]),h(i,B,o,y*R)}else p.lineTo(B[0],B[1]);N=k,k+=x}return F}function t(p,b){var w=[Infinity,Infinity],E=[-Infinity,-Infinity];if(b)for(var S=0;SE[0]&&(E[0]=x[0]),x[1]>E[1]&&(E[1]=x[1])}return{min:b?w:E,max:b?E:w}}var s=g.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:A(g.prototype.brush),buildPath:function(p,b){var w=b.points,E=0,S=w.length,x=t(w,b.smoothConstraint);if(b.connectNulls){for(;S>0&&a(w[S-1]);S--);for(;E0&&a(w[x-1]);x--);for(;S=this._maxSize&&a>0){var r=o.head;o.remove(r),delete i[r.key],n=r.value,this._lastRemovedEntry=r}u?u.value=c:u=new f(c),u.key=h,o.insertEntry(u),i[h]=u}return n},m.get=function(h){var c=this._map[h],o=this._list;if(c!=null)return c!==o.tail&&(o.remove(c),o.insertEntry(c)),c.value},m.clear=function(){this._list.clear(),this._map={}};var v=A;D.exports=v},"1bdT":function(D,_,e){var g=e("3gBT"),f=e("H6uX"),A=e("DN4a"),m=e("vWvF"),v=e("bYtY"),h=function(i){A.call(this,i),f.call(this,i),m.call(this,i),this.id=i.id||g()};h.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(i,n){switch(this.draggable){case"horizontal":n=0;break;case"vertical":i=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=i,a[5]+=n,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(i,n){},attrKV:function(i,n){if(i==="position"||i==="scale"||i==="origin"){if(n){var a=this[i];a||(a=this[i]=[]),a[0]=n[0],a[1]=n[1]}}else this[i]=n},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(i,n){if(typeof i=="string")this.attrKV(i,n);else if(v.isObject(i))for(var a in i)i.hasOwnProperty(a)&&this.attrKV(a,i[a]);return this.dirty(!1),this},setClipPath:function(i){var n=this.__zr;n&&i.addSelfToZr(n),this.clipPath&&this.clipPath!==i&&this.removeClipPath(),this.clipPath=i,i.__zr=n,i.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var i=this.clipPath;i&&(i.__zr&&i.removeSelfFromZr(i.__zr),i.__zr=null,i.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(i){this.__zr=i;var n=this.animators;if(n)for(var a=0;a> RFB.constructor"),Le._screen=document.createElement("div"),Le._screen.style.display="flex",Le._screen.style.width="100%",Le._screen.style.height="100%",Le._screen.style.overflow="auto",Le._screen.style.background=V,Le._canvas=document.createElement("canvas"),Le._canvas.style.margin="auto",Le._canvas.style.outline="none",Le._canvas.style.flexShrink="0",Le._canvas.width=0,Le._canvas.height=0,Le._canvas.tabIndex=-1,Le._screen.appendChild(Le._canvas),Le._cursor=new r.default,Le._cursorImage=ze.cursors.none,Le._decoders[p.encodings.encodingRaw]=new b.default,Le._decoders[p.encodings.encodingCopyRect]=new w.default,Le._decoders[p.encodings.encodingRRE]=new E.default,Le._decoders[p.encodings.encodingHextile]=new S.default,Le._decoders[p.encodings.encodingTight]=new x.default,Le._decoders[p.encodings.encodingTightPNG]=new T.default;try{Le._display=new o.default(Le._canvas)}catch(Ze){throw f.Error("Display exception: "+Ze),Ze}return Le._display.onflush=Le._onFlush.bind(U(Le)),Le._keyboard=new a.default(Le._canvas),Le._keyboard.onkeyevent=Le._handleKeyEvent.bind(U(Le)),Le._gestures=new u.default,Le._sock=new l.default,Le._sock.on("message",function(){Le._handleMessage()}),Le._sock.on("open",function(){Le._rfbConnectionState==="connecting"&&Le._rfbInitState===""?(Le._rfbInitState="ProtocolVersion",f.Debug("Starting VNC handshake")):Le._fail("Unexpected server connection while "+Le._rfbConnectionState)}),Le._sock.on("close",function(Ze){f.Debug("WebSocket on-close event");var vt="";Ze.code&&(vt="(code: "+Ze.code,Ze.reason&&(vt+=", reason: "+Ze.reason),vt+=")");switch(Le._rfbConnectionState){case"connecting":Le._fail("Connection closed "+vt);break;case"connected":Le._updateConnectionState("disconnecting"),Le._updateConnectionState("disconnected");break;case"disconnecting":Le._updateConnectionState("disconnected");break;case"disconnected":Le._fail("Unexpected server disconnect when already disconnected "+vt);break;default:Le._fail("Unexpected server disconnect before connecting "+vt);break}Le._sock.off("close")}),Le._sock.on("error",function(Ze){return f.Warn("WebSocket on-error event")}),setTimeout(Le._updateConnectionState.bind(U(Le),"connecting")),f.Debug("<< RFB.constructor"),Le.dragViewport=!1,Le.focusOnClick=!0,Le._viewOnly=!1,Le._clipViewport=!1,Le._scaleViewport=!1,Le._resizeSession=!1,Le._showDotCursor=!1,ge.showDotCursor!==void 0&&(f.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Le._showDotCursor=ge.showDotCursor),Le._qualityLevel=6,Le._compressionLevel=2,Le}return F(ze,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(ae){this._rfbCredentials=ae,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;f.Info("Sending Ctrl-Alt-Del"),this.sendKey(s.default.XK_Control_L,"ControlLeft",!0),this.sendKey(s.default.XK_Alt_L,"AltLeft",!0),this.sendKey(s.default.XK_Delete,"Delete",!0),this.sendKey(s.default.XK_Delete,"Delete",!1),this.sendKey(s.default.XK_Alt_L,"AltLeft",!1),this.sendKey(s.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(ae,ge,Le){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Le===void 0){this.sendKey(ae,ge,!0),this.sendKey(ae,ge,!1);return}var Ze=d.default[ge];if(this._qemuExtKeyEventSupported&&Ze)ae=ae||0,f.Info("Sending key ("+(Le?"down":"up")+"): keysym "+ae+", scancode "+Ze),ze.messages.QEMUExtendedKeyEvent(this._sock,ae,Le,Ze);else{if(!ae)return;f.Info("Sending keysym ("+(Le?"down":"up")+"): "+ae),ze.messages.keyEvent(this._sock,ae,Le?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(ae){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[pe]&&this._clipboardServerCapabilitiesActions[ce])this._clipboardText=ae,ze.messages.extendedClipboardNotify(this._sock,[pe]);else{for(var ge=new Uint8Array(ae.length),Le=0;Le> RFB.connect"),f.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(ae){ae.name==="SyntaxError"?this._fail("Invalid host or port ("+ae+")"):this._fail("Error when opening socket ("+ae+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),f.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){f.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(ae){if(!(ae.name==="NotFoundError"))throw ae}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),f.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(ae){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(ae){this._fbName=ae,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(ae){var ge=this;window.requestAnimationFrame(function(){ge._updateClip(),ge._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var ae=this._display.clipViewport,ge=this._clipViewport;if(this._scaleViewport&&(ge=!1),ae!==ge&&(this._display.clipViewport=ge),ge){var Le=this._screenSize();this._display.viewportChangeSize(Le.w,Le.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var ae=this._screenSize();this._display.autoscale(ae.w,ae.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var ae=this._screenSize();ze.messages.setDesktopSize(this._sock,Math.floor(ae.w),Math.floor(ae.h),this._screenID,this._screenFlags),f.Debug("Requested new desktop size: "+ae.w+"x"+ae.h)}},{key:"_screenSize",value:function(){var ae=this._screen.getBoundingClientRect();return{w:ae.width,h:ae.height}}},{key:"_fixScrollbars",value:function(){var ae=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=ae}},{key:"_updateConnectionState",value:function(ae){var ge=this,Le=this._rfbConnectionState;if(ae===Le){f.Debug("Already in state '"+ae+"', ignoring");return}if(Le==="disconnected"){f.Error("Tried changing state of a disconnected RFB object");return}switch(ae){case"connected":if(Le!=="connecting"){f.Error("Bad transition to connected state, previous connection state: "+Le);return}break;case"disconnected":if(Le!=="disconnecting"){f.Error("Bad transition to disconnected state, previous connection state: "+Le);return}break;case"connecting":if(Le!==""){f.Error("Bad transition to connecting state, previous connection state: "+Le);return}break;case"disconnecting":if(Le!=="connected"&&Le!=="connecting"){f.Error("Bad transition to disconnecting state, previous connection state: "+Le);return}break;default:f.Error("Unknown connection state: "+ae);return}this._rfbConnectionState=ae,f.Debug("New state '"+ae+"', was '"+Le+"'."),this._disconnTimer&&ae!=="disconnecting"&&(f.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(ae){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){f.Error("Disconnection timed out."),ge._updateConnectionState("disconnected")},K*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(ae){switch(this._rfbConnectionState){case"disconnecting":f.Error("Failed when disconnecting: "+ae);break;case"connected":f.Error("Failed while connected: "+ae);break;case"connecting":f.Error("Failed when connecting: "+ae);break;default:f.Error("RFB failure: "+ae);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(ae,ge){this._capabilities[ae]=ge,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){f.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":f.Error("Got data while disconnected");break;case"connected":for(;!this._flushing;){if(!this._normalMsg())break;if(this._sock.rQlen===0)break}break;default:this._initMsg();break}}},{key:"_handleKeyEvent",value:function(ae,ge,Le){this.sendKey(ae,ge,Le)}},{key:"_handleMouse",value:function(ae){if(ae.type==="click"&&ae.target!==this._canvas)return;if(ae.stopPropagation(),ae.preventDefault(),ae.type==="click"||ae.type==="contextmenu")return;var ge=(0,v.clientToElement)(ae.clientX,ae.clientY,this._canvas);switch(ae.type){case"mousedown":(0,h.setCapture)(this._canvas),this._handleMouseButton(ge.x,ge.y,!0,1<m.dragThreshold||Math.abs(vt)>m.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:ae,y:ge},this._display.viewportChangePos(Ze,vt));return}if(this._mousePos={x:ae,y:ge},this._mouseMoveTimer==null){var Ct=Date.now()-this._mouseLastMoveTime;Ct>z?(this._sendMouse(ae,ge,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Le._handleDelayedMouseMove()},z-Ct)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(ae,ge,Le){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;ze.messages.pointerEvent(this._sock,this._display.absX(ae),this._display.absY(ge),Le)}},{key:"_handleWheel",value:function(ae){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;ae.stopPropagation(),ae.preventDefault();var ge=(0,v.clientToElement)(ae.clientX,ae.clientY,this._canvas),Le=ae.deltaX,Ze=ae.deltaY;ae.deltaMode!==0&&(Le*=G,Ze*=G),this._accumulatedWheelDeltaX+=Le,this._accumulatedWheelDeltaY+=Ze,Math.abs(this._accumulatedWheelDeltaX)>=X&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(ge.x,ge.y,!0,1<<5),this._handleMouseButton(ge.x,ge.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(ge.x,ge.y,!0,1<<6),this._handleMouseButton(ge.x,ge.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=X&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(ge.x,ge.y,!0,1<<3),this._handleMouseButton(ge.x,ge.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(ge.x,ge.y,!0,1<<4),this._handleMouseButton(ge.x,ge.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(ae,ge,Le){this._handleMouseMove(ge,Le),this._cursor.move(ae.detail.clientX,ae.detail.clientY)}},{key:"_handleTapEvent",value:function(ae,ge){var Le=(0,v.clientToElement)(ae.detail.clientX,ae.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTimeY;)this._handleMouseButton(Le.x,Le.y,!0,8),this._handleMouseButton(Le.x,Le.y,!1,8),this._gestureLastMagnitudeY+=Y;for(;ae.detail.magnitudeY-this._gestureLastMagnitudeY<-Y;)this._handleMouseButton(Le.x,Le.y,!0,16),this._handleMouseButton(Le.x,Le.y,!1,16),this._gestureLastMagnitudeY-=Y;for(;ae.detail.magnitudeX-this._gestureLastMagnitudeX>Y;)this._handleMouseButton(Le.x,Le.y,!0,32),this._handleMouseButton(Le.x,Le.y,!1,32),this._gestureLastMagnitudeX+=Y;for(;ae.detail.magnitudeX-this._gestureLastMagnitudeX<-Y;)this._handleMouseButton(Le.x,Le.y,!0,64),this._handleMouseButton(Le.x,Le.y,!1,64),this._gestureLastMagnitudeX-=Y;break;case"pinch":if(this._fakeMouseMove(ae,Le.x,Le.y),ge=Math.hypot(ae.detail.magnitudeX,ae.detail.magnitudeY),Math.abs(ge-this._gestureLastMagnitudeX)>le){for(this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!0);ge-this._gestureLastMagnitudeX>le;)this._handleMouseButton(Le.x,Le.y,!0,8),this._handleMouseButton(Le.x,Le.y,!1,8),this._gestureLastMagnitudeX+=le;for(;ge-this._gestureLastMagnitudeX<-le;)this._handleMouseButton(Le.x,Le.y,!0,16),this._handleMouseButton(Le.x,Le.y,!1,16),this._gestureLastMagnitudeX-=le}this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(ae.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(ae,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!1,1);break;case"longpress":this._fakeMouseMove(ae,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var ae=this._sock.rQshiftStr(12).substr(4,7);f.Info("Server ProtocolVersion: "+ae);var ge=0;switch(ae){case"000.000":ge=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+ae)}if(ge){for(var Le="ID:"+this._repeaterID;Le.length<250;)Le+="\0";return this._sock.sendString(Le),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Ze="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Ze+` `),f.Debug("Sent ProtocolVersion: "+Ze),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function ae(Ze,vt){for(var Ct=0;Ct=3.7){var ge=this._sock.rQshift8();if(this._sock.rQwait("security type",ge,1))return!1;if(ge===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Le=this._sock.rQshiftBytes(ge);if(f.Debug("Server security types: "+Le),ae(1,Le))this._rfbAuthScheme=1;else if(ae(22,Le))this._rfbAuthScheme=22;else if(ae(16,Le))this._rfbAuthScheme=16;else if(ae(2,Le))this._rfbAuthScheme=2;else if(ae(19,Le))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Le+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",f.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var ae=this._sock.rQshift32(),ge="";if(ae>0){if(this._sock.rQwait("reason",ae,4))return!1;ge=this._sock.rQshiftStr(ae)}return ge!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:ge}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+ge+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var ae=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(ae),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var ae=this._sock.rQshift8(),ge=this._sock.rQshift8();if(!(ae==0&&ge==2))return this._fail("Unsupported VeNCrypt version "+ae+"."+ge);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Le=this._sock.rQshift8();if(Le!=0)return this._fail("VeNCrypt failure "+Le);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Ze=this._sock.rQshift8();if(Ze<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Ze,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var vt=[],Ct=0;Ct0&&this._sock.rQwait("tunnel capabilities",16*ae,4))return!1;if(this._rfbTightVNC=!0,ae>0)return this._negotiateTightTunnels(ae),!1}if(this._sock.rQwait("sub auth count",4))return!1;var ge=this._sock.rQshift32();if(ge===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*ge,4))return!1;for(var Le={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Ze=[],vt=0;vt=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var ae=this._sock.rQshift32();return ae===0?(this._rfbInitState="ClientInitialisation",f.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=ae,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:ae}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var ae=this._sock.rQshift16(),ge=this._sock.rQshift16(),Le=this._sock.rQshift8(),Ze=this._sock.rQshift8(),vt=this._sock.rQshift8(),Ct=this._sock.rQshift8(),Be=this._sock.rQshift16(),Rt=this._sock.rQshift16(),He=this._sock.rQshift16(),wt=this._sock.rQshift8(),Ge=this._sock.rQshift8(),et=this._sock.rQshift8();this._sock.rQskipBytes(3);var rt=this._sock.rQshift32();if(this._sock.rQwait("server init name",rt,24))return!1;var lt=this._sock.rQshiftStr(rt);if(lt=(0,A.decodeUTF8)(lt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+rt))return!1;var Ve=this._sock.rQshift16(),ie=this._sock.rQshift16(),$=this._sock.rQshift16();this._sock.rQskipBytes(2);var it=(Ve+ie+$)*16;if(this._sock.rQwait("TightVNC extended server init header",it,32+rt))return!1;this._sock.rQskipBytes(16*Ve),this._sock.rQskipBytes(16*ie),this._sock.rQskipBytes(16*$)}return f.Info("Screen: "+ae+"x"+ge+", bpp: "+Le+", depth: "+Ze+", bigEndian: "+vt+", trueColor: "+Ct+", redMax: "+Be+", greenMax: "+Rt+", blueMax: "+He+", redShift: "+wt+", greenShift: "+Ge+", blueShift: "+et),this._setDesktopName(lt),this._resize(ae,ge),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(f.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),ze.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),ze.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var ae=[];ae.push(p.encodings.encodingCopyRect),this._fbDepth==24&&(ae.push(p.encodings.encodingTight),ae.push(p.encodings.encodingTightPNG),ae.push(p.encodings.encodingHextile),ae.push(p.encodings.encodingRRE)),ae.push(p.encodings.encodingRaw),ae.push(p.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),ae.push(p.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),ae.push(p.encodings.pseudoEncodingDesktopSize),ae.push(p.encodings.pseudoEncodingLastRect),ae.push(p.encodings.pseudoEncodingQEMUExtendedKeyEvent),ae.push(p.encodings.pseudoEncodingExtendedDesktopSize),ae.push(p.encodings.pseudoEncodingXvp),ae.push(p.encodings.pseudoEncodingFence),ae.push(p.encodings.pseudoEncodingContinuousUpdates),ae.push(p.encodings.pseudoEncodingDesktopName),ae.push(p.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(ae.push(p.encodings.pseudoEncodingVMwareCursor),ae.push(p.encodings.pseudoEncodingCursor)),ze.messages.clientEncodings(this._sock,ae)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return f.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(f.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var ae=this._sock.rQshift32();if(ae=(0,g.toSigned32bit)(ae),this._sock.rQwait("ServerCutText content",Math.abs(ae),8))return!1;if(ae>=0){var ge=this._sock.rQshiftStr(ae);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:ge}}))}else{ae=Math.abs(ae);var Le=this._sock.rQshift32(),Ze=Le&65535,vt=Le&4278190080,Ct=!!(vt&Se);if(Ct){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Be=0;Be<=15;Be++){var Rt=1<0&<.charAt(lt.length-1)==="\0"&&(lt=lt.slice(0,-1)),lt=lt.replace(`\r `,` `),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:lt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+vt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var ae=this._sock.rQshift32(),ge=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",ge,9))return!1;ge>64&&(f.Warn("Bad payload length ("+ge+") in fence response"),ge=64);var Le=this._sock.rQshiftStr(ge);return this._supportsFence=!0,ae&1<<31?(ae&=1<<0|1<<1,ze.messages.clientFence(this._sock,ae,Le),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var ae=this._sock.rQshift8(),ge=this._sock.rQshift8();switch(ge){case 0:f.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=ae,f.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+ge+")");break}return!0}},{key:"_normalMsg",value:function(){var ae;this._FBU.rects>0?ae=0:ae=this._sock.rQshift8();var ge,Le;switch(ae){case 0:return Le=this._framebufferUpdate(),Le&&!this._enabledContinuousUpdates&&ze.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Le;case 1:return this._handleSetColourMapMsg();case 2:return f.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return ge=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,ge&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),f.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+ae+")"),f.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;var ae=this._sock.rQshiftBytes(12);this._FBU.x=(ae[0]<<8)+ae[1],this._FBU.y=(ae[2]<<8)+ae[3],this._FBU.width=(ae[4]<<8)+ae[5],this._FBU.height=(ae[6]<<8)+ae[7],this._FBU.encoding=parseInt((ae[8]<<24)+(ae[9]<<16)+(ae[10]<<8)+ae[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case p.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case p.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case p.encodings.pseudoEncodingCursor:return this._handleCursor();case p.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var ae=document.createEvent("keyboardEvent");ae.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(ge){}return!0;case p.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case p.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case p.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var ae=this._FBU.x,ge=this._FBU.y,Le=this._FBU.width,Ze=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var vt=this._sock.rQshift8();this._sock.rQshift8();var Ct,Be=4;if(vt==0){var Rt=4294967040|0;if(Ct=new Array(Le*Ze*Be),this._sock.rQwait("VMware cursor classic encoding",Le*Ze*Be*2,2))return!1;for(var He=new Array(Le*Ze),wt=0;wt>8&255,ie=lt>>16&255,$=lt>>24&255;Ct[rt*Be]=Ve,Ct[rt*Be+1]=ie,Ct[rt*Be+2]=$,Ct[rt*Be+3]=255}else(He[rt]&Rt)==Rt?Ge[rt]==0?(Ct[rt*Be]=0,Ct[rt*Be+1]=0,Ct[rt*Be+2]=0,Ct[rt*Be+3]=0):((Ge[rt]&Rt)==Rt,Ct[rt*Be]=0,Ct[rt*Be+1]=0,Ct[rt*Be+2]=0,Ct[rt*Be+3]=255):(Ct[rt*Be]=0,Ct[rt*Be+1]=0,Ct[rt*Be+2]=0,Ct[rt*Be+3]=255)}else if(vt==1){if(this._sock.rQwait("VMware cursor alpha encoding",Le*Ze*4,2))return!1;Ct=new Array(Le*Ze*Be);for(var it=0;it>24&255,Ct[it*4+1]=Qe>>16&255,Ct[it*4+2]=Qe>>8&255,Ct[it*4+3]=Qe&255}}else return f.Warn("The given cursor type is not supported: "+vt+" given."),!1;return this._updateCursor(Ct,ae,ge,Le,Ze),!0}},{key:"_handleCursor",value:function(){var ae=this._FBU.x,ge=this._FBU.y,Le=this._FBU.width,Ze=this._FBU.height,vt=Le*Ze*4,Ct=Math.ceil(Le/8)*Ze,Be=vt+Ct;if(this._sock.rQwait("cursor encoding",Be))return!1;for(var Rt=this._sock.rQshiftBytes(vt),He=this._sock.rQshiftBytes(Ct),wt=new Uint8Array(Le*Ze*4),Ge=0,et=0;et9){f.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===ae)return;this._qualityLevel=ae,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(ae){if(!Number.isInteger(ae)||ae<0||ae>9){f.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===ae)return;this._compressionLevel=ae,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(ae,ge){var Le=ae.split("").map(function(Ze){return Ze.charCodeAt(0)});return new t.default(Le).encrypt(ge)}}]),ze}(c.default);_.default=se,se.messages={keyEvent:function(Ce,ze,Oe){var ae=Ce._sQ,ge=Ce._sQlen;ae[ge]=4,ae[ge+1]=Oe,ae[ge+2]=0,ae[ge+3]=0,ae[ge+4]=ze>>24,ae[ge+5]=ze>>16,ae[ge+6]=ze>>8,ae[ge+7]=ze,Ce._sQlen+=8,Ce.flush()},QEMUExtendedKeyEvent:function(Ce,ze,Oe,ae){function ge(Ct){var Be=ae>>8,Rt=ae&255;return Be===224&&Rt<127?Rt|128:Ct}var Le=Ce._sQ,Ze=Ce._sQlen;Le[Ze]=255,Le[Ze+1]=0,Le[Ze+2]=Oe>>8,Le[Ze+3]=Oe,Le[Ze+4]=ze>>24,Le[Ze+5]=ze>>16,Le[Ze+6]=ze>>8,Le[Ze+7]=ze;var vt=ge(ae);Le[Ze+8]=vt>>24,Le[Ze+9]=vt>>16,Le[Ze+10]=vt>>8,Le[Ze+11]=vt,Ce._sQlen+=12,Ce.flush()},pointerEvent:function(Ce,ze,Oe,ae){var ge=Ce._sQ,Le=Ce._sQlen;ge[Le]=5,ge[Le+1]=ae,ge[Le+2]=ze>>8,ge[Le+3]=ze,ge[Le+4]=Oe>>8,ge[Le+5]=Oe,Ce._sQlen+=6,Ce.flush()},_buildExtendedClipboardFlags:function(Ce,ze){for(var Oe=new Uint8Array(4),ae=0,ge=0,Le=0;Le>24,Oe[1]=0,Oe[2]=0,Oe[3]=ae,Oe},extendedClipboardProvide:function(Ce,ze,Oe){for(var ae=new n.default,ge=[],Le=0;Le>24&255,Ze.length>>16&255,Ze.length>>8&255,Ze.length&255);for(var vt=0;vt>24,ge[Le+1]=Oe[ae[Ze]]>>16,ge[Le+2]=Oe[ae[Ze]]>>8,ge[Le+3]=Oe[ae[Ze]]>>0,Le+=4,ge[3]|=1<2&&arguments[2]!==void 0?arguments[2]:!1,ae=Ce._sQ,ge=Ce._sQlen;ae[ge]=6,ae[ge+1]=0,ae[ge+2]=0,ae[ge+3]=0;var Le;Oe?Le=(0,g.toUnsigned32bit)(-ze.length):Le=ze.length,ae[ge+4]=Le>>24,ae[ge+5]=Le>>16,ae[ge+6]=Le>>8,ae[ge+7]=Le,Ce._sQlen+=8;for(var Ze=0,vt=ze.length;vt>0;){for(var Ct=Math.min(vt,Ce._sQbufferSize-Ce._sQlen),Be=0;Be>8,Le[Ze+3]=ze,Le[Ze+4]=Oe>>8,Le[Ze+5]=Oe,Le[Ze+6]=1,Le[Ze+7]=0,Le[Ze+8]=ae>>24,Le[Ze+9]=ae>>16,Le[Ze+10]=ae>>8,Le[Ze+11]=ae,Le[Ze+12]=0,Le[Ze+13]=0,Le[Ze+14]=0,Le[Ze+15]=0,Le[Ze+16]=ze>>8,Le[Ze+17]=ze,Le[Ze+18]=Oe>>8,Le[Ze+19]=Oe,Le[Ze+20]=ge>>24,Le[Ze+21]=ge>>16,Le[Ze+22]=ge>>8,Le[Ze+23]=ge,Ce._sQlen+=24,Ce.flush()},clientFence:function(Ce,ze,Oe){var ae=Ce._sQ,ge=Ce._sQlen;ae[ge]=248,ae[ge+1]=0,ae[ge+2]=0,ae[ge+3]=0,ae[ge+4]=ze>>24,ae[ge+5]=ze>>16,ae[ge+6]=ze>>8,ae[ge+7]=ze;var Le=Oe.length;ae[ge+8]=Le;for(var Ze=0;Ze>8,Ze[vt+3]=Oe,Ze[vt+4]=ae>>8,Ze[vt+5]=ae,Ze[vt+6]=ge>>8,Ze[vt+7]=ge,Ze[vt+8]=Le>>8,Ze[vt+9]=Le,Ce._sQlen+=10,Ce.flush()},pixelFormat:function(Ce,ze,Oe){var ae=Ce._sQ,ge=Ce._sQlen,Le;ze>16?Le=32:ze>8?Le=16:Le=8;var Ze=Math.floor(ze/3);ae[ge]=0,ae[ge+1]=0,ae[ge+2]=0,ae[ge+3]=0,ae[ge+4]=Le,ae[ge+5]=ze,ae[ge+6]=0,ae[ge+7]=Oe?1:0,ae[ge+8]=0,ae[ge+9]=(1<>8,Oe[ae+3]=ze.length;for(var ge=ae+4,Le=0;Le>24,Oe[ge+1]=Ze>>16,Oe[ge+2]=Ze>>8,Oe[ge+3]=Ze,ge+=4}Ce._sQlen+=ge-ae,Ce.flush()},fbUpdateRequest:function(Ce,ze,Oe,ae,ge,Le){var Ze=Ce._sQ,vt=Ce._sQlen;typeof Oe=="undefined"&&(Oe=0),typeof ae=="undefined"&&(ae=0),Ze[vt]=3,Ze[vt+1]=ze?1:0,Ze[vt+2]=Oe>>8&255,Ze[vt+3]=Oe&255,Ze[vt+4]=ae>>8&255,Ze[vt+5]=ae&255,Ze[vt+6]=ge>>8&255,Ze[vt+7]=ge&255,Ze[vt+8]=Le>>8&255,Ze[vt+9]=Le&255,Ce._sQlen+=10,Ce.flush()},xvpOp:function(Ce,ze,Oe){var ae=Ce._sQ,ge=Ce._sQlen;ae[ge]=250,ae[ge+1]=0,ae[ge+2]=ze,ae[ge+3]=Oe,Ce._sQlen+=4,Ce.flush()}},se.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(D,_,e){(function(g){g(e("VrN/"))})(function(g){"use strict";var f={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},A={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};g.defineMode("xml",function(m,v){var h=m.indentUnit,c={},o=v.htmlMode?f:A;for(var i in o)c[i]=o[i];for(var i in v)c[i]=v[i];var n,a;function u(N,k){function F(W){return k.tokenize=W,W(N,k)}var B=N.next();if(B=="<")return N.eat("!")?N.eat("[")?N.match("CDATA[")?F(t("atom","]]>")):null:N.match("--")?F(t("comment","-->")):N.match("DOCTYPE",!0,!0)?(N.eatWhile(/[\w\._\-]/),F(s(1))):null:N.eat("?")?(N.eatWhile(/[\w\._\-]/),k.tokenize=t("meta","?>"),"meta"):(n=N.eat("/")?"closeTag":"openTag",k.tokenize=r,"tag bracket");if(B=="&"){var H;return N.eat("#")?N.eat("x")?H=N.eatWhile(/[a-fA-F\d]/)&&N.eat(";"):H=N.eatWhile(/[\d]/)&&N.eat(";"):H=N.eatWhile(/[\w\.\-:]/)&&N.eat(";"),H?"atom":"error"}else return N.eatWhile(/[^&<]/),null}u.isInText=!0;function r(N,k){var F=N.next();if(F==">"||F=="/"&&N.eat(">"))return k.tokenize=u,n=F==">"?"endTag":"selfcloseTag","tag bracket";if(F=="=")return n="equals",null;if(F=="<"){k.tokenize=u,k.state=w,k.tagName=k.tagStart=null;var B=k.tokenize(N,k);return B?B+" tag error":"tag error"}else return/[\'\"]/.test(F)?(k.tokenize=l(F),k.stringStartCol=N.column(),k.tokenize(N,k)):(N.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(N){var k=function(B,H){for(;!B.eol();)if(B.next()==N){H.tokenize=r;break}return"string"};return k.isInAttribute=!0,k}function t(N,k){return function(F,B){for(;!F.eol();){if(F.match(k)){B.tokenize=u;break}F.next()}return N}}function s(N){return function(k,F){for(var B;(B=k.next())!=null;){if(B=="<")return F.tokenize=s(N+1),F.tokenize(k,F);if(B==">")if(N==1){F.tokenize=u;break}else return F.tokenize=s(N-1),F.tokenize(k,F)}return"meta"}}function d(N,k,F){this.prev=N.context,this.tagName=k,this.indent=N.indented,this.startOfLine=F,(c.doNotIndent.hasOwnProperty(k)||N.context&&N.context.noIndent)&&(this.noIndent=!0)}function p(N){N.context&&(N.context=N.context.prev)}function b(N,k){for(var F;;){if(!N.context)return;if(F=N.context.tagName,!c.contextGrabbers.hasOwnProperty(F)||!c.contextGrabbers[F].hasOwnProperty(k))return;p(N)}}function w(N,k,F){return N=="openTag"?(F.tagStart=k.column(),E):N=="closeTag"?S:w}function E(N,k,F){return N=="word"?(F.tagName=k.current(),a="tag",L):c.allowMissingTagName&&N=="endTag"?(a="tag bracket",L(N,k,F)):(a="error",E)}function S(N,k,F){if(N=="word"){var B=k.current();return F.context&&F.context.tagName!=B&&c.implicitlyClosed.hasOwnProperty(F.context.tagName)&&p(F),F.context&&F.context.tagName==B||c.matchClosing===!1?(a="tag",x):(a="tag error",T)}else return c.allowMissingTagName&&N=="endTag"?(a="tag bracket",x(N,k,F)):(a="error",T)}function x(N,k,F){return N!="endTag"?(a="error",x):(p(F),w)}function T(N,k,F){return a="error",x(N,k,F)}function L(N,k,F){if(N=="word")return a="attribute",y;if(N=="endTag"||N=="selfcloseTag"){var B=F.tagName,H=F.tagStart;return F.tagName=F.tagStart=null,N=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(B)?b(F,B):(b(F,B),F.context=new d(F,B,H==F.indented)),w}return a="error",L}function y(N,k,F){return N=="equals"?C:(c.allowMissing||(a="error"),L(N,k,F))}function C(N,k,F){return N=="string"?O:N=="word"&&c.allowUnquoted?(a="string",L):(a="error",L(N,k,F))}function O(N,k,F){return N=="string"?O:L(N,k,F)}return{startState:function(k){var F={tokenize:u,state:w,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(F.baseIndent=k),F},token:function(k,F){if(!F.tagName&&k.sol()&&(F.indented=k.indentation()),k.eatSpace())return null;n=null;var B=F.tokenize(k,F);return(B||n)&&B!="comment"&&(a=null,F.state=F.state(n||B,k,F),a&&(B=a=="error"?B+" error":a)),B},indent:function(k,F,B){var H=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(H&&H.noIndent)return g.Pass;if(k.tokenize!=r&&k.tokenize!=u)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return c.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/$/,blockCommentStart:"",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(k){k.state==C&&(k.state=L)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var F=[],B=k.context;B;B=B.prev)B.tagName&&F.push(B.tagName);return F.reverse()}}}),g.defineMIME("text/xml","xml"),g.defineMIME("application/xml","xml"),g.mimeModes.hasOwnProperty("text/html")||g.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1hJj":function(D,_,e){var g=e("e4Nc"),f=e("ftKO"),A=e("3A9y");function m(v){var h=-1,c=v==null?0:v.length;for(this.__data__=new g;++h1&&arguments[1]!==void 0?arguments[1]:!1,Ot=nt&&typeof nt.getBoundingClientRect=="function"&&nt.getBoundingClientRect().width;if(Ot){if(At){var ne=getComputedStyle(nt),he=ne.marginLeft,Q=ne.marginRight;Ot+=+he.replace("px","")+ +Q.replace("px","")}Ot=+Ot.toFixed(6)}return Ot||0},ce=function(nt,At,Ot){nt&&Object(N.a)(nt.style)==="object"&&(nt.style[At]=Ot)},ee=function(){return pe.any},se=e("KQm4"),ke=e("Ff2n"),Ce=e("i8i4"),ze=e("bdgK"),Oe=e("uciX"),ae=e("8XRh"),ge={adjustX:1,adjustY:1},Le={topLeft:{points:["bl","tl"],overflow:ge,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ge,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ge,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ge,offset:[4,0]}},Ze={topLeft:{points:["bl","tl"],overflow:ge,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ge,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ge,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ge,offset:[4,0]}},vt=Le,Ct=0,Be={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Rt=function(nt,At,Ot){var ne=dt(At),he=nt.getState();nt.setState({defaultActiveFirst:Object(g.a)(Object(g.a)({},he.defaultActiveFirst),{},Object(T.a)({},ne,Ot))})},He=function(Pe){Object(v.a)(At,Pe);var nt=Object(h.a)(At);function At(Ot){var ne;Object(f.a)(this,At),ne=nt.call(this,Ot),ne.onDestroy=function(Re){ne.props.onDestroy(Re)},ne.onKeyDown=function(Re){var $e=Re.keyCode,gt=ne.menuInstance,Wt=ne.props,$t=Wt.isOpen,Dt=Wt.store;if($e===L.a.ENTER)return ne.onTitleClick(Re),Rt(Dt,ne.props.eventKey,!0),!0;if($e===L.a.RIGHT)return $t?gt.onKeyDown(Re):(ne.triggerOpenChange(!0),Rt(Dt,ne.props.eventKey,!0)),!0;if($e===L.a.LEFT){var Kt;if($t)Kt=gt.onKeyDown(Re);else return;return Kt||(ne.triggerOpenChange(!1),Kt=!0),Kt}return $t&&($e===L.a.UP||$e===L.a.DOWN)?gt.onKeyDown(Re):void 0},ne.onOpenChange=function(Re){ne.props.onOpenChange(Re)},ne.onPopupVisibleChange=function(Re){ne.triggerOpenChange(Re,Re?"mouseenter":"mouseleave")},ne.onMouseEnter=function(Re){var $e=ne.props,gt=$e.eventKey,Wt=$e.onMouseEnter,$t=$e.store;Rt($t,ne.props.eventKey,!1),Wt({key:gt,domEvent:Re})},ne.onMouseLeave=function(Re){var $e=ne.props,gt=$e.parentMenu,Wt=$e.eventKey,$t=$e.onMouseLeave;gt.subMenuInstance=Object(m.a)(ne),$t({key:Wt,domEvent:Re})},ne.onTitleMouseEnter=function(Re){var $e=ne.props,gt=$e.eventKey,Wt=$e.onItemHover,$t=$e.onTitleMouseEnter;Wt({key:gt,hover:!0}),$t({key:gt,domEvent:Re})},ne.onTitleMouseLeave=function(Re){var $e=ne.props,gt=$e.parentMenu,Wt=$e.eventKey,$t=$e.onItemHover,Dt=$e.onTitleMouseLeave;gt.subMenuInstance=Object(m.a)(ne),$t({key:Wt,hover:!1}),Dt({key:Wt,domEvent:Re})},ne.onTitleClick=function(Re){var $e=Object(m.a)(ne),gt=$e.props;if(gt.onTitleClick({key:gt.eventKey,domEvent:Re}),gt.triggerSubMenuAction==="hover")return;ne.triggerOpenChange(!gt.isOpen,"click"),Rt(gt.store,ne.props.eventKey,!1)},ne.onSubMenuClick=function(Re){typeof ne.props.onClick=="function"&&ne.props.onClick(ne.addKeyPath(Re))},ne.onSelect=function(Re){ne.props.onSelect(Re)},ne.onDeselect=function(Re){ne.props.onDeselect(Re)},ne.getPrefixCls=function(){return"".concat(ne.props.rootPrefixCls,"-submenu")},ne.getActiveClassName=function(){return"".concat(ne.getPrefixCls(),"-active")},ne.getDisabledClassName=function(){return"".concat(ne.getPrefixCls(),"-disabled")},ne.getSelectedClassName=function(){return"".concat(ne.getPrefixCls(),"-selected")},ne.getOpenClassName=function(){return"".concat(ne.props.rootPrefixCls,"-submenu-open")},ne.saveMenuInstance=function(Re){ne.menuInstance=Re},ne.addKeyPath=function(Re){return Object(g.a)(Object(g.a)({},Re),{},{keyPath:(Re.keyPath||[]).concat(ne.props.eventKey)})},ne.triggerOpenChange=function(Re,$e){var gt=ne.props.eventKey,Wt=function(){ne.onOpenChange({key:gt,item:Object(m.a)(ne),trigger:$e,open:Re})};$e==="mouseenter"?ne.mouseenterTimeout=setTimeout(function(){Wt()},0):Wt()},ne.isChildrenSelected=function(){var Re={find:!1};return Se(ne.props.children,ne.props.selectedKeys,Re),Re.find},ne.isOpen=function(){return ne.props.openKeys.indexOf(ne.props.eventKey)!==-1},ne.adjustWidth=function(){if(!ne.subMenuTitle||!ne.menuInstance)return;var Re=Ce.findDOMNode(ne.menuInstance);if(Re.offsetWidth>=ne.subMenuTitle.offsetWidth)return;Re.style.minWidth="".concat(ne.subMenuTitle.offsetWidth,"px")},ne.saveSubMenuTitle=function(Re){ne.subMenuTitle=Re},ne.getBaseProps=function(){var Re=Object(m.a)(ne),$e=Re.props;return{mode:$e.mode==="horizontal"?"vertical":$e.mode,visible:ne.props.isOpen,level:$e.level+1,inlineIndent:$e.inlineIndent,focusable:!1,onClick:ne.onSubMenuClick,onSelect:ne.onSelect,onDeselect:ne.onDeselect,onDestroy:ne.onDestroy,selectedKeys:$e.selectedKeys,eventKey:"".concat($e.eventKey,"-menu-"),openKeys:$e.openKeys,motion:$e.motion,onOpenChange:ne.onOpenChange,subMenuOpenDelay:$e.subMenuOpenDelay,parentMenu:Object(m.a)(ne),subMenuCloseDelay:$e.subMenuCloseDelay,forceSubMenuRender:$e.forceSubMenuRender,triggerSubMenuAction:$e.triggerSubMenuAction,builtinPlacements:$e.builtinPlacements,defaultActiveFirst:$e.store.getState().defaultActiveFirst[dt($e.eventKey)],multiple:$e.multiple,prefixCls:$e.rootPrefixCls,id:ne.internalMenuId,manualRef:ne.saveMenuInstance,itemIcon:$e.itemIcon,expandIcon:$e.expandIcon,direction:$e.direction}},ne.getMotion=function(Re,$e){var gt=Object(m.a)(ne),Wt=gt.haveRendered,$t=ne.props,Dt=$t.motion,Kt=$t.rootPrefixCls,Gt=Object(g.a)(Object(g.a)({},Dt),{},{leavedClassName:"".concat(Kt,"-hidden"),removeOnLeave:!1,motionAppear:Wt||!$e||Re!=="inline"});return Gt};var he=Ot.store,Q=Ot.eventKey,te=he.getState(),be=te.defaultActiveFirst;ne.isRootMenu=!1;var Ie=!1;return be&&(Ie=be[Q]),Rt(he,Q,Ie),ne}return Object(A.a)(At,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ne=this,he=this.props,Q=he.mode,te=he.parentMenu,be=he.manualRef;if(be&&be(this),Q!=="horizontal"||!te.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ne.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ne=this.props,he=ne.onDestroy,Q=ne.eventKey;he&&he(Q),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ne){var he=this,Q=this.getBaseProps(),te=this.getMotion(Q.mode,Q.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Q.visible||Q.forceSubMenuRender,!this.haveOpened)return c.createElement("div",null);var be=Q.direction;return c.createElement(ae.default,Object.assign({visible:Q.visible},te),function(Ie){var Re=Ie.className,$e=Ie.style,gt=O()("".concat(Q.prefixCls,"-sub"),Re,Object(T.a)({},"".concat(Q.prefixCls,"-rtl"),be==="rtl"));return c.createElement(ct,Object.assign({},Q,{id:he.internalMenuId,className:gt,style:$e}),ne)})}},{key:"render",value:function(){var ne,he=Object(g.a)({},this.props),Q=he.isOpen,te=this.getPrefixCls(),be=he.mode==="inline",Ie=O()(te,"".concat(te,"-").concat(he.mode),(ne={},Object(T.a)(ne,he.className,!!he.className),Object(T.a)(ne,this.getOpenClassName(),Q),Object(T.a)(ne,this.getActiveClassName(),he.active||Q&&!be),Object(T.a)(ne,this.getDisabledClassName(),he.disabled),Object(T.a)(ne,this.getSelectedClassName(),this.isChildrenSelected()),ne));this.internalMenuId||(he.eventKey?this.internalMenuId="".concat(he.eventKey,"$Menu"):(Ct+=1,this.internalMenuId="$__$".concat(Ct,"$Menu")));var Re={},$e={},gt={};he.disabled||(Re={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},$e={onClick:this.onTitleClick},gt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Wt={},$t=he.direction;be&&($t==="rtl"?Wt.paddingRight=he.inlineIndent*he.level:Wt.paddingLeft=he.inlineIndent*he.level);var Dt={};this.props.isOpen&&(Dt={"aria-owns":this.internalMenuId});var Kt=null;he.mode!=="horizontal"&&(Kt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Kt=c.createElement(this.props.expandIcon,Object(g.a)({},this.props))));var Gt=c.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Wt,className:"".concat(te,"-title"),role:"button"},gt,$e,{"aria-expanded":Q},Dt,{"aria-haspopup":"true",title:typeof he.title=="string"?he.title:void 0}),he.title,Kt||c.createElement("i",{className:"".concat(te,"-arrow")})),Qt=this.renderChildren(he.children),Mt=he.parentMenu.isRootMenu?he.parentMenu.props.getPopupContainer:function(kt){return kt.parentNode},dr=Be[he.mode],er=he.popupOffset?{offset:he.popupOffset}:{},st=he.mode==="inline"?"":he.popupClassName;st+=$t==="rtl"?" ".concat(te,"-rtl"):"";var xt=he.disabled,ut=he.triggerSubMenuAction,pt=he.subMenuOpenDelay,_t=he.forceSubMenuRender,Tt=he.subMenuCloseDelay,ft=he.builtinPlacements;at.forEach(function(kt){return delete he[kt]}),delete he.onClick;var Ht=$t==="rtl"?Object.assign({},Ze,ft):Object.assign({},Le,ft);return delete he.direction,c.createElement("li",Object.assign({},he,Re,{className:Ie,role:"menuitem"}),be&&Gt,be&&Qt,!be&&c.createElement(Oe.a,{prefixCls:te,popupClassName:O()("".concat(te,"-popup"),st),getPopupContainer:Mt,builtinPlacements:Ht,popupPlacement:dr,popupVisible:Q,popupAlign:er,popup:Qt,action:xt?[]:[ut],mouseEnterDelay:pt,mouseLeaveDelay:Tt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:_t},Gt))}}]),At}(c.Component);He.defaultProps={onMouseEnter:Fe,onMouseLeave:Fe,onTitleMouseEnter:Fe,onTitleMouseLeave:Fe,onTitleClick:Fe,manualRef:Fe,mode:"vertical",title:""};var wt=b(function(Pe,nt){var At=Pe.openKeys,Ot=Pe.activeKey,ne=Pe.selectedKeys,he=nt.eventKey,Q=nt.subMenuKey;return{isOpen:At.indexOf(he)>-1,active:Ot[Q]===he,selectedKeys:ne}})(He);wt.isSubMenu=!0;var Ge=wt,et="menuitem-overflowed",rt=.5,lt=function(Pe){Object(v.a)(At,Pe);var nt=Object(h.a)(At);function At(){var Ot;return Object(f.a)(this,At),Ot=nt.apply(this,arguments),Ot.resizeObserver=null,Ot.mutationObserver=null,Ot.originalTotalWidth=0,Ot.overflowedItems=[],Ot.menuItemSizes=[],Ot.cancelFrameId=null,Ot.state={lastVisibleIndex:void 0},Ot.getMenuItemNodes=function(){var ne=Ot.props.prefixCls,he=Ce.findDOMNode(Object(m.a)(Ot));return he?[].slice.call(he.children).filter(function(Q){return Q.className.split(" ").indexOf("".concat(ne,"-overflowed-submenu"))<0}):[]},Ot.getOverflowedSubMenuItem=function(ne,he,Q){var te=Ot.props,be=te.overflowedIndicator,Ie=te.level,Re=te.mode,$e=te.prefixCls,gt=te.theme;if(Ie!==1||Re!=="horizontal")return null;var Wt=Ot.props.children[0],$t=Wt.props,Dt=$t.children,Kt=$t.title,Gt=$t.style,Qt=Object(ke.a)($t,["children","title","style"]),Mt=Object(g.a)({},Gt),dr="".concat(ne,"-overflowed-indicator"),er="".concat(ne,"-overflowed-indicator");he.length===0&&Q!==!0?Mt=Object(g.a)(Object(g.a)({},Mt),{},{display:"none"}):Q&&(Mt=Object(g.a)(Object(g.a)({},Mt),{},{visibility:"hidden",position:"absolute"}),dr="".concat(dr,"-placeholder"),er="".concat(er,"-placeholder"));var st=gt?"".concat($e,"-").concat(gt):"",xt={};return at.forEach(function(ut){Qt[ut]!==void 0&&(xt[ut]=Qt[ut])}),c.createElement(Ge,Object.assign({title:be,className:"".concat($e,"-overflowed-submenu"),popupClassName:st},xt,{key:dr,eventKey:er,disabled:!1,style:Mt}),he)},Ot.setChildrenWidthAndResize=function(){if(Ot.props.mode!=="horizontal")return;var ne=Ce.findDOMNode(Object(m.a)(Ot));if(!ne)return;var he=ne.children;if(!he||he.length===0)return;var Q=ne.children[he.length-1];ce(Q,"display","inline-block");var te=Ot.getMenuItemNodes(),be=te.filter(function(Ie){return Ie.className.split(" ").indexOf(et)>=0});be.forEach(function(Ie){ce(Ie,"display","inline-block")}),Ot.menuItemSizes=te.map(function(Ie){return _e(Ie,!0)}),be.forEach(function(Ie){ce(Ie,"display","none")}),Ot.overflowedIndicatorWidth=_e(ne.children[ne.children.length-1],!0),Ot.originalTotalWidth=Ot.menuItemSizes.reduce(function(Ie,Re){return Ie+Re},0),Ot.handleResize(),ce(Q,"display","none")},Ot.handleResize=function(){if(Ot.props.mode!=="horizontal")return;var ne=Ce.findDOMNode(Object(m.a)(Ot));if(!ne)return;var he=_e(ne);Ot.overflowedItems=[];var Q=0,te;Ot.originalTotalWidth>he+rt&&(te=-1,Ot.menuItemSizes.forEach(function(be){Q+=be,Q+Ot.overflowedIndicatorWidth<=he&&(te+=1)})),Ot.setState({lastVisibleIndex:te})},Ot}return Object(A.a)(At,[{key:"componentDidMount",value:function(){var ne=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var he=Ce.findDOMNode(this);if(!he)return;this.resizeObserver=new ze.default(function(Q){Q.forEach(function(){var te=ne.cancelFrameId;cancelAnimationFrame(te),ne.cancelFrameId=requestAnimationFrame(ne.setChildrenWidthAndResize)})}),[].slice.call(he.children).concat(he).forEach(function(Q){ne.resizeObserver.observe(Q)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ne.resizeObserver.disconnect(),[].slice.call(he.children).concat(he).forEach(function(Q){ne.resizeObserver.observe(Q)}),ne.setChildrenWidthAndResize()}),this.mutationObserver.observe(he,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ne){var he=this,Q=this.state.lastVisibleIndex;return(ne||[]).reduce(function(te,be,Ie){var Re=be;if(he.props.mode==="horizontal"){var $e=he.getOverflowedSubMenuItem(be.props.eventKey,[]);Q!==void 0&&he.props.className.indexOf("".concat(he.props.prefixCls,"-root"))!==-1&&(Ie>Q&&(Re=c.cloneElement(be,{style:{display:"none"},eventKey:"".concat(be.props.eventKey,"-hidden"),className:"".concat(et)})),Ie===Q+1&&(he.overflowedItems=ne.slice(Q+1).map(function(Wt){return c.cloneElement(Wt,{key:Wt.props.eventKey,mode:"vertical-left"})}),$e=he.getOverflowedSubMenuItem(be.props.eventKey,he.overflowedItems)));var gt=[].concat(Object(se.a)(te),[$e,Re]);return Ie===ne.length-1&>.push(he.getOverflowedSubMenuItem(be.props.eventKey,[],!0)),gt}return[].concat(Object(se.a)(te),[Re])},[])}},{key:"render",value:function(){var ne=this.props,he=ne.visible,Q=ne.prefixCls,te=ne.overflowedIndicator,be=ne.mode,Ie=ne.level,Re=ne.tag,$e=ne.children,gt=ne.theme,Wt=Object(ke.a)(ne,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),$t=Re;return c.createElement($t,Object.assign({},Wt),this.renderChildren($e))}}]),At}(c.Component);lt.defaultProps={tag:"div",className:""};var Ve=lt;function ie(Pe){return Pe.length?Pe.every(function(nt){return!!nt.props.disabled}):!0}function $(Pe,nt,At){var Ot=Pe.getState();Pe.setState({activeKey:Object(g.a)(Object(g.a)({},Ot.activeKey),{},Object(T.a)({},nt,At))})}function it(Pe){return Pe.eventKey||"0-menu-"}function Qe(Pe,nt){var At=nt,Ot=Pe.children,ne=Pe.eventKey;if(At){var he;if(Ee(Ot,function(Q,te){Q&&Q.props&&!Q.props.disabled&&At===Xe(Q,ne,te)&&(he=!0)}),he)return At}return At=null,Pe.defaultActiveFirst&&Ee(Ot,function(Q,te){!At&&Q&&!Q.props.disabled&&(At=Xe(Q,ne,te))}),At}function ye(Pe){if(Pe){var nt=this.instanceArray.indexOf(Pe);nt!==-1?this.instanceArray[nt]=Pe:this.instanceArray.push(Pe)}}var Zt=function(Pe){Object(v.a)(At,Pe);var nt=Object(h.a)(At);function At(Ot){var ne;return Object(f.a)(this,At),ne=nt.call(this,Ot),ne.onKeyDown=function(he,Q){var te=he.keyCode,be;if(ne.getFlatInstanceArray().forEach(function(Re){Re&&Re.props.active&&Re.onKeyDown&&(be=Re.onKeyDown(he))}),be)return 1;var Ie=null;return(te===L.a.UP||te===L.a.DOWN)&&(Ie=ne.step(te===L.a.UP?-1:1)),Ie?(he.preventDefault(),$(ne.props.store,it(ne.props),Ie.props.eventKey),typeof Q=="function"&&Q(Ie),1):void 0},ne.onItemHover=function(he){var Q=he.key,te=he.hover;$(ne.props.store,it(ne.props),te?Q:null)},ne.onDeselect=function(he){ne.props.onDeselect(he)},ne.onSelect=function(he){ne.props.onSelect(he)},ne.onClick=function(he){ne.props.onClick(he)},ne.onOpenChange=function(he){ne.props.onOpenChange(he)},ne.onDestroy=function(he){ne.props.onDestroy(he)},ne.getFlatInstanceArray=function(){return ne.instanceArray},ne.step=function(he){var Q=ne.getFlatInstanceArray(),te=ne.props.store.getState().activeKey[it(ne.props)],be=Q.length;if(!be)return null;he<0&&(Q=Q.concat().reverse());var Ie=-1;if(Q.every(function(Wt,$t){return Wt&&Wt.props.eventKey===te?(Ie=$t,!1):!0}),!ne.props.defaultActiveFirst&&Ie!==-1&&ie(Q.slice(Ie,be-1)))return;var Re=(Ie+1)%be,$e=Re;do{var gt=Q[$e];if(!gt||gt.props.disabled)$e=($e+1)%be;else return gt}while($e!==Re);return null},ne.renderCommonMenuItem=function(he,Q,te){var be=ne.props.store.getState(),Ie=Object(m.a)(ne),Re=Ie.props,$e=Xe(he,Re.eventKey,Q),gt=he.props;if(!gt||typeof he.type=="string")return he;var Wt=$e===be.activeKey,$t=Object(g.a)(Object(g.a)({mode:gt.mode||Re.mode,level:Re.level,inlineIndent:Re.inlineIndent,renderMenuItem:ne.renderMenuItem,rootPrefixCls:Re.prefixCls,index:Q,parentMenu:Re.parentMenu,manualRef:gt.disabled?void 0:Object(y.a)(he.ref,ye.bind(Object(m.a)(ne))),eventKey:$e,active:!gt.disabled&&Wt,multiple:Re.multiple,onClick:function(Kt){(gt.onClick||Fe)(Kt),ne.onClick(Kt)},onItemHover:ne.onItemHover,motion:Re.motion,subMenuOpenDelay:Re.subMenuOpenDelay,subMenuCloseDelay:Re.subMenuCloseDelay,forceSubMenuRender:Re.forceSubMenuRender,onOpenChange:ne.onOpenChange,onDeselect:ne.onDeselect,onSelect:ne.onSelect,builtinPlacements:Re.builtinPlacements,itemIcon:gt.itemIcon||ne.props.itemIcon,expandIcon:gt.expandIcon||ne.props.expandIcon},te),{},{direction:Re.direction});return(Re.mode==="inline"||ee())&&($t.triggerSubMenuAction="click"),c.cloneElement(he,$t)},ne.renderMenuItem=function(he,Q,te){if(!he)return null;var be=ne.props.store.getState(),Ie={openKeys:be.openKeys,selectedKeys:be.selectedKeys,triggerSubMenuAction:ne.props.triggerSubMenuAction,subMenuKey:te};return ne.renderCommonMenuItem(he,Q,Ie)},Ot.store.setState({activeKey:Object(g.a)(Object(g.a)({},Ot.store.getState().activeKey),{},Object(T.a)({},Ot.eventKey,Qe(Ot,Ot.activeKey)))}),ne.instanceArray=[],ne}return Object(A.a)(At,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ne){return this.props.visible||ne.visible||this.props.className!==ne.className||!u()(this.props.style,ne.style)}},{key:"componentDidUpdate",value:function(ne){var he=this.props,Q="activeKey"in he?he.activeKey:he.store.getState().activeKey[it(he)],te=Qe(he,Q);if(te!==Q)$(he.store,it(he),te);else if("activeKey"in ne){var be=Qe(ne,ne.activeKey);te!==be&&$(he.store,it(he),te)}}},{key:"render",value:function(){var ne=this,he=Object(x.a)({},this.props);this.instanceArray=[];var Q=O()(he.prefixCls,he.className,"".concat(he.prefixCls,"-").concat(he.mode)),te={className:Q,role:he.role||"menu"};he.id&&(te.id=he.id),he.focusable&&(te.tabIndex=0,te.onKeyDown=this.onKeyDown);var be=he.prefixCls,Ie=he.eventKey,Re=he.visible,$e=he.level,gt=he.mode,Wt=he.overflowedIndicator,$t=he.theme;return at.forEach(function(Dt){return delete he[Dt]}),delete he.onClick,c.createElement(Ve,Object.assign({},he,{prefixCls:be,mode:gt,tag:"ul",level:$e,theme:$t,visible:Re,overflowedIndicator:Wt},te),c.Children.map(he.children,function(Dt,Kt){return ne.renderMenuItem(Dt,Kt,Ie||"0-menu-")}))}}]),At}(c.Component);Zt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Fe};var ht=b()(Zt),ct=ht,yt=e("Kwbf");function It(Pe,nt,At){var Ot=Pe.prefixCls,ne=Pe.motion,he=Pe.defaultMotions,Q=he===void 0?{}:he,te=Pe.openAnimation,be=Pe.openTransitionName,Ie=nt.switchingModeFromInline;if(ne)return ne;if(Object(N.a)(te)==="object"&&te)Object(yt.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof te=="string")return{motionName:"".concat(Ot,"-open-").concat(te)};if(be)return{motionName:be};var Re=Q[At];return Re||(Ie?null:Q.other)}var or=function(Pe){Object(v.a)(At,Pe);var nt=Object(h.a)(At);function At(Ot){var ne;Object(f.a)(this,At),ne=nt.call(this,Ot),ne.inlineOpenKeys=[],ne.onSelect=function(te){var be=Object(m.a)(ne),Ie=be.props;if(Ie.selectable){var Re=ne.store.getState(),$e=Re.selectedKeys,gt=te.key;Ie.multiple?$e=$e.concat([gt]):$e=[gt],"selectedKeys"in Ie||ne.store.setState({selectedKeys:$e}),Ie.onSelect(Object(g.a)(Object(g.a)({},te),{},{selectedKeys:$e}))}},ne.onClick=function(te){var be=ne.getRealMenuMode(),Ie=Object(m.a)(ne),Re=Ie.store,$e=Ie.props.onOpenChange;be!=="inline"&&!("openKeys"in ne.props)&&(Re.setState({openKeys:[]}),$e([])),ne.props.onClick(te)},ne.onKeyDown=function(te,be){ne.innerMenu.getWrappedInstance().onKeyDown(te,be)},ne.onOpenChange=function(te){var be=Object(m.a)(ne),Ie=be.props,Re=ne.store.getState().openKeys.concat(),$e=!1,gt=function($t){var Dt=!1;if($t.open)Dt=Re.indexOf($t.key)===-1,Dt&&Re.push($t.key);else{var Kt=Re.indexOf($t.key);Dt=Kt!==-1,Dt&&Re.splice(Kt,1)}$e=$e||Dt};Array.isArray(te)?te.forEach(gt):gt(te),$e&&("openKeys"in ne.props||ne.store.setState({openKeys:Re}),Ie.onOpenChange(Re))},ne.onDeselect=function(te){var be=Object(m.a)(ne),Ie=be.props;if(Ie.selectable){var Re=ne.store.getState().selectedKeys.concat(),$e=te.key,gt=Re.indexOf($e);gt!==-1&&Re.splice(gt,1),"selectedKeys"in Ie||ne.store.setState({selectedKeys:Re}),Ie.onDeselect(Object(g.a)(Object(g.a)({},te),{},{selectedKeys:Re}))}},ne.onMouseEnter=function(te){ne.restoreModeVerticalFromInline();var be=ne.props.onMouseEnter;be&&be(te)},ne.onTransitionEnd=function(te){var be=te.propertyName==="width"&&te.target===te.currentTarget,Ie=te.target.className,Re=Object.prototype.toString.call(Ie)==="[object SVGAnimatedString]"?Ie.animVal:Ie,$e=te.propertyName==="font-size"&&Re.indexOf("anticon")>=0;(be||$e)&&ne.restoreModeVerticalFromInline()},ne.setInnerMenu=function(te){ne.innerMenu=te},ne.isRootMenu=!0;var he=Ot.defaultSelectedKeys,Q=Ot.defaultOpenKeys;return"selectedKeys"in Ot&&(he=Ot.selectedKeys||[]),"openKeys"in Ot&&(Q=Ot.openKeys||[]),ne.store=E({selectedKeys:he,openKeys:Q,activeKey:{"0-menu-":Qe(Ot,Ot.activeKey)}}),ne.state={switchingModeFromInline:!1},ne}return Object(A.a)(At,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ne){this.updateOpentKeysWhenSwitchMode(ne),this.updateMiniStore();var he=this.props,Q=he.siderCollapsed,te=he.inlineCollapsed,be=he.onOpenChange;(!ne.inlineCollapsed&&te||!ne.siderCollapsed&&Q)&&be([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ne){var he=this.props,Q=this.store,te=this.inlineOpenKeys,be=Q.getState(),Ie={};ne.mode==="inline"&&he.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in he||((he.inlineCollapsed&&!ne.inlineCollapsed||he.siderCollapsed&&!ne.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=be.openKeys.concat(),Ie.openKeys=[]),(!he.inlineCollapsed&&ne.inlineCollapsed||!he.siderCollapsed&&ne.siderCollapsed)&&(Ie.openKeys=te,this.inlineOpenKeys=[])),Object.keys(Ie).length&&Q.setState(Ie)}},{key:"updateMenuDisplay",value:function(){var ne=this.props.collapsedWidth,he=this.store,Q=this.prevOpenKeys,te=this.getInlineCollapsed()&&(ne===0||ne==="0"||ne==="0px");te?(this.prevOpenKeys=he.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Q&&(this.store.setState({openKeys:Q}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ne=this.props.mode,he=this.state.switchingModeFromInline,Q=this.getInlineCollapsed();return he&&Q?"inline":Q?"vertical":ne}},{key:"getInlineCollapsed",value:function(){var ne=this.props,he=ne.inlineCollapsed,Q=ne.siderCollapsed;return Q!==void 0?Q:he}},{key:"restoreModeVerticalFromInline",value:function(){var ne=this.state.switchingModeFromInline;ne&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ne=Object(g.a)({},Object(S.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),he=this.getRealMenuMode();return ne.className+=" ".concat(ne.prefixCls,"-root"),ne.direction==="rtl"&&(ne.className+=" ".concat(ne.prefixCls,"-rtl")),ne=Object(g.a)(Object(g.a)({},ne),{},{mode:he,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:It(this.props,this.state,he)}),delete ne.openAnimation,delete ne.openTransitionName,c.createElement(n,{store:this.store},c.createElement(ct,Object.assign({},ne,{ref:this.setInnerMenu}),this.props.children))}}]),At}(c.Component);or.defaultProps={selectable:!0,onClick:Fe,onSelect:Fe,onOpenChange:Fe,onDeselect:Fe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:c.createElement("span",null,"\xB7\xB7\xB7")};var Bt=or,Ae=function(Pe){Object(v.a)(At,Pe);var nt=Object(h.a)(At);function At(){var Ot;return Object(f.a)(this,At),Ot=nt.apply(this,arguments),Ot.onKeyDown=function(ne){var he=ne.keyCode;return he===L.a.ENTER?(Ot.onClick(ne),!0):void 0},Ot.onMouseLeave=function(ne){var he=Ot.props,Q=he.eventKey,te=he.onItemHover,be=he.onMouseLeave;te({key:Q,hover:!1}),be({key:Q,domEvent:ne})},Ot.onMouseEnter=function(ne){var he=Ot.props,Q=he.eventKey,te=he.onItemHover,be=he.onMouseEnter;te({key:Q,hover:!0}),be({key:Q,domEvent:ne})},Ot.onClick=function(ne){var he=Ot.props,Q=he.eventKey,te=he.multiple,be=he.onClick,Ie=he.onSelect,Re=he.onDeselect,$e=he.isSelected,gt={key:Q,keyPath:[Q],item:Object(m.a)(Ot),domEvent:ne};be(gt),te?$e?Re(gt):Ie(gt):$e||Ie(gt)},Ot.saveNode=function(ne){Ot.node=ne},Ot}return Object(A.a)(At,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ne=this.props;ne.onDestroy&&ne.onDestroy(ne.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ne,he=Object(g.a)({},this.props),Q=O()(this.getPrefixCls(),he.className,(ne={},Object(T.a)(ne,this.getActiveClassName(),!he.disabled&&he.active),Object(T.a)(ne,this.getSelectedClassName(),he.isSelected),Object(T.a)(ne,this.getDisabledClassName(),he.disabled),ne)),te=Object(g.a)(Object(g.a)({},he.attribute),{},{title:typeof he.title=="string"?he.title:void 0,className:Q,role:he.role||"menuitem","aria-disabled":he.disabled});he.role==="option"?te=Object(g.a)(Object(g.a)({},te),{},{role:"option","aria-selected":he.isSelected}):(he.role===null||he.role==="none")&&(te.role="none");var be={onClick:he.disabled?null:this.onClick,onMouseLeave:he.disabled?null:this.onMouseLeave,onMouseEnter:he.disabled?null:this.onMouseEnter},Ie=Object(g.a)({},he.style);he.mode==="inline"&&(he.direction==="rtl"?Ie.paddingRight=he.inlineIndent*he.level:Ie.paddingLeft=he.inlineIndent*he.level),at.forEach(function($e){return delete he[$e]}),delete he.direction;var Re=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Re=c.createElement(this.props.itemIcon,this.props)),c.createElement("li",Object.assign({},Object(S.default)(he,["onClick","onMouseEnter","onMouseLeave","onSelect"]),te,be,{style:Ie,ref:this.saveNode}),he.children,Re)}}]),At}(c.Component);Ae.isMenuItem=!0,Ae.defaultProps={onSelect:Fe,onMouseEnter:Fe,onMouseLeave:Fe,manualRef:Fe};var ve=b(function(Pe,nt){var At=Pe.activeKey,Ot=Pe.selectedKeys,ne=nt.eventKey,he=nt.subMenuKey;return{active:At[he]===ne,isSelected:Ot.indexOf(ne)!==-1}})(Ae),fe=ve,ue=function(Pe){Object(v.a)(At,Pe);var nt=Object(h.a)(At);function At(){var Ot;return Object(f.a)(this,At),Ot=nt.apply(this,arguments),Ot.renderInnerMenuItem=function(ne){var he=Ot.props,Q=he.renderMenuItem,te=he.index;return Q(ne,te,Ot.props.subMenuKey)},Ot}return Object(A.a)(At,[{key:"render",value:function(){var ne=Object(x.a)({},this.props),he=ne.className,Q=he===void 0?"":he,te=ne.rootPrefixCls,be="".concat(te,"-item-group-title"),Ie="".concat(te,"-item-group-list"),Re=ne.title,$e=ne.children;return at.forEach(function(gt){return delete ne[gt]}),delete ne.onClick,delete ne.direction,c.createElement("li",Object.assign({},ne,{className:"".concat(Q," ").concat(te,"-item-group")}),c.createElement("div",{className:be,title:typeof Re=="string"?Re:void 0},Re),c.createElement("ul",{className:Ie},c.Children.map($e,this.renderInnerMenuItem)))}}]),At}(c.Component);ue.isMenuItemGroup=!0,ue.defaultProps={disabled:!0};var Ne=ue,je=function(nt){var At=nt.className,Ot=nt.rootPrefixCls,ne=nt.style;return c.createElement("li",{className:"".concat(At," ").concat(Ot,"-item-divider"),style:ne})};je.defaultProps={disabled:!0,className:"",style:{}};var Ke=je,Ye=_.f=Bt},"1n7x":function(D,_,e){(function(g,f){(function(A,m){D.exports=m(e("5RHE"),e("wOnQ"))})(this,function(A,m){"use strict";A=A&&A.hasOwnProperty("default")?A.default:A,m=m&&m.hasOwnProperty("default")?m.default:m;var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},h=Object.assign||function(S){for(var x=1;x0;null)y[C].parentNode.removeChild(y[C])}for(var O in T.style)L.style[O]=T.style[O];return L},i=function S(x,T){for(var L=x.nodeType===3?document.createTextNode(x.nodeValue):x.cloneNode(!1),y=x.firstChild;y;y=y.nextSibling)(T===!0||y.nodeType!==1||y.nodeName!=="SCRIPT")&&L.appendChild(S(y,T));return x.nodeType===1&&(x.nodeName==="CANVAS"?(L.width=x.width,L.height=x.height,L.getContext("2d").drawImage(x,0,0)):(x.nodeName==="TEXTAREA"||x.nodeName==="SELECT")&&(L.value=x.value),L.addEventListener("load",function(){L.scrollTop=x.scrollTop,L.scrollLeft=x.scrollLeft},!0)),L},n=function(x,T){if(c(x)==="number")return x*72/96/T;var L={};for(var y in x)L[y]=x[y]*72/96/T;return L},a=function(x,T){return Math.floor(x*T/72*96)},u=typeof window!="undefined"?window:typeof g!="undefined"?g:typeof self!="undefined"?self:{};function r(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function l(S,x){return x={exports:{}},S(x,x.exports),x.exports}var t=l(function(S,x){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.5+7f2b526d */(function(T,L){S.exports=L()})(u,function(){function T(ht){var ct=typeof ht;return ht!==null&&(ct==="object"||ct==="function")}function L(ht){return typeof ht=="function"}var y=void 0;Array.isArray?y=Array.isArray:y=function(ct){return Object.prototype.toString.call(ct)==="[object Array]"};var C=y,O=0,N=void 0,k=void 0,F=function(ct,yt){le[O]=ct,le[O+1]=yt,O+=2,O===2&&(k?k(Y):we())};function B(ht){k=ht}function H(ht){F=ht}var W=typeof window!="undefined"?window:void 0,R=W||{},U=R.MutationObserver||R.WebKitMutationObserver,j=typeof self=="undefined"&&typeof f!="undefined"&&{}.toString.call(f)==="[object process]",P=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function K(){return function(){return f.nextTick(Y)}}function V(){return typeof N!="undefined"?function(){N(Y)}:G()}function z(){var ht=0,ct=new U(Y),yt=document.createTextNode("");return ct.observe(yt,{characterData:!0}),function(){yt.data=ht=++ht%2}}function X(){var ht=new MessageChannel;return ht.port1.onmessage=Y,function(){return ht.port2.postMessage(0)}}function G(){var ht=setTimeout;return function(){return ht(Y,1)}}var le=new Array(1e3);function Y(){for(var ht=0;htN){var F=k;k=N,N=F}}else if(S==="l"||S==="landscape"){if(S="l",N>k){var F=k;k=N,N=F}}else throw"Invalid orientation: "+S;var B={width:k,height:N,unit:x,k:O};return B};var p={toContainer:d.prototype.toContainer};d.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},d.prototype.toContainer=function(){return p.toContainer.call(this).then(function(){var T=this.prop.container,L=this.prop.pageSize.inner.px.height,y=[].concat(this.opt.pagebreak.mode),C={avoidAll:y.indexOf("avoid-all")!==-1,css:y.indexOf("css")!==-1,legacy:y.indexOf("legacy")!==-1},O={},N=this;["before","after","avoid"].forEach(function(B){var H=C.avoidAll&&B==="avoid";O[B]=H?[]:[].concat(N.opt.pagebreak[B]||[]),O[B].length>0&&(O[B]=Array.prototype.slice.call(T.querySelectorAll(O[B].join(", "))))});var k=T.querySelectorAll(".html2pdf__page-break");k=Array.prototype.slice.call(k);var F=T.querySelectorAll("*");Array.prototype.forEach.call(F,function(H){var W={before:!1,after:C.legacy&&k.indexOf(H)!==-1,avoid:C.avoidAll};if(C.css){var R=window.getComputedStyle(H),U=["always","page","left","right"],j=["avoid","avoid-page"];W={before:W.before||U.indexOf(R.breakBefore||R.pageBreakBefore)!==-1,after:W.after||U.indexOf(R.breakAfter||R.pageBreakAfter)!==-1,avoid:W.avoid||j.indexOf(R.breakInside||R.pageBreakInside)!==-1}}Object.keys(W).forEach(function(G){W[G]=W[G]||O[G].indexOf(H)!==-1});var P=H.getBoundingClientRect();if(W.avoid&&!W.before){var K=Math.floor(P.top/L),V=Math.floor(P.bottom/L),z=Math.abs(P.bottom-P.top)/L;V!==K&&z<=1&&(W.before=!0)}if(W.before){var X=o("div",{style:{display:"block",height:L-P.top%L+"px"}});H.parentNode.insertBefore(X,H)}if(W.after){var X=o("div",{style:{display:"block",height:L-P.bottom%L+"px"}});H.parentNode.insertBefore(X,H.nextSibling)}})})};var b=[],w={toContainer:d.prototype.toContainer,toPdf:d.prototype.toPdf};d.prototype.toContainer=function(){return w.toContainer.call(this).then(function(){if(this.opt.enableLinks){var T=this.prop.container,L=T.querySelectorAll("a"),y=n(T.getBoundingClientRect(),this.prop.pageSize.k);b=[],Array.prototype.forEach.call(L,function(C){for(var O=C.getClientRects(),N=0;Nr.getHeight()&&(T.textPosition="top",O=!0);var N=O?-5-L.height:s+8;y+L.width/2>r.getWidth()?(T.textPosition=["100%",N],T.textAlign="right"):y-L.width/2<0&&(T.textPosition=[0,N],T.textAlign="left")}})},updateView:function(a,u,r,l){f.each(this._features,function(t){t.updateView&&t.updateView(t.model,u,r,l)})},remove:function(a,u){f.each(this._features,function(r){r.remove&&r.remove(a,u)}),this.group.removeAll()},dispose:function(a,u){f.each(this._features,function(r){r.dispose&&r.dispose(a,u)})}});function n(a){return a.indexOf("my")===0}D.exports=i},"2B6p":function(D,_){function e(g,f,A){var m=g.getZoom(),v=g.getCenter(),h=f.zoom,c=g.dataToPoint(v);if(f.dx!=null&&f.dy!=null){c[0]-=f.dx,c[1]-=f.dy;var v=g.pointToData(c);g.setCenter(v)}if(h!=null){if(A){var o=A.min||0,i=A.max||Infinity;h=Math.max(Math.min(m*h,i),o)/m}g.scale[0]*=h,g.scale[1]*=h;var n=g.position,a=(f.originX-n[0])*(h-1),u=(f.originY-n[1])*(h-1);n[0]-=a,n[1]-=u,g.updateTransform();var v=g.pointToData(c);g.setCenter(v),g.setZoom(h*m)}return{center:g.getCenter(),zoom:g.getZoom()}}_.updateCenterAndZoom=e},"2BaD":function(D,_,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},A=f,m=e("6VBw"),v=function(o,i){return g.createElement(m.a,Object.assign({},o,{ref:i,icon:A}))};v.displayName="CloseCircleOutlined";var h=_.a=g.forwardRef(v)},"2DNl":function(D,_,e){var g=e("IMiH"),f=e("loD1"),A=e("59Ip"),m=e("aKvl"),v=e("n1HI"),h=e("hX1E"),c=h.normalizeRadian,o=e("Sj9i"),i=e("hyiK"),n=g.CMD,a=Math.PI*2,u=1e-4;function r(x,T){return Math.abs(x-T)T&&B>y&&B>O&&B>k||B1&&s(),U=o.cubicAt(T,y,O,k,t[0]),R>1&&(j=o.cubicAt(T,y,O,k,t[1]))),R===2?KT&&k>y&&k>O||k=0&&B<=1){for(var H=0,W=o.quadraticAt(T,y,O,B),R=0;RL||k<-L)return 0;var F=Math.sqrt(L*L-k*k);l[0]=-F,l[1]=F;var B=Math.abs(y-C);if(B<1e-4)return 0;if(B%a<1e-4){y=0,C=a;var H=O?1:-1;return N>=l[0]+x&&N<=l[1]+x?H:0}if(O){var F=y;y=c(C),C=c(F)}else y=c(y),C=c(C);y>C&&(C+=a);for(var W=0,R=0;R<2;R++){var U=l[R];if(U+x>N){var j=Math.atan2(k,U),H=O?1:-1;j<0&&(j=a+j),(j>=y&&j<=C||j+a>=y&&j+a<=C)&&(j>Math.PI/2&&j1&&(L||(O+=i(N,k,F,B,y,C))),H===1&&(N=x[H],k=x[H+1],F=N,B=k);switch(W){case n.M:F=x[H++],B=x[H++],N=F,k=B;break;case n.L:if(L){if(f.containStroke(N,k,x[H],x[H+1],T,y,C))return!0}else O+=i(N,k,x[H],x[H+1],y,C)||0;N=x[H++],k=x[H++];break;case n.C:if(L){if(A.containStroke(N,k,x[H++],x[H++],x[H++],x[H++],x[H],x[H+1],T,y,C))return!0}else O+=d(N,k,x[H++],x[H++],x[H++],x[H++],x[H],x[H+1],y,C)||0;N=x[H++],k=x[H++];break;case n.Q:if(L){if(m.containStroke(N,k,x[H++],x[H++],x[H],x[H+1],T,y,C))return!0}else O+=p(N,k,x[H++],x[H++],x[H],x[H+1],y,C)||0;N=x[H++],k=x[H++];break;case n.A:var R=x[H++],U=x[H++],j=x[H++],P=x[H++],K=x[H++],V=x[H++];H+=1;var z=1-x[H++],X=Math.cos(K)*j+R,G=Math.sin(K)*P+U;H>1?O+=i(N,k,X,G,y,C):(F=X,B=G);var le=(y-R)*P/j+R;if(L){if(v.containStroke(R,U,P,K,K+V,z,T,le,C))return!0}else O+=b(R,U,P,K,K+V,z,le,C);N=Math.cos(K+V)*j+R,k=Math.sin(K+V)*P+U;break;case n.R:F=N=x[H++],B=k=x[H++];var Y=x[H++],me=x[H++],X=F+Y,G=B+me;if(L){if(f.containStroke(F,B,X,B,T,y,C)||f.containStroke(X,B,X,G,T,y,C)||f.containStroke(X,G,F,G,T,y,C)||f.containStroke(F,G,F,B,T,y,C))return!0}else O+=i(X,B,X,G,y,C),O+=i(F,G,F,B,y,C);break;case n.Z:if(L){if(f.containStroke(N,k,F,B,T,y,C))return!0}else O+=i(N,k,F,B,y,C);N=F,k=B;break}}return!L&&!r(k,B)&&(O+=i(N,k,F,B,y,C)||0),O!==0}function E(x,T,L){return w(x,0,!1,T,L)}function S(x,T,L,y){return w(x,T,!0,L,y)}_.contain=E,_.containStroke=S},"2Qr1":function(D,_,e){"use strict";e.d(_,"d",function(){return r}),e.d(_,"c",function(){return t}),e.d(_,"e",function(){return s}),e.d(_,"b",function(){return b}),e.d(_,"f",function(){return w}),e.d(_,"g",function(){return E}),e.d(_,"a",function(){return S});var g=e("rePB"),f=e("KQm4"),A=e("DSFK"),m=e("25BE"),v=e("BsWD"),h=e("PYwp");function c(x){return Object(A.a)(x)||Object(m.a)(x)||Object(v.a)(x)||Object(h.a)()}var o=e("U8pU"),i=e("VTBJ"),n=e("Kwbf"),a=e("WKfj");function u(x,T){var L=x.key,y;return"value"in x&&(y=x.value),L!=null?L:y!==void 0?y:"rc-index-key-".concat(T)}function r(x){var T=[];function L(y,C){y.forEach(function(O){C||!("options"in O)?T.push({key:u(O,T.length),groupOption:C,data:O}):(T.push({key:u(O,T.length),group:!0,data:O}),L(O.options,!0))})}return L(x,!1),T}function l(x){var T=Object(i.a)({},x);return"props"in T||Object.defineProperty(T,"props",{get:function(){return Object(n.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),T}}),T}function t(x,T){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},y=L.prevValueOptions,C=y===void 0?[]:y,O=new Map;return T.forEach(function(N){if(!N.group){var k=N.data;O.set(k.value,k)}}),x.map(function(N){var k=O.get(N);return k||(k=Object(i.a)({},C.find(function(F){return F._INTERNAL_OPTION_VALUE_===N}))),l(k)})}var s=function(T,L){var y=L.options,C=L.prevValue,O=L.labelInValue,N=L.optionLabelProp,k=t([T],y)[0],F={value:T},B,H=Object(a.d)(C);return O&&(B=H.find(function(W){return Object(o.a)(W)==="object"&&"value"in W?W.value===T:W.key===T})),B&&Object(o.a)(B)==="object"&&"label"in B?(F.label=B.label,k&&typeof B.label=="string"&&typeof k[N]=="string"&&B.label.trim()!==k[N].trim()&&Object(n.a)(!1,"`label` of `value` is not same as `label` in Select options.")):k&&N in k?F.label=k[N]:F.label=T,F.key=F.value,F};function d(x){return Object(a.d)(x).join("")}function p(x){return function(T,L){var y=T.toLowerCase();if("options"in L)return d(L.label).toLowerCase().includes(y);var C=L[x],O=d(C).toLowerCase();return O.includes(y)&&!L.disabled}}function b(x,T,L){var y=L.optionFilterProp,C=L.filterOption,O=[],N;return C===!1?T:(typeof C=="function"?N=C:N=p(y),T.forEach(function(k){if("options"in k){var F=N(x,k);if(F)O.push(k);else{var B=k.options.filter(function(H){return N(x,H)});B.length&&O.push(Object(i.a)(Object(i.a)({},k),{},{options:B}))}return}N(x,l(k))&&O.push(k)}),O)}function w(x,T){if(!T||!T.length)return null;var L=!1;function y(O,N){var k=c(N),F=k[0],B=k.slice(1);if(!F)return[O];var H=O.split(F);return L=L||H.length>1,H.reduce(function(W,R){return[].concat(Object(f.a)(W),Object(f.a)(y(R,B)))},[]).filter(function(W){return W})}var C=y(x,T);return L?C:null}function E(x,T){var L=t([x],T)[0];return L.disabled}function S(x,T,L,y){var C=Object(a.d)(T).slice().sort(),O=Object(f.a)(x),N=new Set;return x.forEach(function(k){k.options?k.options.forEach(function(F){N.add(F.value)}):N.add(k.value)}),C.forEach(function(k){var F=y?k.value:k;if(!N.has(F)){var B;O.push(y?(B={},Object(g.a)(B,L,k.label),Object(g.a)(B,"value",F),B):{value:F})}}),O}},"2dDv":function(D,_,e){var g=e("bYtY"),f=e("Fofx"),A=e("+TT/"),m=e("aX7z"),v=e("D1WM"),h=e("IwbS"),c=e("OELB"),o=e("72pK"),i=g.each,n=Math.min,a=Math.max,u=Math.floor,r=Math.ceil,l=c.round,t=Math.PI;function s(E,S,x){this._axesMap=g.createHashMap(),this._axesLayout={},this.dimensions=E.dimensions,this._rect,this._model=E,this._init(E,S,x)}s.prototype={type:"parallel",constructor:s,_init:function(E,S,x){var T=E.dimensions,L=E.parallelAxisIndex;i(T,function(y,C){var O=L[C],N=S.getComponent("parallelAxis",O),k=this._axesMap.set(y,new v(y,m.createScaleByModel(N),[0,0],N.get("type"),O)),F=k.type==="category";k.onBand=F&&N.get("boundaryGap"),k.inverse=N.get("inverse"),N.axis=k,k.model=N,k.coordinateSystem=N.coordinateSystem=this},this)},update:function(E,S){this._updateAxesFromSeries(this._model,E)},containPoint:function(E){var S=this._makeLayoutInfo(),x=S.axisBase,T=S.layoutBase,L=S.pixelDimIndex,y=E[1-L],C=E[L];return y>=x&&y<=x+S.axisLength&&C>=T&&C<=T+S.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(E,S){S.eachSeries(function(x){if(!E.contains(x,S))return;var T=x.getData();i(this.dimensions,function(L){var y=this._axesMap.get(L);y.scale.unionExtentFromData(T,T.mapDimension(L)),m.niceScaleExtent(y.scale,y.model)},this)},this)},resize:function(E,S){this._rect=A.getLayoutRect(E.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var E=this._model,S=this._rect,x=["x","y"],T=["width","height"],L=E.get("layout"),y=L==="horizontal"?0:1,C=S[T[y]],O=[0,C],N=this.dimensions.length,k=d(E.get("axisExpandWidth"),O),F=d(E.get("axisExpandCount")||0,[0,N]),B=E.get("axisExpandable")&&N>3&&N>F&&F>1&&k>0&&C>0,H=E.get("axisExpandWindow"),W;if(H)W=d(H[1]-H[0],O),H[1]=H[0]+W;else{W=d(k*(F-1),O);var R=E.get("axisExpandCenter")||u(N/2);H=[k*R-W/2],H[1]=H[0]+W}var U=(C-W)/(N-F);U<3&&(U=0);var j=[u(l(H[0]/k,1))+1,r(l(H[1]/k,1))-1],P=U/k*H[0];return{layout:L,pixelDimIndex:y,layoutBase:S[x[y]],layoutLength:C,axisBase:S[x[1-y]],axisLength:S[T[1-y]],axisExpandable:B,axisExpandWidth:k,axisCollapseWidth:U,axisExpandWindow:H,axisCount:N,winInnerIndices:j,axisExpandWindow0Pos:P}},_layoutAxes:function(){var E=this._rect,S=this._axesMap,x=this.dimensions,T=this._makeLayoutInfo(),L=T.layout;S.each(function(y){var C=[0,T.axisLength],O=y.inverse?1:0;y.setExtent(C[O],C[1-O])}),i(x,function(y,C){var O=(T.axisExpandable?b:p)(C,T),N={horizontal:{x:O.position,y:T.axisLength},vertical:{x:0,y:O.position}},k={horizontal:t/2,vertical:0},F=[N[L].x+E.x,N[L].y+E.y],B=k[L],H=f.create();f.rotate(H,H,B),f.translate(H,H,F),this._axesLayout[y]={position:F,rotation:B,transform:H,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(E){return this._axesMap.get(E)},dataToPoint:function(E,S){return this.axisCoordToPoint(this._axesMap.get(S).dataToCoord(E),S)},eachActiveState:function(E,S,x,T){x==null&&(x=0),T==null&&(T=E.count());var L=this._axesMap,y=this.dimensions,C=[],O=[];g.each(y,function(U){C.push(E.mapDimension(U)),O.push(L.get(U).model)});for(var N=this.hasAxisBrushed(),k=x;kL*(1-F[0])?(N="jump",O=C-L*(1-F[2])):(O=C-L*F[1])>=0&&(O=C-L*(1-F[1]))<=0&&(O=0),O*=S.axisExpandWidth/k,O?o(O,T,y,"all"):N="none";else{var L=T[1]-T[0],H=y[1]*C/L;T=[a(0,H-L/2)],T[1]=n(y[1],T[0]+L),T[0]=T[1]-L}return{axisExpandWindow:T,behavior:N}}};function d(E,S){return n(a(E,S[0]),S[1])}function p(E,S){var x=S.layoutLength/(S.axisCount-1);return{position:x*E,axisNameAvailableWidth:x,axisLabelShow:!0}}function b(E,S){var x=S.layoutLength,T=S.axisExpandWidth,L=S.axisCount,y=S.axisCollapseWidth,C=S.winInnerIndices,O,N=y,k=!1,F;return E1&&arguments[1]!==void 0?arguments[1]:1,Ne=$.length,je=0;je1&&arguments[1]!==void 0?arguments[1]:!1;return Object(j.a)(ce).map(function(se,ke){if(!r.isValidElement(se)||!se.type)return null;var Ce=se.type.isSelectOptGroup,ze=se.key,Oe=se.props,ae=Oe.children,ge=Object(S.a)(Oe,["children"]);return ee||!Ce?P(se):Object(U.a)(Object(U.a)({key:"__RC_SELECT_GRP__".concat(ze===null?ke:ze,"__"),label:ze},ge),{},{options:K(ae)})}).filter(function(se){return se})}var V=e("2Qr1"),z=e("qNPg"),X=e("U8pU"),G=e("Kwbf"),le=e("WKfj");function Y(ce){var ee=ce.mode,se=ce.options,ke=ce.children,Ce=ce.backfill,ze=ce.allowClear,Oe=ce.placeholder,ae=ce.getInputElement,ge=ce.showSearch,Le=ce.onSearch,Ze=ce.defaultOpen,vt=ce.autoFocus,Ct=ce.labelInValue,Be=ce.value,Rt=ce.inputValue,He=ce.optionLabelProp,wt=ee==="multiple"||ee==="tags",Ge=ge!==void 0?ge:wt||ee==="combobox",et=se||K(ke);if(Object(G.a)(ee!=="tags"||et.every(function(ie){return!ie.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ee==="tags"||ee==="combobox"){var rt=et.some(function(ie){return ie.options?ie.options.some(function($){return typeof("value"in $?$.value:$.key)=="number"}):typeof("value"in ie?ie.value:ie.key)=="number"});Object(G.a)(!rt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(G.a)(ee!=="combobox"||!He,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(G.a)(ee==="combobox"||!Ce,"`backfill` only works with `combobox` mode."),Object(G.a)(ee==="combobox"||!ae,"`getInputElement` only work with `combobox` mode."),Object(G.b)(ee!=="combobox"||!ae||!ze||!Oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Le&&!Ge&&ee!=="combobox"&&ee!=="tags"&&Object(G.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(G.b)(!Ze||vt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Be!=null){var lt=Object(le.d)(Be);Object(G.a)(!Ct||lt.every(function(ie){return Object(X.a)(ie)==="object"&&("key"in ie||"value"in ie)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(G.a)(!wt||Array.isArray(Be),"`value` should be array when `mode` is `multiple` or `tags`")}if(ke){var Ve=null;Object(j.a)(ke).some(function(ie){if(!r.isValidElement(ie)||!ie.type)return!1;var $=ie.type;if($.isSelectOption)return!1;if($.isSelectOptGroup){var it=Object(j.a)(ie.props.children).every(function(Qe){return!r.isValidElement(Qe)||!ie.type||Qe.type.isSelectOption?!0:(Ve=Qe.type,!1)});return!it}return Ve=$,!0}),Ve&&Object(G.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ve.displayName||Ve.name||Ve,"`.")),Object(G.a)(Rt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var me=Y,we=Object(z.a)({prefixCls:"rc-select",components:{optionList:F},convertChildrenToData:K,flattenOptions:V.d,getLabeledValue:V.e,filterOptions:V.b,isValueDisabled:V.g,findValueOption:V.c,warningProps:me,fillOptionsWithMissingValue:V.a}),pe=function(ce){Object(b.a)(se,ce);var ee=Object(w.a)(se);function se(){var ke;return Object(d.a)(this,se),ke=ee.apply(this,arguments),ke.selectRef=r.createRef(),ke.focus=function(){ke.selectRef.current.focus()},ke.blur=function(){ke.selectRef.current.blur()},ke}return Object(p.a)(se,[{key:"render",value:function(){return r.createElement(we,Object.assign({ref:this.selectRef},this.props))}}]),se}(r.Component);pe.Option=H,pe.OptGroup=R;var Fe=pe,Xe=Fe,dt=e("H84U"),Ee=e("1vzs"),Se=e("3Nzz"),at=function(ce){n()(se,ce);var ee=u()(se);function se(){var ke;return h()(this,se),ke=ee.apply(this,arguments),ke.selectRef=r.createRef(),ke.focus=function(){ke.selectRef.current&&ke.selectRef.current.focus()},ke.blur=function(){ke.selectRef.current&&ke.selectRef.current.blur()},ke.getMode=function(){var Ce=ke.props.mode;return Ce==="combobox"?void 0:Ce===se.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":Ce},ke.renderSelect=function(Ce){var ze=Ce.getPopupContainer,Oe=Ce.getPrefixCls,ae=Ce.renderEmpty,ge=Ce.direction,Le=Ce.virtual,Ze=Ce.dropdownMatchSelectWidth,vt=ke.props,Ct=vt.prefixCls,Be=vt.notFoundContent,Rt=vt.className,He=vt.size,wt=vt.listHeight,Ge=wt===void 0?256:wt,et=vt.listItemHeight,rt=et===void 0?24:et,lt=vt.getPopupContainer,Ve=vt.dropdownClassName,ie=vt.bordered,$=Oe("select",Ct),it=ke.getMode(),Qe=it==="multiple"||it==="tags",ye;Be!==void 0?ye=Be:it==="combobox"?ye=null:ye=ae("Select");var Zt=Object(Ee.a)(m()(m()({},ke.props),{multiple:Qe,prefixCls:$})),ht=Zt.suffixIcon,ct=Zt.itemIcon,yt=Zt.removeIcon,It=Zt.clearIcon,or=Object(l.default)(ke.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Bt=s()(Ve,f()({},"".concat($,"-dropdown-").concat(ge),ge==="rtl"));return r.createElement(Se.b.Consumer,null,function(Ae){var ve,fe=He||Ae,ue=s()(Rt,(ve={},f()(ve,"".concat($,"-lg"),fe==="large"),f()(ve,"".concat($,"-sm"),fe==="small"),f()(ve,"".concat($,"-rtl"),ge==="rtl"),f()(ve,"".concat($,"-borderless"),!ie),ve));return r.createElement(Xe,m()({ref:ke.selectRef,virtual:Le,dropdownMatchSelectWidth:Ze},or,{listHeight:Ge,listItemHeight:rt,mode:it,prefixCls:$,direction:ge,inputIcon:ht,menuItemSelectedIcon:ct,removeIcon:yt,clearIcon:It,notFoundContent:ye,className:ue,getPopupContainer:lt||ze,dropdownClassName:Bt}))})},ke}return o()(se,[{key:"render",value:function(){return r.createElement(dt.a,null,this.renderSelect)}}]),se}(r.Component);at.Option=H,at.OptGroup=R,at.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",at.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var _e=_.a=at},"2fw6":function(D,_,e){var g=e("y+Vt"),f=g.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(m,v,h){h&&m.moveTo(v.cx+v.r,v.cy),m.arc(v.cx,v.cy,v.r,0,Math.PI*2,!0)}});D.exports=f},"2gN3":function(D,_,e){var g=e("Kz5y"),f=g["__core-js_shared__"];D.exports=f},"2jpz":function(D,_,e){"use strict";e.d(_,"a",function(){return p});var g=e("cDf5"),f=e.n(g),A=e("q1tI"),m=e.n(A),v=e("TSYQ"),h=e.n(v),c=e("gZBC"),o=e.n(c),i=e("vk+C"),n=e.n(i),a=e("pG52"),u=e.n(a),r=e("Csr3"),l=e.n(r),t=e("e5VY"),s=e.n(t),d=e("0n0R");function p(b,w,E,S){var x=S.isLeaf,T=S.expanded,L=S.loading;if(L)return A.createElement(o.a,{className:"".concat(b,"-switcher-loading-icon")});var y;if(E&&f()(E)==="object"&&(y=E.showLeafIcon),x)return E?f()(E)==="object"&&!y?A.createElement("span",{className:"".concat(b,"-switcher-leaf-line")}):A.createElement(n.a,{className:"".concat(b,"-switcher-line-icon")}):null;var C="".concat(b,"-switcher-icon");return Object(d.b)(w)?Object(d.a)(w,{className:h()(w.props.className||"",C)}):w||(E?T?A.createElement(u.a,{className:"".concat(b,"-switcher-line-icon")}):A.createElement(l.a,{className:"".concat(b,"-switcher-line-icon")}):A.createElement(s.a,{className:C}))}},"2oIt":function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};_.default=g},"2uGb":function(D,_,e){var g=e("ProS");e("ko1b"),e("s2lz"),e("RBEP");var f=e("kMLO"),A=e("nKiI");g.registerVisual(f),g.registerLayout(A)},"2w7y":function(D,_,e){var g=e("ProS");e("qMZE"),e("g0SD"),g.registerPreprocessor(function(f){f.markPoint=f.markPoint||{}})},"33Ds":function(D,_,e){var g=e("ProS"),f=e("b9oc"),A=e("Kagy"),m=e("IUWy"),v=A.toolbox.restore;function h(i){this.model=i}h.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:v.title};var c=h.prototype;c.onclick=function(i,n,a){f.clear(i),n.dispatchAction({type:"restore",from:this.uid})},m.register("restore",h),g.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(i,n){n.resetOption("recreate")});var o=h;D.exports=o},"34/K":function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;function g(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function f(v,h){for(var c=0;c>0&3)*255/3,E[S*4+1]=(p[b+S]>>2&3)*255/3,E[S*4+2]=(p[b+S]>>4&3)*255/3,E[S*4+4]=0;p=E,b=0}return u.blitImage(c,s,i,d,p,b),a.rQskipBytes(d*t),this._lines-=d,!(this._lines>0)}}]),v}();_.default=m},"3690":function(D,_,e){"use strict";function g(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(a){return typeof a}:g=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g(i)}Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var f=m(e("Lo0S"));function A(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return A=function(){return i},i}function m(i){if(i&&i.__esModule)return i;if(i===null||g(i)!=="object"&&typeof i!="function")return{default:i};var n=A();if(n&&n.has(i))return n.get(i);var a={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)){var l=u?Object.getOwnPropertyDescriptor(i,r):null;l&&(l.get||l.set)?Object.defineProperty(a,r,l):a[r]=i[r]}return a.default=i,n&&n.set(i,a),a}function v(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function h(i,n){for(var a=0;a0;){var p=1;if(t.rQwait("HEXTILE",p))return!1;var b=t.rQ,w=t.rQi,E=b[w];if(E>30)throw new Error("Illegal hextile subencoding (subencoding: "+E+")");var S=this._totalTiles-this._tiles,x=S%this._tilesX,T=Math.floor(S/this._tilesX),L=a+x*16,y=u+T*16,C=Math.min(16,a+r-L),O=Math.min(16,u+l-y);if(E&1)p+=C*O*4;else if(E&2&&(p+=4),E&4&&(p+=4),E&8){if(p++,t.rQwait("HEXTILE",p))return!1;var N=b[w+p-1];E&16?p+=N*(4+2):p+=N*2}if(t.rQwait("HEXTILE",p))return!1;if(w++,E===0)this._lastsubencoding&1?f.Debug(" Ignoring blank after RAW"):s.fillRect(L,y,C,O,this._background);else if(E&1)s.blitImage(L,y,C,O,b,w),w+=p-1;else{if(E&2&&(this._background=[b[w],b[w+1],b[w+2],b[w+3]],w+=4),E&4&&(this._foreground=[b[w],b[w+1],b[w+2],b[w+3]],w+=4),s.startTile(L,y,C,O,this._background),E&8){var k=b[w];w++;for(var F=0;F>4,R=H&15,U=b[w];w++;var j=(U>>4)+1,P=(U&15)+1;s.subTile(W,R,j,P,B)}}s.finishTile()}t.rQi=w,this._lastsubencoding=E,this._tiles--}return!0}}]),i}();_.default=o},"3A9y":function(D,_){function e(g){return this.__data__.has(g)}D.exports=e},"3C/r":function(D,_){var e=function(A,m){this.image=A,this.repeat=m,this.type="pattern"};e.prototype.getCanvasPattern=function(f){return f.createPattern(this.image,this.repeat||"repeat")};var g=e;D.exports=g},"3CBa":function(D,_,e){var g=e("hydK"),f=g.createElement,A=e("bYtY"),m=e("SUKs"),v=e("y+Vt"),h=e("Dagg"),c=e("dqUG"),o=e("DBLp"),i=e("sW+o"),n=e("n6Mw"),a=e("vKoX"),u=e("P47w"),r=u.path,l=u.image,t=u.text;function s(C){return parseInt(C,10)}function d(C){return C instanceof v?r:C instanceof h?l:C instanceof c?t:r}function p(C,O){return O&&C&&O.parentNode!==C}function b(C,O,N){if(p(C,O)&&N){var k=N.nextSibling;k?C.insertBefore(O,k):C.appendChild(O)}}function w(C,O){if(p(C,O)){var N=C.firstChild;N?C.insertBefore(O,N):C.appendChild(O)}}function E(C,O){O&&C&&O.parentNode===C&&C.removeChild(O)}function S(C){return C.__textSvgEl}function x(C){return C.__svgEl}var T=function(O,N,k,F){this.root=O,this.storage=N,this._opts=k=A.extend({},k||{});var B=f("svg");B.setAttribute("xmlns","http://www.w3.org/2000/svg"),B.setAttribute("version","1.1"),B.setAttribute("baseProfile","full"),B.style.cssText="user-select:none;position:absolute;left:0;top:0;";var H=f("g");B.appendChild(H);var W=f("g");B.appendChild(W),this.gradientManager=new i(F,W),this.clipPathManager=new n(F,W),this.shadowManager=new a(F,W);var R=document.createElement("div");R.style.cssText="overflow:hidden;position:relative",this._svgDom=B,this._svgRoot=W,this._backgroundRoot=H,this._viewport=R,O.appendChild(R),R.appendChild(B),this.resize(k.width,k.height),this._visibleList=[]};T.prototype={constructor:T,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var O=this.getViewportRoot();if(O)return{offsetLeft:O.offsetLeft||0,offsetTop:O.offsetTop||0}},refresh:function(){var O=this.storage.getDisplayList(!0);this._paintList(O)},setBackgroundColor:function(O){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var N=f("rect");N.setAttribute("width",this.getWidth()),N.setAttribute("height",this.getHeight()),N.setAttribute("x",0),N.setAttribute("y",0),N.setAttribute("id",0),N.style.fill=O,this._backgroundRoot.appendChild(N),this._backgroundNode=N},_paintList:function(O){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var N=this._svgRoot,k=this._visibleList,F=O.length,B=[],H;for(H=0;H=0;--W)if(H[W]===B)return!0;return!1}),k}else return null;else return k[0]},resize:function(O,N){var k=this._viewport;k.style.display="none";var F=this._opts;if(O!=null&&(F.width=O),N!=null&&(F.height=N),O=this._getSize(0),N=this._getSize(1),k.style.display="",this._width!==O||this._height!==N){this._width=O,this._height=N;var B=k.style;B.width=O+"px",B.height=N+"px";var H=this._svgDom;H.setAttribute("width",O),H.setAttribute("height",N)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",O),this._backgroundNode.setAttribute("height",N))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(O){var N=this._opts,k=["width","height"][O],F=["clientWidth","clientHeight"][O],B=["paddingLeft","paddingTop"][O],H=["paddingRight","paddingBottom"][O];if(N[k]!=null&&N[k]!=="auto")return parseFloat(N[k]);var W=this.root,R=document.defaultView.getComputedStyle(W);return(W[F]||s(R[k])||s(W.style[k]))-(s(R[B])||0)-(s(R[H])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var O=encodeURIComponent(this._svgDom.outerHTML.replace(/> \r<`));return"data:image/svg+xml;charset=UTF-8,"+O}};function L(C){return function(){m('In SVG mode painter not support method "'+C+'"')}}A.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(C){T.prototype[C]=L(C)});var y=T;D.exports=y},"3Fdi":function(D,_){var e=Function.prototype,g=e.toString;function f(A){if(A!=null){try{return g.call(A)}catch(m){}try{return A+""}catch(m){}}return""}D.exports=f},"3Fjq":function(D,_,e){"use strict";var g=e("TqRt");Object.defineProperty(_,"__esModule",{value:!0}),_.NextArrow=_.PrevArrow=void 0;var f=g(e("pVnL")),A=g(e("3tO9")),m=g(e("lwsE")),v=g(e("W8MJ")),h=g(e("7W2i")),c=g(e("LQ03")),o=g(e("q1tI")),i=g(e("TSYQ")),n=e("3K4p"),a=function(r){(0,h.default)(t,r);var l=(0,c.default)(t);function t(){return(0,m.default)(this,t),l.apply(this,arguments)}return(0,v.default)(t,[{key:"clickHandler",value:function(d,p){p&&p.preventDefault(),this.props.clickHandler(d,p)}},{key:"render",value:function(){var d={"slick-arrow":!0,"slick-prev":!0},p=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(d["slick-disabled"]=!0,p=null);var b={key:"0","data-role":"none",className:(0,i.default)(d),style:{display:"block"},onClick:p},w={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},E;return this.props.prevArrow?E=o.default.cloneElement(this.props.prevArrow,(0,A.default)((0,A.default)({},b),w)):E=o.default.createElement("button",(0,f.default)({key:"0",type:"button"},b)," ","Previous"),E}}]),t}(o.default.PureComponent);_.PrevArrow=a;var u=function(r){(0,h.default)(t,r);var l=(0,c.default)(t);function t(){return(0,m.default)(this,t),l.apply(this,arguments)}return(0,v.default)(t,[{key:"clickHandler",value:function(d,p){p&&p.preventDefault(),this.props.clickHandler(d,p)}},{key:"render",value:function(){var d={"slick-arrow":!0,"slick-next":!0},p=this.clickHandler.bind(this,{message:"next"});(0,n.canGoNext)(this.props)||(d["slick-disabled"]=!0,p=null);var b={key:"1","data-role":"none",className:(0,i.default)(d),style:{display:"block"},onClick:p},w={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},E;return this.props.nextArrow?E=o.default.cloneElement(this.props.nextArrow,(0,A.default)((0,A.default)({},b),w)):E=o.default.createElement("button",(0,f.default)({key:"1",type:"button"},b)," ","Next"),E}}]),t}(o.default.PureComponent);_.NextArrow=u},"3I+P":function(D,_,e){"use strict";e.d(_,"a",function(){return S});var g=e("lSNA"),f=e.n(g),A=e("pVnL"),m=e.n(A),v=e("lwsE"),h=e.n(v),c=e("W8MJ"),o=e.n(c),i=e("7W2i"),n=e.n(i),a=e("LQ03"),u=e.n(a),r=e("q1tI"),l=e.n(r),t=e("sEfC"),s=e.n(t),d=e("N/JB"),p=e.n(d),b=e("TSYQ"),w=e.n(b),E=e("H84U"),S=function(x){n()(L,x);var T=u()(L);function L(y){var C;return h()(this,L),C=T.call(this,y),C.saveSlick=function(O){C.slick=O},C.onWindowResized=function(){var O=C.props.autoplay;O&&C.slick&&C.slick.innerSlider&&C.slick.innerSlider.autoPlay&&C.slick.innerSlider.autoPlay()},C.renderCarousel=function(O){var N,k=O.getPrefixCls,F=O.direction,B,H=m()({},C.props);H.effect==="fade"&&(H.fade=!0);var W=k("carousel",H.prefixCls),R="slick-dots",U=C.getDotPosition();H.vertical=U==="left"||U==="right";var j=!!H.dots,P=w()(R,"".concat(R,"-").concat(U||"bottom"),typeof H.dots=="boolean"?!1:(B=H.dots)===null||B===void 0?void 0:B.className),K=w()(W,(N={},f()(N,"".concat(W,"-rtl"),F==="rtl"),f()(N,"".concat(W,"-vertical"),H.vertical),N));return r.createElement("div",{className:K},r.createElement(p.a,m()({ref:C.saveSlick},H,{dots:j,dotsClass:P})))},C.onWindowResized=s()(C.onWindowResized,500,{leading:!1}),C}return o()(L,[{key:"componentDidMount",value:function(){var C=this.props.autoplay;C&&window.addEventListener("resize",this.onWindowResized),this.innerSlider=this.slick&&this.slick.innerSlider}},{key:"componentDidUpdate",value:function(C){r.Children.count(this.props.children)!==r.Children.count(C.children)&&this.goTo(this.props.initialSlide||0,!1)}},{key:"componentWillUnmount",value:function(){var C=this.props.autoplay;C&&(window.removeEventListener("resize",this.onWindowResized),this.onWindowResized.cancel())}},{key:"getDotPosition",value:function(){var C=this.props.dotPosition,O=C===void 0?"bottom":C;return O}},{key:"next",value:function(){this.slick.slickNext()}},{key:"prev",value:function(){this.slick.slickPrev()}},{key:"goTo",value:function(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.slick.slickGoTo(C,O)}},{key:"render",value:function(){return r.createElement(E.a,null,this.renderCarousel)}}]),L}(r.Component);S.defaultProps={dots:!0,arrows:!1,draggable:!1}},"3K4p":function(D,_,e){"use strict";var g=e("TqRt");Object.defineProperty(_,"__esModule",{value:!0}),_.clamp=m,_.canUseDOM=_.slidesOnLeft=_.slidesOnRight=_.siblingDirection=_.getTotalSlides=_.getPostClones=_.getPreClones=_.getTrackLeft=_.getTrackAnimateCSS=_.getTrackCSS=_.checkSpecKeys=_.getSlideCount=_.checkNavigable=_.getNavigableIndexes=_.swipeEnd=_.swipeMove=_.swipeStart=_.keyHandler=_.changeSlide=_.slideHandler=_.initializedState=_.extractObject=_.canGoNext=_.getSwipeDirection=_.getHeight=_.getWidth=_.lazySlidesOnRight=_.lazySlidesOnLeft=_.lazyEndIndex=_.lazyStartIndex=_.getRequiredLazySlides=_.getOnDemandLazySlides=void 0;var f=g(e("3tO9")),A=g(e("q1tI"));function m(j,P,K){return Math.max(P,Math.min(j,K))}var v=function(P){for(var K=[],V=c(P),z=o(P),X=V;X0?1:0):0};_.lazySlidesOnLeft=i;var n=function(P){return P.centerMode?Math.floor((P.slidesToShow-1)/2)+1+(parseInt(P.centerPadding)>0?1:0):P.slidesToShow};_.lazySlidesOnRight=n;var a=function(P){return P&&P.offsetWidth||0};_.getWidth=a;var u=function(P){return P&&P.offsetHeight||0};_.getHeight=u;var r=function(P){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V,z,X,G;return V=P.startX-P.curX,z=P.startY-P.curY,X=Math.atan2(z,V),G=Math.round(X*180/Math.PI),G<0&&(G=360-Math.abs(G)),G<=45&&G>=0||G<=360&&G>=315?"left":G>=135&&G<=225?"right":K===!0?G>=35&&G<=135?"up":"down":"vertical"};_.getSwipeDirection=r;var l=function(P){var K=!0;return P.infinite||(P.centerMode&&P.currentSlide>=P.slideCount-1||(P.slideCount<=P.slidesToShow||P.currentSlide>=P.slideCount-P.slidesToShow))&&(K=!1),K};_.canGoNext=l;var t=function(P,K){var V={};return K.forEach(function(z){return V[z]=P[z]}),V};_.extractObject=t;var s=function(P){var K=A.default.Children.count(P.children),V=P.listRef,z=Math.ceil(a(V)),X=P.trackRef&&P.trackRef.node,G=Math.ceil(a(X)),le;if(P.vertical)le=z;else{var Y=P.centerMode&&parseInt(P.centerPadding)*2;typeof P.centerPadding=="string"&&P.centerPadding.slice(-1)==="%"&&(Y*=z/100),le=Math.ceil((z-Y)/P.slidesToShow)}var me=V&&u(V.querySelector('[data-index="0"]')),we=me*P.slidesToShow,pe=P.currentSlide===void 0?P.initialSlide:P.currentSlide;P.rtl&&P.currentSlide===void 0&&(pe=K-1-P.initialSlide);var Fe=P.lazyLoadedList||[],Xe=v((0,f.default)((0,f.default)({},P),{},{currentSlide:pe,lazyLoadedList:Fe}));Fe.concat(Xe);var dt={slideCount:K,slideWidth:le,listWidth:z,trackWidth:G,currentSlide:pe,slideHeight:me,listHeight:we,lazyLoadedList:Fe};return P.autoplaying===null&&P.autoplay&&(dt.autoplaying="playing"),dt};_.initializedState=s;var d=function(P){var K=P.waitForAnimate,V=P.animating,z=P.fade,X=P.infinite,G=P.index,le=P.slideCount,Y=P.lazyLoadedList,me=P.lazyLoad,we=P.currentSlide,pe=P.centerMode,Fe=P.slidesToScroll,Xe=P.slidesToShow,dt=P.useCSS;if(K&&V)return{};var Ee=G,Se,at,_e,ce={},ee={},se=X?G:m(G,0,le-1);if(z){if(!X&&(G<0||G>=le))return{};G<0?Ee=G+le:G>=le&&(Ee=G-le),me&&Y.indexOf(Ee)<0&&Y.push(Ee),ce={animating:!0,currentSlide:Ee,lazyLoadedList:Y},ee={animating:!1}}else Se=Ee,Ee<0?(Se=Ee+le,X?le%Fe!==0&&(Se=le-le%Fe):Se=0):!l(P)&&Ee>we?Ee=Se=we:pe&&Ee>=le?(Ee=X?le:le-1,Se=X?0:le-1):Ee>=le&&(Se=Ee-le,X?le%Fe!==0&&(Se=0):Se=le-Xe),!X&&Ee+Xe>=le&&(Se=le-Xe),at=N((0,f.default)((0,f.default)({},P),{},{slideIndex:Ee})),_e=N((0,f.default)((0,f.default)({},P),{},{slideIndex:Se})),X||(at===_e&&(Ee=Se),at=_e),me&&Y.concat(v((0,f.default)((0,f.default)({},P),{},{currentSlide:Ee}))),dt?(ce={animating:!0,currentSlide:Se,trackStyle:O((0,f.default)((0,f.default)({},P),{},{left:at})),lazyLoadedList:Y,targetSlide:se},ee={animating:!1,currentSlide:Se,trackStyle:C((0,f.default)((0,f.default)({},P),{},{left:_e})),swipeLeft:null,targetSlide:se}):ce={currentSlide:Se,trackStyle:C((0,f.default)((0,f.default)({},P),{},{left:_e})),lazyLoadedList:Y,targetSlide:se};return{state:ce,nextState:ee}};_.slideHandler=d;var p=function(P,K){var V,z,X,G,le,Y=P.slidesToScroll,me=P.slidesToShow,we=P.slideCount,pe=P.currentSlide,Fe=P.targetSlide,Xe=P.lazyLoad,dt=P.infinite;if(G=we%Y!==0,V=G?0:(we-pe)%Y,K.message==="previous")X=V===0?Y:me-V,le=pe-X,Xe&&!dt&&(z=pe-X,le=z===-1?we-1:z),dt||(le=Fe-Y);else if(K.message==="next")X=V===0?Y:V,le=pe+X,Xe&&!dt&&(le=(pe+Y)%we+V),dt||(le=Fe+Y);else if(K.message==="dots")le=K.index*K.slidesToScroll;else if(K.message==="children"){if(le=K.index,dt){var Ee=H((0,f.default)((0,f.default)({},P),{},{targetSlide:le}));le>K.currentSlide&&Ee==="left"?le=le-we:le10)return{scrolling:!0};le&&(_e.swipeLength=Oe);var ae=(Y?-1:1)*(_e.curX>_e.startX?1:-1);le&&(ae=_e.curY>_e.startY?1:-1);var ge=Math.ceil(Ee/Se),Le=r(K.touchObject,le),Ze=_e.swipeLength;return at||(me===0&&Le==="right"||me+1>=ge&&Le==="left"||!l(K)&&Le==="left")&&(Ze=_e.swipeLength*we,pe===!1&&Fe&&(Fe(Le),Ce.edgeDragged=!0)),!Xe&&ce&&(ce(Le),Ce.swiped=!0),X?ke=ze+Ze*(ee/se)*ae:Y?ke=ze-Ze*ae:ke=ze+Ze*ae,le&&(ke=ze+Ze*ae),Ce=(0,f.default)((0,f.default)({},Ce),{},{touchObject:_e,swipeLeft:ke,trackStyle:C((0,f.default)((0,f.default)({},K),{},{left:ke}))}),Math.abs(_e.curX-_e.startX)10&&(Ce.swiping=!0,P.preventDefault()),Ce};_.swipeMove=E;var S=function(P,K){var V=K.dragging,z=K.swipe,X=K.touchObject,G=K.listWidth,le=K.touchThreshold,Y=K.verticalSwiping,me=K.listHeight,we=K.swipeToSlide,pe=K.scrolling,Fe=K.onSwipe,Xe=K.targetSlide,dt=K.currentSlide,Ee=K.infinite;if(!V)return z&&P.preventDefault(),{};var Se=Y?me/le:G/le,at=r(X,Y),_e={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(pe)return _e;if(!X.swipeLength)return _e;if(X.swipeLength>Se){P.preventDefault(),Fe&&Fe(at);var ce,ee,se=Ee?dt:Xe;switch(at){case"left":case"up":ee=se+L(K),ce=we?T(K,ee):ee,_e.currentDirection=0;break;case"right":case"down":ee=se-L(K),ce=we?T(K,ee):ee,_e.currentDirection=1;break;default:ce=se}_e.triggerSlideHandler=ce}else{var ke=N(K);_e.trackStyle=O((0,f.default)((0,f.default)({},K),{},{left:ke}))}return _e};_.swipeEnd=S;var x=function(P){for(var K=P.infinite?P.slideCount*2:P.slideCount,V=P.infinite?P.slidesToShow*-1:0,z=P.infinite?P.slidesToShow*-1:0,X=[];VV[V.length-1])K=V[V.length-1];else for(var X in V){if(KP.swipeLeft*-1)return V=Y,!1}else if(Y.offsetLeft-K+a(Y)/2>P.swipeLeft*-1)return V=Y,!1;return!0}),!V)return 0;var G=P.rtl===!0?P.slideCount-P.currentSlide:P.currentSlide,le=Math.abs(V.dataset.index-G)||1;return le}else return P.slidesToScroll};_.getSlideCount=L;var y=function(P,K){return K.reduce(function(V,z){return V&&P.hasOwnProperty(z)},!0)?null:console.error("Keys Missing:",P)};_.checkSpecKeys=y;var C=function(P){y(P,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var K,V,z=P.slideCount+2*P.slidesToShow;P.vertical?V=z*P.slideHeight:K=B(P)*P.slideWidth;var X={opacity:1,transition:"",WebkitTransition:""};if(P.useTransform){var G=P.vertical?"translate3d(0px, "+P.left+"px, 0px)":"translate3d("+P.left+"px, 0px, 0px)",le=P.vertical?"translate3d(0px, "+P.left+"px, 0px)":"translate3d("+P.left+"px, 0px, 0px)",Y=P.vertical?"translateY("+P.left+"px)":"translateX("+P.left+"px)";X=(0,f.default)((0,f.default)({},X),{},{WebkitTransform:G,transform:le,msTransform:Y})}else P.vertical?X.top=P.left:X.left=P.left;return P.fade&&(X={opacity:1}),K&&(X.width=K),V&&(X.height=V),window&&!window.addEventListener&&window.attachEvent&&(P.vertical?X.marginTop=P.left+"px":X.marginLeft=P.left+"px"),X};_.getTrackCSS=C;var O=function(P){y(P,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var K=C(P);return P.useTransform?(K.WebkitTransition="-webkit-transform "+P.speed+"ms "+P.cssEase,K.transition="transform "+P.speed+"ms "+P.cssEase):P.vertical?K.transition="top "+P.speed+"ms "+P.cssEase:K.transition="left "+P.speed+"ms "+P.cssEase,K};_.getTrackAnimateCSS=O;var N=function(P){if(P.unslick)return 0;y(P,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var K=P.slideIndex,V=P.trackRef,z=P.infinite,X=P.centerMode,G=P.slideCount,le=P.slidesToShow,Y=P.slidesToScroll,me=P.slideWidth,we=P.listWidth,pe=P.variableWidth,Fe=P.slideHeight,Xe=P.fade,dt=P.vertical,Ee=0,Se,at,_e=0;if(Xe||P.slideCount===1)return 0;var ce=0;if(z?(ce=-k(P),G%Y!==0&&K+Y>G&&(ce=-(K>G?le-(K-G):G%Y)),X&&(ce+=parseInt(le/2))):(G%Y!==0&&K+Y>G&&(ce=le-G%Y),X&&(ce=parseInt(le/2))),Ee=ce*me,_e=ce*Fe,dt?Se=K*Fe*-1+_e:Se=K*me*-1+Ee,pe===!0){var ee,se=V&&V.node;if(ee=K+k(P),at=se&&se.childNodes[ee],Se=at?at.offsetLeft*-1:0,X===!0){ee=z?K+k(P):K,at=se&&se.children[ee],Se=0;for(var ke=0;keP.currentSlide?P.targetSlide>P.currentSlide+W(P)?"left":"right":P.targetSlide0&&(G+=1),z&&K%2===0&&(G+=1),G}return z?0:K-1};_.slidesOnRight=W;var R=function(P){var K=P.slidesToShow,V=P.centerMode,z=P.rtl,X=P.centerPadding;if(V){var G=(K-1)/2+1;return parseInt(X)>0&&(G+=1),!z&&K%2===0&&(G+=1),G}return z?K-1:0};_.slidesOnLeft=R;var U=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)};_.canUseDOM=U},"3LNs":function(D,_,e){var g=e("bYtY"),f=e("Yl7c"),A=e("IwbS"),m=e("zTMp"),v=e("YH21"),h=e("iLNv"),c=e("4NO4"),o=c.makeInner,i=o(),n=g.clone,a=g.bind;function u(){}u.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(b,w,E,S){var x=w.get("value"),T=w.get("status");if(this._axisModel=b,this._axisPointerModel=w,this._api=E,!S&&this._lastValue===x&&this._lastStatus===T)return;this._lastValue=x,this._lastStatus=T;var L=this._group,y=this._handle;if(!T||T==="hide"){L&&L.hide(),y&&y.hide();return}L&&L.show(),y&&y.show();var C={};this.makeElOption(C,x,b,w,E);var O=C.graphicKey;O!==this._lastGraphicKey&&this.clear(E),this._lastGraphicKey=O;var N=this._moveAnimation=this.determineAnimation(b,w);if(!L)L=this._group=new A.Group,this.createPointerEl(L,C,b,w),this.createLabelEl(L,C,b,w),E.getZr().add(L);else{var k=g.curry(r,w,N);this.updatePointerEl(L,C,k,w),this.updateLabelEl(L,C,k,w)}d(L,w,!0),this._renderHandle(x)},remove:function(b){this.clear(b)},dispose:function(b){this.clear(b)},determineAnimation:function(b,w){var E=w.get("animation"),S=b.axis,x=S.type==="category",T=w.get("snap");if(!T&&!x)return!1;if(E==="auto"||E==null){var L=this.animationThreshold;if(x&&S.getBandWidth()>L)return!0;if(T){var y=m.getAxisInfo(b).seriesDataCount,C=S.getExtent();return Math.abs(C[0]-C[1])/y>L}return!1}return E===!0},makeElOption:function(b,w,E,S,x){},createPointerEl:function(b,w,E,S){var x=w.pointer;if(x){var T=i(b).pointerEl=new A[x.type](n(w.pointer));b.add(T)}},createLabelEl:function(b,w,E,S){if(w.label){var x=i(b).labelEl=new A.Rect(n(w.label));b.add(x),t(x,S)}},updatePointerEl:function(b,w,E){var S=i(b).pointerEl;S&&w.pointer&&(S.setStyle(w.pointer.style),E(S,{shape:w.pointer.shape}))},updateLabelEl:function(b,w,E,S){var x=i(b).labelEl;x&&(x.setStyle(w.label.style),E(x,{shape:w.label.shape,position:w.label.position}),t(x,S))},_renderHandle:function(b){if(this._dragging||!this.updateHandleTransform)return;var w=this._axisPointerModel,E=this._api.getZr(),S=this._handle,x=w.getModel("handle"),T=w.get("status");if(!x.get("show")||!T||T==="hide"){S&&E.remove(S),this._handle=null;return}var L;this._handle||(L=!0,S=this._handle=A.createIcon(x.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(O){v.stop(O.event)},onmousedown:a(this._onHandleDragMove,this,0,0),drift:a(this._onHandleDragMove,this),ondragend:a(this._onHandleDragEnd,this)}),E.add(S)),d(S,w,!1);var y=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];S.setStyle(x.getItemStyle(null,y));var C=x.get("size");g.isArray(C)||(C=[C,C]),S.attr("scale",[C[0]/2,C[1]/2]),h.createOrUpdate(this,"_doDispatchAxisPointer",x.get("throttle")||0,"fixRate"),this._moveHandleToValue(b,L)},_moveHandleToValue:function(b,w){r(this._axisPointerModel,!w&&this._moveAnimation,this._handle,s(this.getHandleTransform(b,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(b,w){var E=this._handle;if(!E)return;this._dragging=!0;var S=this.updateHandleTransform(s(E),[b,w],this._axisModel,this._axisPointerModel);this._payloadInfo=S,E.stopAnimation(),E.attr(s(S)),i(E).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var b=this._handle;if(!b)return;var w=this._payloadInfo,E=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:w.cursorPoint[0],y:w.cursorPoint[1],tooltipOption:w.tooltipOption,axesInfo:[{axisDim:E.axis.dim,axisIndex:E.componentIndex}]})},_onHandleDragEnd:function(b){this._dragging=!1;var w=this._handle;if(!w)return;var E=this._axisPointerModel.get("value");this._moveHandleToValue(E),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(b){this._lastValue=null,this._lastStatus=null;var w=b.getZr(),E=this._group,S=this._handle;w&&E&&(this._lastGraphicKey=null,E&&w.remove(E),S&&w.remove(S),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(b,w,E){return E=E||0,{x:b[E],y:b[1-E],width:w[E],height:w[1-E]}}},u.prototype.constructor=u;function r(b,w,E,S){l(i(E).lastProp,S)||(i(E).lastProp=S,w?A.updateProps(E,S,b):(E.stopAnimation(),E.attr(S)))}function l(b,w){if(g.isObject(b)&&g.isObject(w)){var E=!0;return g.each(w,function(S,x){E=E&&l(b[x],S)}),!!E}else return b===w}function t(b,w){b[w.get("label.show")?"show":"hide"]()}function s(b){return{position:b.position.slice(),rotation:b.rotation||0}}function d(b,w,E){var S=w.get("z"),x=w.get("zlevel");b&&b.traverse(function(T){T.type!=="group"&&(S!=null&&(T.z=S),x!=null&&(T.zlevel=x),T.silent=E)})}f.enableClassExtend(u);var p=u;D.exports=p},"3OrL":function(D,_,e){var g=e("bYtY"),f=e("6Ic6"),A=e("IwbS"),m=e("y+Vt"),v=["itemStyle"],h=["emphasis","itemStyle"],c=f.extend({type:"boxplot",render:function(r,l,t){var s=r.getData(),d=this.group,p=this._data;this._data||d.removeAll();var b=r.get("layout")==="horizontal"?1:0;s.diff(p).add(function(w){if(s.hasValue(w)){var E=s.getItemLayout(w),S=i(E,s,w,b,!0);s.setItemGraphicEl(w,S),d.add(S)}}).update(function(w,E){var S=p.getItemGraphicEl(E);if(!s.hasValue(w)){d.remove(S);return}var x=s.getItemLayout(w);S?n(x,S,s,w):S=i(x,s,w,b),d.add(S),s.setItemGraphicEl(w,S)}).remove(function(w){var E=p.getItemGraphicEl(w);E&&d.remove(E)}).execute(),this._data=s},remove:function(r){var l=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(s){s&&l.remove(s)})},dispose:g.noop}),o=m.extend({type:"boxplotBoxPath",shape:{},buildPath:function(r,l){var t=l.points,s=0;for(r.moveTo(t[s][0],t[s][1]),s++;s<4;s++)r.lineTo(t[s][0],t[s][1]);for(r.closePath();s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(V,G))continue;X[G]=V[G]}}return X}function E(V,z){if(V==null)return{};var X={},G=Object.keys(V),le,Y;for(Y=0;Y=0)continue;X[le]=V[le]}return X}var S=function(z,X){var G=z.overlayClassName,le=z.trigger,Y=le===void 0?["hover"]:le,me=z.mouseEnterDelay,we=me===void 0?0:me,pe=z.mouseLeaveDelay,Fe=pe===void 0?.1:pe,Xe=z.overlayStyle,dt=z.prefixCls,Ee=dt===void 0?"rc-tooltip":dt,Se=z.children,at=z.onVisibleChange,_e=z.afterVisibleChange,ce=z.transitionName,ee=z.animation,se=z.placement,ke=se===void 0?"right":se,Ce=z.align,ze=Ce===void 0?{}:Ce,Oe=z.destroyTooltipOnHide,ae=Oe===void 0?!1:Oe,ge=z.defaultVisible,Le=z.getTooltipContainer,Ze=z.overlayInnerStyle,vt=w(z,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Ct=Object(c.useRef)(null);Object(c.useImperativeHandle)(X,function(){return Ct.current});var Be=p({},vt);"visible"in z&&(Be.popupVisible=z.visible);var Rt=function(){var rt=z.arrowContent,lt=rt===void 0?null:rt,Ve=z.overlay,ie=z.id;return[o.a.createElement("div",{className:"".concat(Ee,"-arrow"),key:"arrow"},lt),o.a.createElement(t,{key:"content",prefixCls:Ee,id:ie,overlay:Ve,overlayInnerStyle:Ze})]},He=!1,wt=!1;if(typeof ae=="boolean")He=ae;else if(ae&&s(ae)==="object"){var Ge=ae.keepParent;He=Ge===!0,wt=Ge===!1}return o.a.createElement(i.a,Object.assign({popupClassName:G,prefixCls:Ee,popup:Rt,action:Y,builtinPlacements:u,popupPlacement:ke,ref:Ct,popupAlign:ze,getPopupContainer:Le,onPopupVisibleChange:at,afterPopupVisibleChange:_e,popupTransitionName:ce,popupAnimation:ee,defaultPopupVisible:ge,destroyPopupOnHide:He,autoDestroy:wt,mouseLeaveDelay:Fe,popupStyle:Xe,mouseEnterDelay:we},Be),Se)},x=Object(c.forwardRef)(S),T=x,L=e("TSYQ"),y=e.n(L),C={adjustX:1,adjustY:1},O={adjustX:0,adjustY:0},N=[0,0];function k(V){return typeof V=="boolean"?V?C:O:h()(h()({},O),V)}function F(V){var z=V.arrowWidth,X=z===void 0?5:z,G=V.horizontalArrowShift,le=G===void 0?16:G,Y=V.verticalArrowShift,me=Y===void 0?8:Y,we=V.autoAdjustOverflow,pe={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(le+X),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(me+X)]},topRight:{points:["br","tc"],offset:[le+X,-4]},rightTop:{points:["tl","cr"],offset:[4,-(me+X)]},bottomRight:{points:["tr","bc"],offset:[le+X,4]},rightBottom:{points:["bl","cr"],offset:[4,me+X]},bottomLeft:{points:["tl","bc"],offset:[-(le+X),4]},leftBottom:{points:["br","cl"],offset:[-4,me+X]}};return Object.keys(pe).forEach(function(Fe){pe[Fe]=V.arrowPointAtCenter?h()(h()({},pe[Fe]),{overflow:k(we),targetOffset:N}):h()(h()({},u[Fe]),{overflow:k(we)}),pe[Fe].ignoreShake=!0}),pe}var B=e("0n0R"),H=e("H84U"),W=e("09Wf"),R=function(z,X){var G={},le=h()({},z);return X.forEach(function(Y){z&&Y in z&&(G[Y]=z[Y],delete le[Y])}),{picked:G,omitted:le}},U=new RegExp("^(".concat(W.a.join("|"),")(-inverse)?$"));function j(V,z){var X=V.type;if((X.__ANT_BUTTON===!0||X.__ANT_SWITCH===!0||X.__ANT_CHECKBOX===!0||V.type==="button")&&V.props.disabled){var G=R(V.props.style,["position","left","right","top","bottom","float","display","zIndex"]),le=G.picked,Y=G.omitted,me=h()(h()({display:"inline-block"},le),{cursor:"not-allowed",width:V.props.block?"100%":null}),we=h()(h()({},Y),{pointerEvents:"none"}),pe=Object(B.a)(V,{style:we,className:null});return c.createElement("span",{style:me,className:y()(V.props.className,"".concat(z,"-disabled-compatible-wrapper"))},pe)}return V}var P=c.forwardRef(function(V,z){var X,G=c.useContext(H.b),le=G.getPopupContainer,Y=G.getPrefixCls,me=G.direction,we=c.useState(!!V.visible||!!V.defaultVisible),pe=m()(we,2),Fe=pe[0],Xe=pe[1];c.useEffect(function(){"visible"in V&&Xe(V.visible)},[V.visible]);var dt=function(){var Ge=V.title,et=V.overlay;return!Ge&&!et&&Ge!==0},Ee=function(Ge){"visible"in V||Xe(dt()?!1:Ge),V.onVisibleChange&&!dt()&&V.onVisibleChange(Ge)},Se=function(){var Ge=V.builtinPlacements,et=V.arrowPointAtCenter,rt=V.autoAdjustOverflow;return Ge||F({arrowPointAtCenter:et,autoAdjustOverflow:rt})},at=function(Ge,et){var rt=Se(),lt=Object.keys(rt).filter(function($){return rt[$].points[0]===et.points[0]&&rt[$].points[1]===et.points[1]})[0];if(!lt)return;var Ve=Ge.getBoundingClientRect(),ie={top:"50%",left:"50%"};lt.indexOf("top")>=0||lt.indexOf("Bottom")>=0?ie.top="".concat(Ve.height-et.offset[1],"px"):(lt.indexOf("Top")>=0||lt.indexOf("bottom")>=0)&&(ie.top="".concat(-et.offset[1],"px")),lt.indexOf("left")>=0||lt.indexOf("Right")>=0?ie.left="".concat(Ve.width-et.offset[0],"px"):(lt.indexOf("right")>=0||lt.indexOf("Left")>=0)&&(ie.left="".concat(-et.offset[0],"px")),Ge.style.transformOrigin="".concat(ie.left," ").concat(ie.top)},_e=function(){var Ge=V.title,et=V.overlay;return Ge===0?Ge:et||Ge||""},ce=V.prefixCls,ee=V.openClassName,se=V.getPopupContainer,ke=V.getTooltipContainer,Ce=V.overlayClassName,ze=V.color,Oe=V.overlayInnerStyle,ae=V.children,ge=Y("tooltip",ce),Le=Fe;!("visible"in V)&&dt()&&(Le=!1);var Ze=j(Object(B.b)(ae)?ae:c.createElement("span",null,ae),ge),vt=Ze.props,Ct=y()(vt.className,f()({},ee||"".concat(ge,"-open"),!0)),Be=y()(Ce,(X={},f()(X,"".concat(ge,"-rtl"),me==="rtl"),f()(X,"".concat(ge,"-").concat(ze),ze&&U.test(ze)),X)),Rt,He;return ze&&!U.test(ze)&&(Rt=h()(h()({},Oe),{background:ze}),He={background:ze}),c.createElement(T,h()({},V,{prefixCls:ge,overlayClassName:Be,getTooltipContainer:se||ke||le,ref:z,builtinPlacements:Se(),overlay:_e(),visible:Le,onVisibleChange:Ee,onPopupAlign:at,overlayInnerStyle:Rt,arrowContent:c.createElement("span",{className:"".concat(ge,"-arrow-content"),style:He})}),Le?Object(B.a)(Ze,{className:Ct}):Ze)});P.displayName="Tooltip",P.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var K=_.a=P},"3TkU":function(D,_,e){e("aTJb"),e("OlYY"),e("fc+c"),e("QUw5"),e("Swgg"),e("LBfv"),e("noeP")},"3X6L":function(D,_,e){var g=e("bYtY"),f=e("7a+S"),A=e("OKJ2"),m=f.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});g.mixin(m,A);var v=m;D.exports=v},"3e3G":function(D,_,e){var g=e("bYtY"),f=e("QuXc"),A=function(h,c,o,i,n){this.x=h==null?.5:h,this.y=c==null?.5:c,this.r=o==null?.5:o,this.type="radial",this.global=n||!1,f.call(this,i)};A.prototype={constructor:A},g.inherits(A,f);var m=A;D.exports=m},"3gBT":function(D,_){var e=2311;function g(){return e++}D.exports=g},"3hzK":function(D,_){var e={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};D.exports=e},"3m61":function(D,_){function e(f){return f instanceof Array||(f=[f,f]),f}function g(f){f.eachSeriesByType("graph",function(A){var m=A.getGraph(),v=A.getEdgeData(),h=e(A.get("edgeSymbol")),c=e(A.get("edgeSymbolSize")),o="lineStyle.color".split("."),i="lineStyle.opacity".split(".");v.setVisual("fromSymbol",h&&h[0]),v.setVisual("toSymbol",h&&h[1]),v.setVisual("fromSymbolSize",c&&c[0]),v.setVisual("toSymbolSize",c&&c[1]),v.setVisual("color",A.get(o)),v.setVisual("opacity",A.get(i)),v.each(function(n){var a=v.getItemModel(n),u=m.getEdgeByIndex(n),r=e(a.getShallow("symbol",!0)),l=e(a.getShallow("symbolSize",!0)),t=a.get(o),s=a.get(i);switch(t){case"source":t=u.node1.getVisual("color");break;case"target":t=u.node2.getVisual("color");break}r[0]&&u.setVisual("fromSymbol",r[0]),r[1]&&u.setVisual("toSymbol",r[1]),l[0]&&u.setVisual("fromSymbolSize",l[0]),l[1]&&u.setVisual("toSymbolSize",l[1]),u.setVisual("color",t),u.setVisual("opacity",s)})})}D.exports=g},"3ouR":function(D,_,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 00354 671z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"close-square",theme:"outlined"},A=f,m=e("6VBw"),v=function(o,i){return g.createElement(m.a,Object.assign({},o,{ref:i,icon:A}))};v.displayName="CloseSquareOutlined";var h=_.a=g.forwardRef(v)},"3zoK":function(D,_,e){var g=e("bYtY"),f=e("bLfw"),A=e("KCsZ"),m=e("nkfE"),v=e("OELB"),h=e("ICMv"),c=f.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return A([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(a){var u=this.activeIntervals=g.clone(a);if(u)for(var r=u.length-1;r>=0;r--)v.asc(u[r])},getActiveState:function(a){var u=this.activeIntervals;if(!u.length)return"normal";if(a==null||isNaN(a))return"inactive";if(u.length===1){var r=u[0];if(r[0]<=a&&a<=r[1])return"active"}else for(var l=0,t=u.length;l40&&(F=Math.max(1,Math.floor(k/40)));for(var B=N[0],H=T.dataToCoord(B+1)-T.dataToCoord(B),W=Math.abs(H*Math.cos(C)),R=Math.abs(H*Math.sin(C)),U=0,j=0;B<=N[1];B+=F){var P=0,K=0,V=f.getBoundingRect(y(B),L.font,"center","top");P=V.width*1.3,K=V.height*1.3,U=Math.max(U,P,7),j=Math.max(j,K,7)}var z=U/W,X=j/R;isNaN(z)&&(z=Infinity),isNaN(X)&&(X=Infinity);var G=Math.max(0,Math.floor(Math.min(z,X))),le=i(T.model),Y=T.getExtent(),me=le.lastAutoInterval,we=le.lastTickCount;return me!=null&&we!=null&&Math.abs(me-G)<=1&&Math.abs(we-k)<=1&&me>G&&le.axisExtend0===Y[0]&&le.axisExtend1===Y[1]?G=me:(le.lastTickCount=k,le.lastAutoInterval=G,le.axisExtend0=Y[0],le.axisExtend1=Y[1]),G}function E(T){var L=T.getLabelModel();return{axisRotate:T.getRotate?T.getRotate():T.isHorizontal&&!T.isHorizontal()?90:0,labelRotate:L.get("rotate")||0,font:L.getFont()}}function S(T,L,y){var C=h(T),O=T.scale,N=O.getExtent(),k=T.getLabelModel(),F=[],B=Math.max((L||0)+1,1),H=N[0],W=O.count();H!==0&&B>1&&W/B>2&&(H=Math.round(Math.ceil(H/B)*B));var R=o(T),U=k.get("showMinLabel")||R,j=k.get("showMaxLabel")||R;U&&H!==N[0]&&K(N[0]);for(var P=H;P<=N[1];P+=B)K(P);j&&P-B!==N[1]&&K(N[1]);function K(V){F.push(y?V:{formattedLabel:C(V),rawLabel:O.getLabel(V),tickValue:V})}return F}function x(T,L,y){var C=T.scale,O=h(T),N=[];return g.each(C.getTicks(),function(k){var F=C.getLabel(k);L(k,F)&&N.push(y?k:{formattedLabel:O(k),rawLabel:F,tickValue:k})}),N}_.createAxisLabels=n,_.createAxisTicks=a,_.calculateCategoryInterval=w},"4NO4":function(D,_,e){var g=e("bYtY"),f=e("ItGF"),A=g.each,m=g.isObject,v=g.isArray,h="series\0";function c(y){return y instanceof Array?y:y==null?[]:[y]}function o(y,C,O){if(y){y[C]=y[C]||{},y.emphasis=y.emphasis||{},y.emphasis[C]=y.emphasis[C]||{};for(var N=0,k=O.length;N=O.length&&O.push({option:N})}),O}function r(y){var C=g.createHashMap();A(y,function(O,N){var k=O.exist;k&&C.set(k.id,O)}),A(y,function(O,N){var k=O.option;g.assert(!k||k.id==null||!C.get(k.id)||C.get(k.id)===O,"id duplicates: "+(k&&k.id)),k&&k.id!=null&&C.set(k.id,O),!O.keyInfo&&(O.keyInfo={})}),A(y,function(O,N){var k=O.exist,F=O.option,B=O.keyInfo;if(!m(F))return;if(B.name=F.name!=null?F.name+"":k?k.name:h+N,k)B.id=k.id;else if(F.id!=null)B.id=F.id+"";else{var H=0;do B.id="\0"+B.name+"\0"+H++;while(C.get(B.id))}C.set(B.id,O)})}function l(y){var C=y.name;return!!(C&&C.indexOf(h))}function t(y){return m(y)&&y.id&&(y.id+"").indexOf("\0_ec_\0")===0}function s(y,C){var O={},N={};return k(y||[],O),k(C||[],N,O),[F(O),F(N)];function k(B,H,W){for(var R=0,U=B.length;R=v[0]&&m<=v[1]},f.prototype.normalize=function(m){var v=this._extent;return v[1]===v[0]?.5:(m-v[0])/(v[1]-v[0])},f.prototype.scale=function(m){var v=this._extent;return m*(v[1]-v[0])+v[0]},f.prototype.unionExtent=function(m){var v=this._extent;m[0]v[1]&&(v[1]=m[1])},f.prototype.unionExtentFromData=function(m,v){this.unionExtent(m.getApproximateExtent(v))},f.prototype.getExtent=function(){return this._extent.slice()},f.prototype.setExtent=function(m,v){var h=this._extent;isNaN(m)||(h[0]=m),isNaN(v)||(h[1]=v)},f.prototype.isBlank=function(){return this._isBlank},f.prototype.setBlank=function(m){this._isBlank=m},f.prototype.getLabel=null,g.enableClassExtend(f),g.enableClassManagement(f,{registerWhenExtend:!0});var A=f;D.exports=A},"4fz+":function(D,_,e){var g=e("bYtY"),f=e("1bdT"),A=e("mFDi"),m=function(c){c=c||{},f.call(this,c);for(var o in c)c.hasOwnProperty(o)&&(this[o]=c[o]);this._children=[],this.__storage=null,this.__dirty=!0};m.prototype={constructor:m,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(c){return this._children[c]},childOfName:function(c){for(var o=this._children,i=0;i=0&&(i.splice(n,0,c),this._doAdd(c))}return this},_doAdd:function(c){c.parent&&c.parent.remove(c),c.parent=this;var o=this.__storage,i=this.__zr;o&&o!==c.__storage&&(o.addToStorage(c),c instanceof m&&c.addChildrenToStorage(o)),i&&i.refresh()},remove:function(c){var o=this.__zr,i=this.__storage,n=this._children,a=g.indexOf(n,c);return a<0?this:(n.splice(a,1),c.parent=null,i&&(i.delFromStorage(c),c instanceof m&&c.delChildrenFromStorage(i)),o&&o.refresh(),this)},removeAll:function(){var c=this._children,o=this.__storage,i,n;for(n=0;n1e-4){L[0]=p-w,L[1]=b-E,y[0]=p+w,y[1]=b+E;return}if(o[0]=h(S)*w+p,o[1]=v(S)*E+b,i[0]=h(x)*w+p,i[1]=v(x)*E+b,C(L,o,i),O(y,o,i),S=S%c,S<0&&(S=S+c),x=x%c,x<0&&(x=x+c),S>x&&!T?x+=c:SS&&(n[0]=h(F)*w+p,n[1]=v(F)*E+b,C(L,n,L),O(y,n,y))}_.fromPoints=a,_.fromLine=u,_.fromCubic=t,_.fromQuadratic=s,_.fromArc=d},"4vCz":function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var A=f(e("q1tI")),m=g(e("X2/X")),v=g(e("KQxl")),h=function(i,n){return A.createElement(v.default,Object.assign({},i,{ref:n,icon:m.default}))};h.displayName="PlusSquareOutlined";var c=A.forwardRef(h);_.default=c},"4xFK":function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};_.default=g},"56rv":function(D,_,e){var g=e("IwbS"),f=e("x3X8"),A=f.getDefaultLabel;function m(h,c,o,i,n,a,u){var r=o.getModel("label"),l=o.getModel("emphasis.label");g.setLabelStyle(h,c,r,l,{labelFetcher:n,labelDataIndex:a,defaultText:A(n.getData(),a),isRectText:!0,autoColor:i}),v(h),v(c)}function v(h,c){h.textPosition==="outside"&&(h.textPosition=c)}_.setLabel=m},"59Ip":function(D,_,e){var g=e("Sj9i");function f(A,m,v,h,c,o,i,n,a,u,r){if(a===0)return!1;var l=a;if(r>m+l&&r>h+l&&r>o+l&&r>n+l||rA+l&&u>v+l&&u>c+l&&u>i+l||uo)return c[n];return c[i-1]}var h={clearColorPalette:function(){m(this).colorIdx=0,m(this).colorNameMap={}},getColorFromPalette:function(c,o,i){o=o||this;var n=m(o),a=n.colorIdx||0,u=n.colorNameMap=n.colorNameMap||{};if(u.hasOwnProperty(c))return u[c];var r=A(this.get("color",!0)),l=this.get("colorLayer",!0),t=i==null||!l?r:v(l,i);if(t=t||r,!t||!t.length)return;var s=t[a];return c&&(u[c]=s),n.colorIdx=(a+1)%t.length,s}};D.exports=h},"5NDa":function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),A=e("OnYD"),m=e.n(A),v=e("+L6B")},"5NHt":function(D,_,e){e("aTJb"),e("OlYY"),e("fc+c"),e("N5BQ"),e("IyUQ"),e("LBfv"),e("noeP")},"5OYt":function(D,_,e){"use strict";var g=e("J4zp"),f=e.n(g),A=e("q1tI"),m=e.n(A),v=e("ACnJ");function h(){var c=Object(A.useState)({}),o=f()(c,2),i=o[0],n=o[1];return Object(A.useEffect)(function(){var a=v.a.subscribe(function(u){n(u)});return function(){return v.a.unsubscribe(a)}},[]),i}_.a=h},"5RHE":function(D,_,e){(function(g){var f,A,A;!function(m){!(f=m,A=typeof f=="function"?f.call(_,e,_,D):f,A!==void 0&&(D.exports=A))}(function(){"use strict";/** @license * jsPDF - PDF Document creation from JavaScript * Version 1.5.3 Built on 2018-12-27T14:11:42.696Z * CommitID d93d28db14 * * Copyright (c) 2010-2016 James Hall , https://github.com/MrRio/jsPDF * 2010 Aaron Spike, https://github.com/acspike * 2012 Willow Systems Corporation, willow-systems.com * 2012 Pablo Hess, https://github.com/pablohess * 2012 Florian Jenett, https://github.com/fjenett * 2013 Warren Weckesser, https://github.com/warrenweckesser * 2013 Youssef Beddad, https://github.com/lifof * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2013 Stefan Slonevskiy, https://github.com/stefslon * 2013 Jeremy Morel, https://github.com/jmorel * 2013 Christoph Hartmann, https://github.com/chris-rock * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Makes, https://github.com/dollaruw * 2014 Diego Casorran, https://github.com/diegocr * 2014 Steven Spungin, https://github.com/Flamenco * 2014 Kenneth Glassey, https://github.com/Gavvers * * Licensed under the MIT License * * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco */function m(Ae){return(m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(Ae)}!function(Ae){if(m(Ae.console)!=="object"){Ae.console={};for(var ve,fe,ue=Ae.console,Ne=function(){},je=["memory"],Ke="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");ve=je.pop();)ue[ve]||(ue[ve]={});for(;fe=Ke.pop();)ue[fe]||(ue[fe]=Ne)}var Ye,Pe,nt,At,Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Ae.btoa===void 0&&(Ae.btoa=function(ne){var he,Q,te,be,Ie,Re=0,$e=0,gt="",Wt=[];if(!ne)return ne;for(;he=(Ie=ne.charCodeAt(Re++)<<16|ne.charCodeAt(Re++)<<8|ne.charCodeAt(Re++))>>18&63,Q=Ie>>12&63,te=Ie>>6&63,be=63&Ie,Wt[$e++]=Ot.charAt(he)+Ot.charAt(Q)+Ot.charAt(te)+Ot.charAt(be),Re>16&255,Q=Re>>8&255,te=255&Re,Wt[gt++]=be==64?String.fromCharCode(he):Ie==64?String.fromCharCode(he,Q):String.fromCharCode(he,Q,te),$e>>0,te=new Array(Q),be=1>>0,be=0;be>>0;if(typeof he!="function")throw new TypeError("predicate must be a function");for(var be=arguments[1],Ie=0;Ie>16&255,br=wn>>8&255,Mr=255&wn}if(br===void 0||Dr===void 0&&sr===br&&br===Mr)if(typeof sr=="string")Vt=sr+" "+rn[0];else switch(St.precision){case 2:Vt=Re(sr/255)+" "+rn[0];break;case 3:default:Vt=$e(sr/255)+" "+rn[0]}else if(Dr===void 0||m(Dr)==="object"){if(Dr&&!isNaN(Dr.a)&&Dr.a===0)return Vt=["1.000","1.000","1.000",rn[1]].join(" ");if(typeof sr=="string")Vt=[sr,br,Mr,rn[1]].join(" ");else switch(St.precision){case 2:Vt=[Re(sr/255),Re(br/255),Re(Mr/255),rn[1]].join(" ");break;default:case 3:Vt=[$e(sr/255),$e(br/255),$e(Mr/255),rn[1]].join(" ")}}else if(typeof sr=="string")Vt=[sr,br,Mr,Dr,rn[2]].join(" ");else switch(St.precision){case 2:Vt=[Re(sr/255),Re(br/255),Re(Mr/255),Re(Dr/255),rn[2]].join(" ");break;case 3:default:Vt=[$e(sr/255),$e(br/255),$e(Mr/255),$e(Dr/255),rn[2]].join(" ")}return Vt},ia=ne.__private__.getFilters=function(){return Pe},xa=ne.__private__.putStream=function(St){var Vt=(St=St||{}).data||"",sr=St.filters||ia(),br=St.alreadyAppliedFilters||[],Mr=St.addLength1||!1,Dr=Vt.length,rn={};sr===!0&&(sr=["FlateEncode"]);var fn=St.additionalKeyValues||[],wn=(rn=fe.API.processDataByFilters!==void 0?fe.API.processDataByFilters(Vt,sr):{data:Vt,reverseChain:[]}).reverseChain+(Array.isArray(br)?br.join(" "):br.toString());rn.data.length!==0&&(fn.push({key:"Length",value:rn.data.length}),Mr===!0&&fn.push({key:"Length1",value:Dr})),wn.length!=0&&(wn.split("/").length-1==1?fn.push({key:"Filter",value:wn}):fn.push({key:"Filter",value:"["+wn+"]"})),Xt("<<");for(var Hn=0;Hn>"),rn.data.length!==0&&(Xt("stream"),Xt(rn.data),Xt("endstream"))},ta=ne.__private__.putPage=function(St){St.mediaBox;var Vt=St.number,sr=St.data,br=St.objId,Mr=St.contentsObjId;zn(br,!0),un[Mt].mediaBox.topRightX,un[Mt].mediaBox.bottomLeftX,un[Mt].mediaBox.topRightY,un[Mt].mediaBox.bottomLeftY,Xt("<>"),Xt("endobj");var Dr=sr.join(` `);return zn(Mr,!0),xa({data:Dr,filters:ia()}),Xt("endobj"),br},Ii=ne.__private__.putPages=function(){var St,Vt,sr=[];for(St=1;St<=Yr;St++)un[St].objId=Pn(),un[St].contentsObjId=Pn();for(St=1;St<=Yr;St++)sr.push(ta({number:St,data:Ht[St],objId:un[St].objId,contentsObjId:un[St].contentsObjId,mediaBox:un[St].mediaBox,cropBox:un[St].cropBox,bleedBox:un[St].bleedBox,trimBox:un[St].trimBox,artBox:un[St].artBox,userUnit:un[St].userUnit,rootDictionaryObjId:Yn,resourceDictionaryObjId:Vn}));zn(Yn,!0),Xt("<>"),Xt("endobj"),jr.publish("postPutPages")},Ci=function(){!function(){for(var Vt in fr)fr.hasOwnProperty(Vt)&&(At===!1||At===!0&&Ot.hasOwnProperty(Vt))&&(sr=fr[Vt],jr.publish("putFont",{font:sr,out:Xt,newObject:gn,putStream:xa}),sr.isAlreadyPutted!==!0&&(sr.objectNumber=gn(),Xt("<<"),Xt("/Type /Font"),Xt("/BaseFont /"+sr.postScriptName),Xt("/Subtype /Type1"),typeof sr.encoding=="string"&&Xt("/Encoding /"+sr.encoding),Xt("/FirstChar 32"),Xt("/LastChar 255"),Xt(">>"),Xt("endobj")));var sr}(),jr.publish("putResources"),zn(Vn,!0),Xt("<<"),function(){for(var Vt in Xt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Xt("/Font <<"),fr)fr.hasOwnProperty(Vt)&&(At===!1||At===!0&&Ot.hasOwnProperty(Vt))&&Xt("/"+Vt+" "+fr[Vt].objectNumber+" 0 R");Xt(">>"),Xt("/XObject <<"),jr.publish("putXobjectDict"),Xt(">>")}(),Xt(">>"),Xt("endobj"),jr.publish("postPutResources")},Gn=function(Vt,sr,br){xr.hasOwnProperty(sr)||(xr[sr]={}),xr[sr][br]=Vt},Oa=function(Vt,sr,br,Mr,Dr){Dr=Dr||!1;var rn="F"+(Object.keys(fr).length+1).toString(10),fn={id:rn,postScriptName:Vt,fontName:sr,fontStyle:br,encoding:Mr,isStandardFont:Dr,metadata:{}};return jr.publish("addFont",{font:fn,instance:this}),rn!==void 0&&(fr[rn]=fn,Gn(rn,sr,br)),rn},mn=ne.__private__.pdfEscape=ne.pdfEscape=function(St,Vt){return function(sr,br){var Mr,Dr,rn,fn,wn,Hn,Sn,bn,Mn;if(rn=(br=br||{}).sourceEncoding||"Unicode",wn=br.outputEncoding,(br.autoencode||wn)&&fr[ut].metadata&&fr[ut].metadata[rn]&&fr[ut].metadata[rn].encoding&&(fn=fr[ut].metadata[rn].encoding,!wn&&fr[ut].encoding&&(wn=fr[ut].encoding),!wn&&fn.codePages&&(wn=fn.codePages[0]),typeof wn=="string"&&(wn=fn[wn]),wn)){for(Sn=!1,Hn=[],Mr=0,Dr=sr.length;Mr>8&&(Sn=!0);sr=Hn.join("")}for(Mr=sr.length;Sn===void 0&&Mr!==0;)sr.charCodeAt(Mr-1)>>8&&(Sn=!0),Mr--;if(!Sn)return sr;for(Hn=br.noBOM?[]:[254,255],Mr=0,Dr=sr.length;Mr>8)>>8)throw new Error("Character at position "+Mr+" of string '"+sr+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Hn.push(Mn),Hn.push(bn-(Mn<<8))}return String.fromCharCode.apply(void 0,Hn)}(St,Vt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},On=ne.__private__.beginPage=function(St,Vt){var sr,br=typeof Vt=="string"&&Vt.toLowerCase();if(typeof St=="string"&&(sr=be(St.toLowerCase()))&&(St=sr[0],Vt=sr[1]),Array.isArray(St)&&(Vt=St[1],St=St[0]),(isNaN(St)||isNaN(Vt))&&(St=je[0],Vt=je[1]),br){switch(br.substr(0,1)){case"l":St>"),Xt("endobj")},Na=ne.__private__.putCatalog=function(St){var Vt=(St=St||{}).rootDictionaryObjId||Yn;switch(gn(),Xt("<<"),Xt("/Type /Catalog"),Xt("/Pages "+Vt+" 0 R"),er||(er="fullwidth"),er){case"fullwidth":Xt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Xt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Xt("/OpenAction [3 0 R /Fit]");break;case"original":Xt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var sr=""+er;sr.substr(sr.length-1)==="%"&&(er=parseInt(er)/100),typeof er=="number"&&Xt("/OpenAction [3 0 R /XYZ null null "+Re(er)+"]")}switch(xt||(xt="continuous"),xt){case"continuous":Xt("/PageLayout /OneColumn");break;case"single":Xt("/PageLayout /SinglePage");break;case"two":case"twoleft":Xt("/PageLayout /TwoColumnLeft");break;case"tworight":Xt("/PageLayout /TwoColumnRight")}st&&Xt("/PageMode /"+st),jr.publish("putCatalog"),Xt(">>"),Xt("endobj")},Qi=ne.__private__.putTrailer=function(){Xt("trailer"),Xt("<<"),Xt("/Size "+(pr+1)),Xt("/Root "+pr+" 0 R"),Xt("/Info "+(pr-1)+" 0 R"),Xt("/ID [ <"+gt+"> <"+gt+"> ]"),Xt(">>")},ma=ne.__private__.putHeader=function(){Xt("%PDF-"+he),Xt("%\xBA\xDF\xAC\xE0")},Ba=ne.__private__.putXRef=function(){var St=1,Vt="0000000000";for(Xt("xref"),Xt("0 "+(pr+1)),Xt("0000000000 65535 f "),St=1;St<=pr;St++)typeof cr[St]=="function"?Xt((Vt+cr[St]()).slice(-10)+" 00000 n "):cr[St]!==void 0?Xt((Vt+cr[St]).slice(-10)+" 00000 n "):Xt("0000000000 00000 n ")},Qa=ne.__private__.buildDocument=function(){ft=!1,ir=pr=0,kt=[],cr=[],Nn=[],Yn=Pn(),Vn=Pn(),jr.publish("buildDocument"),ma(),Ii(),function(){jr.publish("putAdditionalObjects");for(var Vt=0;Vt',Dr=Ae.open();if(Dr!==null&&Dr.document.write(Mr),Dr||typeof safari=="undefined")return Dr;case"datauri":case"dataurl":return Ae.document.location.href="data:application/pdf;filename="+sr.filename+";base64,"+btoa(br);default:return null}}).foo=function(){try{return _t.apply(this,arguments)}catch(sr){var St=sr.stack||"";~St.indexOf(" at ")&&(St=St.split(" at ")[1]);var Vt="Error in function "+St.split(` `)[0].split("<")[0]+": "+sr.message;if(!Ae.console)throw new Error(Vt);Ae.console.error(Vt,sr),Ae.alert&&alert(Vt)}},(_t.foo.bar=_t).foo),aa=function(Vt){return Array.isArray(Tn)===!0&&-1":")"),gi=1):(Aa=Pr(Vt),ca=Wr(sr),la=(wn?"<":"(")+ai[bi]+(wn?">":")")),Ni!==void 0&&Ni[bi]!==void 0&&(Pa=Ni[bi]+` Tw `),Ri.length!==0&&bi===0?St.push(Pa+Ri.join(" ")+" "+Aa.toFixed(2)+" "+ca.toFixed(2)+` Tm `+la):gi===1||gi===0&&bi===0?St.push(Pa+Aa.toFixed(2)+" "+ca.toFixed(2)+` Td `+la):St.push(Pa+la);St=gi===0?St.join(` Tj T* `):St.join(` Tj `),St+=` Tj `;var Ma=`BT /`+ut+" "+kr+` Tf `+(kr*Sn).toFixed(2)+` TL `+nr+` `;return Ma+=Hn,Ma+=St,Xt(Ma+="ET"),Ot[ut]=!0,bn},ne.__private__.lstext=ne.lstext=function(St,Vt,sr,br){return console.warn("jsPDF.lstext is deprecated"),this.text(St,Vt,sr,{charSpace:br})},ne.__private__.clip=ne.clip=function(St){Xt(St==="evenodd"?"W*":"W"),Xt("n")},ne.__private__.clip_fixed=ne.clip_fixed=function(St){console.log("clip_fixed is deprecated"),ne.clip(St)};var mo=ne.__private__.isValidStyle=function(St){var Vt=!1;return[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(St)!==-1&&(Vt=!0),Vt},Fn=ne.__private__.getStyle=function(St){var Vt="S";return St==="F"?Vt="f":St==="FD"||St==="DF"?Vt="B":St!=="f"&&St!=="f*"&&St!=="B"&&St!=="B*"||(Vt=St),Vt};ne.__private__.line=ne.line=function(St,Vt,sr,br){if(isNaN(St)||isNaN(Vt)||isNaN(sr)||isNaN(br))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[sr-St,br-Vt]],St,Vt)},ne.__private__.lines=ne.lines=function(St,Vt,sr,br,Mr,Dr){var rn,fn,wn,Hn,Sn,bn,Mn,vn,Rn,En,_n,Xn;if(typeof St=="number"&&(Xn=sr,sr=Vt,Vt=St,St=Xn),br=br||[1,1],Dr=Dr||!1,isNaN(Vt)||isNaN(sr)||!Array.isArray(St)||!Array.isArray(br)||!mo(Mr)||typeof Dr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Xt($e(Pr(Vt))+" "+$e(Wr(sr))+" m "),rn=br[0],fn=br[1],Hn=St.length,En=Vt,_n=sr,wn=0;wn=xr.length-1;if(ta&&!Ii){An+=" ";continue}if(ta||Ii){if(Ii)Yn=xa;else if(ur.multiline&&un<(Tn+2)*(on+2)+2)continue e}else{if(!ur.multiline)continue e;if(un<(Tn+2)*(on+2)+2)continue e;Yn=xa}for(var Ci="",Gn=qn;Gn<=Yn;Gn++)Ci+=xr[Gn]+" ";switch(Ci=Ci.substr(Ci.length-1)==" "?Ci.substr(0,Ci.length-1):Ci,Vn=Wt(Ci,ur,Yr).width,ur.textAlign){case"right":Pn=Nn-Vn-2;break;case"center":Pn=(Nn-Vn)/2;break;case"left":default:Pn=2}pr+=Ke(Pn)+" "+Ke(zn)+` Td `,pr+="("+Ne(Ci)+`) Tj `,pr+=-Ke(Pn)+` 0 Td `,zn=-(Yr+2),Vn=0,qn=Yn+1,on++,An=""}break}return fr.text=pr,fr.fontSize=Yr,fr},Wt=function(ur,pr,cr){var fr=fe.internal.getFont(pr.fontName,pr.fontStyle),xr=fe.getStringUnitWidth(ur,{font:fr,fontSize:parseFloat(cr),charSpace:0})*parseFloat(cr);return{height:fe.getStringUnitWidth("3",{font:fr,fontSize:parseFloat(cr),charSpace:0})*parseFloat(cr)*1.5,width:xr}},$t={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Dt=function(){fe.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var ur=fe.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var pr in ur)if(ur.hasOwnProperty(pr)){var cr=ur[pr];cr.objId=void 0,cr.hasAnnotation&&Kt.call(fe,cr)}},Kt=function(ur){var pr={type:"reference",object:ur};fe.internal.getPageInfo(ur.page).pageContext.annotations.find(function(cr){return cr.type===pr.type&&cr.object===pr.object})===void 0&&fe.internal.getPageInfo(ur.page).pageContext.annotations.push(pr)},Gt=function(){if(fe.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");fe.internal.write("/AcroForm "+fe.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},Qt=function(){fe.internal.events.unsubscribe(fe.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete fe.internal.acroformPlugin.acroFormDictionaryRoot._eventID,fe.internal.acroformPlugin.printedOut=!0},Mt=function(ur){var pr=!ur;ur||(fe.internal.newObjectDeferredBegin(fe.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),fe.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),ur=ur||fe.internal.acroformPlugin.acroFormDictionaryRoot.Kids;for(var cr in ur)if(ur.hasOwnProperty(cr)){var fr=ur[cr],xr=[],Yr=fr.Rect;if(fr.Rect&&(fr.Rect=Re.call(this,fr.Rect)),fe.internal.newObjectDeferredBegin(fr.objId,!0),fr.DA=Lr.createDefaultAppearanceStream(fr),m(fr)==="object"&&typeof fr.getKeyValueListForStream=="function"&&(xr=fr.getKeyValueListForStream()),fr.Rect=Yr,fr.hasAppearanceStream&&!fr.appearanceStreamContent){var un=$e.call(this,fr);xr.push({key:"AP",value:"<>"}),fe.internal.acroformPlugin.xForms.push(un)}if(fr.appearanceStreamContent){var Nn="";for(var jr in fr.appearanceStreamContent)if(fr.appearanceStreamContent.hasOwnProperty(jr)){var Tn=fr.appearanceStreamContent[jr];if(Nn+="/"+jr+" ",Nn+="<<",1<=Object.keys(Tn).length||Array.isArray(Tn))for(var cr in Tn){var gn;Tn.hasOwnProperty(cr)&&(typeof(gn=Tn[cr])=="function"&&(gn=gn.call(this,fr)),Nn+="/"+cr+" "+gn+" ",0<=fe.internal.acroformPlugin.xForms.indexOf(gn)||fe.internal.acroformPlugin.xForms.push(gn))}else typeof(gn=Tn)=="function"&&(gn=gn.call(this,fr)),Nn+="/"+cr+" "+gn,0<=fe.internal.acroformPlugin.xForms.indexOf(gn)||fe.internal.acroformPlugin.xForms.push(gn);Nn+=">>"}xr.push({key:"AP",value:`<< `+Nn+">>"})}fe.internal.putStream({additionalKeyValues:xr}),fe.internal.out("endobj")}pr&&dr.call(this,fe.internal.acroformPlugin.xForms)},dr=function(ur){for(var pr in ur)if(ur.hasOwnProperty(pr)){var cr=pr,fr=ur[pr];fe.internal.newObjectDeferredBegin(fr&&fr.objId,!0),m(fr)==="object"&&typeof fr.putStream=="function"&&fr.putStream(),delete ur[cr]}},er=function(){if(this.internal!==void 0&&(this.internal.acroformPlugin===void 0||this.internal.acroformPlugin.isInitialized===!1)){if(fe=this,Tt.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify($t)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ue=fe.internal.scaleFactor,fe.internal.acroformPlugin.acroFormDictionaryRoot=new _t,fe.internal.acroformPlugin.acroFormDictionaryRoot._eventID=fe.internal.events.subscribe("postPutResources",Qt),fe.internal.events.subscribe("buildDocument",Dt),fe.internal.events.subscribe("putCatalog",Gt),fe.internal.events.subscribe("postPutPages",Mt),fe.internal.acroformPlugin.isInitialized=!0}},st=Ae.__acroform__.arrayToPdfArray=function(Ir){if(Array.isArray(Ir)){for(var ur="[",pr=0;pr>"),xr.join(` `)}},set:function(fr){m(fr)==="object"&&(pr=fr)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return pr.CA||""},set:function(fr){typeof fr=="string"&&(pr.CA=fr)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return ur},set:function(fr){ur=fr}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return ur.substr(1,ur.length-1)},set:function(fr){ur="/"+fr}})};Pe(Xt,Tt);var mr=function(){Xt.call(this),this.pushButton=!0};Pe(mr,Xt);var Ar=function(){Xt.call(this),this.radio=!0,this.pushButton=!1;var ur=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return ur},set:function(cr){ur=cr!==void 0?cr:[]}})};Pe(Ar,Xt);var Nr=function(){var ur,pr;Tt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return ur},set:function(Yr){ur=Yr}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return pr},set:function(Yr){pr=Yr}});var cr,fr={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Yr,un=[];for(Yr in un.push("<<"),fr)un.push("/"+Yr+" ("+fr[Yr]+")");return un.push(">>"),un.join(` `)},set:function(Yr){m(Yr)==="object"&&(fr=Yr)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return fr.CA||""},set:function(Yr){typeof Yr=="string"&&(fr.CA=Yr)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return cr},set:function(Yr){cr=Yr}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return cr.substr(1,cr.length-1)},set:function(Yr){cr="/"+Yr}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=Lr.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};Pe(Nr,Tt),Ar.prototype.setAppearance=function(Ir){if(!("createAppearanceStream"in Ir&&"getCA"in Ir))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var ur in this.Kids)if(this.Kids.hasOwnProperty(ur)){var pr=this.Kids[ur];pr.appearanceStreamContent=Ir.createAppearanceStream(pr.optionName),pr.caption=Ir.getCA()}},Ar.prototype.createOption=function(Ir){this.Kids.length;var ur=new Nr;return ur.Parent=this,ur.optionName=Ir,this.Kids.push(ur),Qr.call(this,ur),ur};var kr=function(){Xt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Lr.CheckBox.createAppearanceStream()};Pe(kr,Xt);var tn=function(){Tt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,13))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,13):this.Ff=Ie(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,21))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,21):this.Ff=Ie(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,23))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,23):this.Ff=Ie(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,24))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,24):this.Ff=Ie(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,25))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,25):this.Ff=Ie(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,26))},set:function(cr){Boolean(cr)===!0?this.Ff=be(this.Ff,26):this.Ff=Ie(this.Ff,26)}});var ur=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return ur},set:function(cr){ur=cr}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return ur},set:function(cr){Number.isInteger(cr)&&(ur=cr)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Pe(tn,Tt);var qr=function(){tn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,14))},set:function(pr){Boolean(pr)===!0?this.Ff=be(this.Ff,14):this.Ff=Ie(this.Ff,14)}}),this.password=!0};Pe(qr,tn);var Lr={CheckBox:{createAppearanceStream:function(){return{N:{On:Lr.CheckBox.YesNormal},D:{On:Lr.CheckBox.YesPushDown,Off:Lr.CheckBox.OffPushDown}}},YesPushDown:function(ur){var pr=Ot(ur),cr=[],fr=fe.internal.getFont(ur.fontName,ur.fontStyle).id,xr=fe.__private__.encodeColorString(ur.color),Yr=gt(ur,ur.caption);return cr.push("0.749023 g"),cr.push("0 0 "+Ke(Lr.internal.getWidth(ur))+" "+Ke(Lr.internal.getHeight(ur))+" re"),cr.push("f"),cr.push("BMC"),cr.push("q"),cr.push("0 0 1 rg"),cr.push("/"+fr+" "+Ke(Yr.fontSize)+" Tf "+xr),cr.push("BT"),cr.push(Yr.text),cr.push("ET"),cr.push("Q"),cr.push("EMC"),pr.stream=cr.join(` `),pr},YesNormal:function(ur){var pr=Ot(ur),cr=fe.internal.getFont(ur.fontName,ur.fontStyle).id,fr=fe.__private__.encodeColorString(ur.color),xr=[],Yr=Lr.internal.getHeight(ur),un=Lr.internal.getWidth(ur),Nn=gt(ur,ur.caption);return xr.push("1 g"),xr.push("0 0 "+Ke(un)+" "+Ke(Yr)+" re"),xr.push("f"),xr.push("q"),xr.push("0 0 1 rg"),xr.push("0 0 "+Ke(un-1)+" "+Ke(Yr-1)+" re"),xr.push("W"),xr.push("n"),xr.push("0 g"),xr.push("BT"),xr.push("/"+cr+" "+Ke(Nn.fontSize)+" Tf "+fr),xr.push(Nn.text),xr.push("ET"),xr.push("Q"),pr.stream=xr.join(` `),pr},OffPushDown:function(ur){var pr=Ot(ur),cr=[];return cr.push("0.749023 g"),cr.push("0 0 "+Ke(Lr.internal.getWidth(ur))+" "+Ke(Lr.internal.getHeight(ur))+" re"),cr.push("f"),pr.stream=cr.join(` `),pr}},RadioButton:{Circle:{createAppearanceStream:function(ur){var pr={D:{Off:Lr.RadioButton.Circle.OffPushDown},N:{}};return pr.N[ur]=Lr.RadioButton.Circle.YesNormal,pr.D[ur]=Lr.RadioButton.Circle.YesPushDown,pr},getCA:function(){return"l"},YesNormal:function(ur){var pr=Ot(ur),cr=[],fr=Lr.internal.getWidth(ur)<=Lr.internal.getHeight(ur)?Lr.internal.getWidth(ur)/4:Lr.internal.getHeight(ur)/4;fr=Number((.9*fr).toFixed(5));var xr=Lr.internal.Bezier_C,Yr=Number((fr*xr).toFixed(5));return cr.push("q"),cr.push("1 0 0 1 "+Ye(Lr.internal.getWidth(ur)/2)+" "+Ye(Lr.internal.getHeight(ur)/2)+" cm"),cr.push(fr+" 0 m"),cr.push(fr+" "+Yr+" "+Yr+" "+fr+" 0 "+fr+" c"),cr.push("-"+Yr+" "+fr+" -"+fr+" "+Yr+" -"+fr+" 0 c"),cr.push("-"+fr+" -"+Yr+" -"+Yr+" -"+fr+" 0 -"+fr+" c"),cr.push(Yr+" -"+fr+" "+fr+" -"+Yr+" "+fr+" 0 c"),cr.push("f"),cr.push("Q"),pr.stream=cr.join(` `),pr},YesPushDown:function(ur){var pr=Ot(ur),cr=[],fr=Lr.internal.getWidth(ur)<=Lr.internal.getHeight(ur)?Lr.internal.getWidth(ur)/4:Lr.internal.getHeight(ur)/4,xr=(fr=Number((.9*fr).toFixed(5)),Number((2*fr).toFixed(5))),Yr=Number((xr*Lr.internal.Bezier_C).toFixed(5)),un=Number((fr*Lr.internal.Bezier_C).toFixed(5));return cr.push("0.749023 g"),cr.push("q"),cr.push("1 0 0 1 "+Ye(Lr.internal.getWidth(ur)/2)+" "+Ye(Lr.internal.getHeight(ur)/2)+" cm"),cr.push(xr+" 0 m"),cr.push(xr+" "+Yr+" "+Yr+" "+xr+" 0 "+xr+" c"),cr.push("-"+Yr+" "+xr+" -"+xr+" "+Yr+" -"+xr+" 0 c"),cr.push("-"+xr+" -"+Yr+" -"+Yr+" -"+xr+" 0 -"+xr+" c"),cr.push(Yr+" -"+xr+" "+xr+" -"+Yr+" "+xr+" 0 c"),cr.push("f"),cr.push("Q"),cr.push("0 g"),cr.push("q"),cr.push("1 0 0 1 "+Ye(Lr.internal.getWidth(ur)/2)+" "+Ye(Lr.internal.getHeight(ur)/2)+" cm"),cr.push(fr+" 0 m"),cr.push(fr+" "+un+" "+un+" "+fr+" 0 "+fr+" c"),cr.push("-"+un+" "+fr+" -"+fr+" "+un+" -"+fr+" 0 c"),cr.push("-"+fr+" -"+un+" -"+un+" -"+fr+" 0 -"+fr+" c"),cr.push(un+" -"+fr+" "+fr+" -"+un+" "+fr+" 0 c"),cr.push("f"),cr.push("Q"),pr.stream=cr.join(` `),pr},OffPushDown:function(ur){var pr=Ot(ur),cr=[],fr=Lr.internal.getWidth(ur)<=Lr.internal.getHeight(ur)?Lr.internal.getWidth(ur)/4:Lr.internal.getHeight(ur)/4,xr=(fr=Number((.9*fr).toFixed(5)),Number((2*fr).toFixed(5))),Yr=Number((xr*Lr.internal.Bezier_C).toFixed(5));return cr.push("0.749023 g"),cr.push("q"),cr.push("1 0 0 1 "+Ye(Lr.internal.getWidth(ur)/2)+" "+Ye(Lr.internal.getHeight(ur)/2)+" cm"),cr.push(xr+" 0 m"),cr.push(xr+" "+Yr+" "+Yr+" "+xr+" 0 "+xr+" c"),cr.push("-"+Yr+" "+xr+" -"+xr+" "+Yr+" -"+xr+" 0 c"),cr.push("-"+xr+" -"+Yr+" -"+Yr+" -"+xr+" 0 -"+xr+" c"),cr.push(Yr+" -"+xr+" "+xr+" -"+Yr+" "+xr+" 0 c"),cr.push("f"),cr.push("Q"),pr.stream=cr.join(` `),pr}},Cross:{createAppearanceStream:function(ur){var pr={D:{Off:Lr.RadioButton.Cross.OffPushDown},N:{}};return pr.N[ur]=Lr.RadioButton.Cross.YesNormal,pr.D[ur]=Lr.RadioButton.Cross.YesPushDown,pr},getCA:function(){return"8"},YesNormal:function(ur){var pr=Ot(ur),cr=[],fr=Lr.internal.calculateCross(ur);return cr.push("q"),cr.push("1 1 "+Ke(Lr.internal.getWidth(ur)-2)+" "+Ke(Lr.internal.getHeight(ur)-2)+" re"),cr.push("W"),cr.push("n"),cr.push(Ke(fr.x1.x)+" "+Ke(fr.x1.y)+" m"),cr.push(Ke(fr.x2.x)+" "+Ke(fr.x2.y)+" l"),cr.push(Ke(fr.x4.x)+" "+Ke(fr.x4.y)+" m"),cr.push(Ke(fr.x3.x)+" "+Ke(fr.x3.y)+" l"),cr.push("s"),cr.push("Q"),pr.stream=cr.join(` `),pr},YesPushDown:function(ur){var pr=Ot(ur),cr=Lr.internal.calculateCross(ur),fr=[];return fr.push("0.749023 g"),fr.push("0 0 "+Ke(Lr.internal.getWidth(ur))+" "+Ke(Lr.internal.getHeight(ur))+" re"),fr.push("f"),fr.push("q"),fr.push("1 1 "+Ke(Lr.internal.getWidth(ur)-2)+" "+Ke(Lr.internal.getHeight(ur)-2)+" re"),fr.push("W"),fr.push("n"),fr.push(Ke(cr.x1.x)+" "+Ke(cr.x1.y)+" m"),fr.push(Ke(cr.x2.x)+" "+Ke(cr.x2.y)+" l"),fr.push(Ke(cr.x4.x)+" "+Ke(cr.x4.y)+" m"),fr.push(Ke(cr.x3.x)+" "+Ke(cr.x3.y)+" l"),fr.push("s"),fr.push("Q"),pr.stream=fr.join(` `),pr},OffPushDown:function(ur){var pr=Ot(ur),cr=[];return cr.push("0.749023 g"),cr.push("0 0 "+Ke(Lr.internal.getWidth(ur))+" "+Ke(Lr.internal.getHeight(ur))+" re"),cr.push("f"),pr.stream=cr.join(` `),pr}}},createDefaultAppearanceStream:function(ur){var pr=fe.internal.getFont(ur.fontName,ur.fontStyle).id,cr=fe.__private__.encodeColorString(ur.color);return"/"+pr+" "+ur.fontSize+" Tf "+cr}};Lr.internal={Bezier_C:.551915024494,calculateCross:function(ur){var pr=Lr.internal.getWidth(ur),cr=Lr.internal.getHeight(ur),fr=Math.min(pr,cr);return{x1:{x:(pr-fr)/2,y:(cr-fr)/2+fr},x2:{x:(pr-fr)/2+fr,y:(cr-fr)/2},x3:{x:(pr-fr)/2,y:(cr-fr)/2},x4:{x:(pr-fr)/2+fr,y:(cr-fr)/2+fr}}}},Lr.internal.getWidth=function(Ir){var ur=0;return m(Ir)==="object"&&(ur=nt(Ir.Rect[2])),ur},Lr.internal.getHeight=function(Ir){var ur=0;return m(Ir)==="object"&&(ur=nt(Ir.Rect[3])),ur};var Qr=Ae.addField=function(Ir){if(er.call(this),!(Ir instanceof Tt))throw new Error("Invalid argument passed to jsPDF.addField.");return function(ur){fe.internal.acroformPlugin.printedOut&&(fe.internal.acroformPlugin.printedOut=!1,fe.internal.acroformPlugin.acroFormDictionaryRoot=null),fe.internal.acroformPlugin.acroFormDictionaryRoot||er.call(fe),fe.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(ur)}.call(this,Ir),Ir.page=fe.internal.getCurrentPageInfo().pageNumber,this};Ae.addButton=function(Ir){if(Ir instanceof Xt==!1)throw new Error("Invalid argument passed to jsPDF.addButton.");return Qr.call(this,Ir)},Ae.addTextField=function(Ir){if(Ir instanceof tn==!1)throw new Error("Invalid argument passed to jsPDF.addTextField.");return Qr.call(this,Ir)},Ae.addChoiceField=function(Ir){if(Ir instanceof ft==!1)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return Qr.call(this,Ir)},m(ve)=="object"&&ve.ChoiceField===void 0&&ve.ListBox===void 0&&ve.ComboBox===void 0&&ve.EditBox===void 0&&ve.Button===void 0&&ve.PushButton===void 0&&ve.RadioButton===void 0&&ve.CheckBox===void 0&&ve.TextField===void 0&&ve.PasswordField===void 0?(ve.ChoiceField=ft,ve.ListBox=Ht,ve.ComboBox=kt,ve.EditBox=ir,ve.Button=Xt,ve.PushButton=mr,ve.RadioButton=Ar,ve.CheckBox=kr,ve.TextField=tn,ve.PasswordField=qr,ve.AcroForm={Appearance:Lr}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),Ae.AcroFormChoiceField=ft,Ae.AcroFormListBox=Ht,Ae.AcroFormComboBox=kt,Ae.AcroFormEditBox=ir,Ae.AcroFormButton=Xt,Ae.AcroFormPushButton=mr,Ae.AcroFormRadioButton=Ar,Ae.AcroFormCheckBox=kr,Ae.AcroFormTextField=tn,Ae.AcroFormPasswordField=qr,Ae.AcroFormAppearance=Lr,Ae.AcroForm={ChoiceField:ft,ListBox:Ht,ComboBox:kt,EditBox:ir,Button:Xt,PushButton:mr,RadioButton:Ar,CheckBox:kr,TextField:tn,PasswordField:qr,Appearance:Lr}})((window.tmp=vt).API,typeof window!="undefined"&&window||typeof g!="undefined"&&g),function(Ae){var ve="addImage_",fe={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},ue=Ae.getImageFileTypeByImageData=function(ne,he){var Q,te;he=he||"UNKNOWN";var be,Ie,Re,$e="UNKNOWN";for(Re in Ae.isArrayBufferView(ne)&&(ne=Ae.arrayBufferToBinaryString(ne)),fe)for(be=fe[Re],Q=0;Q>"}),"trns"in he&&he.trns.constructor==Array){for(var $e="",gt=0,Wt=he.trns.length;gt>18]+te[(258048&he)>>12]+te[(4032&he)>>6]+te[63&he];return Re==1?Q+=te[(252&(he=be[$e]))>>2]+te[(3&he)<<4]+"==":Re==2&&(Q+=te[(64512&(he=be[$e]<<8|be[$e+1]))>>10]+te[(1008&he)>>4]+te[(15&he)<<2]+"="),Q},Ae.createImageInfo=function(ne,he,Q,te,be,Ie,Re,$e,gt,Wt,$t,Dt,Kt){var Gt={alias:$e,w:he,h:Q,cs:te,bpc:be,i:Re,data:ne};return Ie&&(Gt.f=Ie),gt&&(Gt.dp=gt),Wt&&(Gt.trns=Wt),$t&&(Gt.pal=$t),Dt&&(Gt.smask=Dt),Kt&&(Gt.p=Kt),Gt},Ae.addImage=function(ne,he,Q,te,be,Ie,Re,$e,gt){var Wt="";if(typeof he!="string"){var $t=Ie;Ie=be,be=te,te=Q,Q=he,he=$t}if(m(ne)==="object"&&!Pe(ne)&&"imageData"in ne){var Dt=ne;ne=Dt.imageData,he=Dt.format||he||"UNKNOWN",Q=Dt.x||Q||0,te=Dt.y||te||0,be=Dt.w||be,Ie=Dt.h||Ie,Re=Dt.alias||Re,$e=Dt.compression||$e,gt=Dt.rotation||Dt.angle||gt}var Kt=this.internal.getFilters();if($e===void 0&&Kt.indexOf("FlateEncode")!==-1&&($e="SLOW"),typeof ne=="string"&&(ne=unescape(ne)),isNaN(Q)||isNaN(te))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var Gt,Qt,Mt,dr,er,st,xt,ut=function(){var pt=this.internal.collections[ve+"images"];return pt||(this.internal.collections[ve+"images"]=pt={},this.internal.events.subscribe("putResources",je),this.internal.events.subscribe("putXobjectDict",Ke)),pt}.call(this);if(!((Gt=At(ne,ut))||(Pe(ne)&&(ne=nt(ne,he)),((xt=Re)==null||xt.length===0)&&(Re=typeof(st=ne)=="string"?Ae.sHashCode(st):Ae.isArrayBufferView(st)?Ae.sHashCode(Ae.arrayBufferToBinaryString(st)):null),Gt=At(Re,ut)))){if(this.isString(ne)&&((Wt=this.convertStringToImageData(ne))!==""||(Wt=Ae.loadFile(ne))!==void 0)&&(ne=Wt),he=this.getImageFileTypeByImageData(ne,he),!Ye(he))throw new Error("addImage does not support files of type '"+he+"', please ensure that a plugin for '"+he+"' support is added.");if(this.supportsArrayBuffer()&&(ne instanceof Uint8Array||(Qt=ne,ne=this.binaryStringToUint8Array(ne))),!(Gt=this["process"+he.toUpperCase()](ne,(er=0,(dr=ut)&&(er=Object.keys?Object.keys(dr).length:function(pt){var _t=0;for(var Tt in pt)pt.hasOwnProperty(Tt)&&_t++;return _t}(dr)),er),Re,((Mt=$e)&&typeof Mt=="string"&&(Mt=Mt.toUpperCase()),Mt in Ae.image_compression?Mt:Ae.image_compression.NONE),Qt)))throw new Error("An unknown error occurred whilst processing the image")}return function(pt,_t,Tt,ft,Ht,kt,ir,Xt){var mr=function(Qr,Ir,ur){return Qr||Ir||(Ir=Qr=-96),Qr<0&&(Qr=-1*ur.w*72/Qr/this.internal.scaleFactor),Ir<0&&(Ir=-1*ur.h*72/Ir/this.internal.scaleFactor),Qr===0&&(Qr=Ir*ur.w/ur.h),Ir===0&&(Ir=Qr*ur.h/ur.w),[Qr,Ir]}.call(this,Tt,ft,Ht),Ar=this.internal.getCoordinateString,Nr=this.internal.getVerticalCoordinateString;if(Tt=mr[0],ft=mr[1],ir[kt]=Ht,Xt){Xt*=Math.PI/180;var kr=Math.cos(Xt),tn=Math.sin(Xt),qr=function(Ir){return Ir.toFixed(4)},Lr=[qr(kr),qr(tn),qr(-1*tn),qr(kr),0,0,"cm"]}this.internal.write("q"),Xt?(this.internal.write([1,"0","0",1,Ar(pt),Nr(_t+ft),"cm"].join(" ")),this.internal.write(Lr.join(" ")),this.internal.write([Ar(Tt),"0","0",Ar(ft),"0","0","cm"].join(" "))):this.internal.write([Ar(Tt),"0","0",Ar(ft),Ar(pt),Nr(_t+ft),"cm"].join(" ")),this.internal.write("/I"+Ht.i+" Do"),this.internal.write("Q")}.call(this,Q,te,be,Ie,Gt,Gt.i,ut,gt),this},Ae.convertStringToImageData=function(ne){var he,Q="";if(this.isString(ne)){var te;he=(te=this.extractImageFromDataUrl(ne))!==null?te.data:ne;try{Q=atob(he)}catch(be){throw Ae.validateStringAsBase64(he)?new Error("atob-Error in jsPDF.convertStringToImageData "+be.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return Q};var Ot=function(he,Q){return he.subarray(Q,Q+5)};Ae.processJPEG=function(ne,he,Q,te,be,Ie){var Re,$e=this.decode.DCT_DECODE;if(!this.isString(ne)&&!this.isArrayBuffer(ne)&&!this.isArrayBufferView(ne))return null;if(this.isString(ne)&&(Re=function(gt){var Wt;if(ue(gt)!=="JPEG")throw new Error("getJpegSize requires a binary string jpeg file");for(var $t=256*gt.charCodeAt(4)+gt.charCodeAt(5),Dt=4,Kt=gt.length;Dt>",nt.content=be;var ne=nt.objId+" 0 R";be="<>";else if(Pe.options.pageNumber)switch(be="<>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+ve+" 0 R")})}return this},h=vt.API,(c=function(){var ve=void 0;Object.defineProperty(this,"pdf",{get:function(){return ve},set:function(Ye){ve=Ye}});var fe=150;Object.defineProperty(this,"width",{get:function(){return fe},set:function(Ye){fe=isNaN(Ye)||Number.isInteger(Ye)===!1||Ye<0?150:Ye,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=fe+1)}});var ue=300;Object.defineProperty(this,"height",{get:function(){return ue},set:function(Ye){ue=isNaN(Ye)||Number.isInteger(Ye)===!1||Ye<0?300:Ye,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ue+1)}});var Ne=[];Object.defineProperty(this,"childNodes",{get:function(){return Ne},set:function(Ye){Ne=Ye}});var je={};Object.defineProperty(this,"style",{get:function(){return je},set:function(Ye){je=Ye}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(Ae,ve){var fe;if((Ae=Ae||"2d")!=="2d")return null;for(fe in ve)this.pdf.context2d.hasOwnProperty(fe)&&(this.pdf.context2d[fe]=ve[fe]);return(this.pdf.context2d._canvas=this).pdf.context2d},c.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},h.events.push(["initialized",function(){this.canvas=new c,this.canvas.pdf=this}]),o=vt.API,n={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},a=1,u=function(ve,fe,ue,Ne,je){n={x:ve,y:fe,w:ue,h:Ne,ln:je}},r=function(){return n},l={left:0,top:0,bottom:0},o.setHeaderFunction=function(Ae){i=Ae},o.getTextDimensions=function(Ae,ve){var fe=this.table_font_size||this.internal.getFontSize(),ue=(this.internal.getFont().fontStyle,(ve=ve||{}).scaleFactor||this.internal.scaleFactor),Ne=0,je=0,Ke=0;if(typeof Ae=="string")(Ne=this.getStringUnitWidth(Ae)*fe)!=0&&(je=1);else{if(Object.prototype.toString.call(Ae)!=="[object Array]")throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var Ye=0;Ye=this.internal.pageSize.getHeight()-nt.bottom&&(this.cellAddPage(),Pe=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(je,!0)),ve=r().y+r().h,Pe&&(ve=23)}if(Ne[0]!==void 0)if(this.printingHeaderRow?this.rect(Ae,ve,fe,ue,"FD"):this.rect(Ae,ve,fe,ue),Ke==="right"){Ne instanceof Array||(Ne=[Ne]);for(var At=0;At=2*Math.PI&&(kt=0,ir=2*Math.PI),this.path.push({type:"arc",x:Tt,y:ft,radius:Ht,startAngle:kt,endAngle:ir,counterclockwise:Xt})},Pe.prototype.arcTo=function(Tt,ft,Ht,kt,ir){throw new Error("arcTo not implemented.")},Pe.prototype.rect=function(Tt,ft,Ht,kt){if(isNaN(Tt)||isNaN(ft)||isNaN(Ht)||isNaN(kt))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Tt,ft),this.lineTo(Tt+Ht,ft),this.lineTo(Tt+Ht,ft+kt),this.lineTo(Tt,ft+kt),this.lineTo(Tt,ft),this.lineTo(Tt+Ht,ft),this.lineTo(Tt,ft)},Pe.prototype.fillRect=function(Tt,ft,Ht,kt){if(isNaN(Tt)||isNaN(ft)||isNaN(Ht)||isNaN(kt))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!At.call(this)){var ir={};this.lineCap!=="butt"&&(ir.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ir.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Tt,ft,Ht,kt),this.fill(),ir.hasOwnProperty("lineCap")&&(this.lineCap=ir.lineCap),ir.hasOwnProperty("lineJoin")&&(this.lineJoin=ir.lineJoin)}},Pe.prototype.strokeRect=function(Tt,ft,Ht,kt){if(isNaN(Tt)||isNaN(ft)||isNaN(Ht)||isNaN(kt))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Ot.call(this)||(this.beginPath(),this.rect(Tt,ft,Ht,kt),this.stroke())},Pe.prototype.clearRect=function(Tt,ft,Ht,kt){if(isNaN(Tt)||isNaN(ft)||isNaN(Ht)||isNaN(kt))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Tt,ft,Ht,kt))},Pe.prototype.save=function(Tt){Tt=typeof Tt!="boolean"||Tt;for(var ft=this.pdf.internal.getCurrentPageInfo().pageNumber,Ht=0;Ht"},d=function(ve){var fe,ue,Ne,je,Ke,Ye=String,Pe="length",nt="charCodeAt",At="slice",Ot="replace";for(ve[At](-2),ve=ve[At](0,-2)[Ot](/\s/g,"")[Ot]("z","!!!!!"),Ne=[],je=0,Ke=(ve+=fe="uuuuu"[At](ve[Pe]%5||5))[Pe];je>24,255&ue>>16,255&ue>>8,255&ue);return function(ne,he){for(var Q=fe[Pe];0")!==-1&&(ve=ve.substr(0,ve.indexOf(">"))),ve.length%2&&(ve+="0"),fe.test(ve)===!1)return"";for(var ue="",Ne=0;Ne>8&255,ue>>16&255,ue>>24&255]),ve.length+2),ve=String.fromCharCode.apply(null,je)},t.processDataByFilters=function(Ae,ve){var fe=0,ue=Ae||"",Ne=[];for(typeof(ve=ve||[])=="string"&&(ve=[ve]),fe=0;fe>"),this.internal.out("endobj"),O=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+N+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){C!==void 0&&O!==void 0&&this.internal.out("/Names <>")}),this},(k=vt.API).events.push(["postPutResources",function(){var Ae=this,ve=/^(\d+) 0 obj$/;if(0> endobj")}var Ot=Ae.internal.newObject();for(Ae.internal.write("<< /Names [ "),ue=0;ue>","endobj"),Ae.internal.newObject(),Ae.internal.write("<< /Dests "+Ot+" 0 R"),Ae.internal.write(">>","endobj")}}]),k.events.push(["putCatalog",function(){0> \r endobj\r `},Ae.outline.count_r=function(ve,fe){for(var ue=0;ue>>24&255,he[ne++]=Pe>>>16&255,he[ne++]=Pe>>>8&255,he[ne++]=255&Pe,F.arrayBufferToBinaryString(he)},W=function(ve,fe){var ue=Math.LOG2E*Math.log(32768)-8<<4|8,Ne=ue<<8;return Ne|=Math.min(3,(fe-1&255)>>1)<<6,Ne|=0,[ue,255&(Ne+=31-Ne%31)]},R=function(ve,fe){for(var ue,Ne=1,je=0,Ke=ve.length,Ye=0;0>>0},U=function(ve,fe,ue,Ne){for(var je,Ke,Ye,Pe=ve.length/fe,nt=new Uint8Array(ve.length+Pe),At=G(),Ot=0;Ot>>1)&255;return Ke},z=function(ve,fe,ue){var Ne,je,Ke,Ye,Pe=[],nt=0,At=ve.length;for(Pe[0]=4;nt>>Q&255,Q+=je.bits;Ie[$e]=Wt>>>Q&255}if(je.bits===16){te=(Qt=new Uint32Array(je.decodePixels().buffer)).length,be=new Uint8Array(te*(32/je.pixelBitlength)*je.colors),Ie=new Uint8Array(te*(32/je.pixelBitlength));for(var Wt,$t=1>>0&255,$t&&(be[gt++]=Wt>>>16&255,Wt=Qt[$e++],be[gt++]=Wt>>>0&255),Ie[Dt++]=Wt>>>16&255;he=8}ue!==F.image_compression.NONE&&B()?(Ae=H(be,je.width*je.colors,je.colors,ue),At=H(Ie,je.width,1,ue)):(Ae=be,At=Ie,ne=null)}if(je.colorType===3&&(Ot=this.color_spaces.INDEXED,nt=je.palette,je.transparency.indexed)){var Kt=je.transparency.indexed,Gt=0;for($e=0,te=Kt.length;$eNe&&(je.push(ve.slice(nt,Ke)),Pe=0,nt=Ke),Pe+=fe[Ke],Ke++;return nt!==Ke&&je.push(ve.slice(nt,Ke)),je},Se=function(ve,fe,ue){ue||(ue={});var Ne,je,Ke,Ye,Pe,nt,At=[],Ot=[At],ne=ue.textIndent||0,he=0,Q=0,te=ve.split(" "),be=Fe.apply(this,[" ",ue])[0];if(nt=ue.lineIndent===-1?te[0].length+2:ue.lineIndent||0){var Ie=Array(nt).join(" "),Re=[];te.map(function(Wt){1<(Wt=Wt.split(/\s*\n/)).length?Re=Re.concat(Wt.map(function($t,Dt){return(Dt&&$t.length?` `:"")+$t})):Re.push(Wt[0])}),te=Re,nt=dt.apply(this,[Ie,ue])}for(Ke=0,Ye=te.length;Ke>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=fe,this},ze=vt.API,ge=ae=Oe="",ze.addMetadata=function(Ae,ve){return ae=ve||"http://jspdf.default.namespaceuri/",Oe=Ae,this.internal.events.subscribe("postPutResources",function(){if(Oe){var fe='',ue=unescape(encodeURIComponent('')),Ne=unescape(encodeURIComponent(fe)),je=unescape(encodeURIComponent(Oe)),Ke=unescape(encodeURIComponent("")),Ye=unescape(encodeURIComponent("")),Pe=Ne.length+je.length+Ke.length+ue.length+Ye.length;ge=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Pe+" >>"),this.internal.write("stream"),this.internal.write(ue+Ne+je+Ke+Ye),this.internal.write("endstream"),this.internal.write("endobj")}else ge=""}),this.internal.events.subscribe("putCatalog",function(){ge&&this.internal.write("/Metadata "+ge+" 0 R")}),this},function(Ae,ve){var fe=Ae.API,ue=fe.pdfEscape16=function(Ke,Ye){for(var Pe,nt=Ye.metadata.Unicode.widths,At=["","0","00","000","0000"],Ot=[""],ne=0,he=Ke.length;ne> def /CMapName /Adobe-Identity-UCS def /CMapType 2 def 1 begincodespacerange <0000> endcodespacerange`,At=[],he=0,Q=(nt=Object.keys(Ye).sort(function(te,be){return te-be})).length;he<"+Ot+">");return At.length&&(ne+=` `+At.length+` beginbfchar `+At.join(` `)+` endbfchar `),ne+=`endcmap CMapName currentdict /CMap defineresource pop end end`};fe.events.push(["putFont",function(Ke){!function(Ye,Pe,nt,At){if(Ye.metadata instanceof Ae.API.TTFFont&&Ye.encoding==="Identity-H"){for(var Ot=Ye.metadata.Unicode.widths,ne=Ye.metadata.subset.encode(Ye.metadata.glyIdsUsed,1),he="",Q=0;Q>"),Pe("endobj");var Re=nt();Pe("<<"),Pe("/Type /Font"),Pe("/BaseFont /"+Ye.fontName),Pe("/FontDescriptor "+Ie+" 0 R"),Pe("/W "+Ae.API.PDFObject.convert(Ot)),Pe("/CIDToGIDMap /Identity"),Pe("/DW 1000"),Pe("/Subtype /CIDFontType2"),Pe("/CIDSystemInfo"),Pe("<<"),Pe("/Supplement 0"),Pe("/Registry (Adobe)"),Pe("/Ordering ("+Ye.encoding+")"),Pe(">>"),Pe(">>"),Pe("endobj"),Ye.objectNumber=nt(),Pe("<<"),Pe("/Type /Font"),Pe("/Subtype /Type0"),Pe("/ToUnicode "+be+" 0 R"),Pe("/BaseFont /"+Ye.fontName),Pe("/Encoding /"+Ye.encoding),Pe("/DescendantFonts ["+Re+" 0 R]"),Pe(">>"),Pe("endobj"),Ye.isAlreadyPutted=!0}}(Ke.font,Ke.out,Ke.newObject,Ke.putStream)}]),fe.events.push(["putFont",function(Ke){!function(Ye,Pe,nt,At){if(Ye.metadata instanceof Ae.API.TTFFont&&Ye.encoding==="WinAnsiEncoding"){Ye.metadata.Unicode.widths;for(var Ot=Ye.metadata.rawData,ne="",he=0;he>"),Pe("endobj"),Ye.objectNumber=nt(),he=0;he>"),Pe("endobj"),Ye.isAlreadyPutted=!0}}(Ke.font,Ke.out,Ke.newObject,Ke.putStream)}]);var je=function(Ye){var Pe,nt,At=Ye.text||"",Ot=Ye.x,ne=Ye.y,he=Ye.options||{},Q=Ye.mutex||{},te=Q.pdfEscape,be=Q.activeFontKey,Ie=Q.fonts,Re=(Q.activeFontSize,""),$e=0,gt="",Wt=Ie[nt=be].encoding;if(Ie[nt].encoding!=="Identity-H")return{text:At,x:Ot,y:ne,options:he,mutex:Q};for(gt=At,nt=be,Object.prototype.toString.call(At)==="[object Array]"&&(gt=At[0]),$e=0;$ePe-ne.top-ne.bottom&&ue.pagesplit){var Ie=function(Dt,Kt,Gt,Qt,Mt){var dr=document.createElement("canvas");dr.height=Mt,dr.width=Qt;var er=dr.getContext("2d");return er.mozImageSmoothingEnabled=!1,er.webkitImageSmoothingEnabled=!1,er.msImageSmoothingEnabled=!1,er.imageSmoothingEnabled=!1,er.fillStyle=ue.backgroundColor||"#ffffff",er.fillRect(0,0,Qt,Mt),er.drawImage(Dt,Kt,Gt,Qt,Mt,0,0,Qt,Mt),dr},Re=function(){for(var $t,Dt,Kt=0,Gt=0,Qt={},Mt=!1;;){var dr;if(Gt=0,Qt.top=Kt!==0?ne.top:fe,Qt.left=Kt!==0?ne.left:ve,Mt=(Ye-ne.left-ne.right)*Ke=At.width)break;this.addPage()}else er=[dr=Ie(At,0,Kt,$t,Dt),Qt.left,Qt.top,dr.width/Ke,dr.height/Ke,te,null,be],this.addImage.apply(this,er);if((Kt+=Dt)>=At.height)break;this.addPage()}Ne(Q,Kt,null,er)}.bind(this);if(At.nodeName==="CANVAS"){var $e=new Image;$e.onload=Re,$e.src=At.toDataURL("image/png"),At=$e}else Re()}else{var gt=Math.random().toString(35),Wt=[At,ve,fe,Q,he,te,gt,be];this.addImage.apply(this,Wt),Ne(Q,he,gt,Wt)}}.bind(this),typeof html2canvas!="undefined"&&!ue.rstz)return html2canvas(Ae,ue);if(typeof rasterizeHTML=="undefined")return null;var nt="drawDocument";return typeof Ae=="string"&&(nt=/^http/.test(Ae)?"drawURL":"drawHTML"),ue.width=ue.width||Ye*Ke,rasterizeHTML[nt](Ae,void 0,ue).then(function(At){ue.onrendered(At.image)},function(At){Ne(null,At)})},function(Ae){var ve,fe,ue,Ne,je,Ke,Ye,Pe,nt,At,Ot,ne,he,Q,te,be,Ie,Re,$e,gt;ve=function(){return function(Kt){return Dt.prototype=Kt,new Dt};function Dt(){}}(),At=function(Kt){var Gt,Qt,Mt,dr,er,st,xt;for(Qt=0,Mt=Kt.length,Gt=void 0,st=dr=!1;!dr&&Qt!==Mt;)(Gt=Kt[Qt]=Kt[Qt].trimLeft())&&(dr=!0),Qt++;for(Qt=Mt-1;Mt&&!st&&Qt!==-1;)(Gt=Kt[Qt]=Kt[Qt].trimRight())&&(st=!0),Qt--;for(er=/\s+$/g,xt=!0,Qt=0;Qt!==Mt;)Kt[Qt]!="\u2028"&&(Gt=Kt[Qt].replace(/\s+/g," "),xt&&(Gt=Gt.trimLeft()),Gt&&(xt=er.test(Gt)),Kt[Qt]=Gt),Qt++;return Kt},ne=function(Kt){var Gt,Qt,Mt;for(Gt=void 0,Qt=(Mt=Kt.split(",")).shift();!Gt&&Qt;)Gt=ue[Qt.trim().toLowerCase()],Qt=Mt.shift();return Gt},he=function(Kt){var Gt;return-1<(Kt=Kt==="auto"?"0px":Kt).indexOf("em")&&!isNaN(Number(Kt.replace("em","")))&&(Kt=18.719*Number(Kt.replace("em",""))+"px"),-1Gt.pdf.margins_doc.top&&(Gt.pdf.addPage(),Gt.y=Gt.pdf.margins_doc.top,Gt.executeWatchFunctions(Mt));var kr=nt(Mt),tn=Gt.x,qr=12/Gt.pdf.internal.scaleFactor,Lr=(kr["margin-left"]+kr["padding-left"])*qr,Qr=(kr["margin-right"]+kr["padding-right"])*qr,Ir=(kr["margin-top"]+kr["padding-top"])*qr,ur=(kr["margin-bottom"]+kr["padding-bottom"])*qr;kr.float!==void 0&&kr.float==="right"?tn+=Gt.settings.width-Mt.width-Qr:tn+=Lr,Gt.pdf.addImage(Ar,tn,Gt.y+Ir,Mt.width,Mt.height),Ar=void 0,kr.float==="right"||kr.float==="left"?(Gt.watchFunctions.push(function(cr,fr,xr,Yr){return Gt.y>=fr?(Gt.x+=cr,Gt.settings.width+=xr,!0):!!(Yr&&Yr.nodeType===1&&!Wt[Yr.nodeName]&&Gt.x+Yr.width>Gt.pdf.margins_doc.left+Gt.pdf.margins_doc.width)&&(Gt.x+=cr,Gt.y=fr,Gt.settings.width+=xr,!0)}.bind(this,kr.float==="left"?-Mt.width-Lr-Qr:0,Gt.y+Mt.height+Ir+ur,Mt.width)),Gt.watchFunctions.push(function(cr,fr,xr){return!(Gt.y]*?>/gi,""),pt="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(ut=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",ut.innerHTML=''),d.close(),s=d.w.frames[0].document,p=s.createElement("div")}catch(b){p=m.createElement("div"),s=m.body}return function(b){var w=[].slice.call(arguments,0);w.unshift(p),s.appendChild(p),p.addBehavior("#default#userData"),p.load(A),b.apply(this,w),s.removeChild(p);return}}},RPvy:function(D,_,e){var g=e("ProS"),f=e("VaxA"),A="sunburstRootToNode";g.registerAction({type:A,update:"updateView"},function(h,c){c.eachComponent({mainType:"series",subType:"sunburst",query:h},o);function o(i,n){var a=f.retrieveTargetInfo(h,[A],i);if(a){var u=i.getViewRoot();u&&(h.direction=f.aboveViewRoot(u,a.node)?"rollUp":"drillDown"),i.resetViewRoot(a.node)}}});var m="sunburstHighlight";g.registerAction({type:m,update:"updateView"},function(h,c){c.eachComponent({mainType:"series",subType:"sunburst",query:h},o);function o(i,n){var a=f.retrieveTargetInfo(h,[m],i);a&&(h.highlight=a.node)}});var v="sunburstUnhighlight";g.registerAction({type:v,update:"updateView"},function(h,c){c.eachComponent({mainType:"series",subType:"sunburst",query:h},o);function o(i,n){h.unhighlight=!0}})},RSch:function(D,_,e){var g=e("IwbS"),f=e("bYtY");function A(h,c,o){g.Group.call(this),this._createPolyline(h,c,o)}var m=A.prototype;m._createPolyline=function(h,c,o){var i=h.getItemLayout(c),n=new g.Polyline({shape:{points:i}});this.add(n),this._updateCommonStl(h,c,o)},m.updateData=function(h,c,o){var i=h.hostModel,n=this.childAt(0),a={shape:{points:h.getItemLayout(c)}};g.updateProps(n,a,i,c),this._updateCommonStl(h,c,o)},m._updateCommonStl=function(h,c,o){var i=this.childAt(0),n=h.getItemModel(c),a=h.getItemVisual(c,"color"),u=o&&o.lineStyle,r=o&&o.hoverLineStyle;(!o||h.hasItemOption)&&(u=n.getModel("lineStyle").getLineStyle(),r=n.getModel("emphasis.lineStyle").getLineStyle()),i.useStyle(f.defaults({strokeNoScale:!0,fill:"none",stroke:a},u)),i.hoverStyle=r,g.setHoverStyle(this)},m.updateLayout=function(h,c){var o=this.childAt(0);o.setShape("points",h.getItemLayout(c))},f.inherits(A,g.Group);var v=A;D.exports=v},RXMa:function(D,_,e){var g=e("y+Vt"),f=g.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(m,v){var h=v.cx,c=v.cy,o=Math.PI*2;m.moveTo(h+v.r,c),m.arc(h,c,v.r,0,o,!1),m.moveTo(h+v.r0,c),m.arc(h,c,v.r0,0,o,!0)}});D.exports=f},RZPm:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var A=f(e("q1tI")),m=g(e("JgUQ")),v=g(e("KQxl")),h=function(i,n){return A.createElement(v.default,Object.assign({},i,{ref:n,icon:m.default}))};h.displayName="FileOutlined";var c=A.forwardRef(h);_.default=c},RlCK:function(D,_,e){var g=e("ProS"),f=e("bYtY");function A(m,v,h){var c={},o=m==="toggleSelected",i;return h.eachComponent("legend",function(n){o&&i!=null?n[i?"select":"unSelect"](v.name):m==="allSelect"||m==="inverseSelect"?n[m]():(n[m](v.name),i=n.isSelected(v.name));var a=n.getData();f.each(a,function(u){var r=u.get("name");if(r===` `||r==="")return;var l=n.isSelected(r);c.hasOwnProperty(r)?c[r]=c[r]&&l:c[r]=l})}),m==="allSelect"||m==="inverseSelect"?{selected:c}:{name:v.name,selected:c}}g.registerAction("legendToggleSelect","legendselectchanged",f.curry(A,"toggleSelected")),g.registerAction("legendAllSelect","legendselectall",f.curry(A,"allSelect")),g.registerAction("legendInverseSelect","legendinverseselect",f.curry(A,"inverseSelect")),g.registerAction("legendSelect","legendselected",f.curry(A,"select")),g.registerAction("legendUnSelect","legendunselected",f.curry(A,"unSelect"))},RotF:function(D,_,e){D.exports=e("LSTS")},Rx6q:function(D,_){function e(g){var f=g.getRect(),A=g.getRangeInfo();return{coordSys:{type:"calendar",x:f.x,y:f.y,width:f.width,height:f.height,cellWidth:g.getCellWidth(),cellHeight:g.getCellHeight(),rangeInfo:{start:A.start,end:A.end,weeks:A.weeks,dayCount:A.allDay}},api:{coord:function(m,v){return g.dataToPoint(m,v)}}}}D.exports=e},"S/Yl":function(D,_,e){var g=e("Zvw2"),f=e("aX7z"),A=e("+TT/"),m=A.getLayoutRect,v=e("bYtY"),h=v.each;function c(i,n,a){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(i,n,a),this.model=i}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(i,n,a){var u=this.dimension,r=new g(u,f.createScaleByModel(i),[0,0],i.get("type"),i.get("position")),l=r.type==="category";r.onBand=l&&i.get("boundaryGap"),r.inverse=i.get("inverse"),r.orient=i.get("orient"),i.axis=r,r.model=i,r.coordinateSystem=this,this._axis=r},update:function(i,n){i.eachSeries(function(a){if(a.coordinateSystem===this){var u=a.getData();h(u.mapDimension(this.dimension,!0),function(r){this._axis.scale.unionExtentFromData(u,r)},this),f.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(i,n){this._rect=m({left:i.get("left"),top:i.get("top"),right:i.get("right"),bottom:i.get("bottom"),width:i.get("width"),height:i.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var i=this._rect,n=this._axis,a=n.isHorizontal(),u=a?[0,i.width]:[0,i.height],r=n.reverse?1:0;n.setExtent(u[r],u[1-r]),this._updateAxisTransform(n,a?i.x:i.y)},_updateAxisTransform:function(i,n){var a=i.getExtent(),u=a[0]+a[1],r=i.isHorizontal();i.toGlobalCoord=r?function(l){return l+n}:function(l){return u-l+n},i.toLocalCoord=r?function(l){return l-n}:function(l){return u-l+n}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(i){var n=this.getRect(),a=this.getAxis(),u=a.orient;return u==="horizontal"?a.contain(a.toLocalCoord(i[0]))&&i[1]>=n.y&&i[1]<=n.y+n.height:a.contain(a.toLocalCoord(i[1]))&&i[0]>=n.y&&i[0]<=n.y+n.height},pointToData:function(i){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(i[n.orient==="horizontal"?0:1]))]},dataToPoint:function(i){var n=this.getAxis(),a=this.getRect(),u=[],r=n.orient==="horizontal"?0:1;return i instanceof Array&&(i=i[0]),u[r]=n.toGlobalCoord(n.dataToCoord(+i)),u[1-r]=r===0?a.y+a.height/2:a.x+a.width/2,u}};var o=c;D.exports=o},"SA+Z":function(D,_,e){var g=e("wTVA"),f=e("EbDI"),A=e("ZhPi"),m=e("wkBT");function v(h){return g(h)||f(h)||A(h)||m()}D.exports=v},"SA4+":function(D,_,e){var g=e("Tghj"),f=g.__DEV__,A=e("ProS"),m=e("IwbS"),v=e("zYTA"),h=e("bYtY");function c(a,u,r){var l=a[1]-a[0];u=h.map(u,function(d){return{interval:[(d.interval[0]-a[0])/l,(d.interval[1]-a[0])/l]}});var t=u.length,s=0;return function(d){for(var p=s;p=0;p--){var b=u[p].interval;if(b[0]<=d&&d<=b[1]){s=p;break}}return p>=0&&p=u[0]&&l<=u[1]}}function i(a){var u=a.dimensions;return u[0]==="lng"&&u[1]==="lat"}var n=A.extendChartView({type:"heatmap",render:function(a,u,r){var l;u.eachComponent("visualMap",function(s){s.eachTargetSeries(function(d){d===a&&(l=s)})}),this.group.removeAll(),this._incrementalDisplayable=null;var t=a.coordinateSystem;t.type==="cartesian2d"||t.type==="calendar"?this._renderOnCartesianAndCalendar(a,r,0,a.getData().count()):i(t)&&this._renderOnGeo(t,a,l,r)},incrementalPrepareRender:function(a,u,r){this.group.removeAll()},incrementalRender:function(a,u,r,l){var t=u.coordinateSystem;t&&this._renderOnCartesianAndCalendar(u,l,a.start,a.end,!0)},_renderOnCartesianAndCalendar:function(a,u,r,l,t){var s=a.coordinateSystem,d,p;if(s.type==="cartesian2d"){var b=s.getAxis("x"),w=s.getAxis("y");d=b.getBandWidth(),p=w.getBandWidth()}for(var E=this.group,S=a.getData(),x="itemStyle",T="emphasis.itemStyle",L="label",y="emphasis.label",C=a.getModel(x).getItemStyle(["color"]),O=a.getModel(T).getItemStyle(),N=a.getModel(L),k=a.getModel(y),F=s.type,B=F==="cartesian2d"?[S.mapDimension("x"),S.mapDimension("y"),S.mapDimension("value")]:[S.mapDimension("time"),S.mapDimension("value")],H=r;H=0?w=w+S:w=w-S:C>=0?w=w-S:w=w+S}return w}function u(r,l){var t=[],s=g.quadraticSubdivide,d=[[],[],[]],p=[[],[]],b=[];l/=2,r.eachEdge(function(w,E){var S=w.getLayout(),x=w.getVisual("fromSymbol"),T=w.getVisual("toSymbol");S.__original||(S.__original=[f.clone(S[0]),f.clone(S[1])],S[2]&&S.__original.push(f.clone(S[2])));var L=S.__original;if(S[2]!=null){if(f.copy(d[0],L[0]),f.copy(d[1],L[2]),f.copy(d[2],L[1]),x&&x!=="none"){var y=m(w.node1),C=a(d,L[0],y*l);s(d[0][0],d[1][0],d[2][0],C,t),d[0][0]=t[3],d[1][0]=t[4],s(d[0][1],d[1][1],d[2][1],C,t),d[0][1]=t[3],d[1][1]=t[4]}if(T&&T!=="none"){var y=m(w.node2),C=a(d,L[1],y*l);s(d[0][0],d[1][0],d[2][0],C,t),d[1][0]=t[1],d[2][0]=t[2],s(d[0][1],d[1][1],d[2][1],C,t),d[1][1]=t[1],d[2][1]=t[2]}f.copy(S[0],d[0]),f.copy(S[1],d[2]),f.copy(S[2],d[1])}else{if(f.copy(p[0],L[0]),f.copy(p[1],L[1]),f.sub(b,p[1],p[0]),f.normalize(b,b),x&&x!=="none"){var y=m(w.node1);f.scaleAndAdd(p[0],p[0],b,y*l)}if(T&&T!=="none"){var y=m(w.node2);f.scaleAndAdd(p[1],p[1],b,-y*l)}f.copy(S[0],p[0]),f.copy(S[1],p[1])}})}D.exports=u},SJMd:function(D,_){/** * @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 e,g,f,A=!1,m,v;window.PR_SHOULD_USE_CONTINUATION=!0;var h,c;(function(){var o=window,i=["break,continue,do,else,for,if,return,while"],n=[i,"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"],a=[n,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],u=[a,"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"],r=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[a,"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"],t="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",s=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="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",p=[i,"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"],b=[i,"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"],w=[i,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],E=[u,l,r,s,d,p,b,w],S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,x="str",T="kwd",L="com",y="typ",C="lit",O="pun",N="pln",k="tag",F="dec",B="src",H="atn",W="atv",R="nocode",U="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function j(_e){for(var ce=0,ee=!1,se=!1,ke=0,Ce=_e.length;ke122||(Ve<65||lt>90||Rt.push([Math.max(65,lt)|32,Math.min(Ve,90)|32]),Ve<97||lt>122||Rt.push([Math.max(97,lt)&~32,Math.min(Ve,122)&~32]))}}Rt.sort(function(Qe,ye){return Qe[0]-ye[0]||ye[1]-Qe[1]});for(var ie=[],$=[],Ge=0;Geit[0]&&(it[1]+1>it[0]&&wt.push("-"),wt.push(ge(it[1])))}return wt.push("]"),wt.join("")}function Ze(Ct){for(var Be=Ct.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")),Rt=Be.length,He=[],wt=0,Ge=0;wt=2&<==="["?Be[wt]=Le(et):lt!=="\\"&&(Be[wt]=et.replace(/[a-zA-Z]/g,function($){var it=$.charCodeAt(0);return"["+String.fromCharCode(it&~32,it|32)+"]"}))}return Be.join("")}for(var vt=[],ke=0,Ce=_e.length;ke=0;)ee[vt.charAt(Ct)]=Ze;var Be=Ze[1],Rt=""+Be;ae.hasOwnProperty(Rt)||(Oe.push(Be),ae[Rt]=null)}Oe.push(/[\0-\uffff]/),se=j(Oe)})();var ke=ce.length,Ce=function ze(Oe){for(var ae=Oe.sourceCode,ge=Oe.basePos,Le=Oe.sourceNode,Ze=[ge,N],vt=0,Ct=ae.match(se)||[],Be={},Rt=0,He=Ct.length;Rt=5&&Ge.substring(0,5)==="lang-",rt&&!(et&&typeof et[1]=="string")&&(rt=!1,Ge=B),rt||(Be[wt]=Ge)}var ie=vt;if(vt+=wt.length,!rt)Ze.push(ge+ie,Ge);else{var $=et[1],it=wt.indexOf($),Qe=it+$.length;et[2]&&(Qe=wt.length-et[2].length,it=Qe-$.length);var ye=Ge.substring(5);K(Le,ge+ie,wt.substring(0,it),ze,Ze),K(Le,ge+ie+it,$,Fe(ye,$),Ze),K(Le,ge+ie+Qe,wt.substring(Qe),ze,Ze)}}Oe.decorations=Ze};return Ce}function G(_e){var ce=[],ee=[];_e.tripleQuotedStrings?ce.push([x,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):_e.multiLineStrings?ce.push([x,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ce.push([x,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),_e.verbatimStrings&&ee.push([x,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var se=_e.hashComments;se&&(_e.cStyleComments?(se>1?ce.push([L,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ce.push([L,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ee.push([x,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ce.push([L,/^#[^\r\n]*/,null,"#"])),_e.cStyleComments&&(ee.push([L,/^\/\/[^\r\n]*/,null]),ee.push([L,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ke=_e.regexLiterals;if(ke){var Ce=ke>1?"":` \r`,ze=Ce?".":"[\\S\\s]",Oe="/(?=[^/*"+Ce+"])(?:[^/\\x5B\\x5C"+Ce+"]|\\x5C"+ze+"|\\x5B(?:[^\\x5C\\x5D"+Ce+"]|\\x5C"+ze+")*(?:\\x5D|$))+/";ee.push(["lang-regex",RegExp("^"+U+"("+Oe+")")])}var ae=_e.types;ae&&ee.push([y,ae]);var ge=(""+_e.keywords).replace(/^ | $/g,"");ge.length&&ee.push([T,new RegExp("^(?:"+ge.replace(/[\s,]+/g,"|")+")\\b"),null]),ce.push([N,/^\s+/,null,` \r \xA0`]);var Le="^.[^\\s\\w.$@'\"`/\\\\]*";return _e.regexLiterals&&(Le+="(?!s*/)"),ee.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[y,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[N,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[N,/^\\[\s\S]?/,null],[O,new RegExp(Le),null]),X(ce,ee)}var le=G({keywords:E,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Y(_e,ce,ee){for(var se=/(?:^|\s)nocode(?:\s|$)/,ke=/\r\n?|\n/,Ce=_e.ownerDocument,ze=Ce.createElement("li");_e.firstChild;)ze.appendChild(_e.firstChild);var Oe=[ze];function ae(Be){var Rt=Be.nodeType;if(Rt==1&&!se.test(Be.className))if(Be.nodeName==="br")ge(Be),Be.parentNode&&Be.parentNode.removeChild(Be);else for(var He=Be.firstChild;He;He=He.nextSibling)ae(He);else if((Rt==3||Rt==4)&&ee){var wt=Be.nodeValue,Ge=wt.match(ke);if(Ge){var et=wt.substring(0,Ge.index);Be.nodeValue=et;var rt=wt.substring(Ge.index+Ge[0].length);if(rt){var lt=Be.parentNode;lt.insertBefore(Ce.createTextNode(rt),Be.nextSibling)}ge(Be),et||Be.parentNode.removeChild(Be)}}}function ge(Be){for(;!Be.nextSibling;)if(Be=Be.parentNode,!Be)return;function Rt(Ge,et){var rt=et?Ge.cloneNode(!1):Ge,lt=Ge.parentNode;if(lt){var Ve=Rt(lt,1),ie=Ge.nextSibling;Ve.appendChild(rt);for(var $=ie;$;$=ie)ie=$.nextSibling,Ve.appendChild($)}return rt}for(var He=Rt(Be.nextSibling,0),wt;(wt=He.parentNode)&&wt.nodeType===1;)He=wt;Oe.push(He)}for(var Le=0;Le=lt&&(ae+=2),Ce>=Ve&&(Ze+=2)}}finally{wt&&(wt.style.display=Ge)}}var we={};function pe(_e,ce){for(var ee=ce.length;--ee>=0;){var se=ce[ee];we.hasOwnProperty(se)?o.console&&console.warn("cannot override language handler %s",se):we[se]=_e}}function Fe(_e,ce){return _e&&we.hasOwnProperty(_e)||(_e=/^\s*]*(?:>|$)/],[L,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[O,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),pe(X([[N,/^[\s]+/,null,` \r `],[W,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[k,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[H,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[O,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),pe(X([],[[W,/^[\s\S]+/]]),["uq.val"]),pe(G({keywords:u,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),pe(G({keywords:"null,true,false"}),["json"]),pe(G({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),pe(G({keywords:r,cStyleComments:!0}),["java"]),pe(G({keywords:w,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),pe(G({keywords:p,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),pe(G({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),pe(G({keywords:b,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),pe(G({keywords:s,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),pe(G({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),pe(X([],[[x,/^[\s\S]+/]]),["regex"]);function Xe(_e){var ce=_e.langExtension;try{var ee=P(_e.sourceNode,_e.pre),se=ee.sourceCode;_e.sourceCode=se,_e.spans=ee.spans,_e.basePos=0,Fe(ce,se)(_e),me(_e)}catch(ke){o.console&&console.log(ke&&ke.stack||ke)}}function dt(_e,ce,ee){var se=ee||!1,ke=ce||null,Ce=document.createElement("div");Ce.innerHTML="
"+_e+"
",Ce=Ce.firstChild,se&&Y(Ce,se,!0);var ze={langExtension:ke,numberLines:se,sourceNode:Ce,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Xe(ze),Ce.innerHTML}function Ee(_e,ce){var ee=ce||document.body,se=ee.ownerDocument||document;function ke(rt){return ee.getElementsByTagName(rt)}for(var Ce=[ke("pre"),ke("code"),ke("xmp")],ze=[],Oe=0;Oe=v.right?h.x=v.width-1:h.x=f-v.left,A=v.bottom?h.y=v.height-1:h.y=A-v.top,h}},Sdc0:function(D,_,e){"use strict";var g=e("pVnL"),f=e.n(g),A=e("lSNA"),m=e.n(A),v=e("q1tI"),h=e("rePB"),c=e("ODXe"),o=e("Ff2n"),i=e("TSYQ"),n=e.n(i),a=e("6cGi"),u=e("4IlW"),r=v.forwardRef(function(T,L){var y,C=T.prefixCls,O=C===void 0?"rc-switch":C,N=T.className,k=T.checked,F=T.defaultChecked,B=T.disabled,H=T.loadingIcon,W=T.checkedChildren,R=T.unCheckedChildren,U=T.onClick,j=T.onChange,P=T.onKeyDown,K=Object(o.a)(T,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),V=Object(a.a)(!1,{value:k,defaultValue:F}),z=Object(c.a)(V,2),X=z[0],G=z[1];function le(pe,Fe){var Xe=X;return B||(Xe=pe,G(Xe),j==null||j(Xe,Fe)),Xe}function Y(pe){pe.which===u.a.LEFT?le(!1,pe):pe.which===u.a.RIGHT&&le(!0,pe),P==null||P(pe)}function me(pe){var Fe=le(!X,pe);U==null||U(Fe,pe)}var we=n()(O,N,(y={},Object(h.a)(y,"".concat(O,"-checked"),X),Object(h.a)(y,"".concat(O,"-disabled"),B),y));return v.createElement("button",Object.assign({},K,{type:"button",role:"switch","aria-checked":X,disabled:B,className:we,ref:L,onKeyDown:Y,onClick:me}),H,v.createElement("span",{className:"".concat(O,"-inner")},X?W:R))});r.displayName="Switch";var l=r,t=e("gZBC"),s=e.n(t),d=e("g0mS"),p=e("H84U"),b=e("3Nzz"),w=e("uaoM"),E=function(T,L){var y={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&L.indexOf(C)<0&&(y[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,C=Object.getOwnPropertySymbols(T);O3?1.4:b>1?1.2:1.1,x=p>0?S:1/S;a(this,"zoom","zoomOnMouseWheel",t,{scale:x,originX:w,originY:E})}if(d){var T=Math.abs(p),L=(p>0?1:-1)*(T>3?.4:T>1?.15:.05);a(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:L,originX:w,originY:E})}}function n(t){if(m.isTaken(this._zr,"globalPan"))return;var s=t.pinchScale>1?1.1:1/1.1;a(this,"zoom",null,t,{scale:s,originX:t.pinchX,originY:t.pinchY})}function a(t,s,d,p,b){t.pointerChecker&&t.pointerChecker(p,b.originX,b.originY)&&(A.stop(p.event),u(t,s,d,p,b))}function u(t,s,d,p,b){b.isAvailableBehavior=g.bind(r,null,d,p),t.trigger(s,b)}function r(t,s,d){var p=d[t];return!t||p&&(!g.isString(p)||s.event[p+"Key"])}var l=v;D.exports=l},SgaC:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;function g(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function f(v,h){for(var c=0;c0;){if(a.rQwait("RRE",4+8))return!1;var t=a.rQshiftBytes(4),s=a.rQshift16(),d=a.rQshift16(),p=a.rQshift16(),b=a.rQshift16();u.fillRect(c+s,o+d,p,b,t),this._subrects--}return!0}}]),v}();_.default=m},Sj0X:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var A=f(e("q1tI")),m=g(e("XuBP")),v=g(e("KQxl")),h=function(i,n){return A.createElement(v.default,Object.assign({},i,{ref:n,icon:m.default}))};h.displayName="DownOutlined";var c=A.forwardRef(h);_.default=c},Sj9i:function(D,_,e){var g=e("QBsz"),f=g.create,A=g.distSquare,m=Math.pow,v=Math.sqrt,h=1e-8,c=1e-4,o=v(3),i=1/3,n=f(),a=f(),u=f();function r(C){return C>-h&&Ch||C<-h}function t(C,O,N,k,F){var B=1-F;return B*B*(B*C+3*F*O)+F*F*(F*k+3*B*N)}function s(C,O,N,k,F){var B=1-F;return 3*(((O-C)*B+2*(N-O)*F)*B+(k-N)*F*F)}function d(C,O,N,k,F,B){var H=k+3*(O-N)-C,W=3*(N-O*2+C),R=3*(O-C),U=C-F,j=W*W-3*H*R,P=W*R-9*H*U,K=R*R-3*W*U,V=0;if(r(j)&&r(P))if(r(W))B[0]=0;else{var z=-R/W;z>=0&&z<=1&&(B[V++]=z)}else{var X=P*P-4*j*K;if(r(X)){var G=P/j,z=-W/H+G,le=-G/2;z>=0&&z<=1&&(B[V++]=z),le>=0&&le<=1&&(B[V++]=le)}else if(X>0){var Y=v(X),me=j*W+1.5*H*(-P+Y),we=j*W+1.5*H*(-P-Y);me<0?me=-m(-me,i):me=m(me,i),we<0?we=-m(-we,i):we=m(we,i);var z=(-W-(me+we))/(3*H);z>=0&&z<=1&&(B[V++]=z)}else{var pe=(2*j*W-3*H*P)/(2*v(j*j*j)),Fe=Math.acos(pe)/3,Xe=v(j),dt=Math.cos(Fe),z=(-W-2*Xe*dt)/(3*H),le=(-W+Xe*(dt+o*Math.sin(Fe)))/(3*H),Ee=(-W+Xe*(dt-o*Math.sin(Fe)))/(3*H);z>=0&&z<=1&&(B[V++]=z),le>=0&&le<=1&&(B[V++]=le),Ee>=0&&Ee<=1&&(B[V++]=Ee)}}return V}function p(C,O,N,k,F){var B=6*N-12*O+6*C,H=9*O+3*k-3*C-9*N,W=3*O-3*C,R=0;if(r(H)){if(l(B)){var U=-W/B;U>=0&&U<=1&&(F[R++]=U)}}else{var j=B*B-4*H*W;if(r(j))F[0]=-B/(2*H);else if(j>0){var P=v(j),U=(-B+P)/(2*H),K=(-B-P)/(2*H);U>=0&&U<=1&&(F[R++]=U),K>=0&&K<=1&&(F[R++]=K)}}return R}function b(C,O,N,k,F,B){var H=(O-C)*F+C,W=(N-O)*F+O,R=(k-N)*F+N,U=(W-H)*F+H,j=(R-W)*F+W,P=(j-U)*F+U;B[0]=C,B[1]=H,B[2]=U,B[3]=P,B[4]=P,B[5]=j,B[6]=R,B[7]=k}function w(C,O,N,k,F,B,H,W,R,U,j){var P,K=.005,V=Infinity,z,X,G,le;n[0]=R,n[1]=U;for(var Y=0;Y<1;Y+=.05)a[0]=t(C,N,F,H,Y),a[1]=t(O,k,B,W,Y),G=A(n,a),G=0&&G=0&&U<=1&&(F[R++]=U)}}else{var j=H*H-4*B*W;if(r(j)){var U=-H/(2*B);U>=0&&U<=1&&(F[R++]=U)}else if(j>0){var P=v(j),U=(-H+P)/(2*B),K=(-H-P)/(2*B);U>=0&&U<=1&&(F[R++]=U),K>=0&&K<=1&&(F[R++]=K)}}return R}function T(C,O,N){var k=C+N-2*O;return k===0?.5:(C-O)/k}function L(C,O,N,k,F){var B=(O-C)*k+C,H=(N-O)*k+O,W=(H-B)*k+B;F[0]=C,F[1]=B,F[2]=W,F[3]=W,F[4]=H,F[5]=N}function y(C,O,N,k,F,B,H,W,R){var U,j=.005,P=Infinity;n[0]=H,n[1]=W;for(var K=0;K<1;K+=.05){a[0]=E(C,N,F,K),a[1]=E(O,k,B,K);var V=A(n,a);V=0&&V=0;--w)if(b[w]===p)return!0;return!1}),d):null:d[0]},r.prototype.update=function(t,s){if(!t)return;var d=this.getDefs(!1);if(t[this._domName]&&d.contains(t[this._domName]))typeof s=="function"&&s(t);else{var p=this.add(t);p&&(t[this._domName]=p)}},r.prototype.addDom=function(t){var s=this.getDefs(!0);s.appendChild(t)},r.prototype.removeDom=function(t){var s=this.getDefs(!1);s&&t[this._domName]&&(s.removeChild(t[this._domName]),t[this._domName]=null)},r.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var s=[];return A.each(this._tagNames,function(d){var p=t.getElementsByTagName(d);s=s.concat([].slice.call(p))}),s},r.prototype.markAllUnused=function(){var t=this.getDoms(),s=this;A.each(t,function(d){d[s._markLabel]=a})},r.prototype.markUsed=function(t){t&&(t[this._markLabel]=u)},r.prototype.removeUnused=function(){var t=this.getDefs(!1);if(!t)return;var s=this.getDoms(),d=this;A.each(s,function(p){p[d._markLabel]!==u&&t.removeChild(p)})},r.prototype.getSvgProxy=function(t){return t instanceof m?o:t instanceof v?i:t instanceof h?n:o},r.prototype.getTextSvgElement=function(t){return t.__textSvgEl},r.prototype.getSvgElement=function(t){return t.__svgEl};var l=r;D.exports=l},Swgg:function(D,_,e){var g=e("fc+c"),f=g.extend({type:"dataZoom.select"});D.exports=f},Sxd8:function(D,_,e){var g=e("ZCgT");function f(A){var m=g(A),v=m%1;return m===m?v?m-v:m:0}D.exports=f},T1rO:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var g=f(e("zdCA"));function f(m){return m&&m.__esModule?m:{default:m}}var A=g;_.default=A,D.exports=A},T4UG:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,A=e("bYtY"),m=e("ItGF"),v=e("7aKB"),h=v.formatTime,c=v.encodeHTML,o=v.addCommas,i=v.getTooltipMarker,n=e("4NO4"),a=e("bLfw"),u=e("5Hur"),r=e("OKJ2"),l=e("+TT/"),t=l.getLayoutParams,s=l.mergeLayoutParam,d=e("9H2F"),p=d.createTask,b=e("D5nY"),w=b.prepareSource,E=b.getSource,S=e("KxfA"),x=S.retrieveRawValue,T=n.makeInner(),L=a.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(R,U,j,P){this.seriesIndex=this.componentIndex,this.dataTask=p({count:O,reset:N}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(R,j),w(this);var K=this.getInitialData(R,j);F(K,this),this.dataTask.context.data=K,T(this).dataBeforeProcessed=K,y(this)},mergeDefaultAndTheme:function(R,U){var j=this.layoutMode,P=j?t(R):{},K=this.subType;a.hasClass(K)&&(K+="Series"),A.merge(R,U.getTheme().get(this.subType)),A.merge(R,this.getDefaultOption()),n.defaultEmphasis(R,"label",["show"]),this.fillDataTextStyle(R.data),j&&s(R,P,j)},mergeOption:function(R,U){R=A.merge(this.option,R,!0),this.fillDataTextStyle(R.data);var j=this.layoutMode;j&&s(this.option,R,j),w(this);var P=this.getInitialData(R,U);F(P,this),this.dataTask.dirty(),this.dataTask.context.data=P,T(this).dataBeforeProcessed=P,y(this)},fillDataTextStyle:function(R){if(R&&!A.isTypedArray(R))for(var U=["show"],j=0;j":` `,z=P==="richText",X={},G=0;function le(Ce){var ze=A.reduce(Ce,function(Ze,vt,Ct){var Be=me.getDimensionInfo(Ct);return Ze|=Be&&Be.tooltip!==!1&&Be.displayName!=null},0),Oe=[];we.length?A.each(we,function(Ze){ae(x(me,R,Ze),Ze)}):A.each(Ce,ae);function ae(Ze,vt){var Ct=me.getDimensionInfo(vt);if(!Ct||Ct.otherDims.tooltip===!1)return;var Be=Ct.type,Rt="sub"+K.seriesIndex+"at"+G,He=i({color:dt,type:"subItem",renderMode:P,markerId:Rt}),wt=typeof He=="string"?He:He.content,Ge=(ze?wt+c(Ct.displayName||"-")+": ":"")+c(Be==="ordinal"?Ze+"":Be==="time"?U?"":h("yyyy/MM/dd hh:mm:ss",Ze):o(Ze));Ge&&Oe.push(Ge),z&&(X[Rt]=dt,++G)}var ge=ze?z?` `:"
":"",Le=ge+Oe.join(ge||", ");return{renderMode:P,content:Le,style:X}}function Y(Ce){return{renderMode:P,content:c(o(Ce)),style:X}}var me=this.getData(),we=me.mapDimension("defaultedTooltip",!0),pe=we.length,Fe=this.getRawValue(R),Xe=A.isArray(Fe),dt=me.getItemVisual(R,"color");A.isObject(dt)&&dt.colorStops&&(dt=(dt.colorStops[0]||{}).color),dt=dt||"transparent";var Ee=pe>1||Xe&&!pe?le(Fe):Y(pe?x(me,R,we[0]):Xe?Fe[0]:Fe),Se=Ee.content,at=K.seriesIndex+"at"+G,_e=i({color:dt,type:"item",renderMode:P,markerId:at});X[at]=dt,++G;var ce=me.getName(R),ee=this.name;n.isNameSpecified(this)||(ee=""),ee=ee?c(ee)+(U?": ":V):"";var se=typeof _e=="string"?_e:_e.content,ke=U?se+ee+Se:ee+se+(ce?c(ce)+": "+Se:Se);return{html:ke,markers:X}},isAnimationEnabled:function(){if(m.node)return!1;var R=this.getShallow("animation");return R&&(this.getData().count()>this.getShallow("animationThreshold")&&(R=!1)),R},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(R,U,j){var P=this.ecModel,K=u.getColorFromPalette.call(this,R,U,j);return K||(K=P.getColorFromPalette(R,U,j)),K},coordDimToDataDim:function(R){return this.getRawData().mapDimension(R,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});A.mixin(L,r),A.mixin(L,u);function y(R){var U=R.name;n.isNameSpecified(R)||(R.name=C(R)||U)}function C(R){var U=R.getRawData(),j=U.mapDimension("seriesName",!0),P=[];return A.each(j,function(K){var V=U.getDimensionInfo(K);V.displayName&&P.push(V.displayName)}),P.join(" ")}function O(R){return R.model.getRawData().count()}function N(R){var U=R.model;return U.setData(U.getRawData().cloneShallow()),k}function k(R,U){U.outputData&&R.end>U.outputData.count()&&U.model.getRawData().cloneShallow(U.outputData)}function F(R,U){A.each(R.CHANGABLE_METHODS,function(j){R.wrapMethod(j,A.curry(B,U))})}function B(R){var U=H(R);U&&U.setOutputEnd(this.count())}function H(R){var U=(R.ecModel||{}).scheduler,j=U&&U.getPipeline(R.uid);if(j){var P=j.currentTask;if(P){var K=P.agentStubMap;K&&(P=K.get(R.uid))}return P}}var W=L;D.exports=W},T6xi:function(D,_,e){var g=e("YgsL"),f=e("nCxF");function A(m,v,h){var c=v.points,o=v.smooth;if(c&&c.length>=2){if(o&&o!=="spline"){var i=f(c,o,h,v.smoothConstraint);m.moveTo(c[0][0],c[0][1]);for(var n=c.length,a=0;a<(h?n:n-1);a++){var u=i[a*2],r=i[a*2+1],l=c[(a+1)%n];m.bezierCurveTo(u[0],u[1],r[0],r[1],l[0],l[1])}}else{o==="spline"&&(c=g(c,h)),m.moveTo(c[0][0],c[0][1]);for(var a=1,t=c.length;a0?m:v)}function r(l,t){return t.get(l>0?f:A)}}};D.exports=h},TWL2:function(D,_,e){var g=e("IwbS"),f=e("bYtY"),A=e("6Ic6");function m(i,n){g.Group.call(this);var a=new g.Polygon,u=new g.Polyline,r=new g.Text;this.add(a),this.add(u),this.add(r),this.highDownOnUpdate=function(l,t){t==="emphasis"?(u.ignore=u.hoverIgnore,r.ignore=r.hoverIgnore):(u.ignore=u.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(i,n,!0)}var v=m.prototype,h=["itemStyle","opacity"];v.updateData=function(i,n,a){var u=this.childAt(0),r=i.hostModel,l=i.getItemModel(n),t=i.getItemLayout(n),s=i.getItemModel(n).get(h);s=s==null?1:s,u.useStyle({}),a?(u.setShape({points:t.points}),u.setStyle({opacity:0}),g.initProps(u,{style:{opacity:s}},r,n)):g.updateProps(u,{style:{opacity:s},shape:{points:t.points}},r,n);var d=l.getModel("itemStyle"),p=i.getItemVisual(n,"color");u.setStyle(f.defaults({lineJoin:"round",fill:p},d.getItemStyle(["opacity"]))),u.hoverStyle=d.getModel("emphasis").getItemStyle(),this._updateLabel(i,n),g.setHoverStyle(this)},v._updateLabel=function(i,n){var a=this.childAt(1),u=this.childAt(2),r=i.hostModel,l=i.getItemModel(n),t=i.getItemLayout(n),s=t.label,d=i.getItemVisual(n,"color");g.updateProps(a,{shape:{points:s.linePoints||s.linePoints}},r,n),g.updateProps(u,{style:{x:s.x,y:s.y}},r,n),u.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var p=l.getModel("label"),b=l.getModel("emphasis.label"),w=l.getModel("labelLine"),E=l.getModel("emphasis.labelLine"),d=i.getItemVisual(n,"color");g.setLabelStyle(u.style,u.hoverStyle={},p,b,{labelFetcher:i.hostModel,labelDataIndex:n,defaultText:i.getName(n),autoColor:d,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),u.ignore=u.normalIgnore=!p.get("show"),u.hoverIgnore=!b.get("show"),a.ignore=a.normalIgnore=!w.get("show"),a.hoverIgnore=!E.get("show"),a.setStyle({stroke:d}),a.setStyle(w.getModel("lineStyle").getLineStyle()),a.hoverStyle=E.getModel("lineStyle").getLineStyle()},f.inherits(m,g.Group);var c=A.extend({type:"funnel",render:function(i,n,a){var u=i.getData(),r=this._data,l=this.group;u.diff(r).add(function(t){var s=new m(u,t);u.setItemGraphicEl(t,s),l.add(s)}).update(function(t,s){var d=r.getItemGraphicEl(s);d.updateData(u,t),l.add(d),u.setItemGraphicEl(t,d)}).remove(function(t){var s=r.getItemGraphicEl(t);l.remove(s)}).execute(),this._data=u},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),o=c;D.exports=o},TYVI:function(D,_,e){var g=e("5GtS"),f=e("T4UG"),A=f.extend({type:"series.gauge",getInitialData:function(v,h){return g(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),m=A;D.exports=m},Tghj:function(D,_,e){(function(g){var f;typeof window!="undefined"?f=window.__DEV__:typeof g!="undefined"&&(f=g.__DEV__),typeof f=="undefined"&&(f=!0);var A=f;_.__DEV__=A}).call(this,e("yLpj"))},ThAp:function(D,_,e){var g=e("bYtY"),f=e("5GtS"),A=e("T4UG"),m=e("7aKB"),v=m.encodeHTML,h=m.addCommas,c=e("cCMj"),o=e("KxfA"),i=o.retrieveRawAttr,n=e("W4dC"),a=e("D5nY"),u=a.makeSeriesEncodeForNameBased,r=A.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var s=f(this,{coordDimensions:["value"],encodeDefaulter:g.curry(u,this)}),d=s.mapDimension("value"),p=g.createHashMap(),b=[],w=[],E=0,S=s.count();E"+v(p+" : "+d)},getTooltipPosition:function(t){if(t!=null){var s=this.getData().getName(t),d=this.coordinateSystem,p=d.getRegion(s);return p&&d.dataToPoint(p.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});g.mixin(r,c);var l=r;D.exports=l},TkdX:function(D,_,e){var g=e("bYtY"),f=e("IwbS"),A={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},m=2,v=4;function h(r,l,t){f.Group.call(this);var s=new f.Sector({z2:m});s.seriesIndex=l.seriesIndex;var d=new f.Text({z2:v,silent:r.getModel("label").get("silent")});this.add(s),this.add(d),this.updateData(!0,r,"normal",l,t);function p(){d.ignore=d.hoverIgnore}function b(){d.ignore=d.normalIgnore}this.on("emphasis",p).on("normal",b).on("mouseover",p).on("mouseout",b)}var c=h.prototype;c.updateData=function(r,l,t,s,d){this.node=l,l.piece=this,s=s||this._seriesModel,d=d||this._ecModel;var p=this.childAt(0);p.dataIndex=l.dataIndex;var b=l.getModel(),w=l.getLayout(),E=g.extend({},w);E.label=null;var S=i(l,s,d);u(l,s,S);var x=b.getModel("itemStyle").getItemStyle(),T;if(t==="normal")T=x;else{var L=b.getModel(t+".itemStyle").getItemStyle();T=g.merge(L,x)}T=g.defaults({lineJoin:"bevel",fill:T.fill||S},T),r?(p.setShape(E),p.shape.r=w.r0,f.updateProps(p,{shape:{r:w.r}},s,l.dataIndex),p.useStyle(T)):typeof T.fill=="object"&&T.fill.type||typeof p.style.fill=="object"&&p.style.fill.type?(f.updateProps(p,{shape:E},s),p.useStyle(T)):f.updateProps(p,{shape:E,style:T},s),this._updateLabel(s,S,t);var y=b.getShallow("cursor");if(y&&p.attr("cursor",y),r){var C=s.getShallow("highlightPolicy");this._initEvents(p,l,s,C)}this._seriesModel=s||this._seriesModel,this._ecModel=d||this._ecModel,f.setHoverStyle(this)},c.onEmphasis=function(r){var l=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(l.node===t?t.piece.updateData(!1,t,"emphasis"):a(t,l.node,r)?t.piece.childAt(0).trigger("highlight"):r!==A.NONE&&t.piece.childAt(0).trigger("downplay"))})},c.onNormal=function(){this.node.hostTree.root.eachNode(function(r){r.piece&&r.piece.updateData(!1,r,"normal")})},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(r,l,t){var s=this.node.getModel(),d=s.getModel("label"),p=t==="normal"||t==="emphasis"?d:s.getModel(t+".label"),b=s.getModel("emphasis.label"),w=g.retrieve(r.getFormattedLabel(this.node.dataIndex,t,null,null,"label"),this.node.name);U("show")===!1&&(w="");var E=this.node.getLayout(),S=p.get("minAngle");S==null&&(S=d.get("minAngle")),S=S/180*Math.PI;var x=E.endAngle-E.startAngle;S!=null&&Math.abs(x)Math.PI/2?"right":"left"):!F||F==="center"?(O=(E.r+E.r0)/2,F="center"):F==="left"?(O=E.r0+k,L>Math.PI/2&&(F="right")):F==="right"&&(O=E.r-k,L>Math.PI/2&&(F="left")),T.attr("style",{text:w,textAlign:F,textVerticalAlign:U("verticalAlign")||"middle",opacity:U("opacity")});var B=O*y+E.cx,H=O*C+E.cy;T.attr("position",[B,H]);var W=U("rotate"),R=0;W==="radial"?(R=-L,R<-Math.PI/2&&(R+=Math.PI)):W==="tangential"?(R=Math.PI/2-L,R>Math.PI/2?R-=Math.PI:R<-Math.PI/2&&(R+=Math.PI)):typeof W=="number"&&(R=W*Math.PI/180),T.attr("rotation",R);function U(j){var P=p.get(j);return P==null?d.get(j):P}},c._initEvents=function(r,l,t,s){r.off("mouseover").off("mouseout").off("emphasis").off("normal");var d=this,p=function(){d.onEmphasis(s)},b=function(){d.onNormal()},w=function(){d.onDownplay()},E=function(){d.onHighlight()};t.isAnimationEnabled()&&r.on("mouseover",p).on("mouseout",b).on("emphasis",p).on("normal",b).on("downplay",w).on("highlight",E)},g.inherits(h,f.Group);var o=h;function i(r,l,t){var s=r.getVisual("color"),d=r.getVisual("visualMeta");(!d||d.length===0)&&(s=null);var p=r.getModel("itemStyle").get("color");if(p)return p;if(s)return s;if(r.depth===0)return t.option.color[0];var b=t.option.color.length;return p=t.option.color[n(r)%b],p}function n(r){for(var l=r;l.depth>1;)l=l.parentNode;var t=r.getAncestors()[0];return g.indexOf(t.children,l)}function a(r,l,t){return t===A.NONE?!1:t===A.SELF?r===l:t===A.ANCESTOR?r===l||r.isAncestorOf(l):r===l||r.isDescendantOf(l)}function u(r,l,t){var s=l.getData();s.setItemVisual(r.dataIndex,"color",t)}D.exports=o},ToDW:function(D,_,e){"use strict";var g=e("TqRt");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var f=g(e("pVnL")),A=g(e("3tO9")),m=g(e("lwsE")),v=g(e("W8MJ")),h=g(e("PJYZ")),c=g(e("7W2i")),o=g(e("LQ03")),i=g(e("lSNA")),n=g(e("q1tI")),a=e("hQUZ"),u=g(e("pIsd")),r=g(e("cZFH")),l=e("3K4p"),t=function(s){(0,c.default)(p,s);var d=(0,o.default)(p);function p(b){var w;return(0,m.default)(this,p),w=d.call(this,b),(0,i.default)((0,h.default)(w),"innerSliderRefHandler",function(E){return w.innerSlider=E}),(0,i.default)((0,h.default)(w),"slickPrev",function(){return w.innerSlider.slickPrev()}),(0,i.default)((0,h.default)(w),"slickNext",function(){return w.innerSlider.slickNext()}),(0,i.default)((0,h.default)(w),"slickGoTo",function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return w.innerSlider.slickGoTo(E,S)}),(0,i.default)((0,h.default)(w),"slickPause",function(){return w.innerSlider.pause("paused")}),(0,i.default)((0,h.default)(w),"slickPlay",function(){return w.innerSlider.autoPlay("play")}),w.state={breakpoint:null},w._responsiveMediaHandlers=[],w}return(0,v.default)(p,[{key:"media",value:function(w,E){var S=window.matchMedia(w),x=function(L){var y=L.matches;y&&E()};S.addListener(x),x(S),this._responsiveMediaHandlers.push({mql:S,query:w,listener:x})}},{key:"componentDidMount",value:function(){var w=this;if(this.props.responsive){var E=this.props.responsive.map(function(x){return x.breakpoint});E.sort(function(x,T){return x-T}),E.forEach(function(x,T){var L;T===0?L=(0,u.default)({minWidth:0,maxWidth:x}):L=(0,u.default)({minWidth:E[T-1]+1,maxWidth:x}),(0,l.canUseDOM)()&&w.media(L,function(){w.setState({breakpoint:x})})});var S=(0,u.default)({minWidth:E.slice(-1)[0]});(0,l.canUseDOM)()&&this.media(S,function(){w.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(w){w.mql.removeListener(w.listener)})}},{key:"render",value:function(){var w=this,E,S;this.state.breakpoint?(S=this.props.responsive.filter(function(B){return B.breakpoint===w.state.breakpoint}),E=S[0].settings==="unslick"?"unslick":(0,A.default)((0,A.default)((0,A.default)({},r.default),this.props),S[0].settings)):E=(0,A.default)((0,A.default)({},r.default),this.props),E.centerMode&&(E.slidesToScroll>1&&!1&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(E.slidesToScroll)),E.slidesToScroll=1),E.fade&&(E.slidesToShow>1&&!1&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(E.slidesToShow)),E.slidesToScroll>1&&!1&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(E.slidesToScroll)),E.slidesToShow=1,E.slidesToScroll=1);var x=n.default.Children.toArray(this.props.children);x=x.filter(function(B){return typeof B=="string"?!!B.trim():!!B}),E.variableWidth&&(E.rows>1||E.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),E.variableWidth=!1);for(var T=[],L=null,y=0;y=x.length);k+=1)N.push(n.default.cloneElement(x[k],{key:100*y+10*O+k,tabIndex:-1,style:{width:"".concat(100/E.slidesPerRow,"%"),display:"inline-block"}}));C.push(n.default.createElement("div",{key:10*y+O},N))}E.variableWidth?T.push(n.default.createElement("div",{key:y,style:{width:L}},C)):T.push(n.default.createElement("div",{key:y},C))}if(E==="unslick"){var F="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:F},x)}else T.length<=E.slidesToShow&&(E.unslick=!0);return n.default.createElement(a.InnerSlider,(0,f.default)({style:this.props.style,ref:this.innerSliderRefHandler},E),T)}}]),p}(n.default.Component);_.default=t},Tp9H:function(D,_,e){var g=e("ItGF"),f=e("Kagy"),A=e("IUWy"),m=f.toolbox.saveAsImage;function v(o){this.model=o}v.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:m.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:m.lang.slice()},v.prototype.unusable=!g.canvasSupported;var h=v.prototype;h.onclick=function(o,i){var n=this.model,a=n.get("name")||o.get("title.0.text")||"echarts",u=i.getZr().painter.getType()==="svg",r=u?"svg":n.get("type",!0)||"png",l=i.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||o.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(typeof MouseEvent=="function"&&!g.browser.ie&&!g.browser.edge){var t=document.createElement("a");t.download=a+"."+r,t.target="_blank",t.href=l;var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});t.dispatchEvent(s)}else if(window.navigator.msSaveOrOpenBlob){for(var d=atob(l.split(",")[1]),p=d.length,b=new Uint8Array(p);p--;)b[p]=d.charCodeAt(p);var w=new Blob([b]);window.navigator.msSaveOrOpenBlob(w,a+"."+r)}else{var E=n.get("lang"),S='',x=window.open();x.document.write(S)}},A.register("saveAsImage",v);var c=v;D.exports=c},"U/Mo":function(D,_){function e(f){var A=f.coordinateSystem;if(A.type!=="view")return 1;var m=f.option.nodeScaleRatio,v=A.scale,h=v&&v[0]||1,c=A.getZoom(),o=(c-1)*m+1;return o/h}function g(f){var A=f.getVisual("symbolSize");return A instanceof Array&&(A=(A[0]+A[1])/2),+A}_.getNodeGlobalScale=e,_.getSymbolSize=g},UADf:function(D,_,e){},UESt:function(D,_,e){"use strict";var g=e("q1tI"),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},A=f,m=e("6VBw"),v=function(o,i){return g.createElement(m.a,Object.assign({},o,{ref:i,icon:A}))};v.displayName="RightOutlined";var h=_.a=g.forwardRef(v)},"UNi/":function(D,_){function e(g,f){for(var A=-1,m=Array(g);++A=0}function h(i,n){i=i.slice();var a=g.map(i,f.capitalFirst);n=(n||[]).slice();var u=g.map(n,f.capitalFirst);return function(r,l){g.each(i,function(t,s){for(var d={name:t,capital:a[s]},p=0;p=0}function r(t,s){var d=!1;return n(function(p){g.each(a(t,p)||[],function(b){s.records[p.name][b]&&(d=!0)})}),d}function l(t,s){s.nodes.push(t),n(function(d){g.each(a(t,d)||[],function(p){s.records[d.name][p]=!0})})}}_.isCoordSupported=v,_.createNameEach=h,_.eachAxisDim=c,_.createLinkedNodesFinder=o},Uc92:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};_.default=g},UmKh:function(D,_,e){"use strict";var g=e("q1tI"),f=e.n(g),A=e("aGtg");function m(W){var R=[];return f.a.Children.forEach(W,function(U){R.push(U)}),R}function v(W,R){var U=null;return W&&W.forEach(function(j){if(U)return;j&&j.key===R&&(U=j)}),U}function h(W,R,U){var j=null;return W&&W.forEach(function(P){if(P&&P.key===R&&P.props[U]){if(j)throw new Error("two child with same key for children");j=P}}),j}function c(W,R,U){var j=0;return W&&W.forEach(function(P){if(j)return;j=P&&P.key===R&&!P.props[U]}),j}function o(W,R,U){var j=W.length===R.length;return j&&W.forEach(function(P,K){var V=R[K];P&&V&&((P&&!V||!P&&V||(P.key!==V.key||U&&P.props[U]!==V.props[U]))&&(j=!1))}),j}function i(W,R){var U=[],j={},P=[];return W.forEach(function(K){K&&v(R,K.key)?P.length&&(j[K.key]=P,P=[]):P.push(K)}),R.forEach(function(K){K&&Object.prototype.hasOwnProperty.call(j,K.key)&&(U=U.concat(j[K.key])),U.push(K)}),U=U.concat(P),U}var n=e("i8i4"),a=e.n(n),u=e("UwPn"),r={isAppearSupported:function(R){return R.transitionName&&R.transitionAppear||R.animation.appear},isEnterSupported:function(R){return R.transitionName&&R.transitionEnter||R.animation.enter},isLeaveSupported:function(R){return R.transitionName&&R.transitionLeave||R.animation.leave},allowAppearCallback:function(R){return R.transitionAppear||R.animation.appear},allowEnterCallback:function(R){return R.transitionEnter||R.animation.enter},allowLeaveCallback:function(R){return R.transitionLeave||R.animation.leave}},l=r,t=function(){function W(R,U){for(var j=0;j children");return f.a.createElement(E,{key:G.key,ref:function(Y){j.childrenRefs[G.key]=Y},animation:P.animation,transitionName:P.transitionName,transitionEnter:P.transitionEnter,transitionAppear:P.transitionAppear,transitionLeave:P.transitionLeave},G)}));var z=P.component;if(z){var X=P;return typeof z=="string"&&(X=S({className:P.className,style:P.style},P.componentProps)),f.a.createElement(z,X,V)}return V[0]||null}}]),R}(f.a.Component);F.isAnimate=!0,F.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:k,onEnter:k,onLeave:k,onAppear:k};var B=function(){var R=this;this.performEnter=function(U){R.childrenRefs[U]&&(R.currentlyAnimatingKeys[U]=!0,R.childrenRefs[U].componentWillEnter(R.handleDoneAdding.bind(R,U,"enter")))},this.performAppear=function(U){R.childrenRefs[U]&&(R.currentlyAnimatingKeys[U]=!0,R.childrenRefs[U].componentWillAppear(R.handleDoneAdding.bind(R,U,"appear")))},this.handleDoneAdding=function(U,j){var P=R.props;if(delete R.currentlyAnimatingKeys[U],P.exclusive&&P!==R.nextProps)return;var K=m(N(P));R.isValidChildByKey(K,U)?j==="appear"?l.allowAppearCallback(P)&&(P.onAppear(U),P.onEnd(U,!0)):l.allowEnterCallback(P)&&(P.onEnter(U),P.onEnd(U,!0)):R.performLeave(U)},this.performLeave=function(U){R.childrenRefs[U]&&(R.currentlyAnimatingKeys[U]=!0,R.childrenRefs[U].componentWillLeave(R.handleDoneLeaving.bind(R,U)))},this.handleDoneLeaving=function(U){var j=R.props;if(delete R.currentlyAnimatingKeys[U],j.exclusive&&j!==R.nextProps)return;var P=m(N(j));if(R.isValidChildByKey(P,U))R.performEnter(U);else{var K=function(){l.allowLeaveCallback(j)&&(j.onLeave(U),j.onEnd(U,!1))};o(R.state.children,P,j.showProp)?K():R.setState({children:P},K)}}},H=_.a=Object(A.a)(F)},UnoB:function(D,_,e){var g=e("bYtY"),f=e("OELB");function A(h,c){h.eachSeriesByType("themeRiver",function(o){var i=o.getData(),n=o.coordinateSystem,a={},u=n.getRect();a.rect=u;var r=o.get("boundaryGap"),l=n.getAxis();if(a.boundaryGap=r,l.orient==="horizontal"){r[0]=f.parsePercent(r[0],u.height),r[1]=f.parsePercent(r[1],u.height);var t=u.height-r[0]-r[1];m(i,o,t)}else{r[0]=f.parsePercent(r[0],u.width),r[1]=f.parsePercent(r[1],u.width);var s=u.width-r[0]-r[1];m(i,o,s)}i.setLayout("layoutInfo",a)})}function m(h,c,o){if(!h.count())return;for(var i=c.coordinateSystem,n=c.getLayerSeries(),a=h.mapDimension("single"),u=h.mapDimension("value"),r=g.map(n,function(S){return g.map(S.indices,function(x){var T=i.dataToPoint(h.get(a,x));return T[1]=h.get(u,x),T})}),l=v(r),t=l.y0,s=o/l.max,d=n.length,p=n[0].indices.length,b,w=0;wa&&(a=u),i.push(u)}for(var s=0;sa&&(a=p)}return r.y0=n,r.max=a,r}D.exports=A},Urep:function(D,_,e){},V6Ve:function(D,_,e){var g=e("kekF"),f=g(Object.keys,Object);D.exports=f},V7ic:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var A=f(e("q1tI")),m=g(e("digP")),v=g(e("KQxl")),h=function(i,n){return A.createElement(v.default,Object.assign({},i,{ref:n,icon:m.default}))};h.displayName="FileTwoTone";var c=A.forwardRef(h);_.default=c},VFCP:function(D,_,e){e("dBmv"),e("KamJ")},VPsl:function(D,_){function e(g){g.eachSeriesByType("map",function(f){var A=f.get("color"),m=f.getModel("itemStyle"),v=m.get("areaColor"),h=m.get("color")||A[f.seriesIndex%A.length];f.getData().setVisual({areaColor:v,color:h})})}D.exports=e},VR9l:function(D,_,e){var g=e("KCsZ"),f=g([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),A={getItemStyle:function(m,v){var h=f(this,m,v),c=this.getBorderLineDash();return c&&(h.lineDash=c),h},getBorderLineDash:function(){var m=this.get("borderType");return m==="solid"||m==null?null:m==="dashed"?[5,5]:[1,1]}};D.exports=A},VSLf:function(D,_,e){e("I+Bx"),e("F0hE"),e("bBKM")},VSMT:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.decodeUTF8=g,_.encodeUTF8=f;function g(A){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(A))}catch(v){if(v instanceof URIError&&m)return A;throw v}}function f(A){return unescape(encodeURIComponent(A))}},VXYp:function(D,_,e){var g=e("bYtY"),f=e("SgGq"),A=e("iLNv"),m="\0_ec_dataZoom_roams";function v(r,l){var t=o(r),s=l.dataZoomId,d=l.coordId;g.each(t,function(w,E){var S=w.dataZoomInfos;S[s]&&g.indexOf(l.allCoordIds,d)<0&&(delete S[s],w.count--)}),n(t);var p=t[d];p||(p=t[d]={coordId:d,dataZoomInfos:{},count:0},p.controller=i(r,p),p.dispatchAction=g.curry(a,r)),!p.dataZoomInfos[s]&&p.count++,p.dataZoomInfos[s]=l;var b=u(p.dataZoomInfos);p.controller.enable(b.controlType,b.opt),p.controller.setPointerChecker(l.containsPoint),A.createOrUpdate(p,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function h(r,l){var t=o(r);g.each(t,function(s){s.controller.dispose();var d=s.dataZoomInfos;d[l]&&(delete d[l],s.count--)}),n(t)}function c(r){return r.type+"\0_"+r.id}function o(r){var l=r.getZr();return l[m]||(l[m]={})}function i(r,l){var t=new f(r.getZr());return g.each(["pan","zoom","scrollMove"],function(s){t.on(s,function(d){var p=[];g.each(l.dataZoomInfos,function(b){if(!d.isAvailableBehavior(b.dataZoomModel.option))return;var w=(b.getRange||{})[s],E=w&&w(l.controller,d);!b.dataZoomModel.get("disabled",!0)&&E&&p.push({dataZoomId:b.dataZoomId,start:E[0],end:E[1]})}),p.length&&l.dispatchAction(p)})}),t}function n(r){g.each(r,function(l,t){l.count||(l.controller.dispose(),delete r[t])})}function a(r,l){r.dispatchAction({type:"dataZoom",batch:l})}function u(r){var l,t="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},d=!0;return g.each(r,function(p){var b=p.dataZoomModel,w=b.get("disabled",!0)?!1:b.get("zoomLock",!0)?"move":!0;s[t+w]>s[t+l]&&(l=w),d&=b.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!d}}}_.register=v,_.unregister=h,_.generateCoordId=c},VaNO:function(D,_){function e(g){return this.__data__.has(g)}D.exports=e},VaxA:function(D,_,e){var g=e("bYtY");function f(h,c,o){if(h&&g.indexOf(c,h.type)>=0){var i=o.getData().tree.root,n=h.targetNode;if(typeof n=="string"&&(n=i.getNodeById(n)),n&&i.contains(n))return{node:n};var a=h.targetNodeId;if(a!=null&&(n=i.getNodeById(a)))return{node:n}}}function A(h){for(var c=[];h;)h=h.parentNode,h&&c.push(h);return c.reverse()}function m(h,c){var o=A(h);return g.indexOf(o,c)>=0}function v(h,c){for(var o=[];h;){var i=h.dataIndex;o.push({name:h.name,dataIndex:i,value:c.getRawValue(i)}),h=h.parentNode}return o.reverse(),o}_.retrieveTargetInfo=f,_.getPathToRoot=A,_.aboveViewRoot=m,_.wrapTreePathInfo=v},Vi4m:function(D,_,e){var g=e("bYtY");function f(m){m!=null&&g.extend(this,m),this.otherDims={}}var A=f;D.exports=A},Vl3Y:function(D,_,e){"use strict";var g=e("pVnL"),f=e.n(g),A=e("J4zp"),m=e.n(A),v=e("lSNA"),h=e.n(v),c=e("q1tI"),o=e("TSYQ"),i=e.n(o),n=e("85Yc"),a=e("H84U"),u=e("BGR+"),r=c.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=c.createContext({updateItemErrors:function(){}}),t=function(ct){var yt=Object(u.default)(ct,["prefixCls"]);return c.createElement(n.FormProvider,yt)};function s(ht){return ht!=null&&typeof ht=="object"&&ht.nodeType===1}function d(ht,ct){return ct&&ht==="hidden"?!1:ht!=="visible"&&ht!=="clip"}function p(ht){if(!ht.ownerDocument||!ht.ownerDocument.defaultView)return null;try{return ht.ownerDocument.defaultView.frameElement}catch(ct){return null}}function b(ht){var ct=p(ht);return ct?ct.clientHeightct||Bt>ht&&Ae=ct&&ve>=yt?Bt-ht-It:Ae>ct&&veyt?Ae-ct+or:0}var S=function(ht,ct){var yt=ct.scrollMode,It=ct.block,or=ct.inline,Bt=ct.boundary,Ae=ct.skipOverflowHiddenElements,ve=typeof Bt=="function"?Bt:function(ir){return ir!==Bt};if(!s(ht))throw new TypeError("Invalid target");for(var fe=document.scrollingElement||document.documentElement,ue=[],Ne=ht;s(Ne)&&ve(Ne);){if(Ne=Ne.parentNode,Ne===fe){ue.push(Ne);break}if(Ne===document.body&&w(Ne)&&!w(document.documentElement))continue;w(Ne,Ae)&&ue.push(Ne)}for(var je=window.visualViewport?visualViewport.width:innerWidth,Ke=window.visualViewport?visualViewport.height:innerHeight,Ye=window.scrollX||pageXOffset,Pe=window.scrollY||pageYOffset,nt=ht.getBoundingClientRect(),At=nt.height,Ot=nt.width,ne=nt.top,he=nt.right,Q=nt.bottom,te=nt.left,be=It==="start"||It==="nearest"?ne:It==="end"?Q:ne+At/2,Ie=or==="center"?te+Ot/2:or==="end"?he:te,Re=[],$e=0;$e=0&&te>=0&&Q<=Ke&&he<=je&&ne>=Kt&&Q<=Qt&&te>=Mt&&he<=Gt)return Re;var dr=getComputedStyle(gt),er=parseInt(dr.borderLeftWidth,10),st=parseInt(dr.borderTopWidth,10),xt=parseInt(dr.borderRightWidth,10),ut=parseInt(dr.borderBottomWidth,10),pt=0,_t=0,Tt="offsetWidth"in gt?gt.offsetWidth-gt.clientWidth-er-xt:0,ft="offsetHeight"in gt?gt.offsetHeight-gt.clientHeight-st-ut:0;if(fe===gt)It==="start"?pt=be:It==="end"?pt=be-Ke:It==="nearest"?pt=E(Pe,Pe+Ke,Ke,st,ut,Pe+be,Pe+be+At,At):pt=be-Ke/2,or==="start"?_t=Ie:or==="center"?_t=Ie-je/2:or==="end"?_t=Ie-je:_t=E(Ye,Ye+je,je,er,xt,Ye+Ie,Ye+Ie+Ot,Ot),pt=Math.max(0,pt+Pe),_t=Math.max(0,_t+Ye);else{It==="start"?pt=be-Kt-st:It==="end"?pt=be-Qt+ut+ft:It==="nearest"?pt=E(Kt,Qt,$t,st,ut+ft,be,be+At,At):pt=be-(Kt+$t/2)+ft/2,or==="start"?_t=Ie-Mt-er:or==="center"?_t=Ie-(Mt+Dt/2)+Tt/2:or==="end"?_t=Ie-Gt+xt+Tt:_t=E(Mt,Gt,Dt,er,xt+Tt,Ie,Ie+Ot,Ot);var Ht=gt.scrollLeft,kt=gt.scrollTop;pt=Math.max(0,Math.min(kt+pt,gt.scrollHeight-$t+ft)),_t=Math.max(0,Math.min(Ht+_t,gt.scrollWidth-Dt+Tt)),be+=kt-pt,Ie+=Ht-_t}Re.push({el:gt,top:pt,left:_t})}return Re};function x(ht){return ht===Object(ht)&&Object.keys(ht).length!==0}function T(ht,ct){ct===void 0&&(ct="auto");var yt="scrollBehavior"in document.body.style;ht.forEach(function(It){var or=It.el,Bt=It.top,Ae=It.left;or.scroll&&yt?or.scroll({top:Bt,left:Ae,behavior:ct}):(or.scrollTop=Bt,or.scrollLeft=Ae)})}function L(ht){return ht===!1?{block:"end",inline:"nearest"}:x(ht)?ht:{block:"start",inline:"nearest"}}function y(ht,ct){var yt=!ht.ownerDocument.documentElement.contains(ht);if(x(ct)&&typeof ct.behavior=="function")return ct.behavior(yt?[]:S(ht,ct));if(yt)return;var It=L(ct);return T(S(ht,It),It.behavior)}var C=y;function O(ht){return ht===void 0||ht===!1?[]:Array.isArray(ht)?ht:[ht]}function N(ht,ct){if(!ht.length)return;var yt=ht.join("_");return ct?"".concat(ct,"_").concat(yt):yt}function k(ht){var ct=O(ht);return ct.join("_")}function F(ht){var ct=Object(n.useForm)(),yt=m()(ct,1),It=yt[0],or=Object(c.useRef)({}),Bt=Object(c.useMemo)(function(){return ht||f()(f()({},It),{__INTERNAL__:{itemRef:function(ve){return function(fe){var ue=k(ve);fe?or.current[ue]=fe:delete or.current[ue]}}},scrollToField:function(ve){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=O(ve),Ne=N(ue,Bt.__INTERNAL__.name),je=Ne?document.getElementById(Ne):null;je&&C(je,f()({scrollMode:"if-needed",block:"nearest"},fe))},getFieldInstance:function(ve){var fe=k(ve);return or.current[fe]}})},[ht,It]);return[Bt]}var B=e("3Nzz"),H=function(ht,ct){var yt={};for(var It in ht)Object.prototype.hasOwnProperty.call(ht,It)&&ct.indexOf(It)<0&&(yt[It]=ht[It]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,It=Object.getOwnPropertySymbols(ht);or0&&arguments[0]!==void 0?arguments[0]:{};return X()(Lr[tn],qr)?Lr:f()(f()({},Lr),h()({},tn,qr))})},Xt=wt();function mr(tn,qr,Lr,Qr){var Ir,ur;if(It&&!he)return tn;var pr=[];Object.keys(st).forEach(function(Yr){pr=[].concat(V()(pr),V()(st[Yr]||[]))});var cr;Ne!=null?cr=O(Ne):(cr=Lr?Lr.errors:[],cr=[].concat(V()(cr),V()(pr)));var fr="";Ke!==void 0?fr=Ke:(Lr==null?void 0:Lr.validating)?fr="validating":((ur=Lr==null?void 0:Lr.errors)===null||ur===void 0?void 0:ur.length)||pr.length?fr="error":(Lr==null?void 0:Lr.touched)&&(fr="success"),Gt&&Ne&&(Mt.current=fr);var xr=(Ir={},h()(Ir,"".concat(kt,"-item"),!0),h()(Ir,"".concat(kt,"-item-with-help"),Gt||Ne),h()(Ir,"".concat(ve),!!ve),h()(Ir,"".concat(kt,"-item-has-feedback"),fr&&ue),h()(Ir,"".concat(kt,"-item-has-success"),fr==="success"),h()(Ir,"".concat(kt,"-item-has-warning"),fr==="warning"),h()(Ir,"".concat(kt,"-item-has-error"),fr==="error"),h()(Ir,"".concat(kt,"-item-has-error-leave"),!Ne&&Gt&&Mt.current==="error"),h()(Ir,"".concat(kt,"-item-is-validating"),fr==="validating"),h()(Ir,"".concat(kt,"-item-hidden"),he),Ir);return c.createElement(Y.a,f()({className:i()(xr),style:Ae,key:"row"},Object(u.default)(Q,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),c.createElement(Ee,f()({htmlFor:qr,required:Qr,requiredMark:gt},ht,{prefixCls:kt})),c.createElement(vt,f()({},ht,Lr,{errors:cr,prefixCls:kt,onDomErrorVisibleChange:Tt,validateStatus:fr}),c.createElement(l.Provider,{value:{updateItemErrors:ir}},tn)))}var Ar=typeof Ye=="function",Nr=c.useRef(0);if(Nr.current+=1,!ft&&!Ar&&!or)return mr(Ye);var kr={};return typeof nt=="string"&&(kr.label=nt),c.createElement(n.Field,f()({},ht,{messageVariables:kr,trigger:Ot,validateTrigger:_t,onReset:function(){Tt(!1)}}),function(tn,qr,Lr){var Qr=qr.errors,Ir=O(ct).length&&qr?qr.name:[],ur=N(Ir,$e);if(It){if(Ht.current=V()(Ir),yt){var pr=Array.isArray(yt)?yt:[yt];Ht.current=[].concat(V()(Ir.slice(0,-1)),V()(pr))}$t(Ht.current.join("__SPLIT__"),Qr)}var cr=Pe!==void 0?Pe:!!(je&&je.some(function(Nn){if(Nn&&P()(Nn)==="object"&&Nn.required)return!0;if(typeof Nn=="function"){var jr=Nn(Lr);return jr&&jr.required}return!1})),fr=f()({},tn),xr=null;if(Object(we.a)(!(fe&&or),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Ye)&&ft)Object(we.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),xr=Ye;else if(Ar&&(!(fe||or)||ft))Object(we.a)(!!(fe||or),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(we.a)(!ft,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(or&&!Ar&&!ft)Object(we.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Ct.b)(Ye)){Object(we.a)(Ye.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Yr=f()(f()({},Ye.props),fr);Yr.id||(Yr.id=ur),Object(le.c)(Ye)&&(Yr.ref=Xt(Ir,Ye));var un=new Set([].concat(V()(O(Ot)),V()(O(_t))));un.forEach(function(Nn){Yr[Nn]=function(){for(var jr,Tn,gn,Pn,zn,qn=arguments.length,Yn=new Array(qn),Vn=0;Vnv&&(u=o+i,o*=v/u,i*=v/u),n+a>v&&(u=n+a,n*=v/u,a*=v/u),i+n>h&&(u=i+n,i*=h/u,n*=h/u),o+a>h&&(u=o+a,o*=h/u,a*=h/u),g.moveTo(A+o,m),g.lineTo(A+v-i,m),i!==0&&g.arc(A+v-i,m+i,i,-Math.PI/2,0),g.lineTo(A+v,m+h-n),n!==0&&g.arc(A+v-n,m+h-n,n,0,Math.PI/2),g.lineTo(A+a,m+h),a!==0&&g.arc(A+a,m+h-a,a,Math.PI/2,Math.PI),g.lineTo(A,m+o),o!==0&&g.arc(A+o,m+o,o,Math.PI,Math.PI*1.5)}_.buildPath=e},"VrN/":function(D,_,e){(function(g,f){D.exports=f()})(this,function(){"use strict";var g=navigator.userAgent,f=navigator.platform,A=/gecko\/\d/i.test(g),m=/MSIE \d/.test(g),v=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(g),h=/Edge\/(\d+)/.exec(g),c=m||v||h,o=c&&(m?document.documentMode||6:+(h||v)[1]),i=!h&&/WebKit\//.test(g),n=i&&/Qt\/\d+\.\d+/.test(g),a=!h&&/Chrome\//.test(g),u=/Opera\//.test(g),r=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(g),t=/PhantomJS/.test(g),s=!h&&/AppleWebKit/.test(g)&&/Mobile\/\w+/.test(g),d=/Android/.test(g),p=s||d||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(g),b=s||/Mac/.test(f),w=/\bCrOS\b/.test(g),E=/win/i.test(f),S=u&&g.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(u=!1,i=!0);var x=b&&(n||u&&(S==null||S<12.11)),T=A||c&&o>=9;function L(I){return new RegExp("(^|\\s)"+I+"(?:$|\\s)\\s*")}var y=function(M,q){var J=M.className,re=L(q).exec(J);if(re){var De=J.slice(re.index+re[0].length);M.className=J.slice(0,re.index)+(De?re[1]+De:"")}};function C(I){for(var M=I.childNodes.length;M>0;--M)I.removeChild(I.firstChild);return I}function O(I,M){return C(I).appendChild(M)}function N(I,M,q,J){var re=document.createElement(I);if(q&&(re.className=q),J&&(re.style.cssText=J),typeof M=="string")re.appendChild(document.createTextNode(M));else if(M)for(var De=0;De=M)return mt+(M-De);mt+=Nt-De,mt+=q-mt%q,De=Nt+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};V.prototype.onTimeout=function(I){I.id=0,I.time<=+new Date?I.f():setTimeout(I.handler,I.time-+new Date)},V.prototype.set=function(I,M){this.f=M;var q=+new Date+I;(!this.id||q=M)return J+Math.min(mt,M-re);if(re+=De-J,re+=q-re%q,J=De+1,re>=M)return J}}var pe=[""];function Fe(I){for(;pe.length<=I;)pe.push(Xe(pe)+" ");return pe[I]}function Xe(I){return I[I.length-1]}function dt(I,M){for(var q=[],J=0;J"\x80"&&(I.toUpperCase()!=I.toLowerCase()||_e.test(I))}function ee(I,M){return M?M.source.indexOf("\\w")>-1&&ce(I)?!0:M.test(I):ce(I)}function se(I){for(var M in I)if(I.hasOwnProperty(M)&&I[M])return!1;return!0}var ke=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ce(I){return I.charCodeAt(0)>=768&&ke.test(I)}function ze(I,M,q){for(;(q<0?M>0:Mq?-1:1;;){if(M==q)return M;var re=(M+q)/2,De=J<0?Math.ceil(re):Math.floor(re);if(De==M)return I(De)?M:q;I(De)?q=De:M=De+J}}function ae(I,M,q,J){if(!I)return J(M,q,"ltr",0);for(var re=!1,De=0;DeM||M==q&&mt.to==M)&&(J(Math.max(mt.from,M),Math.min(mt.to,q),mt.level==1?"rtl":"ltr",De),re=!0)}re||J(M,q,"ltr")}var ge=null;function Le(I,M,q){var J;ge=null;for(var re=0;reM)return re;De.to==M&&(De.from!=De.to&&q=="before"?J=re:ge=re),De.from==M&&(De.from!=De.to&&q!="before"?J=re:ge=re)}return J!=null?J:ge}var Ze=function(){var I="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",M="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function q(Yt){return Yt<=247?I.charAt(Yt):1424<=Yt&&Yt<=1524?"R":1536<=Yt&&Yt<=1785?M.charAt(Yt-1536):1774<=Yt&&Yt<=2220?"r":8192<=Yt&&Yt<=8203?"w":Yt==8204?"b":"L"}var J=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,re=/[stwN]/,De=/[LRr]/,mt=/[Lb1n]/,Nt=/[1n]/;function zt(Yt,Cr,Ur){this.level=Yt,this.from=Cr,this.to=Ur}return function(Yt,Cr){var Ur=Cr=="ltr"?"L":"R";if(Yt.length==0||Cr=="ltr"&&!J.test(Yt))return!1;for(var en=Yt.length,nn=[],xn=0;xn-1&&(J[M]=re.slice(0,De).concat(re.slice(De+1)))}}}function wt(I,M){var q=Rt(I,M);if(!q.length)return;for(var J=Array.prototype.slice.call(arguments,2),re=0;re0}function lt(I){I.prototype.on=function(M,q){Be(this,M,q)},I.prototype.off=function(M,q){He(this,M,q)}}function Ve(I){I.preventDefault?I.preventDefault():I.returnValue=!1}function ie(I){I.stopPropagation?I.stopPropagation():I.cancelBubble=!0}function $(I){return I.defaultPrevented!=null?I.defaultPrevented:I.returnValue==!1}function it(I){Ve(I),ie(I)}function Qe(I){return I.target||I.srcElement}function ye(I){var M=I.which;return M==null&&(I.button&1?M=1:I.button&2?M=3:I.button&4&&(M=2)),b&&I.ctrlKey&&M==1&&(M=3),M}var Zt=function(){if(c&&o<9)return!1;var I=N("div");return"draggable"in I||"dragDrop"in I}(),ht;function ct(I){if(ht==null){var M=N("span","\u200B");O(I,N("span",[M,document.createTextNode("x")])),I.firstChild.offsetHeight!=0&&(ht=M.offsetWidth<=1&&M.offsetHeight>2&&!(c&&o<8))}var q=ht?N("span","\u200B"):N("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return q.setAttribute("cm-text",""),q}var yt;function It(I){if(yt!=null)return yt;var M=O(I,document.createTextNode("A\u062EA")),q=F(M,0,1).getBoundingClientRect(),J=F(M,1,2).getBoundingClientRect();return C(I),!q||q.left==q.right?!1:yt=J.right-q.right<3}var or=` b`.split(/\n/).length!=3?function(I){for(var M=0,q=[],J=I.length;M<=J;){var re=I.indexOf(` `,M);re==-1&&(re=I.length);var De=I.slice(M,I.charAt(re-1)=="\r"?re-1:re),mt=De.indexOf("\r");mt!=-1?(q.push(De.slice(0,mt)),M+=mt+1):(q.push(De),M=re+1)}return q}:function(I){return I.split(/\r\n?|\n/)},Bt=window.getSelection?function(I){try{return I.selectionStart!=I.selectionEnd}catch(M){return!1}}:function(I){var M;try{M=I.ownerDocument.selection.createRange()}catch(q){}return!M||M.parentElement()!=I?!1:M.compareEndPoints("StartToEnd",M)!=0},Ae=function(){var I=N("div");return"oncopy"in I?!0:(I.setAttribute("oncopy","return;"),typeof I.oncopy=="function")}(),ve=null;function fe(I){if(ve!=null)return ve;var M=O(I,N("span","x")),q=M.getBoundingClientRect(),J=F(M,0,1).getBoundingClientRect();return ve=Math.abs(q.left-J.left)>1}var ue={},Ne={};function je(I,M){arguments.length>2&&(M.dependencies=Array.prototype.slice.call(arguments,2)),ue[I]=M}function Ke(I,M){Ne[I]=M}function Ye(I){if(typeof I=="string"&&Ne.hasOwnProperty(I))I=Ne[I];else if(I&&typeof I.name=="string"&&Ne.hasOwnProperty(I.name)){var M=Ne[I.name];typeof M=="string"&&(M={name:M}),I=at(M,I),I.name=M.name}else{if(typeof I=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(I))return Ye("application/xml");if(typeof I=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(I))return Ye("application/json")}return typeof I=="string"?{name:I}:I||{name:"null"}}function Pe(I,M){M=Ye(M);var q=ue[M.name];if(!q)return Pe(I,"text/plain");var J=q(I,M);if(nt.hasOwnProperty(M.name)){var re=nt[M.name];for(var De in re){if(!re.hasOwnProperty(De))continue;J.hasOwnProperty(De)&&(J["_"+De]=J[De]),J[De]=re[De]}}if(J.name=M.name,M.helperType&&(J.helperType=M.helperType),M.modeProps)for(var mt in M.modeProps)J[mt]=M.modeProps[mt];return J}var nt={};function At(I,M){var q=nt.hasOwnProperty(I)?nt[I]:nt[I]={};P(M,q)}function Ot(I,M){if(M===!0)return M;if(I.copyState)return I.copyState(M);var q={};for(var J in M){var re=M[J];re instanceof Array&&(re=re.concat([])),q[J]=re}return q}function ne(I,M){for(var q;I.innerMode&&!(q=I.innerMode(M),!q||q.mode==I);)M=q.state,I=q.mode;return q||{mode:I,state:M}}function he(I,M,q){return I.startState?I.startState(M,q):!0}var Q=function(M,q,J){this.pos=this.start=0,this.string=M,this.tabSize=q||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=J};Q.prototype.eol=function(){return this.pos>=this.string.length},Q.prototype.sol=function(){return this.pos==this.lineStart},Q.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Q.prototype.next=function(){if(this.posM},Q.prototype.eatSpace=function(){for(var I=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>I},Q.prototype.skipToEnd=function(){this.pos=this.string.length},Q.prototype.skipTo=function(I){var M=this.string.indexOf(I,this.pos);if(M>-1)return this.pos=M,!0},Q.prototype.backUp=function(I){this.pos-=I},Q.prototype.column=function(){return this.lastColumnPos0?null:(De&&M!==!1&&(this.pos+=De[0].length),De)}},Q.prototype.current=function(){return this.string.slice(this.start,this.pos)},Q.prototype.hideFirstChars=function(I,M){this.lineStart+=I;try{return M()}finally{this.lineStart-=I}},Q.prototype.lookAhead=function(I){var M=this.lineOracle;return M&&M.lookAhead(I)},Q.prototype.baseToken=function(){var I=this.lineOracle;return I&&I.baseToken(this.pos)};function te(I,M){if(M-=I.first,M<0||M>=I.size)throw new Error("There is no line "+(M+I.first)+" in the document.");for(var q=I;!q.lines;)for(var J=0;;++J){var re=q.children[J],De=re.chunkSize();if(M=I.first&&Mq?Dt(q,te(I,q).text.length):xt(M,te(I,M.line).text.length)}function xt(I,M){var q=I.ch;return q==null||q>M?Dt(I.line,M):q<0?Dt(I.line,0):I}function ut(I,M){for(var q=[],J=0;Jthis.maxLookAhead&&(this.maxLookAhead=I),M},_t.prototype.baseToken=function(I){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=I;)this.baseTokenPos+=2;var M=this.baseTokens[this.baseTokenPos+1];return{type:M&&M.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-I}},_t.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},_t.fromSaved=function(I,M,q){return M instanceof pt?new _t(I,Ot(I.mode,M.state),q,M.lookAhead):new _t(I,Ot(I.mode,M),q)},_t.prototype.save=function(I){var M=I!==!1?Ot(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(M,this.maxLookAhead):M};function Tt(I,M,q,J){var re=[I.state.modeGen],De={};kr(I,M.text,I.doc.mode,q,function(Yt,Cr){return re.push(Yt,Cr)},De,J);for(var mt=q.state,Nt=function(Cr){q.baseTokens=re;var Ur=I.state.overlays[Cr],en=1,nn=0;q.state=!0,kr(I,M.text,Ur.mode,q,function(xn,Bn){for(var Zn=en;nnxn&&re.splice(en,1,xn,re[en+1],Jn),en+=2,nn=Math.min(xn,Jn)}if(!Bn)return;if(Ur.opaque)re.splice(Zn,en-Zn,xn,"overlay "+Bn),en=Zn+2;else for(;ZnI.options.maxHighlightLength&&Ot(I.doc.mode,J.state),De=Tt(I,M,J);re&&(J.state=re),M.stateAfter=J.save(!re),M.styles=De.styles,De.classes?M.styleClasses=De.classes:M.styleClasses&&(M.styleClasses=null),q===I.doc.highlightFrontier&&(I.doc.modeFrontier=Math.max(I.doc.modeFrontier,++I.doc.highlightFrontier))}return M.styles}function Ht(I,M,q){var J=I.doc,re=I.display;if(!J.mode.startState)return new _t(J,!0,M);var De=tn(I,M,q),mt=De>J.first&&te(J,De-1).stateAfter,Nt=mt?_t.fromSaved(J,mt,De):new _t(J,he(J.mode),De);return J.iter(De,M,function(zt){kt(I,zt.text,Nt);var Yt=Nt.line;zt.stateAfter=Yt==M-1||Yt%5==0||Yt>=re.viewFrom&&YtM.start)return De}throw new Error("Mode "+I.name+" failed to advance stream.")}var mr=function(M,q,J){this.start=M.start,this.end=M.pos,this.string=M.current(),this.type=q||null,this.state=J};function Ar(I,M,q,J){var re=I.doc,De=re.mode,mt;M=st(re,M);var Nt=te(re,M.line),zt=Ht(I,M.line,q),Yt=new Q(Nt.text,I.options.tabSize,zt),Cr;for(J&&(Cr=[]);(J||Yt.posI.options.maxHighlightLength?(Nt=!1,mt&&kt(I,M,J,Cr.pos),Cr.pos=M.length,Ur=null):Ur=Nr(Xt(q,Cr,J.state,en),De),en){var nn=en[0].name;nn&&(Ur="m-"+(Ur?nn+" "+Ur:nn))}if(!Nt||Yt!=Ur){for(;ztmt;--Nt){if(Nt<=De.first)return De.first;var zt=te(De,Nt-1),Yt=zt.stateAfter;if(Yt&&(!q||Nt+(Yt instanceof pt?Yt.lookAhead:0)<=De.modeFrontier))return Nt;var Cr=K(zt.text,null,I.options.tabSize);(re==null||J>Cr)&&(re=Nt-1,J=Cr)}return re}function qr(I,M){if(I.modeFrontier=Math.min(I.modeFrontier,M),I.highlightFrontierq;J--){var re=te(I,J).stateAfter;if(re&&(!(re instanceof pt)||J+re.lookAhead=M:De.to>M);(J||(J=[])).push(new pr(mt,De.from,zt?null:De.to))}}return J}function un(I,M,q){var J;if(I)for(var re=0;re=M:De.to>M);if(Nt||De.from==M&&mt.type=="bookmark"&&(!q||De.marker.insertLeft)){var zt=De.from==null||(mt.inclusiveLeft?De.from<=M:De.from0&&Nt)for(var qe=0;qe0)continue;var Cr=[zt,1],Ur=Kt(Yt.from,Nt.from),en=Kt(Yt.to,Nt.to);(Ur<0||!mt.inclusiveLeft&&!Ur)&&Cr.push({from:Yt.from,to:Nt.from}),(en>0||!mt.inclusiveRight&&!en)&&Cr.push({from:Nt.to,to:Yt.to}),re.splice.apply(re,Cr),zt+=Cr.length-3}return re}function gn(I){var M=I.markedSpans;if(!M)return;for(var q=0;qM)&&(!J||Yn(J,De.marker)<0)&&(J=De.marker)}return J}function xa(I,M,q,J,re){var De=te(I,M),mt=Qr&&De.markedSpans;if(mt)for(var Nt=0;Nt=0&&Ur<=0||Cr<=0&&Ur>=0)continue;if(Cr<=0&&(zt.marker.inclusiveRight&&re.inclusiveLeft?Kt(Yt.to,q)>=0:Kt(Yt.to,q)>0)||Cr>=0&&(zt.marker.inclusiveRight&&re.inclusiveLeft?Kt(Yt.from,J)<=0:Kt(Yt.from,J)<0))return!0}}function ta(I){for(var M;M=An(I);)I=M.find(-1,!0).line;return I}function Ii(I){for(var M;M=on(I);)I=M.find(1,!0).line;return I}function Ci(I){for(var M,q;M=on(I);)I=M.find(1,!0).line,(q||(q=[])).push(I);return q}function Gn(I,M){var q=te(I,M),J=ta(q);return q==J?M:$e(J)}function Oa(I,M){if(M>I.lastLine())return M;var q=te(I,M),J;if(!mn(I,q))return M;for(;J=on(q);)q=J.find(1,!0).line;return $e(q)+1}function mn(I,M){var q=Qr&&M.markedSpans;if(q)for(var J=void 0,re=0;reM.maxLineLength&&(M.maxLineLength=re,M.maxLine=J)})}var ni=function(M,q,J){this.text=M,Pn(this,q),this.height=J?J(this):1};ni.prototype.lineNo=function(){return $e(this)},lt(ni);function di(I,M,q,J){I.text=M,I.stateAfter&&(I.stateAfter=null),I.styles&&(I.styles=null),I.order!=null&&(I.order=null),gn(I),Pn(I,q);var re=J?J(I):1;re!=I.height&&Re(I,re)}function Na(I){I.parent=null,gn(I)}var Qi={},ma={};function Ba(I,M){if(!I||/^\s*$/.test(I))return null;var q=M.addModeClass?ma:Qi;return q[I]||(q[I]=I.replace(/\S+/g,"cm-$&"))}function Qa(I,M){var q=k("span",null,null,i?"padding-right: .1px":null),J={pre:k("pre",[q],"CodeMirror-line"),content:q,col:0,pos:0,cm:I,trailingSpace:!1,splitSpaces:I.getOption("lineWrapping")};M.measure={};for(var re=0;re<=(M.rest?M.rest.length:0);re++){var De=re?M.rest[re-1]:M.line,mt=void 0;J.pos=0,J.addToken=Co,It(I.display.measure)&&(mt=vt(De,I.doc.direction))&&(J.addToken=Hi(J.addToken,mt)),J.map=[];var Nt=M!=I.display.externalMeasured&&$e(De);ha(De,J,ft(I,De,Nt)),De.styleClasses&&(De.styleClasses.bgClass&&(J.bgClass=R(De.styleClasses.bgClass,J.bgClass||"")),De.styleClasses.textClass&&(J.textClass=R(De.styleClasses.textClass,J.textClass||""))),J.map.length==0&&J.map.push(0,0,J.content.appendChild(ct(I.display.measure))),re==0?(M.measure.map=J.map,M.measure.cache={}):((M.measure.maps||(M.measure.maps=[])).push(J.map),(M.measure.caches||(M.measure.caches=[])).push({}))}if(i){var zt=J.content.lastChild;(/\bcm-tab\b/.test(zt.className)||zt.querySelector&&zt.querySelector(".cm-tab"))&&(J.content.className="cm-tab-wrap-hack")}return wt(I,"renderLine",I,M.line,J.pre),J.pre.className&&(J.textClass=R(J.pre.className,J.textClass||"")),J}function Wi(I){var M=N("span","\u2022","cm-invalidchar");return M.title="\\u"+I.charCodeAt(0).toString(16),M.setAttribute("aria-label",M.title),M}function Co(I,M,q,J,re,De,mt){if(!M)return;var Nt=I.splitSpaces?aa(M,I.trailingSpace):M,zt=I.cm.state.specialChars,Yt=!1,Cr;if(!zt.test(M))I.col+=M.length,Cr=document.createTextNode(Nt),I.map.push(I.pos,I.pos+M.length,Cr),c&&o<9&&(Yt=!0),I.pos+=M.length;else{Cr=document.createDocumentFragment();for(var Ur=0;;){zt.lastIndex=Ur;var en=zt.exec(M),nn=en?en.index-Ur:M.length-Ur;if(nn){var xn=document.createTextNode(Nt.slice(Ur,Ur+nn));c&&o<9?Cr.appendChild(N("span",[xn])):Cr.appendChild(xn),I.map.push(I.pos,I.pos+nn,xn),I.col+=nn,I.pos+=nn}if(!en)break;Ur+=nn+1;var Bn=void 0;if(en[0]==" "){var Zn=I.cm.options.tabSize,Jn=Zn-I.col%Zn;Bn=Cr.appendChild(N("span",Fe(Jn),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),I.col+=Jn}else en[0]=="\r"||en[0]==` `?(Bn=Cr.appendChild(N("span",en[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",en[0]),I.col+=1):(Bn=I.cm.options.specialCharPlaceholder(en[0]),Bn.setAttribute("cm-text",en[0]),c&&o<9?Cr.appendChild(N("span",[Bn])):Cr.appendChild(Bn),I.col+=1);I.map.push(I.pos,I.pos+1,Bn),I.pos++}}if(I.trailingSpace=Nt.charCodeAt(M.length-1)==32,q||J||re||Yt||De||mt){var oi=q||"";J&&(oi+=J),re&&(oi+=re);var li=N("span",[Cr],oi,De);if(mt)for(var qe in mt)mt.hasOwnProperty(qe)&&qe!="style"&&qe!="class"&&li.setAttribute(qe,mt[qe]);return I.content.appendChild(li)}I.content.appendChild(Cr)}function aa(I,M){if(I.length>1&&!/ /.test(I))return I;for(var q=M,J="",re=0;reYt&&Ur.from<=Yt);en++);if(Ur.to>=Cr)return I(q,J,re,De,mt,Nt,zt);I(q,J.slice(0,Ur.to-Yt),re,De,null,Nt,zt),De=null,J=J.slice(Ur.to-Yt),Yt=Ur.to}}}function ga(I,M,q,J){var re=!J&&q.widgetNode;re&&I.map.push(I.pos,I.pos+M,re),!J&&I.cm.display.input.needsContentAttribute&&(re||(re=I.content.appendChild(document.createElement("span"))),re.setAttribute("cm-marker",q.id)),re&&(I.cm.display.input.setUneditable(re),I.content.appendChild(re)),I.pos+=M,I.trailingSpace=!1}function ha(I,M,q){var J=I.markedSpans,re=I.text,De=0;if(!J){for(var mt=1;mtzt||Je.collapsed&&Me.to==zt&&Me.from==zt)){if(Me.to!=null&&Me.to!=zt&&nn>Me.to&&(nn=Me.to,Bn=""),Je.className&&(xn+=" "+Je.className),Je.css&&(en=(en?en+";":"")+Je.css),Je.startStyle&&Me.from==zt&&(Zn+=" "+Je.startStyle),Je.endStyle&&Me.to==nn&&(qe||(qe=[])).push(Je.endStyle,Me.to),Je.title&&((oi||(oi={})).title=Je.title),Je.attributes)for(var Lt in Je.attributes)(oi||(oi={}))[Lt]=Je.attributes[Lt];Je.collapsed&&(!Jn||Yn(Jn.marker,Je)<0)&&(Jn=Me)}else Me.from>zt&&nn>Me.from&&(nn=Me.from)}if(qe)for(var tr=0;tr=Nt)break;for(var _r=Math.min(Nt,nn);;){if(Cr){var Hr=zt+Cr.length;if(!Jn){var Kr=Hr>_r?Cr.slice(0,_r-zt):Cr;M.addToken(M,Kr,Ur?Ur+xn:xn,Zn,zt+Kr.length==nn?Bn:"",en,oi)}if(Hr>=_r){Cr=Cr.slice(_r-zt),zt=_r;break}zt=Hr,Zn=""}Cr=re.slice(De,De=q[Yt++]),Ur=Ba(q[Yt++],M.cm.options)}}}function mo(I,M,q){this.line=M,this.rest=Ci(M),this.size=this.rest?$e(Xe(this.rest))-q+1:1,this.node=this.text=null,this.hidden=mn(I,M)}function Fn(I,M,q){for(var J=[],re,De=M;De2&&De.push((zt.bottom+Yt.top)/2-q.top)}}De.push(q.bottom-q.top)}}function wn(I,M,q){if(I.line==M)return{map:I.measure.map,cache:I.measure.cache};for(var J=0;Jq)return{map:I.measure.maps[re],cache:I.measure.caches[re],before:!0}}function Hn(I,M){M=ta(M);var q=$e(M),J=I.display.externalMeasured=new mo(I.doc,M,q);J.lineN=q;var re=J.built=Qa(I,J);return J.text=re.pre,O(I.display.lineMeasure,re.pre),J}function Sn(I,M,q,J){return vn(I,Mn(I,M),q,J)}function bn(I,M){if(M>=I.display.viewFrom&&M=q.lineN&&MM)&&(De=zt-Nt,re=De-1,M>=zt&&(mt="right")),re!=null){if(J=I[Yt+2],Nt==zt&&q==(J.insertLeft?"left":"right")&&(mt=q),q=="left"&&re==0)for(;Yt&&I[Yt-2]==I[Yt-3]&&I[Yt-1].insertLeft;)J=I[(Yt-=3)+2],mt="left";if(q=="right"&&re==zt-Nt)for(;Yt=0&&!((q=I[re]).left!=q.right);re--);return q}function Xn(I,M,q,J){var re=En(M.map,q,J),De=re.node,mt=re.start,Nt=re.end,zt=re.collapse,Yt;if(De.nodeType==3){for(var Cr=0;Cr<4;Cr++){for(;mt&&Ce(M.line.text.charAt(re.coverStart+mt));)--mt;for(;re.coverStart+Nt0&&(zt=J="right");var Ur;I.options.lineWrapping&&(Ur=De.getClientRects()).length>1?Yt=Ur[J=="right"?Ur.length-1:0]:Yt=De.getBoundingClientRect()}if(c&&o<9&&!mt&&(!Yt||!Yt.left&&!Yt.right)){var en=De.parentNode.getClientRects()[0];en?Yt={left:en.left,right:en.left+_i(I.display),top:en.top,bottom:en.bottom}:Yt=Rn}for(var nn=Yt.top-M.rect.top,xn=Yt.bottom-M.rect.top,Bn=(nn+xn)/2,Zn=M.view.measure.heights,Jn=0;Jn=J.text.length?(zt=J.text.length,Yt="before"):zt<=0&&(zt=0,Yt="after"),!Nt)return mt(Yt=="before"?zt-1:zt,Yt=="before");function Cr(xn,Bn,Zn){var Jn=Nt[Bn],oi=Jn.level==1;return mt(Zn?xn-1:xn,oi!=Zn)}var Ur=Le(Nt,zt,Yt),en=ge,nn=Cr(zt,Ur,Yt=="before");return en!=null&&(nn.other=Cr(zt,en,Yt!="before")),nn}function mi(I,M){var q=0;M=st(I.doc,M),I.options.lineWrapping||(q=_i(I.display)*M.ch);var J=te(I.doc,M.line),re=Ln(J)+Vt(I.display);return{left:q,right:q,top:re,bottom:re+J.height}}function hi(I,M,q,J,re){var De=Dt(I,M,q);return De.xRel=re,J&&(De.outside=J),De}function qi(I,M,q){var J=I.doc;if(q+=I.display.viewOffset,q<0)return hi(J.first,0,null,-1,-1);var re=gt(J,q),De=J.first+J.size-1;if(re>De)return hi(J.first+J.size-1,te(J,De).text.length,null,1,1);M<0&&(M=0);for(var mt=te(J,re);;){var Nt=oa(I,mt,re,M,q),zt=ia(mt,Nt.ch+(Nt.xRel>0||Nt.outside>0?1:0));if(!zt)return Nt;var Yt=zt.find(1);if(Yt.line==re)return Yt;mt=te(J,re=Yt.line)}}function va(I,M,q,J){J-=Un(M);var re=M.text.length,De=Oe(function(mt){return vn(I,q,mt-1).bottom<=J},re,0);return re=Oe(function(mt){return vn(I,q,mt).top>J},De,re),{begin:De,end:re}}function Ea(I,M,q,J){q||(q=Mn(I,M));var re=Ri(I,M,vn(I,q,J),"line").top;return va(I,M,q,re)}function ya(I,M,q,J){return I.bottom<=q?!1:I.top>q?!0:(J?I.left:I.right)>M}function oa(I,M,q,J,re){re-=Ln(M);var De=Mn(I,M),mt=Un(M),Nt=0,zt=M.text.length,Yt=!0,Cr=vt(M,I.doc.direction);if(Cr){var Ur=(I.options.lineWrapping?Ni:sa)(I,M,q,De,Cr,J,re);Yt=Ur.level!=1,Nt=Yt?Ur.from:Ur.to-1,zt=Yt?Ur.to:Ur.from-1}var en=null,nn=null,xn=Oe(function(Z){var Me=vn(I,De,Z);return Me.top+=mt,Me.bottom+=mt,ya(Me,J,re,!1)?(Me.top<=re&&Me.left<=J&&(en=Z,nn=Me),!0):!1},Nt,zt),Bn,Zn,Jn=!1;if(nn){var oi=J-nn.left=qe.bottom?1:0}return xn=ze(M.text,xn,1),hi(q,xn,Zn,Jn,J-Bn)}function sa(I,M,q,J,re,De,mt){var Nt=Oe(function(Ur){var en=re[Ur],nn=en.level!=1;return ya(Mi(I,Dt(q,nn?en.to:en.from,nn?"before":"after"),"line",M,J),De,mt,!0)},0,re.length-1),zt=re[Nt];if(Nt>0){var Yt=zt.level!=1,Cr=Mi(I,Dt(q,Yt?zt.from:zt.to,Yt?"after":"before"),"line",M,J);ya(Cr,De,mt,!0)&&Cr.top>mt&&(zt=re[Nt-1])}return zt}function Ni(I,M,q,J,re,De,mt){var Nt=va(I,M,J,mt),zt=Nt.begin,Yt=Nt.end;/\s/.test(M.text.charAt(Yt-1))&&Yt--;for(var Cr=null,Ur=null,en=0;en=Yt||nn.to<=zt)continue;var xn=nn.level!=1,Bn=vn(I,J,xn?Math.min(Yt,nn.to)-1:Math.max(zt,nn.from)).right,Zn=BnZn)&&(Cr=nn,Ur=Zn)}return Cr||(Cr=re[re.length-1]),Cr.fromYt&&(Cr={from:Cr.from,to:Yt,level:Cr.level}),Cr}var $n;function Ai(I){if(I.cachedTextHeight!=null)return I.cachedTextHeight;if($n==null){$n=N("pre",null,"CodeMirror-line-like");for(var M=0;M<49;++M)$n.appendChild(document.createTextNode("x")),$n.appendChild(N("br"));$n.appendChild(document.createTextNode("x"))}O(I.measure,$n);var q=$n.offsetHeight/50;return q>3&&(I.cachedTextHeight=q),C(I.measure),q||1}function _i(I){if(I.cachedCharWidth!=null)return I.cachedCharWidth;var M=N("span","xxxxxxxxxx"),q=N("pre",[M],"CodeMirror-line-like");O(I.measure,q);var J=M.getBoundingClientRect(),re=(J.right-J.left)/10;return re>2&&(I.cachedCharWidth=re),re||10}function Vi(I){for(var M=I.display,q={},J={},re=M.gutters.clientLeft,De=M.gutters.firstChild,mt=0;De;De=De.nextSibling,++mt){var Nt=I.display.gutterSpecs[mt].className;q[Nt]=De.offsetLeft+De.clientLeft+re,J[Nt]=De.clientWidth}return{fixedPos:Xi(M),gutterTotalWidth:M.gutters.offsetWidth,gutterLeft:q,gutterWidth:J,wrapperWidth:M.wrapper.clientWidth}}function Xi(I){return I.scroller.getBoundingClientRect().left-I.sizer.getBoundingClientRect().left}function bi(I){var M=Ai(I.display),q=I.options.lineWrapping,J=q&&Math.max(5,I.display.scroller.clientWidth/_i(I.display)-3);return function(re){if(mn(I.doc,re))return 0;var De=0;if(re.widgets)for(var mt=0;mt0&&(Yt=te(I.doc,zt.line).text).length==zt.ch){var Cr=K(Yt,Yt.length,I.options.tabSize)-Yt.length;zt=Dt(zt.line,Math.max(0,Math.round((De-br(I.display).left)/_i(I.display))-Cr))}return zt}function la(I,M){if(M>=I.display.viewTo)return null;if(M-=I.display.viewFrom,M<0)return null;for(var q=I.display.view,J=0;JM)&&(re.updateLineNumbers=M),I.curOp.viewChanged=!0,M>=re.viewTo)Qr&&Gn(I.doc,M)re.viewFrom?Ma(I):(re.viewFrom+=J,re.viewTo+=J);else if(M<=re.viewFrom&&q>=re.viewTo)Ma(I);else if(M<=re.viewFrom){var De=ra(I,q,q+J,1);De?(re.view=re.view.slice(De.index),re.viewFrom=De.lineN,re.viewTo+=J):Ma(I)}else if(q>=re.viewTo){var mt=ra(I,M,M,-1);mt?(re.view=re.view.slice(0,mt.index),re.viewTo=mt.lineN):Ma(I)}else{var Nt=ra(I,M,M,-1),zt=ra(I,q,q+J,1);Nt&&zt?(re.view=re.view.slice(0,Nt.index).concat(Fn(I,Nt.lineN,zt.lineN)).concat(re.view.slice(zt.index)),re.viewTo+=J):Ma(I)}var Yt=re.externalMeasured;Yt&&(q=re.lineN&&M=J.viewTo)return;var De=J.view[la(I,M)];if(De.node==null)return;var mt=De.changes||(De.changes=[]);z(mt,q)==-1&&mt.push(q)}function Ma(I){I.display.viewFrom=I.display.viewTo=I.doc.first,I.display.view=[],I.display.viewOffset=0}function ra(I,M,q,J){var re=la(I,M),De,mt=I.display.view;if(!Qr||q==I.doc.first+I.doc.size)return{index:re,lineN:q};for(var Nt=I.display.viewFrom,zt=0;zt0){if(re==mt.length-1)return null;De=Nt+mt[re].size-M,re++}else De=Nt-M;M+=De,q+=De}for(;Gn(I.doc,q)!=q;){if(re==(J<0?0:mt.length-1))return null;q+=J*mt[re-(J<0?1:0)].size,re+=J}return{index:re,lineN:q}}function Yi(I,M,q){var J=I.display,re=J.view;re.length==0||M>=J.viewTo||q<=J.viewFrom?(J.view=Fn(I,M,q),J.viewFrom=M):(J.viewFrom>M?J.view=Fn(I,M,J.viewFrom).concat(J.view):J.viewFromq&&(J.view=J.view.slice(0,la(I,q)))),J.viewTo=q}function Xa(I){for(var M=I.display.view,q=0,J=0;J=I.display.viewTo||Nt.to().line0?M.blinker=setInterval(function(){I.hasFocus()||Oi(I),M.cursorDiv.style.visibility=(q=!q)?"":"hidden"},I.options.cursorBlinkRate):I.options.cursorBlinkRate<0&&(M.cursorDiv.style.visibility="hidden")}function Ya(I){I.state.focused||(I.display.input.focus(),pa(I))}function Ka(I){I.state.delayingBlurEvent=!0,setTimeout(function(){I.state.delayingBlurEvent&&(I.state.delayingBlurEvent=!1,Oi(I))},100)}function pa(I,M){if(I.state.delayingBlurEvent&&(I.state.delayingBlurEvent=!1),I.options.readOnly=="nocursor")return;I.state.focused||(wt(I,"focus",I,M),I.state.focused=!0,W(I.display.wrapper,"CodeMirror-focused"),!I.curOp&&I.display.selForContextMenu!=I.doc.sel&&(I.display.input.reset(),i&&setTimeout(function(){return I.display.input.reset(!0)},20)),I.display.input.receivedFocus()),vi(I)}function Oi(I,M){if(I.state.delayingBlurEvent)return;I.state.focused&&(wt(I,"blur",I,M),I.state.focused=!1,y(I.display.wrapper,"CodeMirror-focused")),clearInterval(I.display.blinker),setTimeout(function(){I.state.focused||(I.display.shift=!1)},150)}function So(I){for(var M=I.display,q=M.lineDiv.offsetTop,J=0;J.005||Cr<-.005)&&(Re(re.line,mt),za(re.line),re.rest))for(var Ur=0;UrI.display.sizerWidth){var en=Math.ceil(Nt/_i(I.display));en>I.display.maxLineLength&&(I.display.maxLineLength=en,I.display.maxLine=re.line,I.display.maxLineChanged=!0)}}}function za(I){if(I.widgets)for(var M=0;M=mt&&(De=gt(M,Ln(te(M,zt))-I.wrapper.clientHeight),mt=zt)}return{from:De,to:Math.max(mt,De+1)}}function qa(I,M){if(Ge(I,"scrollCursorIntoView"))return;var q=I.display,J=q.sizer.getBoundingClientRect(),re=null;if(M.top+J.top<0?re=!0:M.bottom+J.top>(window.innerHeight||document.documentElement.clientHeight)&&(re=!1),re!=null&&!t){var De=N("div","\u200B",null,`position: absolute; top: `+(M.top-q.viewOffset-Vt(I.display))+`px; height: `+(M.bottom-M.top+Mr(I)+q.barHeight)+`px; left: `+M.left+"px; width: "+Math.max(2,M.right-M.left)+"px;");I.display.lineSpace.appendChild(De),De.scrollIntoView(re),I.display.lineSpace.removeChild(De)}}function ho(I,M,q,J){J==null&&(J=0);var re;!I.options.lineWrapping&&M==q&&(M=M.ch?Dt(M.line,M.sticky=="before"?M.ch-1:M.ch,"after"):M,q=M.sticky=="before"?Dt(M.line,M.ch+1,"before"):M);for(var De=0;De<5;De++){var mt=!1,Nt=Mi(I,M),zt=!q||q==M?Nt:Mi(I,q);re={left:Math.min(Nt.left,zt.left),top:Math.min(Nt.top,zt.top)-J,right:Math.max(Nt.left,zt.left),bottom:Math.max(Nt.bottom,zt.bottom)+J};var Yt=to(I,re),Cr=I.doc.scrollTop,Ur=I.doc.scrollLeft;if(Yt.scrollTop!=null&&(Gi(I,Yt.scrollTop),Math.abs(I.doc.scrollTop-Cr)>1&&(mt=!0)),Yt.scrollLeft!=null&&(go(I,Yt.scrollLeft),Math.abs(I.doc.scrollLeft-Ur)>1&&(mt=!0)),!mt)break}return re}function Ca(I,M){var q=to(I,M);q.scrollTop!=null&&Gi(I,q.scrollTop),q.scrollLeft!=null&&go(I,q.scrollLeft)}function to(I,M){var q=I.display,J=Ai(I.display);M.top<0&&(M.top=0);var re=I.curOp&&I.curOp.scrollTop!=null?I.curOp.scrollTop:q.scroller.scrollTop,De=rn(I),mt={};M.bottom-M.top>De&&(M.bottom=M.top+De);var Nt=I.doc.height+sr(q),zt=M.topNt-J;if(M.topre+De){var Cr=Math.min(M.top,(Yt?Nt:M.bottom)-De);Cr!=re&&(mt.scrollTop=Cr)}var Ur=I.options.fixedGutter?0:q.gutters.offsetWidth,en=I.curOp&&I.curOp.scrollLeft!=null?I.curOp.scrollLeft:q.scroller.scrollLeft-Ur,nn=Dr(I)-q.gutters.offsetWidth,xn=M.right-M.left>nn;return xn&&(M.right=M.left+nn),M.left<10?mt.scrollLeft=0:M.leftnn+en-3&&(mt.scrollLeft=M.right+(xn?0:10)-nn),mt}function Lo(I,M){if(M==null)return;Da(I),I.curOp.scrollTop=(I.curOp.scrollTop==null?I.doc.scrollTop:I.curOp.scrollTop)+M}function _a(I){Da(I);var M=I.getCursor();I.curOp.scrollToPos={from:M,to:M,margin:I.options.cursorScrollMargin}}function ki(I,M,q){(M!=null||q!=null)&&Da(I),M!=null&&(I.curOp.scrollLeft=M),q!=null&&(I.curOp.scrollTop=q)}function Ja(I,M){Da(I),I.curOp.scrollToPos=M}function Da(I){var M=I.curOp.scrollToPos;if(M){I.curOp.scrollToPos=null;var q=mi(I,M.from),J=mi(I,M.to);pi(I,q,J,M.margin)}}function pi(I,M,q,J){var re=to(I,{left:Math.min(M.left,q.left),top:Math.min(M.top,q.top)-J,right:Math.max(M.right,q.right),bottom:Math.max(M.bottom,q.bottom)+J});ki(I,re.scrollLeft,re.scrollTop)}function Gi(I,M){if(Math.abs(I.doc.scrollTop-M)<2)return;A||_o(I,{top:M}),oo(I,M,!0),A&&_o(I),ps(I,100)}function oo(I,M,q){if(M=Math.max(0,Math.min(I.display.scroller.scrollHeight-I.display.scroller.clientHeight,M)),I.display.scroller.scrollTop==M&&!q)return;I.doc.scrollTop=M,I.display.scrollbars.setScrollTop(M),I.display.scroller.scrollTop!=M&&(I.display.scroller.scrollTop=M)}function go(I,M,q,J){if(M=Math.max(0,Math.min(M,I.display.scroller.scrollWidth-I.display.scroller.clientWidth)),(q?M==I.doc.scrollLeft:Math.abs(I.doc.scrollLeft-M)<2)&&!J)return;I.doc.scrollLeft=M,ms(I),I.display.scroller.scrollLeft!=M&&(I.display.scroller.scrollLeft=M),I.display.scrollbars.setScrollLeft(M)}function fo(I){var M=I.display,q=M.gutters.offsetWidth,J=Math.round(I.doc.height+sr(I.display));return{clientHeight:M.scroller.clientHeight,viewHeight:M.wrapper.clientHeight,scrollWidth:M.scroller.scrollWidth,clientWidth:M.scroller.clientWidth,viewWidth:M.wrapper.clientWidth,barLeft:I.options.fixedGutter?q:0,docHeight:J,scrollHeight:J+Mr(I)+M.barHeight,nativeBarWidth:M.nativeBarWidth,gutterWidth:q}}var Ta=function(M,q,J){this.cm=J;var re=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),De=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");re.tabIndex=De.tabIndex=-1,M(re),M(De),Be(re,"scroll",function(){re.clientHeight&&q(re.scrollTop,"vertical")}),Be(De,"scroll",function(){De.clientWidth&&q(De.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&o<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ta.prototype.update=function(I){var M=I.scrollWidth>I.clientWidth+1,q=I.scrollHeight>I.clientHeight+1,J=I.nativeBarWidth;if(q){this.vert.style.display="block",this.vert.style.bottom=M?J+"px":"0";var re=I.viewHeight-(M?J:0);this.vert.firstChild.style.height=Math.max(0,I.scrollHeight-I.clientHeight+re)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(M){this.horiz.style.display="block",this.horiz.style.right=q?J+"px":"0",this.horiz.style.left=I.barLeft+"px";var De=I.viewWidth-I.barLeft-(q?J:0);this.horiz.firstChild.style.width=Math.max(0,I.scrollWidth-I.clientWidth+De)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&I.clientHeight>0&&(J==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:q?J:0,bottom:M?J:0}},Ta.prototype.setScrollLeft=function(I){this.horiz.scrollLeft!=I&&(this.horiz.scrollLeft=I),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ta.prototype.setScrollTop=function(I){this.vert.scrollTop!=I&&(this.vert.scrollTop=I),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ta.prototype.zeroWidthHack=function(){var I=b&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=I,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Ta.prototype.enableZeroWidthBar=function(I,M,q){I.style.pointerEvents="auto";function J(){var re=I.getBoundingClientRect(),De=q=="vert"?document.elementFromPoint(re.right-1,(re.top+re.bottom)/2):document.elementFromPoint((re.right+re.left)/2,re.bottom-1);De!=I?I.style.pointerEvents="none":M.set(1e3,J)}M.set(1e3,J)},Ta.prototype.clear=function(){var I=this.horiz.parentNode;I.removeChild(this.horiz),I.removeChild(this.vert)};var Fi=function(){};Fi.prototype.update=function(){return{bottom:0,right:0}},Fi.prototype.setScrollLeft=function(){},Fi.prototype.setScrollTop=function(){},Fi.prototype.clear=function(){};function Ra(I,M){M||(M=fo(I));var q=I.display.barWidth,J=I.display.barHeight;Vo(I,M);for(var re=0;re<4&&q!=I.display.barWidth||J!=I.display.barHeight;re++)q!=I.display.barWidth&&I.options.lineWrapping&&So(I),Vo(I,fo(I)),q=I.display.barWidth,J=I.display.barHeight}function Vo(I,M){var q=I.display,J=q.scrollbars.update(M);q.sizer.style.paddingRight=(q.barWidth=J.right)+"px",q.sizer.style.paddingBottom=(q.barHeight=J.bottom)+"px",q.heightForcer.style.borderBottom=J.bottom+"px solid transparent",J.right&&J.bottom?(q.scrollbarFiller.style.display="block",q.scrollbarFiller.style.height=J.bottom+"px",q.scrollbarFiller.style.width=J.right+"px"):q.scrollbarFiller.style.display="",J.bottom&&I.options.coverGutterNextToScrollbar&&I.options.fixedGutter?(q.gutterFiller.style.display="block",q.gutterFiller.style.height=J.bottom+"px",q.gutterFiller.style.width=M.gutterWidth+"px"):q.gutterFiller.style.display=""}var ro={native:Ta,null:Fi};function vo(I){I.display.scrollbars&&(I.display.scrollbars.clear(),I.display.scrollbars.addClass&&y(I.display.wrapper,I.display.scrollbars.addClass)),I.display.scrollbars=new ro[I.options.scrollbarStyle](function(M){I.display.wrapper.insertBefore(M,I.display.scrollbarFiller),Be(M,"mousedown",function(){I.state.focused&&setTimeout(function(){return I.display.input.focus()},0)}),M.setAttribute("cm-not-content","true")},function(M,q){q=="horizontal"?go(I,M):Gi(I,M)},I),I.display.scrollbars.addClass&&W(I.display.wrapper,I.display.scrollbars.addClass)}var po=0;function Zi(I){I.curOp={cm:I,viewChanged:!1,startHeight:I.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++po},eo(I.curOp)}function xo(I){var M=I.curOp;M&&uo(M,function(q){for(var J=0;J=q.viewTo)||q.maxLineChanged&&M.options.lineWrapping,I.update=I.mustUpdate&&new Xo(M,I.mustUpdate&&{top:I.scrollTop,ensure:I.scrollToPos},I.forceUpdate)}function Is(I){I.updatedDisplay=I.mustUpdate&&La(I.cm,I.update)}function Cs(I){var M=I.cm,q=M.display;I.updatedDisplay&&So(M),I.barMeasure=fo(M),q.maxLineChanged&&!M.options.lineWrapping&&(I.adjustWidthTo=Sn(M,q.maxLine,q.maxLine.text.length).left+3,M.display.sizerWidth=I.adjustWidthTo,I.barMeasure.scrollWidth=Math.max(q.scroller.clientWidth,q.sizer.offsetLeft+I.adjustWidthTo+Mr(M)+M.display.barWidth),I.maxScrollLeft=Math.max(0,q.sizer.offsetLeft+I.adjustWidthTo-Dr(M))),(I.updatedDisplay||I.selectionChanged)&&(I.preparedSelection=q.input.prepareSelection())}function Ts(I){var M=I.cm;I.adjustWidthTo!=null&&(M.display.sizer.style.minWidth=I.adjustWidthTo+"px",I.maxScrollLeft=I.display.viewTo)return;var q=+new Date+I.options.workTime,J=Ht(I,M.highlightFrontier),re=[];M.iter(J.line,Math.min(M.first+M.size,I.display.viewTo+500),function(De){if(J.line>=I.display.viewFrom){var mt=De.styles,Nt=De.text.length>I.options.maxHighlightLength?Ot(M.mode,J.state):null,zt=Tt(I,De,J,!0);Nt&&(J.state=Nt),De.styles=zt.styles;var Yt=De.styleClasses,Cr=zt.classes;Cr?De.styleClasses=Cr:Yt&&(De.styleClasses=null);for(var Ur=!mt||mt.length!=De.styles.length||Yt!=Cr&&(!Yt||!Cr||Yt.bgClass!=Cr.bgClass||Yt.textClass!=Cr.textClass),en=0;!Ur&&enq)return ps(I,I.options.workDelay),!0}),M.highlightFrontier=J.line,M.modeFrontier=Math.max(M.modeFrontier,J.line),re.length&&bo(I,function(){for(var De=0;De=q.viewFrom&&M.visible.to<=q.viewTo&&(q.updateLineNumbers==null||q.updateLineNumbers>=q.viewTo)&&q.renderedView==q.view&&Xa(I)==0)return!1;ls(I)&&(Ma(I),M.dims=Vi(I));var re=J.first+J.size,De=Math.max(M.visible.from-I.options.viewportMargin,J.first),mt=Math.min(re,M.visible.to+I.options.viewportMargin);q.viewFrommt&&q.viewTo-mt<20&&(mt=Math.min(re,q.viewTo)),Qr&&(De=Gn(I.doc,De),mt=Oa(I.doc,mt));var Nt=De!=q.viewFrom||mt!=q.viewTo||q.lastWrapHeight!=M.wrapperHeight||q.lastWrapWidth!=M.wrapperWidth;Yi(I,De,mt),q.viewOffset=Ln(te(I.doc,q.viewFrom)),I.display.mover.style.top=q.viewOffset+"px";var zt=Xa(I);if(!Nt&&zt==0&&!M.force&&q.renderedView==q.view&&(q.updateLineNumbers==null||q.updateLineNumbers>=q.viewTo))return!1;var Yt=Ls(I);return zt>4&&(q.lineDiv.style.display="none"),ts(I,q.updateLineNumbers,M.dims),zt>4&&(q.lineDiv.style.display=""),q.renderedView=q.view,ka(Yt),C(q.cursorDiv),C(q.selectionDiv),q.gutters.style.height=q.sizer.style.minHeight=0,Nt&&(q.lastWrapHeight=M.wrapperHeight,q.lastWrapWidth=M.wrapperWidth,ps(I,400)),q.updateLineNumbers=null,!0}function Oo(I,M){for(var q=M.viewport,J=!0;;J=!1){if(!J||!I.options.lineWrapping||M.oldDisplayWidth==Dr(I)){if(q&&q.top!=null&&(q={top:Math.min(I.doc.height+sr(I.display)-rn(I),q.top)}),M.visible=ja(I.display,I.doc,q),M.visible.from>=I.display.viewFrom&&M.visible.to<=I.display.viewTo)break}else J&&(M.visible=ja(I.display,I.doc,q));if(!La(I,M))break;So(I);var re=fo(I);Ki(I),Ra(I,re),rs(I,re),M.force=!1}M.signal(I,"update",I),(I.display.viewFrom!=I.display.reportedViewFrom||I.display.viewTo!=I.display.reportedViewTo)&&(M.signal(I,"viewportChange",I,I.display.viewFrom,I.display.viewTo),I.display.reportedViewFrom=I.display.viewFrom,I.display.reportedViewTo=I.display.viewTo)}function _o(I,M){var q=new Xo(I,M);if(La(I,q)){So(I),Oo(I,q);var J=fo(I);Ki(I),Ra(I,J),rs(I,J),q.finish()}}function ts(I,M,q){var J=I.display,re=I.options.lineNumbers,De=J.lineDiv,mt=De.firstChild;function Nt(xn){var Bn=xn.nextSibling;return i&&b&&I.display.currentWheelTarget==xn?xn.style.display="none":xn.parentNode.removeChild(xn),Bn}for(var zt=J.view,Yt=J.viewFrom,Cr=0;Cr-1&&(nn=!1),Wr(I,Ur,Yt,q)),nn&&(C(Ur.lineNumber),Ur.lineNumber.appendChild(document.createTextNode($t(I.options,Yt)))),mt=Ur.node.nextSibling}Yt+=Ur.size}for(;mt;)mt=Nt(mt)}function Bo(I){var M=I.gutters.offsetWidth;I.sizer.style.marginLeft=M+"px"}function rs(I,M){I.display.sizer.style.minHeight=M.docHeight+"px",I.display.heightForcer.style.top=M.docHeight+"px",I.display.gutters.style.height=M.docHeight+I.display.barHeight+Mr(I)+"px"}function ms(I){var M=I.display,q=M.view;if(!M.alignWidgets&&(!M.gutters.firstChild||!I.options.fixedGutter))return;for(var J=Xi(M)-M.scroller.scrollLeft+I.doc.scrollLeft,re=M.gutters.offsetWidth,De=J+"px",mt=0;mtmt.clientWidth,zt=mt.scrollHeight>mt.clientHeight;if(!(J&&Nt||re&&zt))return;if(re&&b&&i){e:for(var Yt=M.target,Cr=De.view;Yt!=mt;Yt=Yt.parentNode)for(var Ur=0;Ur=0&&Kt(I,J.to())<=0)return q}return-1};var oe=function(M,q){this.anchor=M,this.head=q};oe.prototype.from=function(){return dr(this.anchor,this.head)},oe.prototype.to=function(){return Mt(this.anchor,this.head)},oe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xe(I,M,q){var J=I&&I.options.selectionsMayTouch,re=M[q];M.sort(function(en,nn){return Kt(en.from(),nn.from())}),q=z(M,re);for(var De=1;De0:zt>=0){var Yt=dr(Nt.from(),mt.from()),Cr=Mt(Nt.to(),mt.to()),Ur=Nt.empty()?mt.from()==mt.head:Nt.from()==Nt.head;De<=q&&--q,M.splice(--De,2,new oe(Ur?Cr:Yt,Ur?Yt:Cr))}}return new Pt(M,q)}function Te(I,M){return new Pt([new oe(I,M||I)],0)}function We(I){return I.text?Dt(I.from.line+I.text.length-1,Xe(I.text).length+(I.text.length==1?I.from.ch:0)):I.to}function Et(I,M){if(Kt(I,M.from)<0)return I;if(Kt(I,M.to)<=0)return We(M);var q=I.line+M.text.length-(M.to.line-M.from.line)-1,J=I.ch;return I.line==M.to.line&&(J+=We(M).ch-M.to.ch),Dt(q,J)}function Ut(I,M){for(var q=[],J=0;J1&&I.remove(Nt.line+1,xn-1),I.insert(Nt.line+1,Jn)}Tr(I,"change",I,M)}function Cn(I,M,q){function J(re,De,mt){if(re.linked)for(var Nt=0;Nt1&&!I.done[I.done.length-2].ranges)return I.done.pop(),Xe(I.done)}function Wa(I,M,q,J){var re=I.history;re.undone.length=0;var De=+new Date,mt,Nt;if((re.lastOp==J||re.lastOrigin==M.origin&&M.origin&&(M.origin.charAt(0)=="+"&&re.lastModTime>De-(I.cm?I.cm.options.historyEventDelay:500)||M.origin.charAt(0)=="*"))&&(mt=lo(re,re.lastOp==J)))Nt=Xe(mt.changes),Kt(M.from,M.to)==0&&Kt(M.from,Nt.to)==0?Nt.to=We(M):mt.changes.push(ji(I,M));else{var zt=Xe(re.done);for((!zt||!zt.ranges)&&$a(I.sel,re.done),mt={changes:[ji(I,M)],generation:re.generation},re.done.push(mt);re.done.length>re.undoDepth;)re.done.shift(),re.done[0].ranges||re.done.shift()}re.done.push(q),re.generation=++re.maxGeneration,re.lastModTime=re.lastSelTime=De,re.lastOp=re.lastSelOp=J,re.lastOrigin=re.lastSelOrigin=M.origin,Nt||wt(I,"historyAdded")}function yo(I,M,q,J){var re=M.charAt(0);return re=="*"||re=="+"&&q.ranges.length==J.ranges.length&&q.somethingSelected()==J.somethingSelected()&&new Date-I.history.lastSelTime<=(I.cm?I.cm.options.historyEventDelay:500)}function Ao(I,M,q,J){var re=I.history,De=J&&J.origin;q==re.lastSelOp||De&&re.lastSelOrigin==De&&(re.lastModTime==re.lastSelTime&&re.lastOrigin==De||yo(I,De,Xe(re.done),M))?re.done[re.done.length-1]=M:$a(M,re.done),re.lastSelTime=+new Date,re.lastSelOrigin=De,re.lastSelOp=q,J&&J.clearRedo!==!1&&Sa(re.undone)}function $a(I,M){var q=Xe(M);q&&q.ranges&&q.equals(I)||M.push(I)}function ko(I,M,q,J){var re=M["spans_"+I.id],De=0;I.iter(Math.max(I.first,q),Math.min(I.first+I.size,J),function(mt){mt.markedSpans&&((re||(re=M["spans_"+I.id]={}))[De]=mt.markedSpans),++De})}function No(I){if(!I)return null;for(var M,q=0;q-1&&(Xe(Nt)[Ur]=Yt[Ur],delete Yt[Ur]))}}return J}function Qo(I,M,q,J){if(J){var re=I.anchor;if(q){var De=Kt(M,re)<0;De!=Kt(q,re)<0?(re=M,M=q):De!=Kt(M,q)<0&&(M=q)}return new oe(re,M)}else return new oe(q||M,M)}function wo(I,M,q,J,re){re==null&&(re=I.cm&&(I.cm.display.shift||I.extend)),Eo(I,new Pt([Qo(I.sel.primary(),M,q,re)],0),J)}function us(I,M,q){for(var J=[],re=I.cm&&(I.cm.display.shift||I.extend),De=0;De=M.ch:Nt.to>M.ch))){if(re&&(wt(zt,"beforeCursorEnter"),zt.explicitlyCleared))if(De.markedSpans){--mt;continue}else break;if(!zt.atomic)continue;if(q){var Ur=zt.find(J<0?1:-1),en=void 0;if((J<0?Cr:Yt)&&(Ur=As(I,Ur,-J,Ur&&Ur.line==M.line?De:null)),Ur&&Ur.line==M.line&&(en=Kt(Ur,q))&&(J<0?en<0:en>0))return ys(I,Ur,M,J,re)}var nn=zt.find(J<0?-1:1);return(J<0?Yt:Cr)&&(nn=As(I,nn,J,nn.line==M.line?De:null)),nn?ys(I,nn,M,J,re):null}}return M}function Ms(I,M,q,J,re){var De=J||1,mt=ys(I,M,q,De,re)||!re&&ys(I,M,q,De,!0)||ys(I,M,q,-De,re)||!re&&ys(I,M,q,-De,!0);return mt||(I.cantEdit=!0,Dt(I.first,0))}function As(I,M,q,J){return q<0&&M.ch==0?M.line>I.first?st(I,Dt(M.line-1)):null:q>0&&M.ch==(J||te(I,M.line)).text.length?M.line=0;--re)ua(I,{from:J[re].from,to:J[re].to,text:re?[""]:M.text,origin:M.origin});else ua(I,M)}function ua(I,M){if(M.text.length==1&&M.text[0]==""&&Kt(M.from,M.to)==0)return;var q=Ut(I,M);Wa(I,M,q,I.cm?I.cm.curOp.id:NaN),Wn(I,M,q,Nn(I,M));var J=[];Cn(I,function(re,De){!De&&z(J,re.history)==-1&&(Zo(re.history,M),J.push(re.history)),Wn(re,M,null,Nn(re,M))})}function ui(I,M,q){var J=I.cm&&I.cm.state.suppressEdits;if(J&&!q)return;for(var re=I.history,De,mt=I.sel,Nt=M=="undo"?re.done:re.undone,zt=M=="undo"?re.undone:re.done,Yt=0;Yt=0;--nn){var xn=en(nn);if(xn)return xn.v}}function Bi(I,M){if(M==0)return;if(I.first+=M,I.sel=new Pt(dt(I.sel.ranges,function(re){return new oe(Dt(re.anchor.line+M,re.anchor.ch),Dt(re.head.line+M,re.head.ch))}),I.sel.primIndex),I.cm){gi(I.cm,I.first,I.first-M,M);for(var q=I.cm.display,J=q.viewFrom;JI.lastLine())return;if(M.from.lineDe&&(M={from:M.from,to:Dt(De,te(I,De).text.length),text:[M.text[0]],origin:M.origin}),M.removed=be(I,M.from,M.to),q||(q=Ut(I,M)),I.cm?io(I.cm,M,J):yn(I,M,J),ds(I,q,le),I.cantEdit&&Ms(I,Dt(I.firstLine(),0))&&(I.cantEdit=!1)}function io(I,M,q){var J=I.doc,re=I.display,De=M.from,mt=M.to,Nt=!1,zt=De.line;I.options.lineWrapping||(zt=$e(ta(te(J,De.line))),J.iter(zt,mt.line+1,function(nn){if(nn==re.maxLine)return Nt=!0,!0})),J.sel.contains(M.from,M.to)>-1&&et(I),yn(J,M,q,bi(I)),I.options.lineWrapping||(J.iter(zt,De.line+M.text.length,function(nn){var xn=In(nn);xn>re.maxLineLength&&(re.maxLine=nn,re.maxLineLength=xn,re.maxLineChanged=!0,Nt=!1)}),Nt&&(I.curOp.updateMaxLine=!0)),qr(J,De.line),ps(I,400);var Yt=M.text.length-(mt.line-De.line)-1;M.full?gi(I):De.line==mt.line&&M.text.length==1&&!ln(I.doc,M)?Pa(I,De.line,"text"):gi(I,De.line,mt.line+1,Yt);var Cr=rt(I,"changes"),Ur=rt(I,"change");if(Ur||Cr){var en={from:De,to:mt,text:M.text,removed:M.removed,origin:M.origin};Ur&&Tr(I,"change",I,en),Cr&&(I.curOp.changeObjs||(I.curOp.changeObjs=[])).push(en)}I.display.selForContextMenu=null}function qo(I,M,q,J,re){var De;J||(J=q),Kt(J,q)<0&&(De=[J,q],q=De[0],J=De[1]),typeof M=="string"&&(M=I.splitLines(M)),bs(I,{from:q,to:J,text:M,origin:re})}function gs(I,M,q,J){q1||!(this.children[0]instanceof ws))){var zt=[];this.collapse(zt),this.children=[new ws(zt)],this.children[0].parent=this}},collapse:function(M){for(var q=0;q50){for(var Nt=De.lines.length%25+25,zt=Nt;zt10);M.parent.maybeSpill()},iterN:function(M,q,J){for(var re=0;reI.display.maxLineLength&&(I.display.maxLine=Yt,I.display.maxLineLength=Cr,I.display.maxLineChanged=!0)}J!=null&&I&&this.collapsed&&gi(I,J,re+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,I&&Rs(I.doc)),I&&Tr(I,"markerCleared",I,this,J,re),M&&xo(I),this.parent&&this.parent.clear()},_s.prototype.find=function(I,M){I==null&&this.type=="bookmark"&&(I=1);for(var q,J,re=0;re0||mt==0&&De.clearWhenEmpty!==!1)return De;if(De.replacedWith&&(De.collapsed=!0,De.widgetNode=k("span",[De.replacedWith],"CodeMirror-widget"),J.handleMouseEvents||De.widgetNode.setAttribute("cm-ignore-events","true"),J.insertLeft&&(De.widgetNode.insertLeft=!0)),De.collapsed){if(xa(I,M.line,M,q,De)||M.line!=q.line&&xa(I,q.line,M,q,De))throw new Error("Inserting collapsed marker partially overlapping an existing one");ur()}De.addToHistory&&Wa(I,{from:M,to:q,origin:"markText"},I.sel,NaN);var Nt=M.line,zt=I.cm,Yt;if(I.iter(Nt,q.line+1,function(Ur){zt&&De.collapsed&&!zt.options.lineWrapping&&ta(Ur)==zt.display.maxLine&&(Yt=!0),De.collapsed&&Nt!=M.line&&Re(Ur,0),xr(Ur,new pr(De,Nt==M.line?M.ch:null,Nt==q.line?q.ch:null)),++Nt}),De.collapsed&&I.iter(M.line,q.line+1,function(Ur){mn(I,Ur)&&Re(Ur,0)}),De.clearOnEnter&&Be(De,"beforeCursorEnter",function(){return De.clear()}),De.readOnly&&(Ir(),(I.history.done.length||I.history.undone.length)&&I.clearHistory()),De.collapsed&&(De.id=++Nl,De.atomic=!0),zt){if(Yt&&(zt.curOp.updateMaxLine=!0),De.collapsed)gi(zt,M.line,q.line+1);else if(De.className||De.startStyle||De.endStyle||De.css||De.attributes||De.title)for(var Cr=M.line;Cr<=q.line;Cr++)Pa(zt,Cr,"text");De.atomic&&Rs(zt.doc),Tr(zt,"markerAdded",zt,De)}return De}var el=function(M,q){this.markers=M,this.primary=q;for(var J=0;J=0;zt--)bs(this,J[zt]);Nt?Yo(this,Nt):this.cm&&_a(this.cm)}),undo:so(function(){ui(this,"undo")}),redo:so(function(){ui(this,"redo")}),undoSelection:so(function(){ui(this,"undo",!0)}),redoSelection:so(function(){ui(this,"redo",!0)}),setExtending:function(M){this.extend=M},getExtending:function(){return this.extend},historySize:function(){for(var M=this.history,q=0,J=0,re=0;re=M.ch)&&q.push(De.marker.parent||De.marker)}return q},findMarks:function(M,q,J){M=st(this,M),q=st(this,q);var re=[],De=M.line;return this.iter(M.line,q.line+1,function(mt){var Nt=mt.markedSpans;if(Nt)for(var zt=0;zt=Yt.to||Yt.from==null&&De!=M.line||Yt.from!=null&&De==q.line&&Yt.from>=q.ch)&&(!J||J(Yt.marker))&&re.push(Yt.marker.parent||Yt.marker)}++De}),re},getAllMarks:function(){var M=[];return this.iter(function(q){var J=q.markedSpans;if(J)for(var re=0;reM)return q=M,!0;M-=mt,++J}),st(this,Dt(J,q))},indexFromPos:function(M){M=st(this,M);var q=M.ch;if(M.lineq&&(q=M.from),M.to!=null&&M.to-1){M.state.draggingText(I),setTimeout(function(){return M.display.input.focus()},20);return}try{var Cr=I.dataTransfer.getData("Text");if(Cr){var Ur;if(M.state.draggingText&&!M.state.draggingText.copy&&(Ur=M.listSelections()),ds(M.doc,Te(q,q)),Ur)for(var en=0;en=0;Nt--)qo(I.doc,"",J[Nt].from,J[Nt].to,"+delete");_a(I)})}function hl(I,M,q){var J=ze(I.text,M+q,q);return J<0||J>I.text.length?null:J}function il(I,M,q){var J=hl(I,M.ch,q);return J==null?null:new Dt(M.line,J,q<0?"after":"before")}function fl(I,M,q,J,re){if(I){M.doc.direction=="rtl"&&(re=-re);var De=vt(q,M.doc.direction);if(De){var mt=re<0?Xe(De):De[0],Nt=re<0==(mt.level==1),zt=Nt?"after":"before",Yt;if(mt.level>0||M.doc.direction=="rtl"){var Cr=Mn(M,q);Yt=re<0?q.text.length-1:0;var Ur=vn(M,Cr,Yt).top;Yt=Oe(function(en){return vn(M,Cr,en).top==Ur},re<0==(mt.level==1)?mt.from:mt.to-1,Yt),zt=="before"&&(Yt=hl(q,Yt,1))}else Yt=re<0?mt.to:mt.from;return new Dt(J,Yt,zt)}}return new Dt(J,re<0?q.text.length:0,re<0?"before":"after")}function El(I,M,q,J){var re=vt(M,I.doc.direction);if(!re)return il(M,q,J);q.ch>=M.text.length?(q.ch=M.text.length,q.sticky="before"):q.ch<=0&&(q.ch=0,q.sticky="after");var De=Le(re,q.ch,q.sticky),mt=re[De];if(I.doc.direction=="ltr"&&mt.level%2==0&&(J>0?mt.to>q.ch:mt.from=mt.from&&en>=Cr.begin)){var nn=Ur?"before":"after";return new Dt(q.line,en,nn)}}var xn=function(oi,li,qe){for(var Z=function(vr,_r){return _r?new Dt(q.line,Nt(vr,1),"before"):new Dt(q.line,vr,"after")};oi>=0&&oi0==(Me.level!=1),Lt=Je?qe.begin:Nt(qe.end,-1);if(Me.from<=Lt&&Lt0?Cr.end:Nt(Cr.begin,-1);return Zn!=null&&!(J>0&&Zn==M.text.length)&&(Bn=xn(J>0?0:re.length-1,J,Yt(Zn)),Bn)?Bn:null}var zs={selectAll:ks,singleSelection:function(M){return M.setSelection(M.getCursor("anchor"),M.getCursor("head"),le)},killLine:function(M){return Qs(M,function(q){if(q.empty()){var J=te(M.doc,q.head.line).text.length;return q.head.ch==J&&q.head.line0)De=new Dt(De.line,De.ch+1),M.replaceRange(mt.charAt(De.ch-1)+mt.charAt(De.ch-2),Dt(De.line,De.ch-2),De,"+transpose");else if(De.line>M.doc.first){var Nt=te(M.doc,De.line-1).text;Nt&&(De=new Dt(De.line,1),M.replaceRange(mt.charAt(0)+M.doc.lineSeparator()+Nt.charAt(Nt.length-1),Dt(De.line-1,Nt.length-1),De,"+transpose"))}}J.push(new oe(De,De))}M.setSelections(J)})},newlineAndIndent:function(M){return bo(M,function(){for(var q=M.listSelections(),J=q.length-1;J>=0;J--)M.replaceRange(M.doc.lineSeparator(),q[J].anchor,q[J].head,"+input");q=M.listSelections();for(var re=0;reI&&Kt(M,this.pos)==0&&q==this.button};var ol,Zs;function Pl(I,M){var q=+new Date;return Zs&&Zs.compare(q,I,M)?(ol=Zs=null,"triple"):ol&&ol.compare(q,I,M)?(Zs=new xs(q,I,M),ol=null,"double"):(ol=new xs(q,I,M),Zs=null,"single")}function Ll(I){var M=this,q=M.display;if(Ge(M,I)||q.activeTouch&&q.input.supportsTouch())return;if(q.input.ensurePolled(),q.shift=I.shiftKey,St(q,I)){i||(q.scroller.draggable=!1,setTimeout(function(){return q.scroller.draggable=!0},100));return}if(Ol(M,I))return;var J=ca(M,I),re=ye(I),De=J?Pl(J,re):"single";if(window.focus(),re==1&&M.state.selectingText&&M.state.selectingText(I),J&&vl(M,re,J,De,I))return;re==1?J?Bl(M,J,De,I):Qe(I)==q.scroller&&Ve(I):re==2?(J&&wo(M.doc,J),setTimeout(function(){return q.input.focus()},20)):re==3&&(T?M.display.input.onContextMenu(I):Ka(M))}function vl(I,M,q,J,re){var De="Click";return J=="double"?De="Double"+De:J=="triple"&&(De="Triple"+De),De=(M==1?"Left":M==2?"Middle":"Right")+De,ml(I,kl(De,re),re,function(mt){if(typeof mt=="string"&&(mt=zs[mt]),!mt)return!1;var Nt=!1;try{I.isReadOnly()&&(I.state.suppressEdits=!0),Nt=mt(I,q)!=G}finally{I.state.suppressEdits=!1}return Nt})}function ql(I,M,q){var J=I.getOption("configureMouse"),re=J?J(I,M,q):{};if(re.unit==null){var De=w?q.shiftKey&&q.metaKey:q.altKey;re.unit=De?"rectangle":M=="single"?"char":M=="double"?"word":"line"}return(re.extend==null||I.doc.extend)&&(re.extend=I.doc.extend||q.shiftKey),re.addNew==null&&(re.addNew=b?q.metaKey:q.ctrlKey),re.moveOnDrag==null&&(re.moveOnDrag=!(b?q.altKey:q.ctrlKey)),re}function Bl(I,M,q,J){c?setTimeout(j(Ya,I),0):I.curOp.focus=H();var re=ql(I,q,J),De=I.doc.sel,mt;I.options.dragDrop&&Zt&&!I.isReadOnly()&&q=="single"&&(mt=De.contains(M))>-1&&(Kt((mt=De.ranges[mt]).from(),M)<0||M.xRel>0)&&(Kt(mt.to(),M)>0||M.xRel<0)?yl(I,J,M,re):lc(I,J,M,re)}function yl(I,M,q,J){var re=I.display,De=!1,mt=Za(I,function(Yt){i&&(re.scroller.draggable=!1),I.state.draggingText=!1,He(re.wrapper.ownerDocument,"mouseup",mt),He(re.wrapper.ownerDocument,"mousemove",Nt),He(re.scroller,"dragstart",zt),He(re.scroller,"drop",mt),De||(Ve(Yt),J.addNew||wo(I.doc,q,null,null,J.extend),i&&!r||c&&o==9?setTimeout(function(){re.wrapper.ownerDocument.body.focus({preventScroll:!0}),re.input.focus()},20):re.input.focus())}),Nt=function(Cr){De=De||Math.abs(M.clientX-Cr.clientX)+Math.abs(M.clientY-Cr.clientY)>=10},zt=function(){return De=!0};i&&(re.scroller.draggable=!0),I.state.draggingText=mt,mt.copy=!J.moveOnDrag,re.scroller.dragDrop&&re.scroller.dragDrop(),Be(re.wrapper.ownerDocument,"mouseup",mt),Be(re.wrapper.ownerDocument,"mousemove",Nt),Be(re.scroller,"dragstart",zt),Be(re.scroller,"drop",mt),Ka(I),setTimeout(function(){return re.input.focus()},20)}function Jl(I,M,q){if(q=="char")return new oe(M,M);if(q=="word")return I.findWordAt(M);if(q=="line")return new oe(Dt(M.line,0),st(I.doc,Dt(M.line+1,0)));var J=q(I,M);return new oe(J.from,J.to)}function lc(I,M,q,J){var re=I.display,De=I.doc;Ve(M);var mt,Nt,zt=De.sel,Yt=zt.ranges;if(J.addNew&&!J.extend?(Nt=De.sel.contains(q),Nt>-1?mt=Yt[Nt]:mt=new oe(q,q)):(mt=De.sel.primary(),Nt=De.sel.primIndex),J.unit=="rectangle")J.addNew||(mt=new oe(q,q)),q=ca(I,M,!0,!0),Nt=-1;else{var Cr=Jl(I,q,J.unit);J.extend?mt=Qo(mt,Cr.anchor,Cr.head,J.extend):mt=Cr}J.addNew?Nt==-1?(Nt=Yt.length,Eo(De,xe(I,Yt.concat([mt]),Nt),{scroll:!1,origin:"*mouse"})):Yt.length>1&&Yt[Nt].empty()&&J.unit=="char"&&!J.extend?(Eo(De,xe(I,Yt.slice(0,Nt).concat(Yt.slice(Nt+1)),0),{scroll:!1,origin:"*mouse"}),zt=De.sel):ns(De,Nt,mt,Y):(Nt=0,Eo(De,new Pt([mt],0),Y),zt=De.sel);var Ur=q;function en(li){if(Kt(Ur,li)==0)return;if(Ur=li,J.unit=="rectangle"){for(var qe=[],Z=I.options.tabSize,Me=K(te(De,q.line).text,q.ch,Z),Je=K(te(De,li.line).text,li.ch,Z),Lt=Math.min(Me,Je),tr=Math.max(Me,Je),vr=Math.min(q.line,li.line),_r=Math.min(I.lastLine(),Math.max(q.line,li.line));vr<=_r;vr++){var Hr=te(De,vr).text,Kr=we(Hr,Lt,Z);Lt==tr?qe.push(new oe(Dt(vr,Kr),Dt(vr,Kr))):Hr.length>Kr&&qe.push(new oe(Dt(vr,Kr),Dt(vr,we(Hr,tr,Z))))}qe.length||qe.push(new oe(q,q)),Eo(De,xe(I,zt.ranges.slice(0,Nt).concat(qe),Nt),{origin:"*mouse",scroll:!1}),I.scrollIntoView(li)}else{var cn=mt,sn=Jl(I,li,J.unit),kn=cn.anchor,si;Kt(sn.anchor,kn)>0?(si=sn.head,kn=dr(cn.from(),sn.anchor)):(si=sn.anchor,kn=Mt(cn.to(),sn.head));var Kn=zt.ranges.slice(0);Kn[Nt]=Zl(I,new oe(st(De,kn),si)),Eo(De,xe(I,Kn,Nt),Y)}}var nn=re.wrapper.getBoundingClientRect(),xn=0;function Bn(li){var qe=++xn,Z=ca(I,li,!0,J.unit=="rectangle");if(!Z)return;if(Kt(Z,Ur)!=0){I.curOp.focus=H(),en(Z);var Me=ja(re,De);(Z.line>=Me.to||Z.linenn.bottom?20:0;Je&&setTimeout(Za(I,function(){if(xn!=qe)return;re.scroller.scrollTop+=Je,Bn(li)}),50)}}function Zn(li){I.state.selectingText=!1,xn=Infinity,li&&(Ve(li),re.input.focus()),He(re.wrapper.ownerDocument,"mousemove",Jn),He(re.wrapper.ownerDocument,"mouseup",oi),De.history.lastSelOrigin=null}var Jn=Za(I,function(li){li.buttons===0||!ye(li)?Zn(li):Bn(li)}),oi=Za(I,Zn);I.state.selectingText=oi,Be(re.wrapper.ownerDocument,"mousemove",Jn),Be(re.wrapper.ownerDocument,"mouseup",oi)}function Zl(I,M){var q=M.anchor,J=M.head,re=te(I.doc,q.line);if(Kt(q,J)==0&&q.sticky==J.sticky)return M;var De=vt(re);if(!De)return M;var mt=Le(De,q.ch,q.sticky),Nt=De[mt];if(Nt.from!=q.ch&&Nt.to!=q.ch)return M;var zt=mt+(Nt.from==q.ch==(Nt.level!=1)?0:1);if(zt==0||zt==De.length)return M;var Yt;if(J.line!=q.line)Yt=(J.line-q.line)*(I.doc.direction=="ltr"?1:-1)>0;else{var Cr=Le(De,J.ch,J.sticky),Ur=Cr-mt||(J.ch-q.ch)*(Nt.level==1?-1:1);Cr==zt-1||Cr==zt?Yt=Ur<0:Yt=Ur>0}var en=De[zt+(Yt?-1:0)],nn=Yt==(en.level==1),xn=nn?en.from:en.to,Bn=nn?"after":"before";return q.ch==xn&&q.sticky==Bn?M:new oe(new Dt(q.line,xn,Bn),J)}function $l(I,M,q,J){var re,De;if(M.touches)re=M.touches[0].clientX,De=M.touches[0].clientY;else try{re=M.clientX,De=M.clientY}catch(en){return!1}if(re>=Math.floor(I.display.gutters.getBoundingClientRect().right))return!1;J&&Ve(M);var mt=I.display,Nt=mt.lineDiv.getBoundingClientRect();if(De>Nt.bottom||!rt(I,q))return $(M);De-=Nt.top-mt.viewOffset;for(var zt=0;zt=re){var Cr=gt(I.doc,De),Ur=I.display.gutterSpecs[zt];return wt(I,q,I,Cr,Ur.className,M),$(M)}}}function Ol(I,M){return $l(I,M,"gutterClick",!0)}function ec(I,M){if(St(I.display,M)||cc(I,M))return;if(Ge(I,M,"contextmenu"))return;T||I.display.input.onContextMenu(M)}function cc(I,M){return rt(I,"gutterContextMenu")?$l(I,M,"gutterContextMenu",!1):!1}function _l(I){I.display.wrapper.className=I.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+I.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yi(I)}var js={toString:function(){return"CodeMirror.Init"}},Il={},Al={};function uc(I){var M=I.optionHandlers;function q(J,re,De,mt){I.defaults[J]=re,De&&(M[J]=mt?function(Nt,zt,Yt){Yt!=js&&De(Nt,zt,Yt)}:De)}I.defineOption=q,I.Init=js,q("value","",function(J,re){return J.setValue(re)},!0),q("mode",null,function(J,re){J.doc.modeOption=re,Rr(J)},!0),q("indentUnit",2,Rr,!0),q("indentWithTabs",!1),q("smartIndent",!0),q("tabSize",4,function(J){$r(J),yi(J),gi(J)},!0),q("lineSeparator",null,function(J,re){if(J.doc.lineSep=re,!re)return;var De=[],mt=J.doc.first;J.doc.iter(function(zt){for(var Yt=0;;){var Cr=zt.text.indexOf(re,Yt);if(Cr==-1)break;Yt=Cr+re.length,De.push(Dt(mt,Cr))}mt++});for(var Nt=De.length-1;Nt>=0;Nt--)qo(J.doc,re,De[Nt],Dt(De[Nt].line,De[Nt].ch+re.length))}),q("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(J,re,De){J.state.specialChars=new RegExp(re.source+(re.test(" ")?"":"| "),"g"),De!=js&&J.refresh()}),q("specialCharPlaceholder",Wi,function(J){return J.refresh()},!0),q("electricChars",!0),q("inputStyle",p?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),q("spellcheck",!1,function(J,re){return J.getInputField().spellcheck=re},!0),q("autocorrect",!1,function(J,re){return J.getInputField().autocorrect=re},!0),q("autocapitalize",!1,function(J,re){return J.getInputField().autocapitalize=re},!0),q("rtlMoveVisually",!E),q("wholeLineUpdateBefore",!0),q("theme","default",function(J){_l(J),as(J)},!0),q("keyMap","default",function(J,re,De){var mt=xl(re),Nt=De!=js&&xl(De);Nt&&Nt.detach&&Nt.detach(J,mt),mt.attach&&mt.attach(J,Nt||null)}),q("extraKeys",null),q("configureMouse",null),q("lineWrapping",!1,sl,!0),q("gutters",[],function(J,re){J.display.gutterSpecs=Ns(re,J.options.lineNumbers),as(J)},!0),q("fixedGutter",!0,function(J,re){J.display.gutters.style.left=re?Xi(J.display)+"px":"0",J.refresh()},!0),q("coverGutterNextToScrollbar",!1,function(J){return Ra(J)},!0),q("scrollbarStyle","native",function(J){vo(J),Ra(J),J.display.scrollbars.setScrollTop(J.doc.scrollTop),J.display.scrollbars.setScrollLeft(J.doc.scrollLeft)},!0),q("lineNumbers",!1,function(J,re){J.display.gutterSpecs=Ns(J.options.gutters,re),as(J)},!0),q("firstLineNumber",1,as,!0),q("lineNumberFormatter",function(J){return J},as,!0),q("showCursorWhenSelecting",!1,Ki,!0),q("resetSelectionOnContextMenu",!0),q("lineWiseCopyCut",!0),q("pasteLinesPerSelection",!0),q("selectionsMayTouch",!1),q("readOnly",!1,function(J,re){re=="nocursor"&&(Oi(J),J.display.input.blur()),J.display.input.readOnlyChanged(re)}),q("screenReaderLabel",null,function(J,re){re=re===""?null:re,J.display.input.screenReaderLabelChanged(re)}),q("disableInput",!1,function(J,re){re||J.display.input.reset()},!0),q("dragDrop",!0,dc),q("allowDropFileTypes",null),q("cursorBlinkRate",530),q("cursorScrollMargin",0),q("cursorHeight",1,Ki,!0),q("singleCursorHeightPerLine",!0,Ki,!0),q("workTime",100),q("workDelay",100),q("flattenSpans",!0,$r,!0),q("addModeClass",!1,$r,!0),q("pollInterval",100),q("undoDepth",200,function(J,re){return J.doc.history.undoDepth=re}),q("historyEventDelay",1250),q("viewportMargin",10,function(J){return J.refresh()},!0),q("maxHighlightLength",1e4,$r,!0),q("moveInputWithCursor",!0,function(J,re){re||J.display.input.resetPosition()}),q("tabindex",null,function(J,re){return J.display.input.getField().tabIndex=re||""}),q("autofocus",null),q("direction","ltr",function(J,re){return J.doc.setDirection(re)},!0),q("phrases",null)}function dc(I,M,q){var J=q&&q!=js;if(!M!=!J){var re=I.display.dragFunctions,De=M?Be:He;De(I.display.scroller,"dragstart",re.start),De(I.display.scroller,"dragenter",re.enter),De(I.display.scroller,"dragover",re.over),De(I.display.scroller,"dragleave",re.leave),De(I.display.scroller,"drop",re.drop)}}function sl(I){I.options.lineWrapping?(W(I.display.wrapper,"CodeMirror-wrap"),I.display.sizer.style.minWidth="",I.display.sizerWidth=null):(y(I.display.wrapper,"CodeMirror-wrap"),jn(I)),Aa(I),gi(I),yi(I),setTimeout(function(){return Ra(I)},100)}function ot(I,M){var q=this;if(!(this instanceof ot))return new ot(I,M);this.options=M=M?P(M):{},P(Il,M,!1);var J=M.value;typeof J=="string"?J=new es(J,M.mode,null,M.lineSeparator,M.direction):M.mode&&(J.modeOption=M.mode),this.doc=J;var re=new ot.inputStyles[M.inputStyle](this),De=this.display=new $s(I,J,re,M);De.wrapper.CodeMirror=this,_l(this),M.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},M.autofocus&&!p&&De.input.focus(),c&&o<11&&setTimeout(function(){return q.display.input.reset(!0)},20),de(this),Wl(),Zi(this),this.curOp.forceUpdate=!0,Qn(this,J),M.autofocus&&!p||this.hasFocus()?setTimeout(function(){q.hasFocus()&&!q.state.focused&&pa(q)},20):Oi(this);for(var mt in Al)Al.hasOwnProperty(mt)&&Al[mt](this,M[mt],js);ls(this),M.finishInit&&M.finishInit(this);for(var Nt=0;Nt20*20}Be(M.scroller,"touchstart",function(zt){if(!Ge(I,zt)&&!De(zt)&&!Ol(I,zt)){M.input.ensurePolled(),clearTimeout(q);var Yt=+new Date;M.activeTouch={start:Yt,moved:!1,prev:Yt-J.end<=300?J:null},zt.touches.length==1&&(M.activeTouch.left=zt.touches[0].pageX,M.activeTouch.top=zt.touches[0].pageY)}}),Be(M.scroller,"touchmove",function(){M.activeTouch&&(M.activeTouch.moved=!0)}),Be(M.scroller,"touchend",function(zt){var Yt=M.activeTouch;if(Yt&&!St(M,zt)&&Yt.left!=null&&!Yt.moved&&new Date-Yt.start<300){var Cr=I.coordsChar(M.activeTouch,"page"),Ur;!Yt.prev||mt(Yt,Yt.prev)?Ur=new oe(Cr,Cr):!Yt.prev.prev||mt(Yt,Yt.prev.prev)?Ur=I.findWordAt(Cr):Ur=new oe(Dt(Cr.line,0),st(I.doc,Dt(Cr.line+1,0))),I.setSelection(Ur.anchor,Ur.head),I.focus(),Ve(zt)}re()}),Be(M.scroller,"touchcancel",re),Be(M.scroller,"scroll",function(){M.scroller.clientHeight&&(Gi(I,M.scroller.scrollTop),go(I,M.scroller.scrollLeft,!0),wt(I,"scroll",I))}),Be(M.scroller,"mousewheel",function(zt){return Os(I,zt)}),Be(M.scroller,"DOMMouseScroll",function(zt){return Os(I,zt)}),Be(M.wrapper,"scroll",function(){return M.wrapper.scrollTop=M.wrapper.scrollLeft=0}),M.dragFunctions={enter:function(Yt){Ge(I,Yt)||it(Yt)},over:function(Yt){Ge(I,Yt)||(Ml(I,Yt),it(Yt))},start:function(Yt){return Rl(I,Yt)},drop:Za(I,ac),leave:function(Yt){Ge(I,Yt)||bl(I)}};var Nt=M.input.getField();Be(Nt,"keyup",function(zt){return Bs.call(I,zt)}),Be(Nt,"keydown",Za(I,Ws)),Be(Nt,"keypress",Za(I,Us)),Be(Nt,"focus",function(zt){return pa(I,zt)}),Be(Nt,"blur",function(zt){return Oi(I,zt)})}var Ue=[];ot.defineInitHook=function(I){return Ue.push(I)};function bt(I,M,q,J){var re=I.doc,De;q==null&&(q="add"),q=="smart"&&(re.mode.indent?De=Ht(I,M).state:q="prev");var mt=I.options.tabSize,Nt=te(re,M),zt=K(Nt.text,null,mt);Nt.stateAfter&&(Nt.stateAfter=null);var Yt=Nt.text.match(/^\s*/)[0],Cr;if(!J&&!/\S/.test(Nt.text))Cr=0,q="not";else if(q=="smart"&&(Cr=re.mode.indent(De,Nt.text.slice(Yt.length),Nt.text),Cr==G||Cr>150)){if(!J)return;q="prev"}q=="prev"?M>re.first?Cr=K(te(re,M-1).text,null,mt):Cr=0:q=="add"?Cr=zt+I.options.indentUnit:q=="subtract"?Cr=zt-I.options.indentUnit:typeof q=="number"&&(Cr=zt+q),Cr=Math.max(0,Cr);var Ur="",en=0;if(I.options.indentWithTabs)for(var nn=Math.floor(Cr/mt);nn;--nn)en+=mt,Ur+=" ";if(enmt,zt=or(M),Yt=null;if(Nt&&J.ranges.length>1)if(Ft&&Ft.text.join(` `)==M){if(J.ranges.length%Ft.text.length==0){Yt=[];for(var Cr=0;Cr=0;en--){var nn=J.ranges[en],xn=nn.from(),Bn=nn.to();nn.empty()&&(q&&q>0?xn=Dt(xn.line,xn.ch-q):I.state.overwrite&&!Nt?Bn=Dt(Bn.line,Math.min(te(De,Bn.line).text.length,Bn.ch+Xe(zt).length)):Nt&&Ft&&Ft.lineWise&&Ft.text.join(` `)==zt.join(` `)&&(xn=Bn=Dt(xn.line,0)));var Zn={from:xn,to:Bn,text:Yt?Yt[en%Yt.length]:zt,origin:re||(Nt?"paste":I.state.cutIncoming>mt?"cut":"+input")};bs(I.doc,Zn),Tr(I,"inputRead",I,Zn)}M&&!Nt&&yr(I,M),_a(I),I.curOp.updateInput<2&&(I.curOp.updateInput=Ur),I.curOp.typing=!0,I.state.pasteIncoming=I.state.cutIncoming=-1}function lr(I,M){var q=I.clipboardData&&I.clipboardData.getData("Text");if(q)return I.preventDefault(),!M.isReadOnly()&&!M.options.disableInput&&bo(M,function(){return ar(M,q,0,null,"paste")}),!0}function yr(I,M){if(!I.options.electricChars||!I.options.smartIndent)return;for(var q=I.doc.sel,J=q.ranges.length-1;J>=0;J--){var re=q.ranges[J];if(re.head.ch>100||J&&q.ranges[J-1].head.line==re.head.line)continue;var De=I.getModeAt(re.head),mt=!1;if(De.electricChars){for(var Nt=0;Nt-1){mt=bt(I,re.head.line,"smart");break}}else De.electricInput&&(De.electricInput.test(te(I.doc,re.head.line).text.slice(0,re.head.ch))&&(mt=bt(I,re.head.line,"smart")));mt&&Tr(I,"electricInput",I,re.head.line)}}function Vr(I){for(var M=[],q=[],J=0;JDe&&(bt(this,Nt.head.line,J,!0),De=Nt.head.line,mt==this.doc.sel.primIndex&&_a(this));else{var zt=Nt.from(),Yt=Nt.to(),Cr=Math.max(De,zt.line);De=Math.min(this.lastLine(),Yt.line-(Yt.ch?0:1))+1;for(var Ur=Cr;Ur0&&ns(this.doc,mt,new oe(zt,en[mt].to()),le)}}}),getTokenAt:function(re,De){return Ar(this,re,De)},getLineTokens:function(re,De){return Ar(this,Dt(re),De,!0)},getTokenTypeAt:function(re){re=st(this.doc,re);var De=ft(this,te(this.doc,re.line)),mt=0,Nt=(De.length-1)/2,zt=re.ch,Yt;if(zt==0)Yt=De[2];else for(;;){var Cr=mt+Nt>>1;if((Cr?De[Cr*2-1]:0)>=zt)Nt=Cr;else if(De[Cr*2+1]Yt&&(re=Yt,Nt=!0),zt=te(this.doc,re)}else zt=re;return Ri(this,zt,{top:0,left:0},De||"page",mt||Nt).top+(Nt?this.doc.height-Ln(zt):0)},defaultTextHeight:function(){return Ai(this.display)},defaultCharWidth:function(){return _i(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(re,De,mt,Nt,zt){var Yt=this.display;re=Mi(this,st(this.doc,re));var Cr=re.bottom,Ur=re.left;if(De.style.position="absolute",De.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(De),Yt.sizer.appendChild(De),Nt=="over")Cr=re.top;else if(Nt=="above"||Nt=="near"){var en=Math.max(Yt.wrapper.clientHeight,this.doc.height),nn=Math.max(Yt.sizer.clientWidth,Yt.lineSpace.clientWidth);(Nt=="above"||re.bottom+De.offsetHeight>en)&&re.top>De.offsetHeight?Cr=re.top-De.offsetHeight:re.bottom+De.offsetHeight<=en&&(Cr=re.bottom),Ur+De.offsetWidth>nn&&(Ur=nn-De.offsetWidth)}De.style.top=Cr+"px",De.style.left=De.style.right="",zt=="right"?(Ur=Yt.sizer.clientWidth-De.offsetWidth,De.style.right="0px"):(zt=="left"?Ur=0:zt=="middle"&&(Ur=(Yt.sizer.clientWidth-De.offsetWidth)/2),De.style.left=Ur+"px"),mt&&Ca(this,{left:Ur,top:Cr,right:Ur+De.offsetWidth,bottom:Cr+De.offsetHeight})},triggerOnKeyDown:Ga(Ws),triggerOnKeyPress:Ga(Us),triggerOnKeyUp:Bs,triggerOnMouseDown:Ga(Ll),execCommand:function(re){if(zs.hasOwnProperty(re))return zs[re].call(null,this)},triggerElectric:Ga(function(J){yr(this,J)}),findPosH:function(re,De,mt,Nt){var zt=1;De<0&&(zt=-1,De=-De);for(var Yt=st(this.doc,re),Cr=0;Cr0&&Ur(mt.charAt(Nt-1));)--Nt;for(;zt.5||this.options.lineWrapping)&&Aa(this),wt(this,"refresh",this)}),swapDoc:Ga(function(J){var re=this.doc;return re.cm=null,this.state.selectingText&&this.state.selectingText(),Qn(this,J),yi(this),this.display.input.reset(),ki(this,J.scrollLeft,J.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,re),re}),phrase:function(re){var De=this.options.phrases;return De&&Object.prototype.hasOwnProperty.call(De,re)?De[re]:re},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},lt(I),I.registerHelper=function(J,re,De){q.hasOwnProperty(J)||(q[J]=I[J]={_global:[]}),q[J][re]=De},I.registerGlobalHelper=function(J,re,De,mt){I.registerHelper(J,re,mt),q[J]._global.push({pred:De,val:mt})}}function Gr(I,M,q,J,re){var De=M,mt=q,Nt=te(I,M.line),zt=re&&I.direction=="rtl"?-q:q;function Yt(){var oi=M.line+zt;return oi=I.first+I.size?!1:(M=new Dt(oi,M.ch,M.sticky),Nt=te(I,oi))}function Cr(oi){var li;if(J=="codepoint"){var qe=Nt.text.charCodeAt(M.ch+(J>0?0:-1));isNaN(qe)?li=null:li=new Dt(M.line,Math.max(0,Math.min(Nt.text.length,M.ch+q*(qe>=55296&&qe<56320?2:1))),-q)}else re?li=El(I.cm,Nt,M,q):li=il(Nt,M,q);if(li==null)if(!oi&&Yt())M=fl(re,I.cm,Nt,M.line,zt);else return!1;else M=li;return!0}if(J=="char"||J=="codepoint")Cr();else if(J=="column")Cr(!0);else if(J=="word"||J=="group")for(var Ur=null,en=J=="group",nn=I.cm&&I.cm.getHelper(M,"wordChars"),xn=!0;!(q<0&&!Cr(!xn));xn=!1){var Bn=Nt.text.charAt(M.ch)||` `,Zn=ee(Bn,nn)?"w":en&&Bn==` `?"n":!en||/\s/.test(Bn)?null:"p";if(en&&!xn&&!Zn&&(Zn="s"),Ur&&Ur!=Zn){q<0&&(q=1,Cr(),M.sticky="after");break}if(Zn&&(Ur=Zn),q>0&&!Cr(!xn))break}var Jn=Ms(I,M,De,mt,!0);return Gt(De,Jn)&&(Jn.hitSide=!0),Jn}function dn(I,M,q,J){var re=I.doc,De=M.left,mt;if(J=="page"){var Nt=Math.min(I.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),zt=Math.max(Nt-.5*Ai(I.display),3);mt=(q>0?M.bottom:M.top)+q*zt}else J=="line"&&(mt=q>0?M.bottom+3:M.top-3);for(var Yt;!(Yt=qi(I,De,mt),!Yt.outside);){if(q<0?mt<=0:mt>=re.height){Yt.hitSide=!0;break}mt+=q*5}return Yt}var pn=function(M){this.cm=M,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};pn.prototype.init=function(I){var M=this,q=this,J=q.cm,re=q.div=I.lineDiv;Xr(re,J.options.spellcheck,J.options.autocorrect,J.options.autocapitalize);function De(Nt){for(var zt=Nt.target;zt;zt=zt.parentNode){if(zt==re)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(zt.className))break}return!1}Be(re,"paste",function(Nt){if(!De(Nt)||Ge(J,Nt)||lr(Nt,J))return;o<=11&&setTimeout(Za(J,function(){return M.updateFromDOM()}),20)}),Be(re,"compositionstart",function(Nt){M.composing={data:Nt.data,done:!1}}),Be(re,"compositionupdate",function(Nt){M.composing||(M.composing={data:Nt.data,done:!1})}),Be(re,"compositionend",function(Nt){M.composing&&(Nt.data!=M.composing.data&&M.readFromDOMSoon(),M.composing.done=!0)}),Be(re,"touchstart",function(){return q.forceCompositionEnd()}),Be(re,"input",function(){M.composing||M.readFromDOMSoon()});function mt(Nt){if(!De(Nt)||Ge(J,Nt))return;if(J.somethingSelected())qt({lineWise:!1,text:J.getSelections()}),Nt.type=="cut"&&J.replaceSelection("",null,"cut");else if(J.options.lineWiseCopyCut){var zt=Vr(J);qt({lineWise:!0,text:zt.text}),Nt.type=="cut"&&J.operation(function(){J.setSelections(zt.ranges,0,le),J.replaceSelection("",null,"cut")})}else return;if(Nt.clipboardData){Nt.clipboardData.clearData();var Yt=Ft.text.join(` `);if(Nt.clipboardData.setData("Text",Yt),Nt.clipboardData.getData("Text")==Yt){Nt.preventDefault();return}}var Cr=Br(),Ur=Cr.firstChild;J.display.lineSpace.insertBefore(Cr,J.display.lineSpace.firstChild),Ur.value=Ft.text.join(` `);var en=document.activeElement;U(Ur),setTimeout(function(){J.display.lineSpace.removeChild(Cr),en.focus(),en==re&&q.showPrimarySelection()},50)}Be(re,"copy",mt),Be(re,"cut",mt)},pn.prototype.screenReaderLabelChanged=function(I){I?this.div.setAttribute("aria-label",I):this.div.removeAttribute("aria-label")},pn.prototype.prepareSelection=function(){var I=zi(this.cm,!1);return I.focus=document.activeElement==this.div,I},pn.prototype.showSelection=function(I,M){if(!I||!this.cm.display.view.length)return;(I.focus||M)&&this.showPrimarySelection(),this.showMultipleSelections(I)},pn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},pn.prototype.showPrimarySelection=function(){var I=this.getSelection(),M=this.cm,q=M.doc.sel.primary(),J=q.from(),re=q.to();if(M.display.viewTo==M.display.viewFrom||J.line>=M.display.viewTo||re.line=M.display.viewFrom&&ei(M,J)||{node:Nt[0].measure.map[2],offset:0},Yt=re.lineI.firstLine()&&(J=Dt(J.line-1,te(I.doc,J.line-1).length)),re.ch==te(I.doc,re.line).text.length&&re.lineM.viewTo-1)return!1;var De,mt,Nt;J.line==M.viewFrom||(De=la(I,J.line))==0?(mt=$e(M.view[0].line),Nt=M.view[0].node):(mt=$e(M.view[De].line),Nt=M.view[De-1].node.nextSibling);var zt=la(I,re.line),Yt,Cr;if(zt==M.view.length-1?(Yt=M.viewTo-1,Cr=M.lineDiv.lastChild):(Yt=$e(M.view[zt+1].line)-1,Cr=M.view[zt+1].node.previousSibling),!Nt)return!1;for(var Ur=I.doc.splitLines(Ji(I,Nt,Cr,mt,Yt)),en=be(I.doc,Dt(mt,0),Dt(Yt,te(I.doc,Yt).text.length));Ur.length>1&&en.length>1;)if(Xe(Ur)==Xe(en))Ur.pop(),en.pop(),Yt--;else if(Ur[0]==en[0])Ur.shift(),en.shift(),mt++;else break;for(var nn=0,xn=0,Bn=Ur[0],Zn=en[0],Jn=Math.min(Bn.length,Zn.length);nnJ.ch&&oi.charCodeAt(oi.length-xn-1)==li.charCodeAt(li.length-xn-1);)nn--,xn++;Ur[Ur.length-1]=oi.slice(0,oi.length-xn).replace(/^\u200b+/,""),Ur[0]=Ur[0].slice(nn).replace(/\u200b+$/,"");var Z=Dt(mt,nn),Me=Dt(Yt,en.length?Xe(en).length-xn:0);if(Ur.length>1||Ur[0]||Kt(Z,Me))return qo(I.doc,Ur,Z,Me,"+input"),!0},pn.prototype.ensurePolled=function(){this.forceCompositionEnd()},pn.prototype.reset=function(){this.forceCompositionEnd()},pn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},pn.prototype.readFromDOMSoon=function(){var I=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(I.readDOMTimeout=null,I.composing)if(I.composing.done)I.composing=null;else return;I.updateFromDOM()},80)},pn.prototype.updateFromDOM=function(){var I=this;(this.cm.isReadOnly()||!this.pollContent())&&bo(this.cm,function(){return gi(I.cm)})},pn.prototype.setUneditable=function(I){I.contentEditable="false"},pn.prototype.onKeyPress=function(I){if(I.charCode==0||this.composing)return;I.preventDefault(),this.cm.isReadOnly()||Za(this.cm,ar)(this.cm,String.fromCharCode(I.charCode==null?I.keyCode:I.charCode),0)},pn.prototype.readOnlyChanged=function(I){this.div.contentEditable=String(I!="nocursor")},pn.prototype.onContextMenu=function(){},pn.prototype.resetPosition=function(){},pn.prototype.needsContentAttribute=!0;function ei(I,M){var q=bn(I,M.line);if(!q||q.hidden)return null;var J=te(I.doc,M.line),re=wn(q,J,M.line),De=vt(J,I.doc.direction),mt="left";if(De){var Nt=Le(De,M.ch);mt=Nt%2?"right":"left"}var zt=En(re.map,M.ch,mt);return zt.offset=zt.collapse=="right"?zt.end:zt.start,zt}function ci(I){for(var M=I;M;M=M.parentNode)if(/CodeMirror-gutter-wrapper/.test(M.className))return!0;return!1}function ii(I,M){return M&&(I.bad=!0),I}function Ji(I,M,q,J,re){var De="",mt=!1,Nt=I.doc.lineSeparator(),zt=!1;function Yt(nn){return function(xn){return xn.id==nn}}function Cr(){mt&&(De+=Nt,zt&&(De+=Nt),mt=zt=!1)}function Ur(nn){nn&&(Cr(),De+=nn)}function en(nn){if(nn.nodeType==1){var xn=nn.getAttribute("cm-text");if(xn){Ur(xn);return}var Bn=nn.getAttribute("cm-marker"),Zn;if(Bn){var Jn=I.findMarks(Dt(J,0),Dt(re+1,0),Yt(+Bn));Jn.length&&(Zn=Jn[0].find(0))&&Ur(be(I.doc,Zn.from,Zn.to).join(Nt));return}if(nn.getAttribute("contenteditable")=="false")return;var oi=/^(pre|div|p|li|table|br)$/i.test(nn.nodeName);if(!/^br$/i.test(nn.nodeName)&&nn.textContent.length==0)return;oi&&Cr();for(var li=0;li=9&&M.hasSelection&&(M.hasSelection=null),q.poll()}),Be(re,"paste",function(mt){if(Ge(J,mt)||lr(mt,J))return;J.state.pasteIncoming=+new Date,q.fastPoll()});function De(mt){if(Ge(J,mt))return;if(J.somethingSelected())qt({lineWise:!1,text:J.getSelections()});else if(J.options.lineWiseCopyCut){var Nt=Vr(J);qt({lineWise:!0,text:Nt.text}),mt.type=="cut"?J.setSelections(Nt.ranges,null,le):(q.prevInput="",re.value=Nt.text.join(` `),U(re))}else return;mt.type=="cut"&&(J.state.cutIncoming=+new Date)}Be(re,"cut",De),Be(re,"copy",De),Be(I.scroller,"paste",function(mt){if(St(I,mt)||Ge(J,mt))return;if(!re.dispatchEvent){J.state.pasteIncoming=+new Date,q.focus();return}var Nt=new Event("paste");Nt.clipboardData=mt.clipboardData,re.dispatchEvent(Nt)}),Be(I.lineSpace,"selectstart",function(mt){St(I,mt)||Ve(mt)}),Be(re,"compositionstart",function(){var mt=J.getCursor("from");q.composing&&q.composing.range.clear(),q.composing={start:mt,range:J.markText(mt,J.getCursor("to"),{className:"CodeMirror-composing"})}}),Be(re,"compositionend",function(){q.composing&&(q.poll(),q.composing.range.clear(),q.composing=null)})},Ei.prototype.createField=function(I){this.wrapper=Br(),this.textarea=this.wrapper.firstChild},Ei.prototype.screenReaderLabelChanged=function(I){I?this.textarea.setAttribute("aria-label",I):this.textarea.removeAttribute("aria-label")},Ei.prototype.prepareSelection=function(){var I=this.cm,M=I.display,q=I.doc,J=zi(I);if(I.options.moveInputWithCursor){var re=Mi(I,q.sel.primary().head,"div"),De=M.wrapper.getBoundingClientRect(),mt=M.lineDiv.getBoundingClientRect();J.teTop=Math.max(0,Math.min(M.wrapper.clientHeight-10,re.top+mt.top-De.top)),J.teLeft=Math.max(0,Math.min(M.wrapper.clientWidth-10,re.left+mt.left-De.left))}return J},Ei.prototype.showSelection=function(I){var M=this.cm,q=M.display;O(q.cursorDiv,I.cursors),O(q.selectionDiv,I.selection),I.teTop!=null&&(this.wrapper.style.top=I.teTop+"px",this.wrapper.style.left=I.teLeft+"px")},Ei.prototype.reset=function(I){if(this.contextMenuPending||this.composing)return;var M=this.cm;if(M.somethingSelected()){this.prevInput="";var q=M.getSelection();this.textarea.value=q,M.state.focused&&U(this.textarea),c&&o>=9&&(this.hasSelection=q)}else I||(this.prevInput=this.textarea.value="",c&&o>=9&&(this.hasSelection=null))},Ei.prototype.getField=function(){return this.textarea},Ei.prototype.supportsTouch=function(){return!1},Ei.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!p||H()!=this.textarea))try{this.textarea.focus()}catch(I){}},Ei.prototype.blur=function(){this.textarea.blur()},Ei.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ei.prototype.receivedFocus=function(){this.slowPoll()},Ei.prototype.slowPoll=function(){var I=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){I.poll(),I.cm.state.focused&&I.slowPoll()})},Ei.prototype.fastPoll=function(){var I=!1,M=this;M.pollingFast=!0;function q(){var J=M.poll();!J&&!I?(I=!0,M.polling.set(60,q)):(M.pollingFast=!1,M.slowPoll())}M.polling.set(20,q)},Ei.prototype.poll=function(){var I=this,M=this.cm,q=this.textarea,J=this.prevInput;if(this.contextMenuPending||!M.state.focused||Bt(q)&&!J&&!this.composing||M.isReadOnly()||M.options.disableInput||M.state.keySeq)return!1;var re=q.value;if(re==J&&!M.somethingSelected())return!1;if(c&&o>=9&&this.hasSelection===re||b&&/[\uf700-\uf7ff]/.test(re))return M.display.input.reset(),!1;if(M.doc.sel==M.display.selForContextMenu){var De=re.charCodeAt(0);if(De==8203&&!J&&(J="\u200B"),De==8666)return this.reset(),this.cm.execCommand("undo")}for(var mt=0,Nt=Math.min(J.length,re.length);mt1e3||re.indexOf(` `)>-1?q.value=I.prevInput="":I.prevInput=re,I.composing&&(I.composing.range.clear(),I.composing.range=M.markText(I.composing.start,M.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ei.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ei.prototype.onKeyPress=function(){c&&o>=9&&(this.hasSelection=null),this.fastPoll()},Ei.prototype.onContextMenu=function(I){var M=this,q=M.cm,J=q.display,re=M.textarea;M.contextMenuPending&&M.contextMenuPending();var De=ca(q,I),mt=J.scroller.scrollTop;if(!De||u)return;var Nt=q.options.resetSelectionOnContextMenu;Nt&&q.doc.sel.contains(De)==-1&&Za(q,Eo)(q.doc,Te(De),le);var zt=re.style.cssText,Yt=M.wrapper.style.cssText,Cr=M.wrapper.offsetParent.getBoundingClientRect();M.wrapper.style.cssText="position: static",re.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(I.clientY-Cr.top-5)+"px; left: "+(I.clientX-Cr.left-5)+`px; z-index: 1000; background: `+(c?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ur;i&&(Ur=window.scrollY),J.input.focus(),i&&window.scrollTo(null,Ur),J.input.reset(),q.somethingSelected()||(re.value=M.prevInput=" "),M.contextMenuPending=nn,J.selForContextMenu=q.doc.sel,clearTimeout(J.detectingSelectAll);function en(){if(re.selectionStart!=null){var Bn=q.somethingSelected(),Zn="\u200B"+(Bn?re.value:"");re.value="\u21DA",re.value=Zn,M.prevInput=Bn?"":"\u200B",re.selectionStart=1,re.selectionEnd=Zn.length,J.selForContextMenu=q.doc.sel}}function nn(){if(M.contextMenuPending!=nn)return;if(M.contextMenuPending=!1,M.wrapper.style.cssText=Yt,re.style.cssText=zt,c&&o<9&&J.scrollbars.setScrollTop(J.scroller.scrollTop=mt),re.selectionStart!=null){(!c||c&&o<9)&&en();var Bn=0,Zn=function Jn(){J.selForContextMenu==q.doc.sel&&re.selectionStart==0&&re.selectionEnd>0&&M.prevInput=="\u200B"?Za(q,ks)(q):Bn++<10?J.detectingSelectAll=setTimeout(Jn,500):(J.selForContextMenu=null,J.input.reset())};J.detectingSelectAll=setTimeout(Zn,200)}}if(c&&o>=9&&en(),T){it(I);var xn=function Bn(){He(window,"mouseup",Bn),setTimeout(nn,20)};Be(window,"mouseup",xn)}else setTimeout(nn,50)},Ei.prototype.readOnlyChanged=function(I){I||this.reset(),this.textarea.disabled=I=="nocursor",this.textarea.readOnly=!!I},Ei.prototype.setUneditable=function(){},Ei.prototype.needsContentAttribute=!1;function co(I,M){if(M=M?P(M):{},M.value=I.value,!M.tabindex&&I.tabIndex&&(M.tabindex=I.tabIndex),!M.placeholder&&I.placeholder&&(M.placeholder=I.placeholder),M.autofocus==null){var q=H();M.autofocus=q==I||I.getAttribute("autofocus")!=null&&q==document.body}function J(){I.value=Nt.getValue()}var re;if(I.form&&(Be(I.form,"submit",J),!M.leaveSubmitMethodAlone)){var De=I.form;re=De.submit;try{var mt=De.submit=function(){J(),De.submit=re,De.submit(),De.submit=mt}}catch(zt){}}M.finishInit=function(zt){zt.save=J,zt.getTextArea=function(){return I},zt.toTextArea=function(){zt.toTextArea=isNaN,J(),I.parentNode.removeChild(zt.getWrapperElement()),I.style.display="",I.form&&(He(I.form,"submit",J),!M.leaveSubmitMethodAlone&&typeof I.form.submit=="function"&&(I.form.submit=re))}},I.style.display="none";var Nt=ot(function(zt){return I.parentNode.insertBefore(zt,I.nextSibling)},M);return Nt}function Ko(I){I.off=He,I.on=Be,I.wheelEventPixels=Vs,I.Doc=es,I.splitLines=or,I.countColumn=K,I.findColumn=we,I.isWordChar=ce,I.Pass=G,I.signal=wt,I.Line=ni,I.changeEnd=We,I.scrollbarModel=ro,I.Pos=Dt,I.cmpPos=Kt,I.modes=ue,I.mimeModes=Ne,I.resolveMode=Ye,I.getMode=Pe,I.modeExtensions=nt,I.extendMode=At,I.copyState=Ot,I.startState=he,I.innerMode=ne,I.commands=zs,I.keyMap=Ss,I.keyName=Vl,I.isModifierKey=Sl,I.lookupKey=Ps,I.normalizeKeyMap=nl,I.StringStream=Q,I.SharedTextMarker=el,I.TextMarker=_s,I.LineWidget=ll,I.e_preventDefault=Ve,I.e_stopPropagation=ie,I.e_stop=it,I.addClass=W,I.contains=B,I.rmClass=y,I.keyNames=Fs}uc(ot),Fr(ot);var ao="iter insert remove copy getEditor constructor".split(" ");for(var Uo in es.prototype)es.prototype.hasOwnProperty(Uo)&&z(ao,Uo)<0&&(ot.prototype[Uo]=function(I){return function(){return I.apply(this.doc,arguments)}}(es.prototype[Uo]));return lt(es),ot.inputStyles={textarea:Ei,contenteditable:pn},ot.defineMode=function(I){!ot.defaults.mode&&I!="null"&&(ot.defaults.mode=I),je.apply(this,arguments)},ot.defineMIME=Ke,ot.defineMode("null",function(){return{token:function(M){return M.skipToEnd()}}}),ot.defineMIME("text/plain","null"),ot.defineExtension=function(I,M){ot.prototype[I]=M},ot.defineDocExtension=function(I,M){es.prototype[I]=M},ot.fromTextArea=co,Ko(ot),ot.version="5.58.2",ot})},Vy0f:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var g=f(e("iYpf"));function f(m){return m&&m.__esModule?m:{default:m}}var A=g;_.default=A,D.exports=A},W2nI:function(D,_,e){var g=e("IwbS"),f=e("ProS"),A=e("bYtY"),m=["itemStyle","opacity"],v=["emphasis","itemStyle","opacity"],h=["lineStyle","opacity"],c=["emphasis","lineStyle","opacity"];function o(l,t){return l.getVisual("opacity")||l.getModel().get(t)}function i(l,t,s){var d=l.getGraphicEl(),p=o(l,t);s!=null&&(p==null&&(p=1),p*=s),d.downplay&&d.downplay(),d.traverse(function(b){b.type!=="group"&&b.setStyle("opacity",p)})}function n(l,t){var s=o(l,t),d=l.getGraphicEl();d.traverse(function(p){p.type!=="group"&&p.setStyle("opacity",s)}),d.highlight&&d.highlight()}var a=g.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(l,t){var s=t.extent;l.moveTo(t.x1,t.y1),l.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient==="vertical"?(l.lineTo(t.x2+s,t.y2),l.bezierCurveTo(t.cpx2+s,t.cpy2,t.cpx1+s,t.cpy1,t.x1+s,t.y1)):(l.lineTo(t.x2,t.y2+s),l.bezierCurveTo(t.cpx2,t.cpy2+s,t.cpx1,t.cpy1+s,t.x1,t.y1+s)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),u=f.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,t,s){var d=this,p=l.getGraph(),b=this.group,w=l.layoutInfo,E=w.width,S=w.height,x=l.getData(),T=l.getData("edge"),L=l.get("orient");this._model=l,b.removeAll(),b.attr("position",[w.x,w.y]),p.eachEdge(function(y){var C=new a;C.dataIndex=y.dataIndex,C.seriesIndex=l.seriesIndex,C.dataType="edge";var O=y.getModel("lineStyle"),N=O.get("curveness"),k=y.node1.getLayout(),F=y.node1.getModel(),B=F.get("localX"),H=F.get("localY"),W=y.node2.getLayout(),R=y.node2.getModel(),U=R.get("localX"),j=R.get("localY"),P=y.getLayout(),K,V,z,X,G,le,Y,me;C.shape.extent=Math.max(1,P.dy),C.shape.orient=L,L==="vertical"?(K=(B!=null?B*E:k.x)+P.sy,V=(H!=null?H*S:k.y)+k.dy,z=(U!=null?U*E:W.x)+P.ty,X=j!=null?j*S:W.y,G=K,le=V*(1-N)+X*N,Y=z,me=V*N+X*(1-N)):(K=(B!=null?B*E:k.x)+k.dx,V=(H!=null?H*S:k.y)+P.sy,z=U!=null?U*E:W.x,X=(j!=null?j*S:W.y)+P.ty,G=K*(1-N)+z*N,le=V,Y=K*N+z*(1-N),me=X),C.setShape({x1:K,y1:V,x2:z,y2:X,cpx1:G,cpy1:le,cpx2:Y,cpy2:me}),C.setStyle(O.getItemStyle());switch(C.style.fill){case"source":C.style.fill=y.node1.getVisual("color");break;case"target":C.style.fill=y.node2.getVisual("color");break}g.setHoverStyle(C,y.getModel("emphasis.lineStyle").getItemStyle()),b.add(C),T.setItemGraphicEl(y.dataIndex,C)}),p.eachNode(function(y){var C=y.getLayout(),O=y.getModel(),N=O.get("localX"),k=O.get("localY"),F=O.getModel("label"),B=O.getModel("emphasis.label"),H=new g.Rect({shape:{x:N!=null?N*E:C.x,y:k!=null?k*S:C.y,width:C.dx,height:C.dy},style:O.getModel("itemStyle").getItemStyle()}),W=y.getModel("emphasis.itemStyle").getItemStyle();g.setLabelStyle(H.style,W,F,B,{labelFetcher:l,labelDataIndex:y.dataIndex,defaultText:y.id,isRectText:!0}),H.setStyle("fill",y.getVisual("color")),g.setHoverStyle(H,W),b.add(H),x.setItemGraphicEl(y.dataIndex,H),H.dataType="node"}),x.eachItemGraphicEl(function(y,C){var O=x.getItemModel(C);O.get("draggable")&&(y.drift=function(N,k){d._focusAdjacencyDisabled=!0,this.shape.x+=N,this.shape.y+=k,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:x.getRawIndex(C),localX:this.shape.x/E,localY:this.shape.y/S})},y.ondragend=function(){d._focusAdjacencyDisabled=!1},y.draggable=!0,y.cursor="move"),y.highlight=function(){this.trigger("emphasis")},y.downplay=function(){this.trigger("normal")},y.focusNodeAdjHandler&&y.off("mouseover",y.focusNodeAdjHandler),y.unfocusNodeAdjHandler&&y.off("mouseout",y.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(y.on("mouseover",y.focusNodeAdjHandler=function(){d._focusAdjacencyDisabled||(d._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:y.dataIndex}))}),y.on("mouseout",y.unfocusNodeAdjHandler=function(){d._focusAdjacencyDisabled||d._dispatchUnfocus(s)}))}),T.eachItemGraphicEl(function(y,C){var O=T.getItemModel(C);y.focusNodeAdjHandler&&y.off("mouseover",y.focusNodeAdjHandler),y.unfocusNodeAdjHandler&&y.off("mouseout",y.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(y.on("mouseover",y.focusNodeAdjHandler=function(){d._focusAdjacencyDisabled||(d._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:y.dataIndex}))}),y.on("mouseout",y.unfocusNodeAdjHandler=function(){d._focusAdjacencyDisabled||d._dispatchUnfocus(s)}))}),!this._data&&l.get("animation")&&b.setClipPath(r(b.getBoundingRect(),l,function(){b.removeClipPath()})),this._data=l.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(l){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,t,s,d){var p=l.getData(),b=p.graph,w=d.dataIndex,E=p.getItemModel(w),S=d.edgeDataIndex;if(w==null&&S==null)return;var x=b.getNodeByIndex(w),T=b.getEdgeByIndex(S);if(b.eachNode(function(y){i(y,m,.1)}),b.eachEdge(function(y){i(y,h,.1)}),x){n(x,v);var L=E.get("focusNodeAdjacency");L==="outEdges"?A.each(x.outEdges,function(y){if(y.dataIndex<0)return;n(y,c),n(y.node2,v)}):L==="inEdges"?A.each(x.inEdges,function(y){if(y.dataIndex<0)return;n(y,c),n(y.node1,v)}):L==="allEdges"&&A.each(x.edges,function(y){if(y.dataIndex<0)return;n(y,c),y.node1!==x&&n(y.node1,v),y.node2!==x&&n(y.node2,v)})}T&&(n(T,c),n(T.node1,v),n(T.node2,v))},unfocusNodeAdjacency:function(l,t,s,d){var p=l.getGraph();p.eachNode(function(b){i(b,m)}),p.eachEdge(function(b){i(b,h)})}});function r(l,t,s){var d=new g.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return g.initProps(d,{shape:{width:l.width+20}},t,s),d}D.exports=u},W4dC:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,A=e("bYtY"),m=A.each,v=A.createHashMap,h=e("7DRL"),c=e("TIY9"),o=e("yS9w"),i=e("mFDi"),n={geoJSON:c,svg:o},a={load:function(t,s,d){var p=[],b=v(),w=v(),E,S=l(t);return m(S,function(x){var T=n[x.type].load(t,x,d);m(T.regions,function(y){var C=y.name;s&&s.hasOwnProperty(C)&&(y=y.cloneShallow(C=s[C])),p.push(y),b.set(C,y),w.set(C,y.center)});var L=T.boundingRect;L&&(E?E.union(L):E=L.clone())}),{regions:p,regionsMap:b,nameCoordMap:w,boundingRect:E||new i(0,0,0,0)}},makeGraphic:u("makeGraphic"),removeGraphic:u("removeGraphic")};function u(t){return function(s,d){var p=l(s),b=[];return m(p,function(w){var E=n[w.type][t];E&&b.push(E(s,w,d))}),b}}function r(t){}function l(t){var s=h.retrieveMap(t)||[];return s}D.exports=a},WGYa:function(D,_,e){var g=e("7yuC"),f=g.forceLayout,A=e("HF/U"),m=A.simpleLayout,v=e("lOQZ"),h=v.circularLayout,c=e("OELB"),o=c.linearMap,i=e("QBsz"),n=e("bYtY");function a(u){u.eachSeriesByType("graph",function(r){var l=r.coordinateSystem;if(l&&l.type!=="view")return;if(r.get("layout")==="force"){var t=r.preservedPoints||{},s=r.getGraph(),d=s.data,p=s.edgeData,b=r.getModel("force"),w=b.get("initLayout");r.preservedPoints?d.each(function(F){var B=d.getId(F);d.setItemLayout(F,t[B]||[NaN,NaN])}):!w||w==="none"?m(r):w==="circular"&&h(r,"value");var E=d.getDataExtent("value"),S=p.getDataExtent("value"),x=b.get("repulsion"),T=b.get("edgeLength");n.isArray(x)||(x=[x,x]),n.isArray(T)||(T=[T,T]),T=[T[1],T[0]];var L=d.mapArray("value",function(F,B){var H=d.getItemLayout(B),W=o(F,E,x);return isNaN(W)&&(W=(x[0]+x[1])/2),{w:W,rep:W,fixed:d.getItemModel(B).get("fixed"),p:!H||isNaN(H[0])||isNaN(H[1])?null:H}}),y=p.mapArray("value",function(F,B){var H=s.getEdgeByIndex(B),W=o(F,S,T);isNaN(W)&&(W=(T[0]+T[1])/2);var R=H.getModel();return{n1:L[H.node1.dataIndex],n2:L[H.node2.dataIndex],d:W,curveness:R.get("lineStyle.curveness")||0,ignoreForceLayout:R.get("ignoreForceLayout")}}),l=r.coordinateSystem,C=l.getBoundingRect(),O=f(L,y,{rect:C,gravity:b.get("gravity"),friction:b.get("friction")}),N=O.step;O.step=function(F){for(var B=0,H=L.length;B=0&&n[r].disabled;r-=1);var l=null;return r!==-1&&(l=u[r],u.splice(r,1)),{values:u,removedValue:l}}var h=typeof window!="undefined"&&window.document&&window.document.documentElement,c=h,o=0;function i(){var n;return c?(n=o,o+=1):n="TEST_OR_SSR",n}},"WN+l":function(D,_,e){var g=e("bYtY"),f=e("IwbS");function A(v,h,c,o){var i=c.axis;if(i.scale.isBlank())return;var n=c.getModel("splitArea"),a=n.getModel("areaStyle"),u=a.get("color"),r=o.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:n,clamp:!0});if(!l.length)return;var t=u.length,s=v.__splitAreaColors,d=g.createHashMap(),p=0;if(s)for(var b=0;b=0;N--)y[N]==null&&(delete C[L[N]],L.pop())}function u(T,L){var y=T.visual,C=[];g.isObject(y)?v(y,function(N){C.push(N)}):y!=null&&C.push(y);var O={color:1,symbol:1};!L&&C.length===1&&!O.hasOwnProperty(T.type)&&(C[1]=C[0]),w(T,C)}function r(T){return{applyVisual:function(L,y,C){L=this.mapValueToVisual(L),C("color",T(y("color"),L))},_doMap:p([0,1])}}function l(T){var L=this.option.visual;return L[Math.round(m(T,[0,1],[0,L.length-1],!0))]||{}}function t(T){return function(L,y,C){C(T,this.mapValueToVisual(L))}}function s(T){var L=this.option.visual;return L[this.option.loop&&T!==c?T%L.length:T]}function d(){return this.option.visual[0]}function p(T){return{linear:function(L){return m(L,T,this.option.visual,!0)},category:s,piecewise:function(L,y){var C=b.call(this,y);return C==null&&(C=m(L,T,this.option.visual,!0)),C},fixed:d}}function b(T){var L=this.option,y=L.pieceList;if(L.hasSpecialVisual){var C=o.findPieceIndex(T,y),O=y[C];if(O&&O.visual)return O.visual[this.type]}}function w(T,L){return T.visual=L,T.type==="color"&&(T.parsedVisual=g.map(L,function(y){return f.parse(y)})),L}var E={linear:function(T){return m(T,this.option.dataExtent,[0,1],!0)},piecewise:function(T){var L=this.option.pieceList,y=o.findPieceIndex(T,L,!0);if(y!=null)return m(y,[0,L.length-1],[0,1],!0)},category:function(T){var L=this.option.categories?this.option.categoryMap[T]:T;return L==null?c:L},fixed:g.noop};o.listVisualTypes=function(){var T=[];return g.each(i,function(L,y){T.push(y)}),T},o.addVisualHandler=function(T,L){i[T]=L},o.isValidType=function(T){return i.hasOwnProperty(T)},o.eachVisual=function(T,L,y){g.isObject(T)?g.each(T,L,y):L.call(y,T)},o.mapVisual=function(T,L,y){var C,O=g.isArray(T)?[]:g.isObject(T)?{}:(C=!0,null);return o.eachVisual(T,function(N,k){var F=L.call(y,N,k);C?O=F:O[k]=F}),O},o.retrieveVisuals=function(T){var L={},y;return T&&v(i,function(C,O){T.hasOwnProperty(O)&&(L[O]=T[O],y=!0)}),y?L:null},o.prepareVisualTypes=function(T){if(h(T)){var L=[];v(T,function(y,C){L.push(C)}),T=L}else if(g.isArray(T))T=T.slice();else return[];return T.sort(function(y,C){return C==="color"&&y!=="color"&&y.indexOf("color")===0?1:-1}),T},o.dependsOn=function(T,L){return L==="color"?!!(T&&T.indexOf(L)===0):T===L},o.findPieceIndex=function(T,L,y){for(var C,O=Infinity,N=0,k=L.length;N1&&arguments[1]!==void 0?arguments[1]:!1,F=N.getAttribute("id")||N.getAttribute("data-reactid")||N.getAttribute("name");if(k&&l[F])return l[F];var B=window.getComputedStyle(N),H=B.getPropertyValue("box-sizing")||B.getPropertyValue("-moz-box-sizing")||B.getPropertyValue("-webkit-box-sizing"),W=parseFloat(B.getPropertyValue("padding-bottom"))+parseFloat(B.getPropertyValue("padding-top")),R=parseFloat(B.getPropertyValue("border-bottom-width"))+parseFloat(B.getPropertyValue("border-top-width")),U=r.map(function(P){return"".concat(P,":").concat(B.getPropertyValue(P))}).join(";"),j={sizingStyle:U,paddingSize:W,borderSize:R,boxSizing:H};return k&&F&&(l[F]=j),j}function d(N){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;t||(t=document.createElement("textarea"),t.setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),N.getAttribute("wrap")?t.setAttribute("wrap",N.getAttribute("wrap")):t.removeAttribute("wrap");var H=s(N,k),W=H.paddingSize,R=H.borderSize,U=H.boxSizing,j=H.sizingStyle;t.setAttribute("style","".concat(j,";").concat(u)),t.value=N.value||N.placeholder||"";var P=Number.MIN_SAFE_INTEGER,K=Number.MAX_SAFE_INTEGER,V=t.scrollHeight,z;if(U==="border-box"?V+=R:U==="content-box"&&(V-=W),F!==null||B!==null){t.value=" ";var X=t.scrollHeight-W;F!==null&&(P=X*F,U==="border-box"&&(P=P+W+R),V=Math.max(P,V)),B!==null&&(K=X*B,U==="border-box"&&(K=K+W+R),z=V>K?"":"hidden",V=Math.min(K,V))}return{height:V,minHeight:P,maxHeight:K,overflowY:z}}function p(N,k){var F=Object.keys(N);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(N);k&&(B=B.filter(function(H){return Object.getOwnPropertyDescriptor(N,H).enumerable})),F.push.apply(F,B)}return F}function b(N){for(var k=1;k=0;if(!S)i(p,b,b,w),b.zrDelta=b.wheelDelta?b.wheelDelta/120:-(b.detail||0)/3;else{var x=E!=="touchend"?b.targetTouches[0]:b.changedTouches[0];x&&i(p,x,b,w)}var T=b.button;return b.which==null&&T!==void 0&&c.test(b.type)&&(b.which=T&1?1:T&2?3:T&4?2:0),b}function r(p,b,w,E){h?p.addEventListener(b,w,E):p.attachEvent("on"+b,w)}function l(p,b,w,E){h?p.removeEventListener(b,w,E):p.detachEvent("on"+b,w)}var t=h?function(p){p.preventDefault(),p.stopPropagation(),p.cancelBubble=!0}:function(p){p.returnValue=!1,p.cancelBubble=!0};function s(p){return p.which===2||p.which===3}function d(p){return p.which>1}_.clientToLocal=i,_.getNativeEvent=a,_.normalizeEvent=u,_.addEventListener=r,_.removeEventListener=l,_.stop=t,_.isMiddleOrRightButtonOnMouseUpDown=s,_.notLeftMouse=d},YJ9k:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;function g(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function f(v,h){for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[ge].sort(E)}}]),Oe}();function E(Oe,ae){var ge=Oe.node.sortableInfo.index,Le=ae.node.sortableInfo.index;return ge-Le}function S(Oe,ae,ge){return Oe=Oe.slice(),Oe.splice(ge<0?Oe.length+ge:ge,0,Oe.splice(ae,1)[0]),Oe}function x(Oe,ae){return Object.keys(Oe).reduce(function(ge,Le){return ae.indexOf(Le)===-1&&(ge[Le]=Oe[Le]),ge},{})}var T={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},L=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Oe=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ae=(Array.prototype.slice.call(Oe).join("").match(/-(moz|webkit|ms)-/)||Oe.OLink===""&&["","o"])[1];switch(ae){case"ms":return"ms";default:return ae&&ae.length?ae[0].toUpperCase()+ae.substr(1):""}}();function y(Oe,ae){Object.keys(ae).forEach(function(ge){Oe.style[ge]=ae[ge]})}function C(Oe,ae){Oe.style["".concat(L,"Transform")]=ae==null?"":"translate3d(".concat(ae.x,"px,").concat(ae.y,"px,0)")}function O(Oe,ae){Oe.style["".concat(L,"TransitionDuration")]=ae==null?"":"".concat(ae,"ms")}function N(Oe,ae){for(;Oe;){if(ae(Oe))return Oe;Oe=Oe.parentNode}return null}function k(Oe,ae,ge){return Math.max(Oe,Math.min(ge,ae))}function F(Oe){return Oe.substr(-2)==="px"?parseFloat(Oe):0}function B(Oe){var ae=window.getComputedStyle(Oe);return{bottom:F(ae.marginBottom),left:F(ae.marginLeft),right:F(ae.marginRight),top:F(ae.marginTop)}}function H(Oe,ae){var ge=ae.displayName||ae.name;return ge?"".concat(Oe,"(").concat(ge,")"):Oe}function W(Oe,ae){var ge=Oe.getBoundingClientRect();return{top:ge.top+ae.top,left:ge.left+ae.left}}function R(Oe){return Oe.touches&&Oe.touches.length?{x:Oe.touches[0].pageX,y:Oe.touches[0].pageY}:Oe.changedTouches&&Oe.changedTouches.length?{x:Oe.changedTouches[0].pageX,y:Oe.changedTouches[0].pageY}:{x:Oe.pageX,y:Oe.pageY}}function U(Oe){return Oe.touches&&Oe.touches.length||Oe.changedTouches&&Oe.changedTouches.length}function j(Oe,ae){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Oe)return;var Le={left:ge.left+Oe.offsetLeft,top:ge.top+Oe.offsetTop};return Oe.parentNode===ae?Le:j(Oe.parentNode,ae,Le)}function P(Oe,ae,ge){return Oeae?Oe-1:Oe>ge&&Oe0&&ge[Ct].height>0){var Be=vt.getContext("2d");Be.drawImage(ge[Ct],0,0)}}),Le}function we(Oe){var ae,ge,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ge=ae=function(Ze){Object(o.a)(vt,Ze);function vt(){return Object(m.a)(this,vt),Object(h.a)(this,Object(c.a)(vt).apply(this,arguments))}return Object(v.a)(vt,[{key:"componentDidMount",value:function(){var Be=Object(t.findDOMNode)(this);Be.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return p()(Le.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Be=Le.withRef?"wrappedInstance":null;return Object(a.createElement)(Oe,Object(g.a)({ref:Be},this.props))}}]),vt}(a.Component),Object(n.a)(ae,"displayName",H("sortableHandle",Oe)),ge}function pe(Oe){return Oe.sortableHandle!=null}var Fe=function(){function Oe(ae,ge){Object(m.a)(this,Oe),this.container=ae,this.onScrollCallback=ge}return Object(v.a)(Oe,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(ge){var Le=this,Ze=ge.translate,vt=ge.minTranslate,Ct=ge.maxTranslate,Be=ge.width,Rt=ge.height,He={x:0,y:0},wt={x:1,y:1},Ge={x:10,y:10},et=this.container,rt=et.scrollTop,lt=et.scrollLeft,Ve=et.scrollHeight,ie=et.scrollWidth,$=et.clientHeight,it=et.clientWidth,Qe=rt===0,ye=Ve-rt-$===0,Zt=lt===0,ht=ie-lt-it===0;Ze.y>=Ct.y-Rt/2&&!ye?(He.y=1,wt.y=Ge.y*Math.abs((Ct.y-Rt/2-Ze.y)/Rt)):Ze.x>=Ct.x-Be/2&&!ht?(He.x=1,wt.x=Ge.x*Math.abs((Ct.x-Be/2-Ze.x)/Be)):Ze.y<=vt.y+Rt/2&&!Qe?(He.y=-1,wt.y=Ge.y*Math.abs((Ze.y-Rt/2-vt.y)/Rt)):Ze.x<=vt.x+Be/2&&!Zt&&(He.x=-1,wt.x=Ge.x*Math.abs((Ze.x-Be/2-vt.x)/Be)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(He.x!==0||He.y!==0)&&(this.interval=setInterval(function(){Le.isAutoScrolling=!0;var ct={left:wt.x*He.x,top:wt.y*He.y};Le.container.scrollTop+=ct.top,Le.container.scrollLeft+=ct.left,Le.onScrollCallback(ct)},5))}}]),Oe}();function Xe(Oe){var ae=Oe.node;return{height:ae.offsetHeight,width:ae.offsetWidth}}function dt(Oe){var ae=[Y.Input,Y.Textarea,Y.Select,Y.Option,Y.Button];return ae.indexOf(Oe.target.tagName)!==-1?!0:!!N(Oe.target,function(ge){return ge.contentEditable==="true"})}var Ee={axis:l.a.oneOf(["x","y","xy"]),contentWindow:l.a.any,disableAutoscroll:l.a.bool,distance:l.a.number,getContainer:l.a.func,getHelperDimensions:l.a.func,helperClass:l.a.string,helperContainer:l.a.oneOfType([l.a.func,typeof HTMLElement=="undefined"?l.a.any:l.a.instanceOf(HTMLElement)]),hideSortableGhost:l.a.bool,keyboardSortingTransitionDuration:l.a.number,lockAxis:l.a.string,lockOffset:l.a.oneOfType([l.a.number,l.a.string,l.a.arrayOf(l.a.oneOfType([l.a.number,l.a.string]))]),lockToContainerEdges:l.a.bool,onSortEnd:l.a.func,onSortMove:l.a.func,onSortOver:l.a.func,onSortStart:l.a.func,pressDelay:l.a.number,pressThreshold:l.a.number,keyCodes:l.a.shape({lift:l.a.arrayOf(l.a.number),drop:l.a.arrayOf(l.a.number),cancel:l.a.arrayOf(l.a.number),up:l.a.arrayOf(l.a.number),down:l.a.arrayOf(l.a.number)}),shouldCancelStart:l.a.func,transitionDuration:l.a.number,updateBeforeSortStart:l.a.func,useDragHandle:l.a.bool,useWindowAsScrollContainer:l.a.bool},Se={lift:[le.SPACE],drop:[le.SPACE],cancel:[le.ESC],up:[le.UP,le.LEFT],down:[le.DOWN,le.RIGHT]},at={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Xe,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Se,shouldCancelStart:dt,transitionDuration:300,useWindowAsScrollContainer:!1},_e=Object.keys(Ee);function ce(Oe){p()(!(Oe.distance&&Oe.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function ee(Oe,ae){try{var ge=Oe()}catch(Le){return ae(!0,Le)}return ge&&ge.then?ge.then(ae.bind(null,!1),ae.bind(null,!0)):ae(!1,value)}function se(Oe){var ae,ge,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ge=ae=function(Ze){Object(o.a)(vt,Ze);function vt(Ct){var Be;return Object(m.a)(this,vt),Be=Object(h.a)(this,Object(c.a)(vt).call(this,Ct)),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"state",{}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleStart",function(Rt){var He=Be.props,wt=He.distance,Ge=He.shouldCancelStart;if(Rt.button===2||Ge(Rt))return;Be.touched=!0,Be.position=R(Rt);var et=N(Rt.target,function(it){return it.sortableInfo!=null});if(et&&et.sortableInfo&&Be.nodeIsChild(et)&&!Be.state.sorting){var rt=Be.props.useDragHandle,lt=et.sortableInfo,Ve=lt.index,ie=lt.collection,$=lt.disabled;if($)return;if(rt&&!N(Rt.target,pe))return;Be.manager.active={collection:ie,index:Ve},!U(Rt)&&Rt.target.tagName===Y.Anchor&&Rt.preventDefault(),wt||(Be.props.pressDelay===0?Be.handlePress(Rt):Be.pressTimer=setTimeout(function(){return Be.handlePress(Rt)},Be.props.pressDelay))}}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"nodeIsChild",function(Rt){return Rt.sortableInfo.manager===Be.manager}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleMove",function(Rt){var He=Be.props,wt=He.distance,Ge=He.pressThreshold;if(!Be.state.sorting&&Be.touched&&!Be._awaitingUpdateBeforeSortStart){var et=R(Rt),rt={x:Be.position.x-et.x,y:Be.position.y-et.y},lt=Math.abs(rt.x)+Math.abs(rt.y);Be.delta=rt,!wt&&(!Ge||lt>=Ge)?(clearTimeout(Be.cancelTimer),Be.cancelTimer=setTimeout(Be.cancel,0)):wt&<>=wt&&Be.manager.isActive()&&Be.handlePress(Rt)}}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleEnd",function(){Be.touched=!1,Be.cancel()}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"cancel",function(){var Rt=Be.props.distance,He=Be.state.sorting;He||(Rt||clearTimeout(Be.pressTimer),Be.manager.active=null)}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handlePress",function(Rt){try{var He=Be.manager.getActive(),wt=function(){if(He){var Ge=function(){var It=ye.sortableInfo.index,or=B(ye),Bt=G(Be.container),Ae=Be.scrollContainer.getBoundingClientRect(),ve=lt({index:It,node:ye,collection:Zt});if(Be.node=ye,Be.margin=or,Be.gridGap=Bt,Be.width=ve.width,Be.height=ve.height,Be.marginOffset={x:Be.margin.left+Be.margin.right+Be.gridGap.x,y:Math.max(Be.margin.top,Be.margin.bottom,Be.gridGap.y)},Be.boundingClientRect=ye.getBoundingClientRect(),Be.containerBoundingRect=Ae,Be.index=It,Be.newIndex=It,Be.axis={x:rt.indexOf("x")>=0,y:rt.indexOf("y")>=0},Be.offsetEdge=j(ye,Be.container),ht?Be.initialOffset=R(Object(A.a)({},Rt,{pageX:Be.boundingClientRect.left,pageY:Be.boundingClientRect.top})):Be.initialOffset=R(Rt),Be.initialScroll={left:Be.scrollContainer.scrollLeft,top:Be.scrollContainer.scrollTop},Be.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Be.helper=Be.helperContainer.appendChild(me(ye)),y(Be.helper,{boxSizing:"border-box",height:"".concat(Be.height,"px"),left:"".concat(Be.boundingClientRect.left-or.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Be.boundingClientRect.top-or.top,"px"),width:"".concat(Be.width,"px")}),ht&&Be.helper.focus(),ie&&(Be.sortableGhost=ye,y(ye,{opacity:0,visibility:"hidden"})),Be.minTranslate={},Be.maxTranslate={},ht){var fe=Qe?{top:0,left:0,width:Be.contentWindow.innerWidth,height:Be.contentWindow.innerHeight}:Be.containerBoundingRect,ue=fe.top,Ne=fe.left,je=fe.width,Ke=fe.height,Ye=ue+Ke,Pe=Ne+je;Be.axis.x&&(Be.minTranslate.x=Ne-Be.boundingClientRect.left,Be.maxTranslate.x=Pe-(Be.boundingClientRect.left+Be.width)),Be.axis.y&&(Be.minTranslate.y=ue-Be.boundingClientRect.top,Be.maxTranslate.y=Ye-(Be.boundingClientRect.top+Be.height))}else Be.axis.x&&(Be.minTranslate.x=(Qe?0:Ae.left)-Be.boundingClientRect.left-Be.width/2,Be.maxTranslate.x=(Qe?Be.contentWindow.innerWidth:Ae.left+Ae.width)-Be.boundingClientRect.left-Be.width/2),Be.axis.y&&(Be.minTranslate.y=(Qe?0:Ae.top)-Be.boundingClientRect.top-Be.height/2,Be.maxTranslate.y=(Qe?Be.contentWindow.innerHeight:Ae.top+Ae.height)-Be.boundingClientRect.top-Be.height/2);Ve&&Ve.split(" ").forEach(function(nt){return Be.helper.classList.add(nt)}),Be.listenerNode=Rt.touches?ye:Be.contentWindow,ht?(Be.listenerNode.addEventListener("wheel",Be.handleKeyEnd,!0),Be.listenerNode.addEventListener("mousedown",Be.handleKeyEnd,!0),Be.listenerNode.addEventListener("keydown",Be.handleKeyDown)):(T.move.forEach(function(nt){return Be.listenerNode.addEventListener(nt,Be.handleSortMove,!1)}),T.end.forEach(function(nt){return Be.listenerNode.addEventListener(nt,Be.handleSortEnd,!1)})),Be.setState({sorting:!0,sortingIndex:It}),it&&it({node:ye,index:It,collection:Zt,isKeySorting:ht,nodes:Be.manager.getOrderedRefs(),helper:Be.helper},Rt),ht&&Be.keyMove(0)},et=Be.props,rt=et.axis,lt=et.getHelperDimensions,Ve=et.helperClass,ie=et.hideSortableGhost,$=et.updateBeforeSortStart,it=et.onSortStart,Qe=et.useWindowAsScrollContainer,ye=He.node,Zt=He.collection,ht=Be.manager.isKeySorting,ct=function(){if(typeof $=="function"){Be._awaitingUpdateBeforeSortStart=!0;var yt=ee(function(){var It=ye.sortableInfo.index;return Promise.resolve($({collection:Zt,index:It,node:ye,isKeySorting:ht},Rt)).then(function(){})},function(It,or){if(Be._awaitingUpdateBeforeSortStart=!1,It)throw or;return or});if(yt&&yt.then)return yt.then(function(){})}}();return ct&&ct.then?ct.then(Ge):Ge(ct)}}();return Promise.resolve(wt&&wt.then?wt.then(function(){}):void 0)}catch(Ge){return Promise.reject(Ge)}}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleSortMove",function(Rt){var He=Be.props.onSortMove;typeof Rt.preventDefault=="function"&&Rt.preventDefault(),Be.updateHelperPosition(Rt),Be.animateNodes(),Be.autoscroll(),He&&He(Rt)}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleSortEnd",function(Rt){var He=Be.props,wt=He.hideSortableGhost,Ge=He.onSortEnd,et=Be.manager,rt=et.active.collection,lt=et.isKeySorting,Ve=Be.manager.getOrderedRefs();Be.listenerNode&&(lt?(Be.listenerNode.removeEventListener("wheel",Be.handleKeyEnd,!0),Be.listenerNode.removeEventListener("mousedown",Be.handleKeyEnd,!0),Be.listenerNode.removeEventListener("keydown",Be.handleKeyDown)):(T.move.forEach(function(ye){return Be.listenerNode.removeEventListener(ye,Be.handleSortMove)}),T.end.forEach(function(ye){return Be.listenerNode.removeEventListener(ye,Be.handleSortEnd)}))),Be.helper.parentNode.removeChild(Be.helper),wt&&Be.sortableGhost&&y(Be.sortableGhost,{opacity:"",visibility:""});for(var ie=0,$=Ve.length;ie<$;ie++){var it=Ve[ie],Qe=it.node;it.edgeOffset=null,it.boundingClientRect=null,C(Qe,null),O(Qe,null),it.translate=null}Be.autoScroller.clear(),Be.manager.active=null,Be.manager.isKeySorting=!1,Be.setState({sorting:!1,sortingIndex:null}),typeof Ge=="function"&&Ge({collection:rt,newIndex:Be.newIndex,oldIndex:Be.index,isKeySorting:lt,nodes:Ve},Rt),Be.touched=!1}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"autoscroll",function(){var Rt=Be.props.disableAutoscroll,He=Be.manager.isKeySorting;if(Rt){Be.autoScroller.clear();return}if(He){var wt=Object(A.a)({},Be.translate),Ge=0,et=0;Be.axis.x&&(wt.x=Math.min(Be.maxTranslate.x,Math.max(Be.minTranslate.x,Be.translate.x)),Ge=Be.translate.x-wt.x),Be.axis.y&&(wt.y=Math.min(Be.maxTranslate.y,Math.max(Be.minTranslate.y,Be.translate.y)),et=Be.translate.y-wt.y),Be.translate=wt,C(Be.helper,Be.translate),Be.scrollContainer.scrollLeft+=Ge,Be.scrollContainer.scrollTop+=et;return}Be.autoScroller.update({height:Be.height,maxTranslate:Be.maxTranslate,minTranslate:Be.minTranslate,translate:Be.translate,width:Be.width})}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"onAutoScroll",function(Rt){Be.translate.x+=Rt.left,Be.translate.y+=Rt.top,Be.animateNodes()}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"handleKeyDown",function(Rt){var He=Rt.keyCode,wt=Be.props,Ge=wt.shouldCancelStart,et=wt.keyCodes,rt=et===void 0?{}:et,lt=Object(A.a)({},Se,rt);if(Be.manager.active&&!Be.manager.isKeySorting||!Be.manager.active&&(!lt.lift.includes(He)||Ge(Rt)||!Be.isValidSortingTarget(Rt)))return;Rt.stopPropagation(),Rt.preventDefault(),lt.lift.includes(He)&&!Be.manager.active?Be.keyLift(Rt):lt.drop.includes(He)&&Be.manager.active?Be.keyDrop(Rt):lt.cancel.includes(He)?(Be.newIndex=Be.manager.active.index,Be.keyDrop(Rt)):lt.up.includes(He)?Be.keyMove(-1):lt.down.includes(He)&&Be.keyMove(1)}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"keyLift",function(Rt){var He=Rt.target,wt=N(He,function(lt){return lt.sortableInfo!=null}),Ge=wt.sortableInfo,et=Ge.index,rt=Ge.collection;Be.initialFocusedNode=He,Be.manager.isKeySorting=!0,Be.manager.active={index:et,collection:rt},Be.handlePress(Rt)}),Object(n.a)(Object(i.a)(Object(i.a)(Be)),"keyMove",function(Rt){var He=Be.manager.getOrderedRefs(),wt=He[He.length-1].node.sortableInfo.index,Ge=Be.newIndex+Rt,et=Be.newIndex;if(Ge<0||Ge>wt)return;Be.prevIndex=et,Be.newIndex=Ge;var rt=P(Be.newIndex,Be.prevIndex,Be.index),lt=He.find(function(ht){var ct=ht.node;return ct.sortableInfo.index===rt}),Ve=lt.node,ie=Be.containerScrollDelta,$=lt.boundingClientRect||W(Ve,ie),it=lt.translate||{x:0,y:0},Qe={top:$.top+it.y-ie.top,left:$.left+it.x-ie.left},ye=etht?ht/2:this.height/2,width:this.width>Zt?Zt/2:this.width/2},yt=Ve&&ye>this.index&&ye<=ie,It=Ve&&ye=ie,or={x:0,y:0},Bt=rt[$].edgeOffset;Bt||(Bt=j(Qe,this.container),rt[$].edgeOffset=Bt,Ve&&(rt[$].boundingClientRect=W(Qe,Ge)));var Ae=$0&&rt[$-1];if(Ae&&!Ae.edgeOffset&&(Ae.edgeOffset=j(Ae.node,this.container),Ve&&(Ae.boundingClientRect=W(Ae.node,Ge))),ye===this.index){He&&(this.sortableGhost=Qe,y(Qe,{opacity:0,visibility:"hidden"}));continue}Rt&&O(Qe,Rt),this.axis.x?this.axis.y?It||yethis.containerBoundingRect.width-ct.width&&(Ae&&(or.x=Ae.edgeOffset.left-Bt.left,or.y=Ae.edgeOffset.top-Bt.top)),this.newIndex===null&&(this.newIndex=ye)):(yt||ye>this.index&&(lt.left+et.left+ct.width>=Bt.left&<.top+et.top+ct.height>=Bt.top||lt.top+et.top+ct.height>=Bt.top+ht))&&(or.x=-(this.width+this.marginOffset.x),Bt.left+or.xthis.index&<.left+et.left+ct.width>=Bt.left?(or.x=-(this.width+this.marginOffset.x),this.newIndex=ye):(It||yethis.index&<.top+et.top+ct.height>=Bt.top?(or.y=-(this.height+this.marginOffset.y),this.newIndex=ye):(It||ye1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ge=ae=function(Ze){Object(o.a)(vt,Ze);function vt(){return Object(m.a)(this,vt),Object(h.a)(this,Object(c.a)(vt).apply(this,arguments))}return Object(v.a)(vt,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Be){this.node&&(Be.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Be.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Be.collection!==this.props.collection&&(this.unregister(Be.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Be=this.props,Rt=Be.collection,He=Be.disabled,wt=Be.index,Ge=Object(t.findDOMNode)(this);Ge.sortableInfo={collection:Rt,disabled:He,index:wt,manager:this.context.manager},this.node=Ge,this.ref={node:Ge},this.context.manager.add(Rt,this.ref)}},{key:"unregister",value:function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Be,this.ref)}},{key:"getWrappedInstance",value:function(){return p()(Le.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Be=Le.withRef?"wrappedInstance":null;return Object(a.createElement)(Oe,Object(g.a)({ref:Be},x(this.props,Ce)))}}]),vt}(a.Component),Object(n.a)(ae,"displayName",H("sortableElement",Oe)),Object(n.a)(ae,"contextTypes",{manager:l.a.object.isRequired}),Object(n.a)(ae,"propTypes",ke),Object(n.a)(ae,"defaultProps",{collection:0}),ge}},YNAk:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var A=f(e("q1tI")),m=g(e("QyFq")),v=g(e("KQxl")),h=function(i,n){return A.createElement(v.default,Object.assign({},i,{ref:n,icon:m.default}))};h.displayName="CaretDownFilled";var c=A.forwardRef(h);_.default=c},YNf1:function(D,_,e){var g=e("IwbS"),f=e("6Ic6"),A=.3,m=f.extend({type:"parallel",init:function(){this._dataGroup=new g.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(u,r,l,t){var s=this._dataGroup,d=u.getData(),p=this._data,b=u.coordinateSystem,w=b.dimensions,E=o(u);d.diff(p).add(S).update(x).remove(T).execute();function S(y){var C=c(d,s,y,w,b);i(C,d,y,E)}function x(y,C){var O=p.getItemGraphicEl(C),N=h(d,y,w,b);d.setItemGraphicEl(y,O);var k=t&&t.animation===!1?null:u;g.updateProps(O,{shape:{points:N}},k,y),i(O,d,y,E)}function T(y){var C=p.getItemGraphicEl(y);s.remove(C)}if(!this._initialized){this._initialized=!0;var L=v(b,u,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(L)}this._data=d},incrementalPrepareRender:function(u,r,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(u,r,l){for(var t=r.getData(),s=r.coordinateSystem,d=s.dimensions,p=o(r),b=u.start;b65535?p:w}function S(z){var X=z.constructor;return X===Array?z.slice():new X(z)}var x=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],T=["_extent","_approximateExtent","_rawExtent"];function L(z,X){A.each(x.concat(X.__wrappedMethods||[]),function(G){X.hasOwnProperty(G)&&(z[G]=X[G])}),z.__wrappedMethods=X.__wrappedMethods,A.each(T,function(G){z[G]=A.clone(X[G])}),z._calculationInfo=A.extend(X._calculationInfo)}var y=function(z,X){z=z||["x","y"];for(var G={},le=[],Y={},me=0;meCe[1]&&(Ce[1]=ke)}X&&(this._nameList[at]=X[_e])}this._rawCount=this._count=Fe,this._extent={},N(this)},C._initDataFromProvider=function(z,X){if(z>=X)return;for(var G=this._chunkSize,le=this._rawData,Y=this._storage,me=this.dimensions,we=me.length,pe=this._dimensionInfos,Fe=this._nameList,Xe=this._idList,dt=this._rawExtent,Ee=this._nameRepeatCount={},Se,at=this._chunkCount,_e=0;_eLe[1]&&(Le[1]=ge)}if(!le.pure){var Ze=Fe[ke];if(se&&Ze==null){if(se.name!=null)Fe[ke]=Ze=se.name;else if(Se!=null){var vt=me[Se],Ct=Y[vt][Ce];if(Ct){Ze=Ct[ze];var Be=pe[vt].ordinalMeta;Be&&Be.categories.length&&(Ze=Be.categories[Ze])}}}var Rt=se==null?null:se.id;Rt==null&&Ze!=null&&(Ee[Ze]=Ee[Ze]||0,Rt=Ze,Ee[Ze]>0&&(Rt+="__ec__"+Ee[Ze]),Ee[Ze]++),Rt!=null&&(Xe[ke]=Rt)}}!le.persistent&&le.clean&&le.clean(),this._rawCount=this._count=X,this._extent={},N(this)};function O(z,X,G,le,Y){var me=d[X.type],we=le-1,pe=X.name,Fe=z[pe][we];if(Fe&&Fe.length=0&&X=0&&Xpe&&(pe=Xe)}return me=[we,pe],this._extent[z]=me,me},C.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},C.setApproximateExtent=function(z,X){X=this.getDimension(X),this._approximateExtent[X]=z.slice()},C.getCalculationInfo=function(z){return this._calculationInfo[z]},C.setCalculationInfo=function(z,X){r(z)?A.extend(this._calculationInfo,z):this._calculationInfo[z]=X},C.getSum=function(z){var X=this._storage[z],G=0;if(X)for(var le=0,Y=this.count();le=this._rawCount||z<0)return-1;if(!this._indices)return z;var X=this._indices,G=X[z];if(G!=null&&Gz)Y=me-1;else return me}return-1},C.indicesOfNearest=function(z,X,G){var le=this._storage,Y=le[z],me=[];if(!Y)return me;G==null&&(G=Infinity);for(var we=Infinity,pe=-1,Fe=0,Xe=0,dt=this.count();Xe=0&&pe<0)&&(we=Se,pe=Ee,Fe=0),Ee===pe&&(me[Fe++]=Xe))}return me.length=Fe,me},C.getRawIndex=F;function F(z){return z}function B(z){return z=0?this._indices[z]:-1}C.getRawDataItem=function(z){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(z));for(var X=[],G=0;G=Xe&&ke<=dt||isNaN(ke))&&(we[pe++]=Se),Se++}Ee=!0}else if(le===2){for(var at=this._storage[Fe],Ce=this._storage[X[1]],ze=z[X[1]][0],Oe=z[X[1]][1],_e=0;_e=Xe&&ke<=dt||isNaN(ke))&&(ge>=ze&&ge<=Oe||isNaN(ge))&&(we[pe++]=Se),Se++}Ee=!0}}if(!Ee)if(le===1)for(var se=0;se=Xe&&ke<=dt||isNaN(ke))&&(we[pe++]=Le)}else for(var se=0;sez[vt][1])&&(Ze=!1)}Ze&&(we[pe++]=this.getRawIndex(se))}return pe=0?(Y[pe]=j(me[pe]),le._rawExtent[pe]=P(),le._extent[pe]=null):Y[pe]=me[pe])}return le}function j(z){for(var X=new Array(z.length),G=0;GOe[1]&&(Oe[1]=ze)}}}return Y},C.downSample=function(z,X,G,le){for(var Y=U(this,[z]),me=Y._storage,we=[],pe=Math.floor(1/X),Fe=me[z],Xe=this.count(),dt=this._chunkSize,Ee=Y._rawExtent[z],Se=new(E(this))(Xe),at=0,_e=0;_eXe-_e&&(pe=Xe-_e,we.length=pe);for(var ce=0;ceEe[1]&&(Ee[1]=Ce),Se[at++]=ze}return Y._count=at,Y._indices=Se,Y.getRawIndex=B,Y},C.getItemModel=function(z){var X=this.hostModel;return new m(this.getRawDataItem(z),X,X&&X.ecModel)},C.diff=function(z){var X=this;return new v(z?z.getIndices():[],this.getIndices(),function(G){return H(z,G)},function(G){return H(X,G)})},C.getVisual=function(z){var X=this._visual;return X&&X[z]},C.setVisual=function(z,X){if(r(z)){for(var G in z)z.hasOwnProperty(G)&&this.setVisual(G,z[G]);return}this._visual=this._visual||{},this._visual[z]=X},C.setLayout=function(z,X){if(r(z)){for(var G in z)z.hasOwnProperty(G)&&this.setLayout(G,z[G]);return}this._layout[z]=X},C.getLayout=function(z){return this._layout[z]},C.getItemLayout=function(z){return this._itemLayouts[z]},C.setItemLayout=function(z,X,G){this._itemLayouts[z]=G?A.extend(this._itemLayouts[z]||{},X):X},C.clearItemLayouts=function(){this._itemLayouts.length=0},C.getItemVisual=function(z,X,G){var le=this._itemVisuals[z],Y=le&&le[X];return Y==null&&!G?this.getVisual(X):Y},C.setItemVisual=function(z,X,G){var le=this._itemVisuals[z]||{},Y=this.hasItemVisual;if(this._itemVisuals[z]=le,r(X)){for(var me in X)X.hasOwnProperty(me)&&(le[me]=X[me],Y[me]=!0);return}le[X]=G,Y[X]=!0},C.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var K=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};C.setItemGraphicEl=function(z,X){var G=this.hostModel;X&&(X.dataIndex=z,X.dataType=this.dataType,X.seriesIndex=G&&G.seriesIndex,X.type==="group"&&X.traverse(K,X)),this._graphicEls[z]=X},C.getItemGraphicEl=function(z){return this._graphicEls[z]},C.eachItemGraphicEl=function(z,X){A.each(this._graphicEls,function(G,le){G&&(z&&z.call(X,G,le))})},C.cloneShallow=function(z){if(!z){var X=A.map(this.dimensions,this.getDimensionInfo,this);z=new y(X,this.hostModel)}if(z._storage=this._storage,L(z,this),this._indices){var G=this._indices.constructor;z._indices=new G(this._indices)}else z._indices=null;return z.getRawIndex=z._indices?B:F,z},C.wrapMethod=function(z,X){var G=this[z];if(typeof G!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var le=G.apply(this,arguments);return X.apply(this,[le].concat(A.slice(arguments)))}},C.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],C.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=y;D.exports=V},YgsL:function(D,_,e){var g=e("QBsz"),f=g.distance;function A(v,h,c,o,i,n,a){var u=(c-v)*.5,r=(o-h)*.5;return(2*(h-c)+u+r)*a+(-3*(h-c)-2*u-r)*n+u*i+h}function m(v,h){for(var c=v.length,o=[],i=0,n=1;nc-2?c-1:r+1],p=v[r>c-3?c-1:r+2]);var b=l*l,w=l*b;o.push([A(t[0],s[0],d[0],p[0],l,b,w),A(t[1],s[1],d[1],p[1],l,b,w)])}return o}D.exports=m},Yl7c:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,A=e("bYtY"),m=".",v="___EC__COMPONENT__CONTAINER___";function h(t){var s={main:"",sub:""};return t&&(t=t.split(m),s.main=t[0]||"",s.sub=t[1]||""),s}function c(t){A.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function o(t,s){t.$constructor=t,t.extend=function(d){var p=this,b=function(){d.$constructor?d.$constructor.apply(this,arguments):p.apply(this,arguments)};return A.extend(b.prototype,d),b.extend=this.extend,b.superCall=a,b.superApply=u,A.inherits(b,this),b.superClass=p,b}}var i=0;function n(t){var s=["__\0is_clz",i++,Math.random().toFixed(3)].join("_");t.prototype[s]=!0,t.isInstance=function(d){return!!(d&&d[s])}}function a(t,s){var d=A.slice(arguments,2);return this.superClass.prototype[s].apply(t,d)}function u(t,s,d){return this.superClass.prototype[s].apply(t,d)}function r(t,s){s=s||{};var d={};t.registerClass=function(w,E){if(E){if(c(E),E=h(E),!E.sub)d[E.main]=w;else if(E.sub!==v){var S=p(E);S[E.sub]=w}}return w},t.getClass=function(w,E,S){var x=d[w];if(x&&x[v]&&(x=E?x[E]:null),S&&!x)throw new Error(E?"Component "+w+"."+(E||"")+" not exists. Load it first.":w+".type should be specified.");return x},t.getClassesByMainType=function(w){w=h(w);var E=[],S=d[w.main];return S&&S[v]?A.each(S,function(x,T){T!==v&&E.push(x)}):E.push(S),E},t.hasClass=function(w){return w=h(w),!!d[w.main]},t.getAllClassMainTypes=function(){var w=[];return A.each(d,function(E,S){w.push(S)}),w},t.hasSubTypes=function(w){w=h(w);var E=d[w.main];return E&&E[v]},t.parseClassType=h;function p(w){var E=d[w.main];return(!E||!E[v])&&(E=d[w.main]={},E[v]=!0),E}if(s.registerWhenExtend){var b=t.extend;b&&(t.extend=function(w){var E=b.call(this,w);return t.registerClass(E,w.type)})}return t}function l(t,s){}_.parseClassType=h,_.enableClassExtend=o,_.enableClassCheck=n,_.enableClassManagement=r,_.setReadOnly=l},Ynxi:function(D,_,e){var g=e("bYtY"),f=e("ProS"),A=e("IwbS"),m=e("+TT/"),v=m.getLayoutRect,h=e("7aKB"),c=h.windowOpen;f.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),f.extendComponentView({type:"title",render:function(o,i,n){if(this.group.removeAll(),!o.get("show"))return;var a=this.group,u=o.getModel("textStyle"),r=o.getModel("subtextStyle"),l=o.get("textAlign"),t=g.retrieve2(o.get("textBaseline"),o.get("textVerticalAlign")),s=new A.Text({style:A.setTextStyle({},u,{text:o.get("text"),textFill:u.getTextColor()},{disableBox:!0}),z2:10}),d=s.getBoundingRect(),p=o.get("subtext"),b=new A.Text({style:A.setTextStyle({},r,{text:p,textFill:r.getTextColor(),y:d.height+o.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),w=o.get("link"),E=o.get("sublink"),S=o.get("triggerEvent",!0);s.silent=!w&&!S,b.silent=!E&&!S,w&&s.on("click",function(){c(w,"_"+o.get("target"))}),E&&b.on("click",function(){c(w,"_"+o.get("subtarget"))}),s.eventData=b.eventData=S?{componentType:"title",componentIndex:o.componentIndex}:null,a.add(s),p&&a.add(b);var x=a.getBoundingRect(),T=o.getBoxLayoutParams();T.width=x.width,T.height=x.height;var L=v(T,{width:n.getWidth(),height:n.getHeight()},o.get("padding"));l||(l=o.get("left")||o.get("right"),l==="middle"&&(l="center"),l==="right"?L.x+=L.width:l==="center"&&(L.x+=L.width/2)),t||(t=o.get("top")||o.get("bottom"),t==="center"&&(t="middle"),t==="bottom"?L.y+=L.height:t==="middle"&&(L.y+=L.height/2),t=t||"top"),a.attr("position",[L.x,L.y]);var y={textAlign:l,textVerticalAlign:t};s.setStyle(y),b.setStyle(y),x=a.getBoundingRect();var C=L.margin,O=o.getItemStyle(["color","opacity"]);O.fill=o.get("backgroundColor");var N=new A.Rect({shape:{x:x.x-C[3],y:x.y-C[0],width:x.width+C[1]+C[3],height:x.height+C[0]+C[2],r:o.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});a.add(N)}})},YrtM:function(D,_,e){"use strict";e.d(_,"a",function(){return A});var g=e("q1tI"),f=e.n(g);function A(m,v,h){var c=g.useRef({});return(!("value"in c.current)||h(c.current.condition,v))&&(c.current.value=m(),c.current.condition=v),c.current.value}},Ywus:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var A=f(e("q1tI")),m=g(e("DO2E")),v=g(e("KQxl")),h=function(i,n){return A.createElement(v.default,Object.assign({},i,{ref:n,icon:m.default}))};h.displayName="DeleteOutlined";var c=A.forwardRef(h);_.default=c},Z0Lh:function(D,_,e){"use strict";var g=e("TqRt");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var f=g(e("pVnL")),A=g(e("HjOm")),m=g(e("Z6rY")),v={lang:(0,f.default)({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},A.default),timePickerLocale:(0,f.default)({},m.default)};v.lang.ok="\u786E \u5B9A";var h=v;_.default=h},Z0cm:function(D,_){var e=Array.isArray;D.exports=e},Z1HP:function(D,_,e){var g=e("ycre"),f=e("quyA"),A=e("q4HE");function m(v){return f(v)?A(v):g(v)}D.exports=m},Z1r0:function(D,_){function e(g){var f=g.findComponents({mainType:"legend"});if(!f||!f.length)return;g.eachSeriesByType("graph",function(A){var m=A.getCategoriesData(),v=A.getGraph(),h=v.data,c=m.mapArray(m.getName);h.filterSelf(function(o){var i=h.getItemModel(o),n=i.getShallow("category");if(n!=null){typeof n=="number"&&(n=c[n]);for(var a=0;a0?1:-1,Y=X.height>0?1:-1;return{x:X.x+le*G/2,y:X.y+Y*G/2,width:X.width-le*G,height:X.height-Y*G}},polar:function(K,V,z){var X=K.getItemLayout(V);return{cx:X.cx,cy:X.cy,r0:X.r0,r:X.r,startAngle:X.startAngle,endAngle:X.endAngle}}};function O(K){return K.startAngle!=null&&K.endAngle!=null&&K.startAngle===K.endAngle}function N(K,V,z,X,G,le,Y,me){var we=V.getItemVisual(z,"color"),pe=V.getItemVisual(z,"opacity"),Fe=V.getVisual("borderColor"),Xe=X.getModel("itemStyle"),dt=X.getModel("emphasis.itemStyle").getBarItemStyle();me||K.setShape("r",Xe.get("barBorderRadius")||0),K.useStyle(m.defaults({stroke:O(G)?"none":Fe,fill:O(G)?"none":we,opacity:pe},Xe.getBarItemStyle()));var Ee=X.getShallow("cursor");Ee&&K.attr("cursor",Ee);var Se=Y?G.height>0?"bottom":"top":G.width>0?"left":"right";me||c(K.style,dt,X,we,le,z,Se),O(G)&&(dt.fill=dt.stroke="none"),v.setHoverStyle(K,dt)}function k(K,V){var z=K.get(d)||0,X=isNaN(V.width)?Number.MAX_VALUE:Math.abs(V.width),G=isNaN(V.height)?Number.MAX_VALUE:Math.abs(V.height);return Math.min(z,X,G)}var F=n.extend({type:"largeBar",shape:{points:[]},buildPath:function(K,V){for(var z=V.points,X=this.__startPoint,G=this.__baseDimIdx,le=0;le=0?z:null},30,!1);function W(K,V,z){var X=K.__baseDimIdx,G=1-X,le=K.shape.points,Y=K.__largeDataIndices,me=Math.abs(K.__barWidth/2),we=K.__startPoint[G];p[0]=V,p[1]=z;for(var pe=p[X],Fe=p[1-X],Xe=pe-me,dt=pe+me,Ee=0,Se=le.length/2;Ee=Xe&&_e<=dt&&(we<=ce?Fe>=we&&Fe<=ce:Fe>=ce&&Fe<=we))return Y[Ee]}return-1}function R(K,V,z){var X=z.getVisual("borderColor")||z.getVisual("color"),G=V.getModel("itemStyle").getItemStyle(["color","borderColor"]);K.useStyle(G),K.style.fill=null,K.style.stroke=X,K.style.lineWidth=z.getLayout("barWidth")}function U(K,V,z){var X=V.get("borderColor")||V.get("color"),G=V.getItemStyle(["color","borderColor"]);K.useStyle(G),K.style.fill=null,K.style.stroke=X,K.style.lineWidth=z.getLayout("barWidth")}function j(K,V,z){var X,G=z.type==="polar";return G?X=z.getArea():X=z.grid.getRect(),G?{cx:X.cx,cy:X.cy,r0:K?X.r0:V.r0,r:K?X.r:V.r,startAngle:K?V.startAngle:0,endAngle:K?V.endAngle:Math.PI*2}:{x:K?V.x:X.x,y:K?X.y:V.y,width:K?V.width:X.width,height:K?X.height:V.height}}function P(K,V,z){var X=K.type==="polar"?v.Sector:v.Rect;return new X({shape:j(V,z,K),silent:!0,z2:0})}D.exports=w},ZCgT:function(D,_,e){var g=e("tLB3"),f=1/0,A=17976931348623157e292;function m(v){if(!v)return v===0?v:0;if(v=g(v),v===f||v===-f){var h=v<0?-1:1;return h*A}return v===v?v:0}D.exports=m},ZLWo:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};_.default=g},ZMnZ:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var A=f(e("q1tI")),m=g(e("2oIt")),v=g(e("KQxl")),h=function(i,n){return A.createElement(v.default,Object.assign({},i,{ref:n,icon:m.default}))};h.displayName="UpOutlined";var c=A.forwardRef(h);_.default=c},ZTPi:function(D,_,e){"use strict";var g=e("pVnL"),f=e.n(g),A=e("lSNA"),m=e.n(A),v=e("q1tI"),h=e("ODXe"),c=e("Ff2n"),o=e("rePB"),i=e("TSYQ"),n=e.n(i),a=e("Zm9Q"),u=e("6cGi"),r=e("KQm4"),l=e("xEkU"),t=e.n(l),s=e("t23M");function d(He){var wt=Object(v.useRef)(),Ge=Object(v.useRef)(!1);function et(){for(var rt=arguments.length,lt=new Array(rt),Ve=0;Veye&&(ct=ye-ht),Object(v.useMemo)(function(){if(!lt.length)return[0,0];for(var yt=lt.length,It=yt,or=0;orQe+ct){It=or-1;break}}for(var Ae=0,ve=yt-1;ve>=0;ve-=1){var fe=He.get(lt[ve].key)||y;if(fe[it]he?(Ot=nt,je.current="x"):(Ot=At,je.current="y");var Q=Date.now();Q-ue.current>100&&(Ne.current=!1),(wt(-Ot,-Ot)||Ne.current)&&(Pe.preventDefault(),Ne.current=!0),ue.current=Q}var Ye=Object(v.useRef)(null);Ye.current={onTouchStart:Ae,onTouchMove:ve,onTouchEnd:fe,onWheel:Ke},v.useEffect(function(){function Pe(ne){Ye.current.onTouchStart(ne)}function nt(ne){Ye.current.onTouchMove(ne)}function At(ne){Ye.current.onTouchEnd(ne)}function Ot(ne){Ye.current.onWheel(ne)}return document.addEventListener("touchmove",nt,{passive:!1}),document.addEventListener("touchend",At,{passive:!1}),He.current.addEventListener("touchstart",Pe,{passive:!1}),He.current.addEventListener("wheel",Ot),function(){document.removeEventListener("touchmove",nt),document.removeEventListener("touchend",At)}},[])}function z(){var He=Object(v.useRef)(new Map);function wt(et){return He.current.has(et)||He.current.set(et,v.createRef()),He.current.get(et)}function Ge(et){He.current.delete(et)}return[wt,Ge]}function X(He,wt){var Ge=v.useRef(He),et=v.useState({}),rt=Object(h.a)(et,2),lt=rt[1];function Ve(ie){var $=typeof ie=="function"?ie(Ge.current):ie;$!==Ge.current&&wt($,Ge.current),Ge.current=$,lt({})}return[Ge.current,Ve]}function G(He,wt){var Ge=Object.keys(He);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(He);wt&&(et=et.filter(function(rt){return Object.getOwnPropertyDescriptor(He,rt).enumerable})),Ge.push.apply(Ge,et)}return Ge}function le(He){for(var wt=1;wtHi?"left":"right"})}),Ot=Object(h.a)(At,2),ne=Ot[0],he=Ot[1],Q=X(0,function(aa,Hi){!nt&&Ae&&Ae({direction:aa>Hi?"top":"bottom"})}),te=Object(h.a)(Q,2),be=te[0],Ie=te[1],Re=Object(v.useState)(0),$e=Object(h.a)(Re,2),gt=$e[0],Wt=$e[1],$t=Object(v.useState)(0),Dt=Object(h.a)($t,2),Kt=Dt[0],Gt=Dt[1],Qt=Object(v.useState)(0),Mt=Object(h.a)(Qt,2),dr=Mt[0],er=Mt[1],st=Object(v.useState)(0),xt=Object(h.a)(st,2),ut=xt[0],pt=xt[1],_t=Object(v.useState)(null),Tt=Object(h.a)(_t,2),ft=Tt[0],Ht=Tt[1],kt=Object(v.useState)(null),ir=Object(h.a)(kt,2),Xt=ir[0],mr=ir[1],Ar=Object(v.useState)(0),Nr=Object(h.a)(Ar,2),kr=Nr[0],tn=Nr[1],qr=Object(v.useState)(0),Lr=Object(h.a)(qr,2),Qr=Lr[0],Ir=Lr[1],ur=p(new Map),pr=Object(h.a)(ur,2),cr=pr[0],fr=pr[1],xr=L(lt,cr,gt),Yr="".concat(rt,"-nav-operations-hidden"),un=0,Nn=0;nt?ye?(un=0,Nn=Math.max(0,gt-ft)):(un=Math.min(0,ft-gt),Nn=0):(un=Math.min(0,Xt-Kt),Nn=0);function jr(aa){return aaNn?[Nn,!1]:[aa,!0]}var Tn=Object(v.useRef)(),gn=Object(v.useState)(),Pn=Object(h.a)(gn,2),zn=Pn[0],qn=Pn[1];function Yn(){qn(Date.now())}function Vn(){window.clearTimeout(Tn.current)}V(ve,function(aa,Hi){var ga=!1;function ha(mo,Fn){mo(function($i){var eo=jr($i+Fn),To=Object(h.a)(eo,2),uo=To[0],rr=To[1];return ga=rr,uo})}if(nt){if(ft>=gt)return ga;ha(he,aa)}else{if(Xt>=Kt)return ga;ha(Ie,Hi)}return Vn(),Yn(),ga}),Object(v.useEffect)(function(){return Vn(),zn&&(Tn.current=window.setTimeout(function(){qn(0)},100)),Vn},[zn]);function An(){var aa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qe,Hi=xr.get(aa);if(!Hi)return;if(nt){var ga=ne;ye?Hi.rightne+ft&&(ga=Hi.right+Hi.width-ft):Hi.left<-ne?ga=-Hi.left:Hi.left+Hi.width>-ne+ft&&(ga=-(Hi.left+Hi.width-ft)),Ie(0),he(jr(ga)[0])}else{var ha=be;Hi.top<-be?ha=-Hi.top:Hi.top+Hi.height>-be+Xt&&(ha=-(Hi.top+Hi.height-Xt)),he(0),Ie(jr(ha)[0])}}var on=C(xr,{width:ft,height:Xt,left:ne,top:be},{width:dr,height:ut},{width:kr,height:Qr},le(le({},He),{},{tabs:lt})),ia=Object(h.a)(on,2),xa=ia[0],ta=ia[1],Ii=lt.map(function(aa){var Hi=aa.key;return v.createElement(E,{id:$,prefixCls:rt,key:Hi,rtl:ye,tab:aa,closable:aa.closable,editable:ht,active:Hi===Qe,tabPosition:yt,tabBarGutter:It,renderWrapper:or,removeAriaLabel:ct==null?void 0:ct.removeAriaLabel,ref:Ye(Hi),onClick:function(ha){Bt(Hi,ha)},onRemove:function(){Pe(Hi)},onFocus:function(){An(Hi),Yn(),ye||(ve.current.scrollLeft=0),ve.current.scrollTop=0}})}),Ci=d(function(){var aa,Hi,ga,ha,mo,Fn,$i,eo,To,uo=((aa=ve.current)===null||aa===void 0?void 0:aa.offsetWidth)||0,rr=((Hi=ve.current)===null||Hi===void 0?void 0:Hi.offsetHeight)||0,Tr=((ga=Ne.current)===null||ga===void 0?void 0:ga.offsetWidth)||0,Pr=((ha=Ne.current)===null||ha===void 0?void 0:ha.offsetHeight)||0,Wr=((mo=ue.current)===null||mo===void 0?void 0:mo.offsetWidth)||0,hn=((Fn=ue.current)===null||Fn===void 0?void 0:Fn.offsetHeight)||0;Ht(uo),mr(rr),tn(Tr),Ir(Pr);var tt=((($i=fe.current)===null||$i===void 0?void 0:$i.offsetWidth)||0)-Tr,jt=(((eo=fe.current)===null||eo===void 0?void 0:eo.offsetHeight)||0)-Pr;Wt(tt),Gt(jt);var Jt=(To=ue.current)===null||To===void 0?void 0:To.className.includes(Yr);er(tt-(Jt?0:Wr)),pt(jt-(Jt?0:hn)),fr(function(){var nr=new Map;return lt.forEach(function(Or){var wr=Or.key,Er=Ye(wr).current;Er&&nr.set(wr,{width:Er.offsetWidth,height:Er.offsetHeight,left:Er.offsetLeft,top:Er.offsetTop})}),nr})}),Gn=lt.slice(0,xa),Oa=lt.slice(ta+1),mn=[].concat(Object(r.a)(Gn),Object(r.a)(Oa)),On=Object(v.useState)(),Ln=Object(h.a)(On,2),In=Ln[0],jn=Ln[1],ni=xr.get(Qe),di=Object(v.useRef)();function Na(){t.a.cancel(di.current)}Object(v.useEffect)(function(){var aa={};return ni&&(nt?(ye?aa.right=ni.right:aa.left=ni.left,aa.width=ni.width):(aa.top=ni.top,aa.height=ni.height)),Na(),di.current=t()(function(){jn(aa)}),Na},[ni,nt,ye]),Object(v.useEffect)(function(){An()},[Qe,ni,xr,nt]),Object(v.useEffect)(function(){Ci()},[ye,It,Qe,lt.map(function(aa){return aa.key}).join("_")]);var Qi=!!mn.length,ma="".concat(rt,"-nav-wrap"),Ba,Qa,Wi,Co;return nt?ye?(Qa=ne>0,Ba=ne+ft0&&arguments[0]!==void 0?arguments[0]:"";return H+=1,"".concat(W).concat(H)}}(),F=function(H){n()(R,H);var W=u()(R);function R(U){var j;h()(this,R),j=W.call(this,U),j.responsiveHandler=function(V){j.setState({below:V.matches});var z=j.props.onBreakpoint,X=j.state.collapsed;z&&z(V.matches),X!==V.matches&&j.setCollapsed(V.matches,"responsive")},j.setCollapsed=function(V,z){"collapsed"in j.props||j.setState({collapsed:V});var X=j.props.onCollapse;X&&X(V,z)},j.toggle=function(){var V=!j.state.collapsed;j.setCollapsed(V,"clickTrigger")},j.renderSider=function(V){var z,X=V.getPrefixCls,G=j.props,le=G.prefixCls,Y=G.className,me=G.theme,we=G.collapsible,pe=G.reverseArrow,Fe=G.trigger,Xe=G.style,dt=G.width,Ee=G.collapsedWidth,Se=G.zeroWidthTriggerStyle,at=G.children,_e=C(G,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),ce=j.state,ee=ce.collapsed,se=ce.below,ke=X("layout-sider",le),Ce=Object(s.default)(_e,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),ze=ee?Ee:dt,Oe=y(ze)?"".concat(ze,"px"):String(ze),ae=parseFloat(String(Ee||0))===0?r.createElement("span",{onClick:j.toggle,className:t()("".concat(ke,"-zero-width-trigger"),"".concat(ke,"-zero-width-trigger-").concat(pe?"right":"left")),style:Se},Fe||r.createElement(p.a,null)):null,ge={expanded:pe?r.createElement(w.a,null):r.createElement(S.a,null),collapsed:pe?r.createElement(S.a,null):r.createElement(w.a,null)},Le=ee?"collapsed":"expanded",Ze=ge[Le],vt=Fe!==null?ae||r.createElement("div",{className:"".concat(ke,"-trigger"),onClick:j.toggle,style:{width:Oe}},Fe||Ze):null,Ct=m()(m()({},Xe),{flex:"0 0 ".concat(Oe),maxWidth:Oe,minWidth:Oe,width:Oe}),Be=t()(Y,ke,"".concat(ke,"-").concat(me),(z={},f()(z,"".concat(ke,"-collapsed"),!!ee),f()(z,"".concat(ke,"-has-trigger"),we&&Fe!==null&&!ae),f()(z,"".concat(ke,"-below"),!!se),f()(z,"".concat(ke,"-zero-width"),parseFloat(Oe)===0),z));return r.createElement("aside",m()({className:Be},Ce,{style:Ct}),r.createElement("div",{className:"".concat(ke,"-children")},at),we||se&&ae?vt:null)},j.uniqueId=k("ant-sider-");var P;typeof window!="undefined"&&(P=window.matchMedia),P&&U.breakpoint&&U.breakpoint in O&&(j.mql=P("(max-width: ".concat(O[U.breakpoint],")")));var K;return"collapsed"in U?K=U.collapsed:K=U.defaultCollapsed,j.state={collapsed:K,below:!1},j}return o()(R,[{key:"componentDidMount",value:function(){var j;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(j=this.props)===null||j===void 0||j.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var j,P;(j=this===null||this===void 0?void 0:this.mql)===null||j===void 0||j.removeListener(this.responsiveHandler),(P=this.props)===null||P===void 0||P.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var j=this.state.collapsed,P=this.props.collapsedWidth;return r.createElement(N.Provider,{value:{siderCollapsed:j,collapsedWidth:P}},r.createElement(T.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(j){return"collapsed"in j?{collapsed:j.collapsed}:null}}]),R}(r.Component);F.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var B=function(H){n()(R,H);var W=u()(R);function R(){return h()(this,R),W.apply(this,arguments)}return o()(R,[{key:"render",value:function(){var j=this;return r.createElement(x.a.Consumer,null,function(P){return r.createElement(F,m()({},P,j.props))})}}]),R}(r.Component)},ZYIC:function(D,_,e){var g=e("zM3Q"),f={seriesType:"lines",plan:g(),reset:function(A){var m=A.coordinateSystem,v=A.get("polyline"),h=A.pipelineContext.large;function c(o,i){var n=[];if(h){var a,u=o.end-o.start;if(v){for(var r=0,l=o.start;l>1)%2;p.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[b]+":0",t[w]+":0",l[1-b]+":auto",t[1-w]+":auto",""].join("!important;"),a.appendChild(d),r.push(d)}return r}function i(a,u,r){for(var l=r?"invTrans":"trans",t=u[l],s=u.srcCoords,d=!0,p=[],b=[],w=0;w<4;w++){var E=a[w].getBoundingClientRect(),S=2*w,x=E.left,T=E.top;p.push(x,T),d=d&&s&&x===s[S]&&T===s[S+1],b.push(a[w].offsetLeft,a[w].offsetTop)}return d&&t?t:(u.srcCoords=p,u[l]=r?A(b,p):A(p,b))}function n(a){return a.nodeName.toUpperCase()==="CANVAS"}_.transformLocalCoord=h,_.transformCoordWithViewport=c,_.isCanvasEl=n},Znkb:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,A=e("ProS"),m=e("zTMp"),v=A.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(n,a,u,r){this.axisPointerClass&&m.fixValue(n),v.superApply(this,"render",arguments),h(this,n,a,u,r,!0)},updateAxisPointer:function(n,a,u,r,l){h(this,n,a,u,r,!1)},remove:function(n,a){var u=this._axisPointer;u&&u.remove(a),v.superApply(this,"remove",arguments)},dispose:function(n,a){c(this,a),v.superApply(this,"dispose",arguments)}});function h(n,a,u,r,l,t){var s=v.getAxisPointerClass(n.axisPointerClass);if(!s)return;var d=m.getAxisPointerModel(a);d?(n._axisPointer||(n._axisPointer=new s)).render(a,d,r,t):c(n,r)}function c(n,a,u){var r=n._axisPointer;r&&r.dispose(a,u),n._axisPointer=null}var o=[];v.registerAxisPointerClass=function(n,a){o[n]=a},v.getAxisPointerClass=function(n){return n&&o[n]};var i=v;D.exports=i},"Znn+":function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),A=e("9ama"),m=e.n(A)},ZqQs:function(D,_,e){var g=e("bYtY");function f(h){var c=h&&h.timeline;g.isArray(c)||(c=c?[c]:[]),g.each(c,function(o){if(!o)return;A(o)})}function A(h){var c=h.type,o={number:"value",time:"time"};if(o[c]&&(h.axisType=o[c],delete h.type),m(h),v(h,"controlPosition")){var i=h.controlStyle||(h.controlStyle={});v(i,"position")||(i.position=h.controlPosition),i.position==="none"&&!v(i,"show")&&(i.show=!1,delete i.position),delete h.controlPosition}g.each(h.data||[],function(n){g.isObject(n)&&!g.isArray(n)&&(!v(n,"value")&&v(n,"name")&&(n.value=n.name),m(n))})}function m(h){var c=h.itemStyle||(h.itemStyle={}),o=c.emphasis||(c.emphasis={}),i=h.label||h.label||{},n=i.normal||(i.normal={}),a={normal:1,emphasis:1};g.each(i,function(u,r){!a[r]&&!v(n,r)&&(n[r]=u)}),o.label&&!v(i,"emphasis")&&(i.emphasis=o.label,delete o.label)}function v(h,c){return h.hasOwnProperty(c)}D.exports=f},Zvw2:function(D,_,e){var g=e("bYtY"),f=e("hM6l"),A=function(v,h,c,o,i){f.call(this,v,h,c),this.type=o||"value",this.position=i||"bottom",this.orient=null};A.prototype={constructor:A,model:null,isHorizontal:function(){var v=this.position;return v==="top"||v==="bottom"},pointToData:function(v,h){return this.coordinateSystem.pointToData(v,h)[0]},toGlobalCoord:null,toLocalCoord:null},g.inherits(A,f);var m=A;D.exports=m},a7Wl:function(D,_,e){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var g={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};_.default=g},a9QJ:function(D,_){var e={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function g(f,A){if(f==="world"){var m=e[A.name];if(m){var v=A.center;v[0]=m[0],v[1]=m[1]}}}D.exports=g},aCH8:function(D,_,e){(function(){var g=e("ANhw"),f=e("mmNF").utf8,A=e("BEtg"),m=e("mmNF").bin,v=function h(c,o){c.constructor==String?o&&o.encoding==="binary"?c=m.stringToBytes(c):c=f.stringToBytes(c):A(c)?c=Array.prototype.slice.call(c,0):!Array.isArray(c)&&c.constructor!==Uint8Array&&(c=c.toString());for(var i=g.bytesToWords(c),n=c.length*8,a=1732584193,u=-271733879,r=-1732584194,l=271733878,t=0;t>>24)&16711935|(i[t]<<24|i[t]>>>8)&4278255360;i[n>>>5]|=128<>>9<<4)+14]=n;for(var s=h._ff,d=h._gg,p=h._hh,b=h._ii,t=0;t>>0,u=u+E>>>0,r=r+S>>>0,l=l+x>>>0}return g.endian([a,u,r,l])};v._ff=function(h,c,o,i,n,a,u){var r=h+(c&o|~c&i)+(n>>>0)+u;return(r<>>32-a)+c},v._gg=function(h,c,o,i,n,a,u){var r=h+(c&i|o&~i)+(n>>>0)+u;return(r<>>32-a)+c},v._hh=function(h,c,o,i,n,a,u){var r=h+(c^o^i)+(n>>>0)+u;return(r<>>32-a)+c},v._ii=function(h,c,o,i,n,a,u){var r=h+(o^(c|~i))+(n>>>0)+u;return(r<>>32-a)+c},v._blocksize=16,v._digestsize=16,D.exports=function(h,c){if(h==null)throw new Error("Illegal argument "+h);var o=g.wordsToBytes(v(h,c));return c&&c.asBytes?o:c&&c.asString?m.bytesToString(o):g.bytesToHex(o)}})()},aHsQ:function(D,_,e){"use strict";var g=e("cIOH"),f=e.n(g),A=e("6D9b"),m=e.n(A)},aKvl:function(D,_,e){var g=e("Sj9i"),f=g.quadraticProjectPoint;function A(m,v,h,c,o,i,n,a,u){if(n===0)return!1;var r=n;if(u>v+r&&u>c+r&&u>i+r||um+r&&a>h+r&&a>o+r||a0&&O>0&&!H&&(C=0),C<0&&O<0&&!W&&(O=0));var R=L.ecModel;if(R&&y==="time"){var U=i("bar",R),j;if(A.each(U,function(V){j|=V.getBaseAxis()===L.axis}),j){var P=n(U),K=l(C,O,L,P);C=K.min,O=K.max}}return{extent:[C,O],fixMin:H,fixMax:W}}function l(T,L,y,C){var O=y.axis.getExtent(),N=O[1]-O[0],k=a(C,y.axis);if(k===void 0)return{min:T,max:L};var F=Infinity;A.each(k,function(j){F=Math.min(j.offset,F)});var B=-Infinity;A.each(k,function(j){B=Math.max(j.offset+j.width,B)}),F=Math.abs(F),B=Math.abs(B);var H=F+B,W=L-T,R=1-(F+B)/N,U=W/R-W;return L+=U*(B/H),T-=U*(F/H),{min:T,max:L}}function t(T,L){var y=r(T,L),C=y.extent,O=L.get("splitNumber");T.type==="log"&&(T.base=L.get("logBase"));var N=T.type;T.setExtent(C[0],C[1]),T.niceExtent({splitNumber:O,fixMin:y.fixMin,fixMax:y.fixMax,minInterval:N==="interval"||N==="time"?L.get("minInterval"):null,maxInterval:N==="interval"||N==="time"?L.get("maxInterval"):null});var k=L.get("interval");k!=null&&(T.setInterval&&T.setInterval(k))}function s(T,L){if(L=L||T.get("type"),L)switch(L){case"category":return new m(T.getOrdinalMeta?T.getOrdinalMeta():T.getCategories(),[Infinity,-Infinity]);case"value":return new v;default:return(h.getClass(L)||v).create(T)}}function d(T){var L=T.scale.getExtent(),y=L[0],C=L[1];return!(y>0&&C>0||y<0&&C<0)}function p(T){var L=T.getLabelModel().get("formatter"),y=T.type==="category"?T.scale.getExtent()[0]:null;return typeof L=="string"?(L=function(C){return function(O){return O=T.scale.getLabel(O),C.replace("{value}",O!=null?O:"")}}(L),L):typeof L=="function"?function(C,O){return y!=null&&(O=C-y),L(b(T,C),O)}:function(C){return T.scale.getLabel(C)}}function b(T,L){return T.type==="category"?T.scale.getLabel(L):L}function w(T){var L=T.model,y=T.scale;if(!L.get("axisLabel.show")||y.isBlank())return;var C=T.type==="category",O,N,k=y.getExtent();C?N=y.count():(O=y.getTicks(),N=O.length);var F=T.getLabelModel(),B=p(T),H,W=1;N>40&&(W=Math.ceil(N/40));for(var R=0;RK.blockIndex,X=z?K.step:null,G=V&&V.modDataCount,le=G!=null?Math.ceil(G/X):null;return{step:X,modBy:le,modDataCount:G}},s.getPipeline=function(j){return this._pipelineMap.get(j)},s.updateStreamModes=function(j,P){var K=this._pipelineMap.get(j.uid),V=j.getData(),z=V.count(),X=K.progressiveEnabled&&P.incrementalPrepareRender&&z>=K.threshold,G=j.get("large")&&z>=j.get("largeThreshold"),le=j.get("progressiveChunkMode")==="mod"?z:null;j.pipelineContext=K.context={progressiveRender:X,modDataCount:le,large:G}},s.restorePipelines=function(j){var P=this,K=P._pipelineMap=v();j.eachSeries(function(V){var z=V.getProgressive(),X=V.uid;K.set(X,{id:X,head:null,tail:null,threshold:V.getProgressiveThreshold(),progressiveEnabled:z&&!(V.preventIncremental&&V.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),k(P,V,V.dataTask)})},s.prepareStageTasks=function(){var j=this._stageTaskMap,P=this.ecInstance.getModel(),K=this.api;f(this._allHandlers,function(V){var z=j.get(V.uid)||j.set(V.uid,[]);V.reset&&b(this,V,z,P,K),V.overallReset&&w(this,V,z,P,K)},this)},s.prepareView=function(j,P,K,V){var z=j.renderTask,X=z.context;X.model=P,X.ecModel=K,X.api=V,z.__block=!j.incrementalPrepareRender,k(this,P,z)},s.performDataProcessorTasks=function(j,P){d(this,this._dataProcessorHandlers,j,P,{block:!0})},s.performVisualTasks=function(j,P,K){d(this,this._visualHandlers,j,P,K)};function d(j,P,K,V,z){z=z||{};var X;f(P,function(le,Y){if(z.visualType&&z.visualType!==le.visualType)return;var me=j._stageTaskMap.get(le.uid),we=me.seriesTaskMap,pe=me.overallTask;if(pe){var Fe,Xe=pe.agentStubMap;Xe.each(function(Ee){G(z,Ee)&&(Ee.dirty(),Fe=!0)}),Fe&&pe.dirty(),p(pe,V);var dt=j.getPerformArgs(pe,z.block);Xe.each(function(Ee){Ee.perform(dt)}),X|=pe.perform(dt)}else we&&we.each(function(Ee,Se){G(z,Ee)&&Ee.dirty();var at=j.getPerformArgs(Ee,z.block);at.skip=!le.performRawSeries&&K.isSeriesFiltered(Ee.context.model),p(Ee,V),X|=Ee.perform(at)})});function G(le,Y){return le.setDirty&&(!le.dirtyMap||le.dirtyMap.get(Y.__pipeline.id))}j.unfinished|=X}s.performSeriesTasks=function(j){var P;j.eachSeries(function(K){P|=K.dataTask.perform()}),this.unfinished|=P},s.plan=function(){this._pipelineMap.each(function(j){var P=j.tail;do{if(P.__block){j.blockIndex=P.__idxInPipeline;break}P=P.getUpstream()}while(P)})};var p=s.updatePayload=function(j,P){P!=="remain"&&(j.context.payload=P)};function b(j,P,K,V,z){var X=K.seriesTaskMap||(K.seriesTaskMap=v()),G=P.seriesType,le=P.getTargetSeries;P.createOnAllSeries?V.eachRawSeries(Y):G?V.eachRawSeriesByType(G,Y):le&&le(V,z).each(Y);function Y(we){var pe=we.uid,Fe=X.get(pe)||X.set(pe,o({plan:L,reset:y,count:N}));Fe.context={model:we,ecModel:V,api:z,useClearVisual:P.isVisual&&!P.isLayout,plan:P.plan,reset:P.reset,scheduler:j},k(j,we,Fe)}var me=j._pipelineMap;X.each(function(we,pe){me.get(pe)||(we.dispose(),X.removeKey(pe))})}function w(j,P,K,V,z){var X=K.overallTask=K.overallTask||o({reset:E});X.context={ecModel:V,api:z,overallReset:P.overallReset,scheduler:j};var G=X.agentStubMap=X.agentStubMap||v(),le=P.seriesType,Y=P.getTargetSeries,me=!0,we=P.modifyOutputEnd;le?V.eachRawSeriesByType(le,pe):Y?Y(V,z).each(pe):(me=!1,f(V.getSeries(),pe));function pe(Xe){var dt=Xe.uid,Ee=G.get(dt);Ee||(Ee=G.set(dt,o({reset:S,onDirty:T})),X.dirty()),Ee.context={model:Xe,overallProgress:me,modifyOutputEnd:we},Ee.agent=X,Ee.__block=me,k(j,Xe,Ee)}var Fe=j._pipelineMap;G.each(function(Xe,dt){Fe.get(dt)||(Xe.dispose(),X.dirty(),G.removeKey(dt))})}function E(j){j.overallReset(j.ecModel,j.api,j.payload)}function S(j,P){return j.overallProgress&&x}function x(){this.agent.dirty(),this.getDownstream().dirty()}function T(){this.agent&&this.agent.dirty()}function L(j){return j.plan&&j.plan(j.model,j.ecModel,j.api,j.payload)}function y(j){j.useClearVisual&&j.data.clearAllVisual();var P=j.resetDefines=l(j.reset(j.model,j.ecModel,j.api,j.payload));return P.length>1?A(P,function(K,V){return O(V)}):C}var C=O(0);function O(j){return function(P,K){var V=K.data,z=K.resetDefines[j];if(z&&z.dataEach)for(var X=P.start;X=0&&!(a[l]<=i);l--);l=Math.min(l,u-2)}else{for(var l=r;li);l++);l=Math.min(l-1,u-2)}m.lerp(o.position,n[l],n[l+1],(i-a[l])/(a[l+1]-a[l]));var s=n[l+1][0]-n[l][0],d=n[l+1][1]-n[l][1];o.rotation=-Math.atan2(d,s)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,o.ignore=!1},f.inherits(v,A);var c=v;D.exports=c},apAg:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var A=f(e("q1tI")),m=g(e("bsht")),v=g(e("KQxl")),h=function(i,n){return A.createElement(v.default,Object.assign({},i,{ref:n,icon:m.default}))};h.displayName="SearchOutlined";var c=A.forwardRef(h);_.default=c},as94:function(D,_,e){var g=e("7aKB"),f=e("3LNs"),A=e("IwbS"),m=e("/y7N"),v=e("Fofx"),h=e("+rIm"),c=e("Znkb"),o=f.extend({makeElOption:function(u,r,l,t,s){var d=l.axis;d.dim==="angle"&&(this.animationThreshold=Math.PI/18);var p=d.polar,b=p.getOtherAxis(d),w=b.getExtent(),E;E=d["dataTo"+g.capitalFirst(d.dim)](r);var S=t.get("type");if(S&&S!=="none"){var x=m.buildElStyle(t),T=n[S](d,p,E,w,x);T.style=x,u.graphicKey=T.type,u.pointer=T}var L=t.get("label.margin"),y=i(r,l,t,p,L);m.buildLabelElOption(u,l,t,s,y)}});function i(u,r,l,t,s){var d=r.axis,p=d.dataToCoord(u),b=t.getAngleAxis().getExtent()[0];b=b/180*Math.PI;var w=t.getRadiusAxis().getExtent(),E,S,x;if(d.dim==="radius"){var T=v.create();v.rotate(T,T,b),v.translate(T,T,[t.cx,t.cy]),E=A.applyTransform([p,-s],T);var L=r.getModel("axisLabel").get("rotate")||0,y=h.innerTextLayout(b,L*Math.PI/180,-1);S=y.textAlign,x=y.textVerticalAlign}else{var C=w[1];E=t.coordToPoint([C+s,p]);var O=t.cx,N=t.cy;S=Math.abs(E[0]-O)/C<.3?"center":E[0]>O?"left":"right",x=Math.abs(E[1]-N)/C<.3?"middle":E[1]>N?"top":"bottom"}return{position:E,align:S,verticalAlign:x}}var n={line:function(u,r,l,t,s){return u.dim==="angle"?{type:"Line",shape:m.makeLineShape(r.coordToPoint([t[0],l]),r.coordToPoint([t[1],l]))}:{type:"Circle",shape:{cx:r.cx,cy:r.cy,r:l}}},shadow:function(u,r,l,t,s){var d=Math.max(1,u.getBandWidth()),p=Math.PI/180;return u.dim==="angle"?{type:"Sector",shape:m.makeSectorShape(r.cx,r.cy,t[0],t[1],(-l-d/2)*p,(-l+d/2)*p)}:{type:"Sector",shape:m.makeSectorShape(r.cx,r.cy,l-d/2,l+d/2,0,Math.PI*2)}}};c.registerAxisPointerClass("PolarAxisPointer",o);var a=o;D.exports=a},b56q:function(D,_,e){},b80T:function(D,_,e){var g=e("UNi/"),f=e("03A+"),A=e("Z0cm"),m=e("DSRE"),v=e("wJg7"),h=e("c6wG"),c=Object.prototype,o=c.hasOwnProperty;function i(n,a){var u=A(n),r=!u&&f(n),l=!u&&!r&&m(n),t=!u&&!r&&!l&&h(n),s=u||r||l||t,d=s?g(n.length,String):[],p=d.length;for(var b in n)(a||o.call(n,b))&&!(s&&(b=="length"||l&&(b=="offset"||b=="parent")||t&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||v(b,p)))&&d.push(b);return d}D.exports=i},b80e:function(D,_,e){"use strict";var g=e("TqRt"),f=e("284h");Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var A=f(e("q1tI")),m=g(e("gKaM")),v=g(e("KQxl")),h=function(i,n){return A.createElement(v.default,Object.assign({},i,{ref:n,icon:m.default}))};h.displayName="DoubleLeftOutlined";var c=A.forwardRef(h);_.default=c},b9oc:function(D,_,e){var g=e("bYtY"),f=g.each,A="\0_ec_hist_store";function m(i,n){var a=o(i);f(n,function(u,r){for(var l=a.length-1;l>=0;l--){var t=a[l];if(t[r])break}if(l<0){var s=i.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(s){var d=s.getPercentRange();a[0][r]={dataZoomId:r,start:d[0],end:d[1]}}}}),a.push(n)}function v(i){var n=o(i),a=n[n.length-1];n.length>1&&n.pop();var u={};return f(a,function(r,l){for(var t=n.length-1;t>=0;t--){var r=n[t][l];if(r){u[l]=r;break}}}),u}function h(i){i[A]=null}function c(i){return o(i).length}function o(i){var n=i[A];return n||(n=i[A]=[{}]),n}_.push=m,_.pop=v,_.clear=h,_.count=c},bBKM:function(D,_,e){var g=e("Tghj"),f=g.__DEV__,A=e("ProS"),m=e("bYtY"),v=e("+rIm"),h=e("IwbS"),c=["axisLine","axisTickLabel","axisName"],o=A.extendComponentView({type:"radar",render:function(i,n,a){var u=this.group;u.removeAll(),this._buildAxes(i),this._buildSplitLineAndArea(i)},_buildAxes:function(i){var n=i.coordinateSystem,a=n.getIndicatorAxes(),u=m.map(a,function(r){var l=new v(r.model,{position:[n.cx,n.cy],rotation:r.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});m.each(u,function(r){m.each(c,r.add,r),this.group.add(r.getGroup())},this)},_buildSplitLineAndArea:function(i){var n=i.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var u=i.get("shape"),r=i.getModel("splitLine"),l=i.getModel("splitArea"),t=r.getModel("lineStyle"),s=l.getModel("areaStyle"),d=r.get("show"),p=l.get("show"),b=t.get("color"),w=s.get("color");b=m.isArray(b)?b:[b],w=m.isArray(w)?w:[w];var E=[],S=[];function x(U,j,P){var K=P%j.length;return U[K]=U[K]||[],K}if(u==="circle")for(var T=a[0].getTicksCoords(),L=n.cx,y=n.cy,C=0;C1&&arguments[1]!==void 0?arguments[1]:"",W=arguments.length>2?arguments[2]:void 0,R=h()(B),U=y(H,W);return U&&R.push(U),R},O=function(B){var H=B.prefixCls,W=B.separator,R=W===void 0?"/":W,U=B.style,j=B.className,P=B.routes,K=B.children,V=B.itemRender,z=V===void 0?L:V,X=B.params,G=X===void 0?{}:X,le=x(B,["prefixCls","separator","style","className","routes","children","itemRender","params"]),Y=c.useContext(l.b),me=Y.getPrefixCls,we=Y.direction,pe,Fe=me("breadcrumb",H);if(P&&P.length>0){var Xe=[];pe=P.map(function(Ee){var Se=y(Ee.path,G);Se&&Xe.push(Se);var at;return Ee.children&&Ee.children.length&&(at=c.createElement(w.a,null,Ee.children.map(function(_e){return c.createElement(w.a.Item,{key:_e.path||_e.breadcrumbName},z(_e,G,P,C(Xe,_e.path,G)))}))),c.createElement(d,{overlay:at,separator:R,key:Se||Ee.breadcrumbName},z(Ee,G,P,Xe))})}else K&&(pe=Object(n.a)(K).map(function(Ee,Se){return Ee&&(Object(E.a)(Ee.type&&(Ee.type.__ANT_BREADCRUMB_ITEM===!0||Ee.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(S.a)(Ee,{separator:R,key:Se}))}));var dt=i()(j,Fe,m()({},"".concat(Fe,"-rtl"),we==="rtl"));return c.createElement("div",f()({className:dt,style:U},le),pe)};O.Item=d,O.Separator=b;var N=O,k=_.a=N},bKJz:function(D,_,e){},bLfw:function(D,_,e){var g=e("bYtY"),f=e("Qxkt"),A=e("iRjW"),m=e("Yl7c"),v=m.enableClassManagement,h=m.parseClassType,c=e("4NO4"),o=c.makeInner,i=e("+TT/"),n=e("3hzK"),a=o(),u=f.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,s,d,p){f.call(this,t,s,d,p),this.uid=A.getUID("ec_cpt_model")},init:function(t,s,d,p){this.mergeDefaultAndTheme(t,d)},mergeDefaultAndTheme:function(t,s){var d=this.layoutMode,p=d?i.getLayoutParams(t):{},b=s.getTheme();g.merge(t,b.get(this.mainType)),g.merge(t,this.getDefaultOption()),d&&i.mergeLayoutParam(t,p,d)},mergeOption:function(t,s){g.merge(this.option,t,!0);var d=this.layoutMode;d&&i.mergeLayoutParam(this.option,t,d)},optionUpdated:function(t,s){},getDefaultOption:function(){var t=a(this);if(!t.defaultOption){for(var s=[],d=this.constructor;d;){var p=d.prototype.defaultOption;p&&s.push(p),d=d.superClass}for(var b={},w=s.length-1;w>=0;w--)b=g.merge(b,s[w],!0);t.defaultOption=b}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});v(u,{registerWhenExtend:!0}),A.enableSubTypeDefaulter(u),A.enableTopologicalTravel(u,r);function r(t){var s=[];return g.each(u.getClassesByMainType(t),function(d){s=s.concat(d.prototype.dependencies||[])}),s=g.map(s,function(d){return h(d).main}),t!=="dataset"&&g.indexOf(s,"dataset")<=0&&s.unshift("dataset"),s}g.mixin(u,n);var l=u;D.exports=l},bMXI:function(D,_,e){var g=e("bYtY"),f=e("QBsz"),A=e("Fofx"),m=e("mFDi"),v=e("DN4a"),h=f.applyTransform;function c(){v.call(this)}g.mixin(c,v);function o(a){this.name=a,this.zoomLimit,v.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}o.prototype={constructor:o,type:"view",dimensions:["x","y"],setBoundingRect:function(a,u,r,l){return this._rect=new m(a,u,r,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(a,u,r,l){this.transformTo(a,u,r,l),this._viewRect=new m(a,u,r,l)},transformTo:function(a,u,r,l){var t=this.getBoundingRect(),s=this._rawTransformable;s.transform=t.calculateTransform(new m(a,u,r,l)),s.decomposeTransform(),this._updateTransform()},setCenter:function(a){if(!a)return;this._center=a,this._updateCenterAndZoom()},setZoom:function(a){a=a||1;var u=this.zoomLimit;u&&(u.max!=null&&(a=Math.min(u.max,a)),u.min!=null&&(a=Math.max(u.min,a))),this._zoom=a,this._updateCenterAndZoom()},getDefaultCenter:function(){var a=this.getBoundingRect(),u=a.x+a.width/2,r=a.y+a.height/2;return[u,r]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var a=this._rawTransformable.getLocalTransform(),u=this._roamTransformable,r=this.getDefaultCenter(),l=this.getCenter(),t=this.getZoom();l=f.applyTransform([],l,a),r=f.applyTransform([],r,a),u.origin=l,u.position=[r[0]-l[0],r[1]-l[1]],u.scale=[t,t],this._updateTransform()},_updateTransform:function(){var a=this._roamTransformable,u=this._rawTransformable;u.parent=a,a.updateTransform(),u.updateTransform(),A.copy(this.transform||(this.transform=[]),u.transform||A.create()),this._rawTransform=u.getLocalTransform(),this.invTransform=this.invTransform||[],A.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var a=this._roamTransformable.transform,u=this._rawTransformable;return{roamTransform:a?g.slice(a):A.create(),rawScale:g.slice(u.scale),rawPosition:g.slice(u.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var a=this.getBoundingRect().clone();return a.applyTransform(this.transform),a},dataToPoint:function(a,u,r){var l=u?this._rawTransform:this.transform;return r=r||[],l?h(r,a,l):f.copy(r,a)},pointToData:function(a){var u=this.invTransform;return u?h([],a,u):[a[0],a[1]]},convertToPixel:g.curry(i,"dataToPoint"),convertFromPixel:g.curry(i,"pointToData"),containPoint:function(a){return this.getViewRectAfterRoam().contain(a[0],a[1])}},g.mixin(o,v);function i(a,u,r,l){var t=r.seriesModel,s=t?t.coordinateSystem:null;return s===this?s[a](l):null}var n=o;D.exports=n},bNin:function(D,_,e){var g=e("bYtY"),f=e("IwbS"),A=e("FBjb"),m=e("Itpr"),v=m.radialCoordinate,h=e("ProS"),c=e("4mN7"),o=e("bMXI"),i=e("Ae+d"),n=e("SgGq"),a=e("xSat"),u=a.onIrrelevantElement,r=e("Tghj"),l=r.__DEV__,t=e("OELB"),s=t.parsePercent,d=f.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(L,y){var C=y.childPoints,O=C.length,N=y.parentPoint,k=C[0],F=C[O-1];if(O===1){L.moveTo(N[0],N[1]),L.lineTo(k[0],k[1]);return}var B=y.orient,H=B==="TB"||B==="BT"?0:1,W=1-H,R=s(y.forkPosition,1),U=[];U[H]=N[H],U[W]=N[W]+(F[W]-N[W])*R,L.moveTo(N[0],N[1]),L.lineTo(U[0],U[1]),L.moveTo(k[0],k[1]),U[H]=k[H],L.lineTo(U[0],U[1]),U[H]=F[H],L.lineTo(U[0],U[1]),L.lineTo(F[0],F[1]);for(var j=1;jX.x,Y||(le=le-Math.PI));var we=Y?"left":"right",pe=k.labelModel.get("rotate"),Fe=pe*(Math.PI/180);V.setStyle({textPosition:k.labelModel.get("position")||we,textRotation:pe==null?-le:Fe,textOrigin:"center",verticalAlign:"middle"})}S(N,B,W,C,P,j,K,O,k)}function S(L,y,C,O,N,k,F,B,H){var W=H.edgeShape,R=O.__edge;if(W==="curve")y.parentNode&&y.parentNode!==C&&(R||(R=O.__edge=new f.BezierCurve({shape:T(H,N,N),style:g.defaults({opacity:0,strokeNoScale:!0},H.lineStyle)})),f.updateProps(R,{shape:T(H,k,F),style:{opacity:1}},L));else if(W==="polyline"&&(H.layout==="orthogonal"&&(y!==C&&y.children&&y.children.length!==0&&y.isExpand===!0))){for(var U=y.children,j=[],P=0;P